/* Base Variables & Reset */
:root {
    /* Light Theme */
    --c-bg: #ffffff;
    --c-bg-soft: #f9f9f9;
    --c-bg-mute: #f1f1f1;
    --c-text-1: #213547;
    --c-text-2: #3c3c3cb3;
    --c-border: #e2e2e2;
    
    /* Brand Colors (Soybean Green) */
    --c-brand: #10b981;
    --c-brand-light: #34d399;
    --c-brand-dark: #059669;
    
    /* Dimensions */
    --nav-height: 64px;
    --max-width: 1152px;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html.dark {
    /* Dark Theme */
    --c-bg: #1a1a1a;
    --c-bg-soft: #242424;
    --c-bg-mute: #2f2f2f;
    --c-text-1: rgba(255, 255, 255, 0.87);
    --c-text-2: rgba(235, 235, 245, 0.6);
    --c-border: #383838;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--c-bg);
    color: var(--c-text-1);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* Layout Utilities */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(var(--c-bg), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: background-color 0.3s, border-color 0.3s;
}

.navbar.scrolled {
    border-bottom-color: var(--c-border);
    background-color: rgba(255, 255, 255, 0.9);
}

html.dark .navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.9);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.logo-icon {
    font-size: 1.75rem;
    color: var(--c-brand);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text-1);
    position: relative;
}

.nav-link:hover {
    color: var(--c-brand);
}

.divider {
    width: 1px;
    height: 24px;
    background-color: var(--c-border);
    margin: 0 8px;
}

.theme-toggle, .mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--c-text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.theme-toggle:hover, .github-link:hover {
    color: var(--c-text-1);
}

.github-link {
    font-size: 1.25rem;
    color: var(--c-text-2);
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding: calc(var(--nav-height) + 80px) 24px 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: -webkit-linear-gradient(120deg, #34d399 30%, #059669);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--c-text-2);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--c-brand);
    color: white;
    border: 1px solid var(--c-brand);
}

.btn-primary:hover {
    background-color: var(--c-brand-light);
    border-color: var(--c-brand-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background-color: var(--c-bg-soft);
    color: var(--c-text-1);
    border: 1px solid var(--c-border);
}

.btn-secondary:hover {
    background-color: var(--c-bg-mute);
    border-color: var(--c-text-2);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--c-bg-soft);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--c-text-1);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 32px;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-brand);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--c-brand);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--c-text-2);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team Section */
.team {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.team-card {
    text-align: center;
    padding: 24px;
    border-radius: 12px;
    background-color: var(--c-bg-soft);
    transition: var(--transition-base);
}

.team-card:hover {
    transform: translateY(-5px);
    background-color: var(--c-bg-mute);
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 16px;
    object-fit: cover;
    border: 2px solid var(--c-brand);
    padding: 2px;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--c-text-2);
}

/* Footer */
.footer {
    border-top: 1px solid var(--c-border);
    padding: 40px 0;
    text-align: center;
    color: var(--c-text-2);
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 8px;
}

/* Responsive Design */
/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--c-bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.mobile-nav-links .nav-link {
    font-size: 1.25rem;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--c-border);
}

.mobile-nav-links .divider {
    display: none; /* Hide divider in mobile */
}

.mobile-nav-links .theme-toggle,
.mobile-nav-links .github-link {
    font-size: 1.5rem;
    padding: 12px;
    margin-top: 12px;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide desktop nav */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: calc(var(--nav-height) + 40px) 24px 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Page Specific Responsive */
    .page-header {
        padding: 100px 20px 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-content {
        padding: 20px;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
}


/* Page specific styles */
.page-header { padding: 120px 24px 40px; text-align: center; }
.page-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 16px; color: var(--c-text-1); }
.page-content { min-height: 50vh; padding: 40px 24px; max-width: 800px; margin: 0 auto; color: var(--c-text-2); font-size: 1.1rem; line-height: 1.8; }

/* Article Content Styles */
.article-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--c-text-1);
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--c-text-1);
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--c-brand);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content pre {
    background-color: var(--c-bg-mute);
    padding: 1.2rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--c-border);
    font-size: 0.95rem;
}

.article-content code {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    background-color: var(--c-bg-mute);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--c-brand-dark);
}

html.dark .article-content code {
    color: var(--c-brand-light);
}

.article-content pre code {
    background-color: transparent;
    padding: 0;
    color: var(--c-text-1);
}

.article-content blockquote {
    border-left: 4px solid var(--c-brand);
    padding: 1rem;
    margin: 1.5rem 0;
    background-color: var(--c-bg-soft);
    border-radius: 0 8px 8px 0;
}
