/* Modern Premium CSS System */

:root {
    /* Color Palette - HSL Tailored */
    --primary-hue: 250;
    --primary: hsl(var(--primary-hue), 85%, 60%);
    --primary-light: hsl(var(--primary-hue), 85%, 75%);
    --primary-dark: hsl(var(--primary-hue), 85%, 45%);
    
    --bg-dark: hsl(230, 25%, 8%);
    --bg-card-dark: hsla(230, 25%, 12%, 0.7);
    --text-dark: hsl(210, 20%, 98%);
    --text-muted-dark: hsl(210, 10%, 70%);
    
    --bg-light: hsl(210, 30%, 98%);
    --bg-card-light: rgba(255, 255, 255, 0.7);
    --text-light: hsl(230, 25%, 12%);
    --text-muted-light: hsl(230, 10%, 40%);

    --accent-red: #ff5f56;
    --accent-yellow: #ffbd2e;
    --accent-green: #27c93f;
    --accent-gradient: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);

    /* Transitions & Borders */
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-glass: 1px solid rgba(255, 255, 255, 0.1);
}

/* Default Theme: Dark */
body {
    --bg: var(--bg-dark);
    --bg-card: var(--bg-card-dark);
    --text: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --border-color: rgba(255, 255, 255, 0.08);
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: var(--transition);
    line-height: 1.6;
}

/* Light Theme Variables */
body.light-theme {
    --bg: var(--bg-light);
    --bg-card: var(--bg-card-light);
    --text: var(--text-light);
    --text-muted: var(--text-muted-light);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-glass: 1px solid rgba(0, 0, 0, 0.05);
}

/* Background Blobs for Aesthetic Glassmorphism */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    transition: var(--transition);
}
.light-theme .blob {
    opacity: 0.1;
}
.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary);
}
.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #ec4899;
}
.blob-3 {
    top: 40%;
    left: 45%;
    width: 35vw;
    height: 35vw;
    background: #a855f7;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg), 0.7);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-color);
    box-sizing: border-box;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}
.logo-accent {
    color: var(--primary);
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
    color: var(--text);
}
.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}
.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    max-width: 1200px;
    margin: 120px auto 60px auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(80vh - 120px);
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.light-theme .badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -2px;
}
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 1rem;
}
.btn {
    text-decoration: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}
.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: var(--transition);
}
.light-theme .glass-card {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.light-theme .glass-card:hover {
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

/* Hero Code Visual */
.main-card {
    width: 100%;
    overflow: hidden;
}
.card-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: var(--border-glass);
}
.light-theme .card-header {
    background: rgba(0, 0, 0, 0.05);
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: var(--accent-red); }
.dot.yellow { background: var(--accent-yellow); }
.dot.green { background: var(--accent-green); }
.card-title {
    margin-left: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}
.card-body {
    padding: 20px;
    margin: 0;
}
.card-body pre {
    margin: 0;
}
.card-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
}
.key { color: #a855f7; }
.string { color: #27c93f; }
.boolean { color: #ffbd2e; }

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 2rem;
}
.section-title {
    font-size: 2.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.feature-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.feature-card h3 {
    font-size: 1.3rem;
    margin: 0 0 1rem 0;
    font-family: 'Outfit', sans-serif;
}
.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

/* About / Technical Section */
.about-section {
    max-width: 1200px;
    margin: 60px auto 100px auto;
    padding: 2rem;
}
.about-card {
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.about-card h2 {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    margin-top: 0;
}
.about-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.command-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    border: var(--border-glass);
}
.light-theme .command-box {
    background: rgba(0, 0, 0, 0.05);
}
.command-box code {
    font-family: monospace;
    font-size: 1rem;
    color: var(--primary-light);
}
.light-theme .command-box code {
    color: var(--primary-dark);
}
.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 5px;
}
.copy-btn:hover {
    color: var(--text);
    transform: scale(1.1);
}

/* Footer */
footer {
    border-top: var(--border-color);
    padding: 2rem 0;
    text-align: center;
    background: rgba(var(--bg), 0.5);
    backdrop-filter: blur(10px);
}
.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        margin-top: 100px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg);
        border-bottom: var(--border-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .mobile-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .about-card {
        padding: 2rem 1.5rem;
    }
}
