/* ═══════════════════════════════════════════════════════════════════════════ */
/* ROOT VARIABLES & RESET */
/* ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --primary: #1e88e5;
    --primary-dark: #1565c0;
    --secondary: #f57c00;
    --accent: #00bcd4;
    --success: #4caf50;
    --danger: #f44336;
    --warning: #ff9800;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --gray: #666;
    --gray-light: #aaa;
    --gray-lighter: #e0e0e0;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* UTILITIES */
/* ═══════════════════════════════════════════════════════════════════════════ */

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

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.section {
    padding: 80px 20px;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary);
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
}

.bg-light {
    background: #f5f5f5;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* NAVIGATION & HEADER */
/* ═══════════════════════════════════════════════════════════════════════════ */

.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.nav-brand .logo:hover {
    opacity: 0.9;
}

.nav-brand .logo i {
    font-size: 2rem;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-menu {
        width: 100%;
        order: 3;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu {
        display: none;
    }
}

.btn-github {
    background: var(--accent);
    padding: 8px 16px;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-github:hover {
    background: #00acc1;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* BUTTONS */
/* ═══════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--light);
    box-shadow: var(--shadow-lg);
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    font-weight: 600;
}

.copy-btn:hover {
    background: #00acc1;
}

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

/* ═══════════════════════════════════════════════════════════════════════════ */
/* HERO SECTION */
/* ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FEATURE CARDS */
/* ═══════════════════════════════════════════════════════════════════════════ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ═════��═════════════════════════════════════════════════════════════════════ */
/* CODE BLOCKS */
/* ═══════════════════════════════════════════════════════════════════════════ */

.code-block {
    background: var(--dark);
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    position: relative;
    font-family: 'Courier New', 'Monaco', monospace;
    line-height: 1.5;
    font-size: 0.95rem;
}

.code-block code {
    display: block;
    color: #e0e0e0;
}

.code-block pre {
    margin: 0;
}

/* Syntax highlighting for inline code */
code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.code-block code {
    background: none;
    padding: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* TABLES */
/* ═══════════════════════════════════════════════════════════════════════════ */

.command-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.command-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.command-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.command-table tr:hover {
    background: var(--light);
}

.command-table tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* TABS */
/* ═══════════════════════════════════════════════════════════════════════════ */

.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    gap: 10px;
    margin: 40px 0 30px 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

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

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

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* SEARCH & FILTERS */
/* ═══════════════════════════════════════════════════════════════════════════ */

.search-container {
    margin: 30px 0;
    position: relative;
}

.search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px 40px 12px 15px;
    border: 2px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* ALERTS & BOXES */
/* ═══════════════════════════════════════════════════════════════════════════ */

.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert-info {
    background: #e3f2fd;
    border-left-color: var(--primary);
    color: var(--primary);
}

.alert-warning {
    background: #fff3e0;
    border-left-color: var(--warning);
    color: var(--warning);
}

.alert-success {
    background: #e8f5e9;
    border-left-color: var(--success);
    color: var(--success);
}

.alert ul {
    margin-left: 20px;
    margin-top: 10px;
}

.alert li {
    margin: 5px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* EXAMPLE CARDS */
/* ═══════════════════════════════════════════════════════════════════════════ */