/* FONT IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* GLOBAL VARIABLES */
:root {
    /* Color Scheme - Professional Elegant */
    --primary-color: #2e5bff;
    --primary-light: #e4eaff;
    --primary-dark: #1942cc;
    --secondary-color: #5c8df6;
    --accent-color: #ff6b6b;
    --dark-color: #1e272e;
    --text-color: #2c3e50;
    --light-text: #78909c;
    --bg-color: #f9fafc;
    --card-bg: #ffffff;
    --border-color: #e4e9f2;
    --success-color: #5cba78;
    --warning-color: #ffb822;
    --info-color: #17a2b8;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Shadows */
    --subtle-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --accent-shadow: 0 5px 15px rgba(46, 91, 255, 0.15);
    
    /* Border Radius */
    --radius-small: 6px;
    --radius-medium: 10px;
    --radius-large: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Size */
    --navbar-width: 250px;
    --content-max-width: 1100px;
}

/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

p {
    margin-bottom: var(--space-sm);
}

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

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--space-md);
}

code {
    font-family: 'Courier New', monospace;
    padding: 0.1rem 0.3rem;
    background-color: #f1f5f9;
    border-radius: var(--radius-small);
    font-size: 0.9em;
    color: var(--primary-dark);
    border: 1px solid #e2e8f0;
}

/* LAYOUT */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 10;
    box-shadow: var(--subtle-shadow);
}

.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M1200 120L0 16.48 0 0 1200 0 1200 120z' fill='%23f9fafc'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    z-index: 1;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    text-align: center;
}

.header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--space-xs);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-small);
}

.header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-top: var(--space-sm);
    font-weight: 300;
}

/* NAVIGATION BAR */
.navbar {
    background-color: var(--card-bg);
    border-radius: var(--radius-large);
    margin: -20px auto 20px;
    max-width: 900px;
    position: sticky;
    top: 20px;
    z-index: 100;
    box-shadow: var(--card-shadow);
    padding: 0.5rem;
}

.navbar ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    list-style-type: none;
}

.navbar li {
    margin: 0.5rem;
}

.navbar .nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--light-text);
    font-weight: 500;
    border-radius: var(--radius-medium);
    transition: all var(--transition-normal);
}

.navbar .nav-link:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.navbar .nav-link.active {
    color: white;
    background-color: var(--primary-color);
    box-shadow: var(--accent-shadow);
}

/* MAIN CONTENT */
.content {
    flex: 1;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: var(--space-md);
    width: 100%;
}

/* SECTIONS */
.section {
    margin-bottom: var(--space-xl);
    scroll-margin-top: 100px;
}

.section h2 {
    position: relative;
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-md);
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-small);
}

/* CARDS & ELEMENTS */
.info-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-large);
    padding: var(--space-lg);
    box-shadow: var(--card-shadow);
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* FEATURE ITEMS */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.feature-item {
    background-color: #f8faff;
    border-radius: var(--radius-medium);
    padding: var(--space-md);
    text-align: center;
    border: 1px solid #e8eeff;
    transition: all var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--accent-shadow);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.feature-item h3 {
    color: var(--primary-dark);
    margin-bottom: var(--space-xs);
}

/* CHECKLIST */
.checklist {
    list-style-type: none;
}

.checklist li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
}

.check-icon {
    color: var(--success-color);
    margin-right: var(--space-xs);
    font-weight: bold;
}

/* TIPS & WARNINGS */
.tip, .warning {
    padding: var(--space-md);
    border-radius: var(--radius-medium);
    margin: var(--space-md) 0;
    position: relative;
    padding-left: 50px;
}

.tip {
    background-color: #e7f7ff;
    border-left: 4px solid var(--info-color);
}

.warning {
    background-color: #fff8e6;
    border-left: 4px solid var(--warning-color);
}

.tip::before, .warning::before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.tip::before {
    content: '💡';
}

.warning::before {
    content: '⚠️';
}

/* CODE BLOCKS */
.code-block {
    position: relative;
    margin: var(--space-md) 0;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--subtle-shadow);
}

.code-block pre {
    background-color: #1e272e;
    padding: var(--space-md);
    overflow-x: auto;
    border-radius: var(--radius-medium);
    position: relative;
}

.code-block code {
    background: none;
    color: #e4e6eb;
    border: none;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    padding: 0;
    white-space: pre;
}

.code-block.mini {
    margin: var(--space-xs) 0;
}

.code-block.mini pre {
    padding: var(--space-xs) var(--space-sm);
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: var(--radius-small);
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0;
}

