:root {
    --bg-color: #0b0f17;
    --bg-surface: rgba(15, 23, 42, 0.88);
    --bg-surface-hover: rgba(30, 41, 59, 0.95);
    --border-color: rgba(255, 255, 255, 0.15);
    --border-hover: rgba(255, 255, 255, 0.35);
    
    --text-dark: #000000;
    --text-dark-sub: #1e293b;
    --text-light: #ffffff;
    --text-light-sub: #cbd5e1;
    
    --accent-dark: #0f172a;
    --accent-blue: #1e40af;
    --accent-indigo: #4338ca;
    --accent-emerald: #047857;
    
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* FLOATING NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
}

.brand-badge {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    background: var(--accent-dark);
    color: #ffffff;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark-sub);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(4, 120, 87, 0.1);
    border: 1px solid rgba(4, 120, 87, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
}

.nav-cta {
    text-decoration: none;
    color: var(--accent-dark);
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.2);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent-dark);
    color: #ffffff;
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

/* CANVAS BACKGROUND */
.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
}

.canvas-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
}

/* SCROLL SECTIONS */
.scroll-content {
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 6%;
    position: relative;
}

.hero { min-height: 100vh; }
.hero .content { margin-top: 5vh; }
.philosophy { min-height: 140vh; }
.experience { min-height: 140vh; }
.projects { min-height: 130vh; }
.knowledge { min-height: 110vh; }
.contact { min-height: 100vh; }

/* LAYOUT SIDE CORRIDORS (KEEP CENTER MODEL 100% CLEAR) */
.content {
    width: 100%;
    opacity: 0;
    transform: translateY(40px);
}

.left-content {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
    max-width: 480px;
}

.right-content {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    max-width: 480px;
}

/* SECTION TAGS */
.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    text-shadow: none;
}

/* TYPOGRAPHY */
h1, h2, h3 {
    font-family: var(--font-display);
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.25);
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1rem;
}

/* Headings and subheadings outside cards are SOLID BLACK */
.headline {
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 1.15rem;
    color: #000000;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #000000;
    filter: none;
    text-shadow: none;
}

.subtitle {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    text-shadow: none;
}

.supporting-line {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #000000;
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: none;
}

.section-headline {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    color: #000000;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #000000;
    filter: none;
    text-shadow: none;
}

.subcopy, .subheadline {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #000000;
    font-weight: 600;
    margin-bottom: 2rem;
    text-shadow: none;
}

/* TECH PILLS OUTSIDE CARDS */
.left-content .tech-pills {
    justify-content: flex-start;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 2.5rem;
}

.pill {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-dark);
    background: rgba(15, 23, 42, 0.07);
    border: 1px solid rgba(15, 23, 42, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.pill:hover {
    color: #ffffff;
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* SCROLL CUE */
.left-content .scroll-cue {
    align-items: flex-start;
}

.scroll-cue {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.scroll-cue:hover {
    opacity: 1;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-dark);
    text-transform: uppercase;
}

.scroll-arrow {
    font-size: 1.3rem;
    color: var(--accent-dark);
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* GLASS CARDS (DARK CONTRAST CARDS WITH WHITE TEXT) */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

/* Ensure text INSIDE glass-cards remains crisp white */
.glass-card h1,
.glass-card h2,
.glass-card h3,
.pillar-card h3,
.exp-header h3,
.project-title,
.contact-heading,
.author-name {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    filter: none !important;
    text-shadow: none !important;
}

.glass-card p,
.pillar-card p,
.exp-body,
.project-desc,
.knowledge-quote {
    color: #cbd5e1 !important;
    text-shadow: none !important;
}

/* PHILOSOPHY & EXPERIENCE STACKS */
.philosophy-stack, .experience-stack, .projects-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pillar-card {
    text-align: left;
}

.card-icon {
    font-size: 1.7rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.pillar-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

.pillar-card p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* EXPERIENCE CARD */
.exp-card {
    text-align: right;
}

.right-content .exp-card {
    text-align: right;
}

.exp-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
    justify-content: flex-end;
}

.exp-num {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}

.exp-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.exp-body {
    font-size: 0.98rem;
    color: #cbd5e1;
    margin-bottom: 1.1rem;
    line-height: 1.6;
}

/* CARD TAGS */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.right-content .card-tags {
    justify-content: flex-end;
}

.left-content .card-tags {
    justify-content: flex-start;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    text-shadow: none;
}

/* PROJECT CARD */
.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-badge {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.65rem;
}

.project-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.project-footer {
    margin-top: auto;
    padding-top: 0.75rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.25s ease;
}

.project-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.project-link span {
    transition: transform 0.25s ease;
}

.project-link:hover span {
    transform: translate(4px, -4px);
}

/* KNOWLEDGE CARD */
.knowledge-card {
    position: relative;
    text-align: right;
    padding: 2.75rem 2rem;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.25);
    position: absolute;
    top: 0.75rem;
    right: 1.5rem;
}

.knowledge-quote {
    font-size: 1.15rem;
    line-height: 1.75;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.author-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffffff;
}

.author-title {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* CONTACT CARD */
.contact-card {
    max-width: 480px;
    margin: 0;
    padding: 2.75rem 2rem;
}

.contact-status-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.contact-heading {
    font-size: 1.65rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.75rem;
}

/* BUTTONS / CTA */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.98rem;
}

.cta.primary {
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.4);
}

.cta.primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.5);
}

