:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --code-bg: #282c34;
    --terminal-bg: #1e1e1e;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-family: 'Roboto', sans-serif;
    --code-font-family: 'JetBrains Mono', monospace;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #0056b3;
}

ul {
    list-style-type: none;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

code {
    font-family: var(--code-font-family);
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    font-family: var(--code-font-family);
    background-color: var(--code-bg);
    color: #f8f8f2;
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    font-size: 0.9em;
    margin: 1rem 0;
}

pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
}

.btn.primary {
    color: #fff;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn.secondary {
    color: #fff;
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn.secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.github-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: var(--border-radius);
}

.github-link:hover {
    background-color: #0056b3;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin-bottom: 5px;
    border-radius: 5px;
    transition: var(--transition);
}

/* Hero section */
.hero {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.terminal {
    flex: 1;
    background-color: var(--terminal-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.terminal-header {
    background-color: #2d2d2d;
    padding: 10px;
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red {
    background-color: #ff5f56;
}

.terminal-button.yellow {
    background-color: #ffbd2e;
}

.terminal-button.green {
    background-color: #27c93f;
}

.terminal-content {
    padding: 20px;
}

.terminal-content pre {
    background-color: transparent;
    margin: 0;
    padding: 0;
    color: #f8f8f2;
}

/* Overview section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature h3 {
    margin-bottom: 1rem;
}

/* Installation section */
.installation {
    background-color: #f8f9fa;
}

.install-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.install-method {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: var(--shadow);
}

.code-block {
    position: relative;
}

.code-block pre {
    padding-right: 50px;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.requirements ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.requirements ul ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Plugins section */
.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.plugin-card {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.plugin-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.plugin-header {
    background-color: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plugin-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.plugin-body {
    padding: 1rem;
}

.plugin-usage {
    margin-top: 1rem;
}

.plugin-usage code {
    display: block;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 3px;
}

/* Architecture section */
.architecture-diagram {
    margin: 3rem 0;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.interactive-diagram {
    max-width: 100%;
    height: 800px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    background-color: #f8f9fa;
    position: relative;
}

#diagram-2d, #diagram-3d {
    width: 100%;
    height: 800px;
    position: relative;
}

#diagram-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

#diagram-3d:active {
    cursor: grabbing;
}

#diagram-3d canvas {
    width: 100%;
    height: 100%;
    display: block;
    margin: 0 auto;
}

.diagram-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    gap: 1rem;
    padding: 0.8rem;
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: #f8f9fa;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    transition: all 0.2s ease;
}

.view-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.view-btn:hover:not(.active) {
    background-color: #e9ecef;
}

.controls-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.toggle-container input[type="checkbox"] {
    margin-right: 0.8rem;
    transform: scale(1.2);
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

#reset-camera {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
}

.interactive-diagram-svg {
    max-width: 100%;
    height: auto;
}

/* 3D 요소 툴팁 스타일 */
.element-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.caption {
    margin-top: 1rem;
    color: var(--secondary-color);
    font-style: italic;
}

.structure-details,
.adding-plugins,
.architecture-benefits {
    margin-bottom: 3rem;
}

.architecture-benefits ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

.learn-more {
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo {
    flex: 1;
    min-width: 280px;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex: 2;
    justify-content: space-around;
}

.link-column {
    margin-bottom: 2rem;
}

.link-column h3 {
    margin-bottom: 1.5rem;
}

.link-column ul li {
    margin-bottom: 0.5rem;
}

.link-column a {
    color: rgba(255, 255, 255, 0.7);
}

.link-column a:hover {
    color: #fff;
}

.copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.copyright a {
    color: rgba(255, 255, 255, 0.9);
}

.copyright a:hover {
    color: #fff;
}

/* Media queries */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .terminal {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    .nav-links.active li {
        margin: 0.5rem 1.5rem;
    }

    .footer-links {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Utils */
.placeholder-img {
    background-color: #e9ecef;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-style: italic;
}