.code-block:hover .copy-btn {
    opacity: 1;
}

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

.copy-btn.copied {
    background-color: var(--success-color);
}

/* STEPS */
.steps {
    counter-reset: step-counter;
    list-style-type: none;
}

.steps li {
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--space-lg);
    position: relative;
}

.steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: var(--subtle-shadow);
}

.steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    width: 2px;
    height: calc(100% - 20px);
    background-color: var(--primary-light);
    z-index: -1;
}

/* FOLDER STRUCTURE */
.folder-structure {
    padding: var(--space-md);
    background-color: #f8faff;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
}

.tree {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.tree ul {
    list-style-type: none;
    margin-left: 2rem;
    margin-bottom: 0;
}

.tree li {
    margin-bottom: 0.5rem;
}

.folder, .subfolder {
    font-weight: 600;
    color: var(--primary-dark);
}

.folder::before {
    content: '📁';
    margin-right: 5px;
}

.subfolder::before {
    content: '📂';
    margin-right: 5px;
}

/* TABS */
.tabs {
    margin: var(--space-md) 0;
}

.tab-headers {
    display: flex;
    overflow-x: auto;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: -2px;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-right: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--light-text);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    border-top: 2px solid var(--border-color);
    padding-top: var(--space-md);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ACCORDION */
.accordion-item {
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-medium);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion-header {
    background-color: #f8faff;
    padding: var(--space-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
}

.accordion-header::after {
    content: '+';
    margin-left: auto;
    font-size: 1.5rem;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-header {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.accordion-item.active .accordion-header::after {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: var(--space-md);
}

/* COMMAND LIST */
.command-list {
    margin: var(--space-md) 0;
}

.command-item {
    display: flex;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px dashed var(--border-color);
}

.command {
    font-family: 'Courier New', monospace;
    background-color: #1e272e;
    color: #e4e6eb;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-small);
    margin-right: var(--space-md);
    min-width: 300px;
    display: flex;
    align-items: center;
}

.command-desc {
    color: var(--light-text);
    display: flex;
    align-items: center;
}

/* DEPLOYMENT STEPS */
.deployment-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.step-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-medium);
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    position: relative;
    padding-top: 40px;
    transition: all var(--transition-normal);
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* FOOTER */
.footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: var(--space-lg);
    margin-top: var(--space-xl);
}

.footer p {
    margin-bottom: var(--space-xs);
    opacity: 0.8;
}

/* RESPONSIVE STYLES */
@media (max-width: 768px) {
    :root {
        --space-xl: 2rem;
        --space-lg: 1.5rem;
        --space-md: 1rem;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .navbar {
        overflow-x: auto;
        position: relative;
        top: 0;
        margin-top: -20px;
    }
    
    .command-item {
        flex-direction: column;
    }
    
    .command {
        margin-right: 0;
        margin-bottom: var(--space-xs);
        min-width: auto;
        width: 100%;
    }
    
    .steps li {
        padding-left: 40px;
    }
    
    .steps li::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .steps li:not(:last-child)::after {
        left: 15px;
    }
    
    .accordion-header {
        padding: var(--space-sm);
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 0.8s ease-out both;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
.section:nth-child(7) { animation-delay: 0.7s; }
.section:nth-child(8) { animation-delay: 0.8s; }

/* DARK MODE */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --card-bg: #1e1e1e;
        --text-color: #e4e6eb;
        --light-text: #9aa0a6;
        --dark-color: #000000;
        --border-color: #2d2d2d;
    }
    
    .header::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M1200 120L0 16.48 0 0 1200 0 1200 120z' fill='%23121212'/%3E%3C/svg%3E");
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #ffffff;
    }
    
    code {
        background-color: #2d2d2d;
        border-color: #3d3d3d;
        color: #9cdcfe;
    }
    
    .feature-item {
        background-color: #252525;
        border-color: #2d2d2d;
    }
    
    .folder-structure {
        background-color: #252525;
    }
    
    .tip {
        background-color: rgba(23, 162, 184, 0.1);
    }
    
    .warning {
        background-color: rgba(255, 184, 34, 0.1);
    }
    
    .tab-headers {
        border-bottom-color: #2d2d2d;
    }
    
    .tab-content {
        border-top-color: #2d2d2d;
    }
    
    .accordion-header {
        background-color: #252525;
    }
    
    .accordion-item.active .accordion-header {
        background-color: rgba(46, 91, 255, 0.2);
    }
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}