:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --accent: #0ea5e9;
    --border: #334155;
    --navbar-bg: rgba(9, 9, 11, 0.8);
    --code-bg: #1e1e1e;
    --code-header: #2d2d2d;
    --code-text: #e5e5e5;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-text: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
}

/* Light Mode */
[data-theme="light"] {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary-glow: rgba(59, 130, 246, 0.25);
    --navbar-bg: rgba(248, 250, 252, 0.85);
    --code-bg: #f8fafc;
    --code-header: #e2e8f0;
    --code-text: #1e293b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; display: block; }

/* Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.35;
    animation: float 12s infinite ease-in-out alternate;
    pointer-events: none;
}
.blob-1 {
    top: -10%; left: -10%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}
.blob-2 {
    top: 40%; right: -10%;
    width: 35vw; height: 35vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    animation-delay: -5s;
}
.blob-3 {
    bottom: -5%; left: 30%;
    width: 30vw; height: 30vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2), transparent 70%);
    animation-delay: -8s;
}
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; }
.section { padding: 6rem 0; }
.text-center { text-align: center; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

/* Section Headers */
.section-header { margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.125rem; max-width: 600px; }
.section-header.text-center p { margin: 0 auto; }
.section-sub {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 500;
    cursor: pointer; border: none; transition: all 0.3s ease; font-size: 1rem;
}
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; padding: 1rem 0; z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo { font-size: 1.5rem; font-weight: 700; font-family: var(--font-mono); letter-spacing: -0.5px; }

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 56px; height: 30px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 6px;
    transition: all 0.4s ease;
    overflow: hidden;
}
.theme-toggle i {
    font-size: 14px;
    z-index: 1;
    transition: color 0.3s ease;
}
.theme-toggle .bx-moon { color: #94a3b8; }
.theme-toggle .bx-sun { color: #f59e0b; }
.toggle-slider {
    position: absolute;
    left: 3px; top: 3px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--gradient-primary);
    transition: transform 0.4s cubic-bezier(0.68, -0.15, 0.27, 1.15);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}
[data-theme="light"] .toggle-slider {
    transform: translateX(26px);
}
.theme-toggle:hover {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-main); }
.nav-links a.active-link { color: var(--primary); }
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 5rem; }
.hero-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
}
.badge {
    display: inline-block; padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 2rem; font-size: 0.875rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero-title { font-size: 3.5rem; letter-spacing: -1px; margin-bottom: 1rem; }
.hero-title span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero-subtitle { font-size: 1.5rem; color: var(--text-main); margin-bottom: 1rem; font-weight: 500; }
.hero-desc { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 2.5rem; max-width: 90%; }
.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; }