.cta.secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #0f172a;
    box-shadow: none;
}

.cta.secondary:hover {
    background: #f8fafc;
    border-color: #0f172a;
    transform: translateY(-2px);
}

/* SOCIAL LINKS */
.left-content .social-links {
    justify-content: flex-start;
}

.social-links {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn:hover {
    color: #0f172a;
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-3px);
}

.left-content .micro-copy {
    text-align: left;
}

.micro-copy {
    font-size: 0.9rem;
    color: #cbd5e1;
    max-width: 480px;
    margin: 0;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 900px) {
    .navbar {
        padding: 0.85rem 1.25rem;
    }

    .nav-container {
        gap: 0.5rem;
    }

    .nav-links {
        display: none;
    }

    .brand-name {
        font-size: 1rem;
    }

    .nav-status {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
    }

    .nav-cta {
        padding: 0.35rem 0.85rem;
        font-size: 0.8rem;
    }
    
    .section {
        min-height: 100vh !important;
        padding: 5rem 1.25rem 3rem 1.25rem;
    }

    .hero .content {
        margin-top: 2vh;
    }

    .left-content, .right-content {
        max-width: 100%;
        text-align: left;
        margin: 0 auto;
        padding: 1.25rem;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 20px;
        border: 1px solid rgba(15, 23, 42, 0.15);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .headline {
        font-size: clamp(2.2rem, 7.5vw, 3.2rem);
        line-height: 1.1;
        margin-bottom: 0.85rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .supporting-line {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }

    .section-headline {
        font-size: clamp(1.75rem, 6vw, 2.3rem);
        margin-bottom: 1rem;
    }

    .subcopy, .subheadline {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }

    .exp-header, .card-tags, .author-info {
        justify-content: flex-start;
    }

    .right-content .exp-card, .right-content .knowledge-card {
        text-align: left;
    }

    .glass-card {
        padding: 1.35rem 1.1rem;
        border-radius: 16px;
    }

    .contact-card {
        max-width: 100%;
        padding: 1.5rem 1.1rem;
    }
}

@media (max-width: 480px) {
    .nav-brand .brand-name {
        display: none;
    }

    .nav-status .status-text {
        display: none;
    }

    .nav-status {
        padding: 0.35rem 0.5rem;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 0.35rem 0.9rem;
    }

    .headline {
        font-size: 2rem;
    }

    .tech-pills {
        gap: 0.4rem;
        margin-bottom: 1.5rem;
    }

    .pill {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cta {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.92rem;
    }

    .social-links {
        flex-direction: column;
        gap: 0.6rem;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }

    .glass-card {
        padding: 1.2rem 0.95rem;
    }

    .pillar-card h3, .exp-header h3, .project-title, .contact-heading {
        font-size: 1.15rem;
    }

    .pillar-card p, .exp-body, .project-desc, .knowledge-quote {
        font-size: 0.9rem;
    }
}