:root {
    --bg: #FAFAFA;
    --bg-secondary: #F2F2F2;
    --text-main: #1A1A1A;
    --text-minor: #666666;
    --accent: #1E40AF;
    --accent-soft: rgba(30, 64, 175, 0.1);
    --border: rgba(0, 0, 0, 0.05);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 12px;
    --glass-bg: rgba(250, 250, 250, 0.7);
    --card-bg: white;
}

html.dark-theme {
    --bg: #0A0A0A;
    --bg-secondary: #1A1A1A;
    --text-main: #F2F2F2;
    --text-minor: #999999;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(10, 10, 10, 0.7);
    --card-bg: #111111;
}

html,
body {
    background-color: var(--bg);
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text-main);
    background: transparent;
    overflow-x: hidden;
    transition: color 0.4s ease;
    min-height: 100vh;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 2px solid var(--border);
    transition: background 0.4s ease, border-color 0.4s ease;
}

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

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-minor);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--text-main);
}

.theme-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s ease;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

.theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-btn svg {
    display: block;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-minor);
    letter-spacing: 0.05em;
    margin-bottom: 40px;
    font-weight: 500;
    opacity: 0.8;
}

.subheading {
    font-size: 1.25rem;
    color: var(--text-minor);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.4;
    font-weight: 400;
}

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

.btn-primary {
    background: var(--text-main);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: scale(1.03);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-main);
    padding: 14px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--accent-soft);
}

/* General Section Styles */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-minor);
    margin-bottom: 48px;
}

/* Experience & Education */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.exp-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.exp-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.company {
    color: var(--accent);
    font-weight: 600;
}

.exp-desc {
    color: var(--text-minor);
    font-size: 1.1rem;
    max-width: 700px;
    margin-bottom: 12px;
}

.exp-date {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bento-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-box.large {
    grid-column: span 2;
    padding: 48px;
}

.bento-box:hover {
    border-color: var(--accent);
}

.label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.bento-box h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.bento-box p {
    color: var(--text-minor);
    line-height: 1.5;
    margin-bottom: 20px;
}

.expand-btn {
    align-self: flex-end;
    background: var(--accent-soft);
    color: var(--accent);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.expand-btn:hover {
    background: var(--accent);
    color: white;
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.expanded .project-details {
    max-height: 500px;
}

.details-inner {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.tech-stack span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-minor);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 6px;
}

.extra-info {
    font-size: 0.95rem;
    color: var(--text-minor);
    line-height: 1.6;
}

/* Contact Section */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact-card p {
    color: var(--text-minor);
    max-width: 500px;
    margin: 0 auto 32px;
    font-size: 1.1rem;
}

.email-link {
    font-size: 1.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.email-link:hover {
    border-color: var(--accent);
    opacity: 0.8;
}

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

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .headline {
        font-size: 3.5rem;
        white-space: nowrap;
    }

    .nav-links {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-box.large {
        grid-column: span 1;
    }

    .hero-cta {
        flex-direction: column;
    }
}