/* Hero Stats */
.hero-stats { display: flex; gap: 2.5rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-number {
    font-size: 2rem; font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-suffix {
    font-size: 2rem; font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* Code Window */
.code-window {
    background: var(--code-bg); border-radius: 12px; border: 1px solid var(--border);
    overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); width: 100%;
    transition: background 0.4s ease, border-color 0.4s ease;
}
.code-header {
    background: var(--code-header); padding: 0.75rem 1rem; display: flex; gap: 0.5rem; align-items: center;
    transition: background 0.4s ease;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.code-filename { color: #888; font-size: 0.8rem; margin-left: 0.5rem; font-family: var(--font-mono); }
.code-body {
    padding: 1.5rem; font-family: var(--font-mono); font-size: 0.9rem;
    line-height: 1.6; color: var(--code-text); overflow-x: auto;
    transition: color 0.4s ease;
}
.keyword { color: #c678dd; }
.class { color: #e5c07b; }
.string { color: #98c379; }
.method { color: #61afef; }
.boolean { color: #d19a66; }
.comment { color: #5c6370; font-style: italic; }

/* Tech Stack */
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
.tech-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--text-muted); transition: all 0.3s ease;
}
.tech-item i { font-size: 2.5rem; }
.tech-item span { font-size: 0.875rem; font-weight: 500; }
.tech-item:hover { color: var(--primary); transform: translateY(-5px); }

/* Feature Cards */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 1rem; padding: 2rem;
    transition: all 0.3s ease, background-color 0.4s ease, border-color 0.4s ease;
}
.card:hover { transform: translateY(-5px); background: var(--bg-card-hover); border-color: var(--primary); }
.icon-box {
    width: 50px; height: 50px; background: rgba(59, 130, 246, 0.1); color: var(--primary);
    border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1.5rem;
}
.icon-box-purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.icon-box-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-box-orange { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.icon-box-cyan { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.icon-box-pink { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.card p { color: var(--text-muted); }

/* Domain Cards */
.domain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.domain-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 1rem; padding: 2rem; display: flex; gap: 1.5rem;
    transition: all 0.3s ease; align-items: flex-start;
}
.domain-card:hover { transform: translateY(-5px); border-color: var(--primary); background: var(--bg-card-hover); }
.domain-icon {
    min-width: 56px; height: 56px;
    background: rgba(59, 130, 246, 0.1); color: var(--primary);
    border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; flex-shrink: 0;
}
.domain-content h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.domain-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; }
.domain-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Project Cards */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.project-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 1rem; overflow: hidden; transition: all 0.3s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.project-image { height: 180px; width: 100%; }
.grad-1 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.grad-2 { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.grad-3 { background: linear-gradient(135deg, #064e3b, #10b981); }
.project-content { padding: 1.5rem; }
.tags { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tag {
    background: rgba(255, 255, 255, 0.05); padding: 0.25rem 0.75rem;
    border-radius: 1rem; font-size: 0.75rem; color: var(--text-muted);
    border: 1px solid var(--border);
}
.project-content h3 { margin-bottom: 0.75rem; }
.project-content p { color: var(--text-muted); font-size: 0.95rem; }

/* Why Us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.why-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 1rem; padding: 2rem; transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.why-card:hover { transform: translateY(-5px); border-color: var(--primary); background: var(--bg-card-hover); }
.why-number {
    font-size: 3rem; font-weight: 800; line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 1rem; opacity: 0.4;
}
.why-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; }
.why-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; top: 0; left: 24px;
    height: 100%; width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-left: 5rem; margin-bottom: 3rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
    position: absolute; left: 0; top: 0; width: 50px; height: 50px;
    background: var(--bg-card); border: 2px solid var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--primary); font-size: 1.25rem; z-index: 1;
}
.timeline-content {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 1.5rem; border-radius: 1rem;
}
.timeline-content h3 { margin-bottom: 0.5rem; }
.timeline-content p { color: var(--text-muted); }

/* Internship Section */
.internship-section {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}
.internship-section .section-header .badge {
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1.5rem; padding: 4rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.cta-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-content p { color: var(--text-muted); font-size: 1.125rem; }
.cta-form { display: flex; flex-direction: column; gap: 1rem; }
.cta-form input, .cta-form select {
    width: 100%; padding: 1rem;
    background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border);
    border-radius: 0.5rem; color: var(--text-main); font-family: inherit; font-size: 1rem;
}
.cta-form input:focus, .cta-form select:focus { outline: none; border-color: var(--primary); }
.cta-form select option { background: var(--bg-dark); color: var(--text-main); }

/* Footer */
footer {
    border-top: 1px solid var(--border); padding-top: 4rem; background: var(--bg-card);
}
.footer-container {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem; margin-bottom: 3rem;
}
.footer-brand p { color: var(--text-muted); margin: 1rem 0; max-width: 300px; }
.socials { display: flex; gap: 1rem; }
.socials a {
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.3s ease;
}
.socials a:hover { background: var(--primary); color: white; }
.footer-links { display: contents; }
.link-col { display: flex; flex-direction: column; gap: 1rem; }
.link-col h4 { color: var(--text-main); margin-bottom: 0.5rem; }
.link-col a { color: var(--text-muted); }
.link-col a:hover { color: var(--primary); }
.footer-bottom {
    border-top: 1px solid var(--border); padding: 1.5rem 0;
    text-align: center; color: var(--text-muted); font-size: 0.875rem;
}

/* Animations */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left {
    opacity: 0; transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-container, .cta-box { grid-template-columns: 1fr; text-align: center; }
    .hero-content { order: 1; }
    .hero-visual { order: 2; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .hero-stats { justify-content: center; }
    .hero-desc { margin-left: auto; margin-right: auto; max-width: 100%; }
    .footer-container { grid-template-columns: 1fr 1fr; }
    .domain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-links.active {
        display: flex; flex-direction: column;
        position: fixed; top: 70px; left: 0; width: 100%;
        background: var(--navbar-bg); backdrop-filter: blur(20px);
        padding: 2rem; gap: 1.5rem; align-items: center;
        border-bottom: 1px solid var(--border);
    }
    .menu-toggle { display: block; }
    .hero-title { font-size: 2.5rem; }
    .section { padding: 4rem 0; }
    .container { padding: 0 1.25rem; }
    .section-header h2 { font-size: 2rem; }
    .cta-box { padding: 2rem; }
    .feature-cards, .domain-grid, .project-grid, .why-grid {
        grid-template-columns: 1fr;
    }
    .hero-stats { flex-direction: column; gap: 1.5rem; align-items: center; }
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .domain-card { flex-direction: column; align-items: center; text-align: center; }
    .domain-tags { justify-content: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }
    .cta-content h2 { font-size: 1.75rem; }
}

/* ========== LIGHT MODE OVERRIDES ========== */
[data-theme="light"] .blob { opacity: 0.15; }
[data-theme="light"] .code-window { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); }
[data-theme="light"] .keyword { color: #7c3aed; }
[data-theme="light"] .class { color: #b45309; }
[data-theme="light"] .string { color: #059669; }
[data-theme="light"] .method { color: #2563eb; }
[data-theme="light"] .boolean { color: #dc2626; }
[data-theme="light"] .comment { color: #9ca3af; }
[data-theme="light"] .socials a { background: rgba(0, 0, 0, 0.05); }
[data-theme="light"] footer { background: #f1f5f9; }
[data-theme="light"] .internship-section {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, transparent 100%);
}
[data-theme="light"] .cta-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.06));
}
[data-theme="light"] .cta-form input,
[data-theme="light"] .cta-form select {
    background: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .tag { background: rgba(0, 0, 0, 0.03); }

/* Smooth transitions for all themed elements */
.card, .domain-card, .project-card, .why-card, .timeline-content,
.timeline-marker, .cta-box, footer, .badge, .tag, .icon-box,
.cta-form input, .cta-form select, .internship-section {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, transform 0.3s ease;
}