*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

:root {
    /* Warm Organic Human Canvas (Dark Mode Default) */
    --bg-page: #141312;          /* Warm off-black / dark charcoal paper */
    --bg-surface: #1C1A18;       /* Solid matte dark paper surface */
    --bg-surface-raised: #25221F;/* Raised tactile card surface */
    --bg-surface-hover: #2E2A26;

    /* Warm, Human Natural Accent Palette */
    --accent-amber: #DF9C3D;      /* Warm glowing amber / candlelight */
    --accent-amber-hover: #E9AF57;
    --accent-orange: #D96B43;     /* Muted sunset terracotta */
    --accent-sage: #7E9F85;       /* Soft organic sage green */
    --accent-sage-dim: rgba(126, 159, 133, 0.15);
    --accent-gold: #D49D42;       /* Refined warm gold / brass */
    --accent-gold-hover: #E2AD56;

    /* Backwards compatibility: re-map neon teal to warm natural amber/terracotta */
    --accent-teal: #DF9C3D;
    --accent-teal-dim: rgba(223, 156, 61, 0.14);

    /* Typography & Ink Colors */
    --text-primary: #F5EFEB;     /* Warm cream / natural book linen */
    --text-secondary: #D4CBC2;   /* Soft oat / light parchment */
    --text-muted: #9E948A;       /* Warm stone gray */
    --text-on-gold: #1A1816;

    /* Subtle Physical 1px Borders (No Glassmorphic Blurs) */
    --border-hairline: rgba(245, 239, 235, 0.08);
    --border-subtle: rgba(245, 239, 235, 0.12);
    --card-inner-border: inset 0 0 0 1px rgba(255, 245, 238, 0.05);

    /* Soft Natural Room Lighting Shadows (Diffused, Multi-layer) */
    --shadow-ambient: 0 2px 6px rgba(0, 0, 0, 0.22);
    --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.24), 0 12px 28px rgba(0, 0, 0, 0.20);
    --shadow-raised: 0 6px 20px rgba(0, 0, 0, 0.28), 0 20px 42px rgba(0, 0, 0, 0.24);
    --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.32), 0 24px 50px rgba(0, 0, 0, 0.26);

    /* Human Editorial & Warm Heading Typography */
    --font-heading: 'Playfair Display', 'Merriweather', Georgia, serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--bg-page);
    background-image:
        radial-gradient(ellipse 900px 520px at 50% -120px, rgba(223, 156, 61, 0.07), transparent 70%),
        radial-gradient(ellipse 850px 480px at 85% 35%, rgba(217, 107, 67, 0.045), transparent 70%),
        radial-gradient(ellipse 750px 450px at 15% 70%, rgba(126, 159, 133, 0.04), transparent 70%),
        radial-gradient(ellipse 800px 450px at 50% 100%, rgba(212, 157, 66, 0.04), transparent 70%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    padding-top: 90px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Real Paper / Material Noise Grain Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.038;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperGrain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperGrain)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    mix-blend-mode: overlay;
}

body.light-mode::before {
    opacity: 0.024;
    mix-blend-mode: multiply;
}

.navbar {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: -moz-fit-content;
    width: fit-content;
    max-width: calc(100% - 32px);
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid transparent;
    border-radius: 100px;
    box-shadow: none;
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}

.navbar.scrolled {
    background: rgba(22, 20, 18, 0.92);
    border-color: rgba(245, 239, 235, 0.09);
    border-top-color: rgba(245, 239, 235, 0.16);
    box-shadow:
        0 14px 34px -10px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-container {
    padding: 6px 10px 6px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    user-select: none;
    flex-shrink: 0;
}

.nav-brand:hover {
    opacity: 0.9;
    filter: brightness(1.1);
}

.brand-logo-img {
    height: 42px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.brand-logo-dark {
    display: block;
}

.brand-logo-light {
    display: none;
}

body.light-mode .brand-logo-dark {
    display: none;
}

body.light-mode .brand-logo-light {
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

.nav-links-wrapper {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}

.mobile-nav-footer {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    flex-shrink: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 100px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.18);
}

.navbar .btn-secondary {
    height: 38px;
    padding: 0 18px;
    border-radius: 100px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(79, 179, 169, 0.15) 0%, rgba(79, 179, 169, 0.04) 100%);
    color: #6ee7b7;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 179, 169, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.navbar .btn-secondary:hover {
    background: linear-gradient(135deg, rgba(79, 179, 169, 0.3) 0%, rgba(79, 179, 169, 0.1) 100%);
    border-color: rgba(79, 179, 169, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 179, 169, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* Theme Toggle inside nav-actions */
.theme-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--accent-teal);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.theme-toggle:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(79, 179, 169, 0.35);
    border-color: rgba(79, 179, 169, 0.5);
    color: #ffffff;
}

/* Warm, Human Editorial Heading Typography (Playfair Display / Merriweather) */
h1,
h2,
.changing-greet {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 16px 0;
    letter-spacing: -0.015em;
}

h1 {
    font-size: 46px;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--text-primary) 35%, var(--accent-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 30px;
    letter-spacing: -0.018em;
    color: var(--text-primary);
}

h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 21px;
    margin: 8px 0;
    letter-spacing: -0.012em;
}

strong {
    font-weight: 600;
    color: var(--accent-amber);
}

.eyebrow {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-orange);
    display: inline-block;
    min-height: 18px;
}

p {
    font-size: 15px;
    max-width: 600px;
    margin-bottom: 20px;
}

.text-muted {
    color: var(--text-muted);
    font-size: 14px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 28px 72px 28px;
    width: 100%;
    flex: 1 0 auto;
    box-sizing: border-box;
}

.page-section {
    padding-top: 118px;
    scroll-margin-top: 88px;
}

#home.page-section {
    padding-top: 0;
    scroll-margin-top: 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Solid, Matte-Finish Tactile Cards with Subtle 1px Inner Physical Border */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    box-shadow:
        var(--card-inner-border),
        var(--shadow-soft);
    border-radius: 22px 18px 24px 20px; /* Subtle organic corner radius */
    padding: 28px 26px 26px 28px;       /* Subtle asymmetric padding */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Dynamic Ray/Beam removed */
.card::before {
    display: none;
}

/* Glass reflection highlight removed for clean physical matte finish */
.card::after {
    display: none;
}

.card:hover,
.pillar-card:hover,
.contact-form-card:hover,
.resume-section-card:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 245, 238, 0.08),
        var(--shadow-hover);
    border-color: rgba(223, 156, 61, 0.32);
    border-top-color: rgba(223, 156, 61, 0.42);
}

.card:hover::before {
    opacity: 1;
}

.intro-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 34px 34px 38px; /* Organic asymmetric padding */
    border-radius: 24px 20px 26px 22px; /* Organic border-radius */
    position: relative;
}

.physics-card {
    transform-style: preserve-3d;
    will-change: transform;
}

.physics-card:hover {
    border-color: rgba(223, 156, 61, 0.4);
}

/* Hero Status Badge - Natural Soft Sage */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(126, 159, 133, 0.14);
    border: 1px solid rgba(126, 159, 133, 0.32);
    color: #9EC4A4;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.3px;
    width: fit-content;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7E9F85;
    box-shadow: 0 0 6px rgba(126, 159, 133, 0.6);
    position: relative;
    display: inline-block;
}

.status-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid #10B981;
    animation: status-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes status-ping {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    80%,
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Hero Actions & Socials */
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.hero-actions .button-group {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: all 0.25s ease;
    text-decoration: none;
}

.hero-social-btn:hover {
    color: #FFFFFF;
    background: rgba(56, 189, 248, 0.2);
    border-color: #38BDF8;
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.3);
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.14), rgba(79, 179, 169, 0.08) 30%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 2;
}

.physics-card:hover .glow-effect {
    opacity: 1;
}

.changing-greet {
    font-size: 32px;
    margin-bottom: 8px;
    transition: opacity 0.5s ease-in-out;
}

/* ==========================================================================
   DeveloperFolio Theme Additions: Animated Illustration & Emojis
   ========================================================================== */
.df-hero-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 14px;
    border-radius: 100px;
    width: fit-content;
    margin-bottom: 14px;
}

.df-hand-wave {
    display: inline-block;
    font-size: 16px;
    animation: wave-animation 2.2s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.df-badge-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #38BDF8;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.3px;
}

.df-inline-emoji {
    display: inline-block;
    animation: pulse-bounce 2s infinite ease-in-out;
}

@keyframes pulse-bounce {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.1);
    }
}

.btn-emoji {
    margin-left: 6px;
    font-size: 14px;
    display: inline-block;
    transition: transform 0.25s ease;
}

.btn-primary:hover .btn-emoji,
.btn-secondary-hero:hover .btn-emoji {
    transform: scale(1.25) rotate(10deg);
}

.human-avail-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 14px;
    width: fit-content;
    letter-spacing: 0.2px;
}

.hero-subtext {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-top: -8px;
    margin-bottom: 24px;
}

/* Animated Shimmer / Continuous Left-to-Right Warm Natural Flow for Name */
.grad-shimmer-text {
    background: linear-gradient(90deg,
            var(--text-primary) 0%,
            var(--accent-amber) 30%,
            var(--accent-orange) 60%,
            var(--accent-amber) 85%,
            var(--text-primary) 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer-flow 5s ease-in-out infinite;
    display: inline-block;
}

@keyframes text-shimmer-flow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 250% 50%;
    }
}

/* Option: Morphing Background Photo into Circular Avatar + Terminal on Hover */
.df-illustration-card {
    position: relative;
    padding: 20px 20px 24px 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 480px;
    height: 100%;
    box-sizing: border-box;
    background: radial-gradient(circle at 50% 30%, rgba(223, 156, 61, 0.08), transparent 70%), var(--bg-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--card-inner-border), var(--shadow-soft);
    border-radius: 24px 20px 26px 22px;
    overflow: hidden;
    cursor: pointer;
}

/* Morphing Photo Layer: Full rectangle cover by default, morphs into a floating circle on hover */
.df-card-photo-layer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
    height: 100%;
    z-index: 2;
    border-radius: 0px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1.35s cubic-bezier(0.25, 1, 0.35, 1);
}

.df-full-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    border-radius: inherit;
    border: 0px solid #38BDF8;
    box-shadow: none;
    transition: all 1.35s cubic-bezier(0.25, 1, 0.35, 1);
}

/* Atmospheric vignette overlay for full photo, fades away when morphed to round avatar */
.df-photo-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,
            rgba(11, 17, 32, 0) 0%,
            rgba(11, 17, 32, 0.12) 50%,
            rgba(11, 17, 32, 0.75) 100%);
    transition: opacity 1.1s ease;
    pointer-events: none;
}

/* Orbit Rings: Hidden in full photo state, smoothly scale and spin in around round avatar */
.df-orbit-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.6);
    transition: opacity 1.25s cubic-bezier(0.25, 1, 0.35, 1),
        transform 1.25s cubic-bezier(0.25, 1, 0.35, 1),
        visibility 1.25s cubic-bezier(0.25, 1, 0.35, 1);
}

.df-orbit-ring.ring-1 {
    width: 212px;
    height: 212px;
    border: 1.5px dashed rgba(223, 156, 61, 0.65);
    box-shadow: 0 0 16px rgba(223, 156, 61, 0.18);
    animation: rotate-orbit 26s linear infinite;
}

.df-orbit-ring.ring-2 {
    width: 232px;
    height: 232px;
    border: 1.5px dotted rgba(217, 107, 67, 0.55);
    box-shadow: 0 0 16px rgba(217, 107, 67, 0.14);
    animation: rotate-orbit-rev 34s linear infinite;
}

@keyframes rotate-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-orbit-rev {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* Tactile Solid Matte macOS Terminal Window with Physical Inner Border */
.df-screen-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-hairline);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-inner-border), var(--shadow-raised);
    z-index: 4;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(30px) scale(0.94);
    transition: opacity 1.25s cubic-bezier(0.25, 1, 0.35, 1),
        transform 1.25s cubic-bezier(0.25, 1, 0.35, 1),
        visibility 1.25s cubic-bezier(0.25, 1, 0.35, 1);
}

body.light-mode .df-screen-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(45, 35, 25, 0.1);
}

.df-screen-header {
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
}

body.light-mode .df-screen-header {
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mac-traffic-lights {
    display: flex;
    align-items: center;
    gap: 7px;
}

.df-screen-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.df-screen-header .dot.red {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.df-screen-header .dot.yellow {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.df-screen-header .dot.green {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.df-screen-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 6px;
    letter-spacing: 0.2px;
}

.df-screen-code {
    padding: 13px 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #E2E8F0;
}

body.light-mode .df-screen-code {
    color: #1E293B;
}

.code-kw {
    color: #f472b6;
    font-weight: 600;
}

.code-str {
    color: #38bdf8;
}

body.light-mode .code-str {
    color: #0284c7;
}

/* ----------------------------------------------------
   Hover interaction:
   - Full photo layer smoothly MORPHS from 100% card rectangle into a top-center round circular avatar
   - Perfectly balanced vertical spacing (top: 36px) & larger size (156px)
   - Orbit rings smoothly fade in and rotate around the newly formed round avatar
   - Terminal window smoothly glides up in the lower half of the card
   ---------------------------------------------------- */
@media (hover: hover) {
    .df-illustration-card:hover .df-card-photo-layer {
        top: 32px;
        left: 50%;
        transform: translateX(-50%);
        width: 184px;
        height: 184px;
        border-radius: 50%;
    }

    .df-illustration-card:hover .df-full-photo {
        border-radius: 50%;
        border: 3.5px solid #38BDF8;
        box-shadow: 0 0 35px rgba(56, 189, 248, 0.6), 0 10px 25px rgba(0, 0, 0, 0.5);
    }

    .df-illustration-card:hover .df-photo-overlay {
        opacity: 0;
    }

    .df-illustration-card:hover .df-orbit-ring {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .df-illustration-card:hover .df-screen-card {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
}

/* Explicit toggle class for touch/click interaction */
.df-illustration-card.is-active .df-card-photo-layer {
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 184px;
    height: 184px;
    border-radius: 50%;
}

.df-illustration-card.is-active .df-full-photo {
    border-radius: 50%;
    border: 3.5px solid #38BDF8;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.6), 0 10px 25px rgba(0, 0, 0, 0.5);
}

.df-illustration-card.is-active .df-photo-overlay {
    opacity: 0;
}

.df-illustration-card.is-active .df-orbit-ring {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.df-illustration-card.is-active .df-screen-card {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* DeveloperFolio "What I Do" Styles */
.section-lead-text {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-orange);
    margin-top: -12px;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* Big Software Skills Icons Wrap (DeveloperFolio Style) */
.df-tech-icons-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    justify-content: flex-start;
}

.df-tech-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.df-tech-badge:hover {
    transform: translateY(-6px) scale(1.05);
}

.df-tech-icon-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.df-tech-icon-circle svg {
    color: var(--accent-amber);
    transition: transform 0.3s ease;
}

.df-tech-badge:hover .df-tech-icon-circle {
    border-color: #38BDF8;
    box-shadow: 0 12px 26px rgba(56, 189, 248, 0.35);
}

.df-tech-badge:hover .df-tech-icon-circle svg {
    transform: scale(1.15);
}

/* Custom Brand Glows */
.n8n-bg svg {
    color: #ea580c;
}

.df-tech-badge:hover .n8n-bg {
    border-color: #ea580c;
    box-shadow: 0 12px 26px rgba(234, 88, 12, 0.35);
}

.python-bg svg {
    color: #3b82f6;
}

.df-tech-badge:hover .python-bg {
    border-color: #3b82f6;
    box-shadow: 0 12px 26px rgba(59, 130, 246, 0.35);
}

.java-bg svg {
    color: #f97316;
}

.df-tech-badge:hover .java-bg {
    border-color: #f97316;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.35);
}

.js-bg svg {
    color: #eab308;
}

.df-tech-badge:hover .js-bg {
    border-color: #eab308;
    box-shadow: 0 12px 26px rgba(234, 179, 8, 0.35);
}

.html-bg svg {
    color: #E34F26;
}

.df-tech-badge:hover .html-bg {
    border-color: #E34F26;
    box-shadow: 0 12px 26px rgba(227, 79, 38, 0.35);
}

.css-bg svg {
    color: #1572B6;
}

.df-tech-badge:hover .css-bg {
    border-color: #1572B6;
    box-shadow: 0 12px 26px rgba(21, 114, 182, 0.35);
}

.git-bg svg {
    color: #F05032;
}

.df-tech-badge:hover .git-bg {
    border-color: #F05032;
    box-shadow: 0 12px 26px rgba(240, 80, 50, 0.35);
}

.api-bg svg {
    color: #10b981;
}

.df-tech-badge:hover .api-bg {
    border-color: #10b981;
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.35);
}

.c-bg svg {
    color: #8b5cf6;
}

.df-tech-badge:hover .c-bg {
    border-color: #8b5cf6;
    box-shadow: 0 12px 26px rgba(139, 92, 246, 0.35);
}

.df-tech-badge span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.df-tech-badge:hover span {
    color: var(--text-primary);
}

/* DeveloperFolio Bullet Points */
.df-skills-bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px 24px;
}

.df-bullet-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.df-bullet-icon {
    font-size: 18px;
    line-height: 1.4;
    animation: flash-pulse 2s infinite alternate;
}

@keyframes flash-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px #38bdf8);
    }

    100% {
        transform: scale(1.25);
        filter: drop-shadow(0 0 8px #f59e0b);
    }
}

.df-bullet-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

.df-bullet-item p strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Light mode overrides for DeveloperFolio styles */
body.light-mode .df-hero-top-badge {
    background: #E0F2FE;
    border-color: #BAE6FD;
}

body.light-mode .df-badge-label {
    color: #0284C7;
}

body.light-mode .df-illustration-card {
    background: radial-gradient(circle at 50% 35%, rgba(2, 132, 199, 0.08), transparent 70%), #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.light-mode .df-orbit-ring.ring-1 {
    border-color: rgba(2, 132, 199, 0.35);
}

body.light-mode .df-status-pill {
    background: #FFFFFF;
    border-color: #CBD5E1;
    color: #0F172A;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

body.light-mode .df-screen-card {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.light-mode .df-screen-header {
    background: #F1F5F9;
    border-color: #E2E8F0;
}

body.light-mode .df-screen-code {
    color: #0F172A;
}

body.light-mode .code-kw {
    color: #db2777;
}

body.light-mode .code-str {
    color: #0284c7;
}

body.light-mode .section-lead-text {
    color: #0284C7;
}

body.light-mode .df-tech-icon-circle {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

body.light-mode .df-tech-badge span {
    color: #475569;
}

body.light-mode .df-tech-badge:hover span {
    color: #0F172A;
}

body.light-mode .df-skills-bullets {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

body.light-mode .df-bullet-item p {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
}

body.light-mode .df-bullet-item p strong {
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--text-on-gold);
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    height: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(212, 168, 87, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 87, 0.5);
}

.button-group {
    margin-top: 16px;
    position: relative;
    z-index: 10;
}

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

/* Categorized Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.skill-category-card {
    display: flex;
    flex-direction: column;
    padding: 26px 22px 22px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 20px 24px 18px 22px;
    box-shadow: var(--card-inner-border), var(--shadow-soft);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(223, 156, 61, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 245, 238, 0.08), var(--shadow-hover);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.skill-category-icon-wrapper {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.lang-icon-bg {
    background: rgba(56, 189, 248, 0.12);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.auto-icon-bg {
    background: rgba(249, 115, 22, 0.12);
    color: #FB923C;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.web-icon-bg {
    background: rgba(168, 85, 247, 0.12);
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.tool-icon-bg {
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.skill-category-header h3 {
    margin: 0;
    font-size: 17px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.25;
}

.skill-category-desc {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.25s ease;
    cursor: default;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.skill-pill span {
    color: #F8FAFC;
}

.skill-pill svg {
    color: #38BDF8;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.skill-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(56, 189, 248, 0.6);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.skill-pill:hover svg {
    transform: scale(1.15);
}

.skill-pill.highlight-pill {
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.45);
    color: #FFEDD5;
}

.skill-pill.highlight-pill span {
    color: #FFEDD5;
    font-weight: 600;
}

.skill-pill.highlight-pill svg {
    color: #FB923C;
}

.skill-pill.highlight-pill:hover {
    background: rgba(249, 115, 22, 0.24);
    border-color: #FB923C;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

/* Streamlined 3 Pillars for 'What I Do' */
.what-i-do-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
}

.pillar-card {
    padding: 30px 24px 26px 26px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 22px 18px 24px 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.35s ease;
    box-shadow: var(--card-inner-border), var(--shadow-soft);
}

.pillar-card:nth-child(even) {
    border-radius: 19px 24px 20px 23px;
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(223, 156, 61, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255, 245, 238, 0.08), var(--shadow-hover);
}

.pillar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.pillar-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-svg-icon {
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pillar-card:hover .pillar-svg-icon {
    transform: scale(1.12);
}

.auto-pill-bg {
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.32);
    color: #FB923C;
}

.pillar-card:hover .auto-pill-bg {
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.35);
}

.se-pill-bg {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #38BDF8;
}

.pillar-card:hover .se-pill-bg {
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

.web-pill-bg {
    background: rgba(168, 85, 247, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.32);
    color: #C084FC;
}

.pillar-card:hover .web-pill-bg {
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

.pillar-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-teal);
}

.pillar-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.pillar-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.pillar-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.pill-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.pillar-card:hover .pill-chip {
    border-color: rgba(56, 189, 248, 0.3);
    color: #38bdf8;
}

@media (max-width: 992px) {
    .what-i-do-pillars {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* Light mode for pillars */
body.light-mode .pillar-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

body.light-mode .pillar-card:hover {
    border-color: #0284C7;
    box-shadow: 0 16px 32px rgba(2, 132, 199, 0.12);
}

body.light-mode .pillar-card h3 {
    color: #0F172A;
}

body.light-mode .pillar-card p {
    color: #475569;
}

body.light-mode .pill-chip {
    background: #F1F5F9;
    border-color: #E2E8F0;
    color: #334155;
}

body.light-mode .pillar-tag {
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: #0284C7;
}

/* ========================================================
   ABOUT ME SECTION - HUMANIZED NARRATIVE & CURRENT FOCUS
   ======================================================== */
/* ========================================================
   ABOUT ME SECTION - STICKY PHOTO & INDEPENDENT RIGHT SCROLL
   ======================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: flex-start;
    position: relative;
}

/* Left Column: Sticky photo & profile card with Section Title */
.about-photo-col {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 10;
}

.about-section-title-wrap {
    margin-bottom: 0;
    margin-top: 2px;
}

.about-photo-card {
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 24px 20px 22px 26px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--card-inner-border), var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.about-photo-wrap {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: var(--bg-surface-raised);
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-photo-card:hover .about-profile-img {
    transform: scale(1.03);
}

.about-photo-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(20, 19, 18, 0) 40%,
            rgba(20, 19, 18, 0.5) 75%,
            rgba(20, 19, 18, 0.95) 100%);
    pointer-events: none;
}

.about-photo-meta {
    padding: 22px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-hairline);
    position: relative;
}

.about-photo-meta h3 {
    margin: 0;
    font-size: 22px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.25;
}

.about-photo-meta .about-photo-sub {
    font-size: 13.5px;
    color: var(--accent-amber);
    font-weight: 500;
    letter-spacing: 0.15px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.about-photo-meta .about-photo-sub::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-amber);
    box-shadow: 0 0 8px rgba(223, 156, 61, 0.6);
    flex-shrink: 0;
}

.about-photo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border-hairline);
}

.about-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(255, 245, 238, 0.035);
    border: 1px solid var(--border-hairline);
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.about-tag-pill svg {
    color: var(--accent-orange);
    opacity: 0.9;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.about-tag-pill:hover {
    background: rgba(223, 156, 61, 0.08);
    border-color: rgba(223, 156, 61, 0.35);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.about-tag-pill:hover svg {
    color: var(--accent-amber);
    transform: scale(1.1);
    opacity: 1;
}

/* Right Column: High-End Interactive Panel */
.about-right-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    padding-top: 54px;
    /* Perfectly aligns tabs with top of profile card next to About Me heading */
}

/* Interactive Navigation Tabs (Sticky at top of content stream) */
.about-nav-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-hairline);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
    position: sticky;
    top: 110px;
    z-index: 15;
    box-shadow: var(--card-inner-border), var(--shadow-ambient);
    margin-bottom: 8px;
}

.about-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-tab-btn svg {
    transition: transform 0.25s ease, color 0.25s ease;
}

.about-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.about-tab-btn.active {
    background: rgba(223, 156, 61, 0.14);
    border-color: rgba(223, 156, 61, 0.35);
    color: var(--accent-amber);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.about-tab-btn.active svg {
    transform: scale(1.1);
    color: var(--accent-amber);
}

/* Continuous Content Stream (Natural page scroll matching mofizur.com) */
.about-content-stream {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
}

.about-content-block {
    scroll-margin-top: 175px;
    /* Offset for sticky header + sticky tabs */
    display: flex;
    flex-direction: column;
    padding-top: 4px;
    /* Generous headroom so hover translateY(-6px) never clips */
}

/* Aesthetic Cards in Right Panel */
.about-aesthetic-card {
    padding: 32px 28px 28px 30px;
    border-radius: 22px 18px 24px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--card-inner-border), var(--shadow-soft);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.about-card-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.title-meta-box {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.about-card-section-title h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.title-meta-box .sub-label {
    font-size: 12.5px;
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
}

.about-intro-lead {
    font-size: 15.5px;
    line-height: 1.75;
    color: #F8FAFC;
    margin-bottom: 16px;
}

.about-text {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-text strong {
    color: #38BDF8;
}

/* Quick Facts Matrix */
.about-quick-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fact-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.fact-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.fact-val {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

/* Vertical Timeline for Education */
.about-edu-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 6px;
}

.edu-timeline-item {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 16px;
    position: relative;
}

.timeline-marker-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 2px solid var(--accent-amber);
    margin-top: 6px;
    flex-shrink: 0;
}

.timeline-dot.current {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(217, 107, 67, 0.2);
}

.timeline-line {
    width: 1.5px;
    flex: 1;
    background: linear-gradient(180deg, rgba(223, 156, 61, 0.3) 0%, rgba(245, 239, 235, 0.05) 100%);
    margin: 4px 0;
    min-height: 48px;
}

.timeline-content-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-hairline);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.timeline-content-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(223, 156, 61, 0.3);
    transform: translateX(3px);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.timeline-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-badge.live {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
    color: #38BDF8;
}

.timeline-deg {
    font-size: 13.5px;
    font-weight: 600;
    color: #38BDF8;
    margin: 0 0 6px 0;
}

.timeline-details {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
}

.timeline-details strong {
    color: var(--text-primary);
}

/* Dual Focus & Goals Container */
.about-dual-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.focus-items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.focus-items-list li {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.focus-items-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    top: 0;
    color: #38BDF8;
    font-weight: 700;
}

.focus-items-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Collapse */
@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-photo-col {
        position: relative;
        top: 0;
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }

    .about-right-panel {
        padding-top: 0;
    }

    .about-nav-tabs {
        top: 76px;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
    }

    .about-content-block {
        scroll-margin-top: 135px;
    }
}

/* Light Mode Overrides */
body.light-mode .about-nav-tabs {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

body.light-mode .about-tab-btn.active {
    background: #E0F2FE;
    border-color: #7DD3FC;
    color: #0284C7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

body.light-mode .about-aesthetic-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 14px 30px -8px rgba(15, 23, 42, 0.08);
}

body.light-mode .about-photo-meta {
    background: #FFFFFF;
    border-top-color: var(--border-hairline);
}

body.light-mode .about-photo-meta h3 {
    color: #24201E;
}

body.light-mode .about-photo-meta .about-photo-sub {
    color: #C65B34;
}

body.light-mode .about-photo-meta .about-photo-sub::before {
    background: #C65B34;
    box-shadow: 0 0 6px rgba(198, 91, 52, 0.4);
}

body.light-mode .about-photo-tags {
    border-top-color: rgba(36, 32, 30, 0.08);
}

body.light-mode .about-tag-pill {
    background: #F8F5F0;
    border-color: rgba(36, 32, 30, 0.08);
    color: #574F49;
    box-shadow: 0 1px 2px rgba(36, 32, 30, 0.04);
}

body.light-mode .about-tag-pill svg {
    color: #C65B34;
}

body.light-mode .about-tag-pill:hover {
    background: #F3ECE1;
    border-color: #C65B34;
    color: #24201E;
    box-shadow: 0 4px 10px rgba(198, 91, 52, 0.12);
}

body.light-mode .about-intro-lead {
    color: #0F172A;
}

body.light-mode .about-card-section-title {
    border-bottom-color: #E2E8F0;
}

body.light-mode .about-quick-facts {
    border-top-color: #E2E8F0;
}

body.light-mode .fact-item {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.light-mode .timeline-content-card {
    background: #F8FAFC;
    border-color: #E2E8F0;
}

body.light-mode .timeline-content-card:hover {
    background: #FFFFFF;
    border-color: #0284C7;
}

body.light-mode .timeline-badge.live {
    background: #E0F2FE;
    border-color: #BAE6FD;
    color: #0284C7;
}

body.light-mode .timeline-deg {
    color: #0284C7;
}

body.light-mode .timeline-dot {
    background: #FFFFFF;
    border-color: #0284C7;
}

body.light-mode .timeline-dot.current {
    background: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

body.light-mode .about-scroll-col {
    scrollbar-color: rgba(2, 132, 199, 0.4) #F1F5F9;
}

body.light-mode .about-scroll-col::-webkit-scrollbar-track {
    background: #F1F5F9;
}

body.light-mode .about-scroll-col::-webkit-scrollbar-thumb {
    background: rgba(2, 132, 199, 0.4);
}

/* Highly Realistic, Smooth Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(8px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.blue-line {
    width: 4px;
    height: 38px;
    background: linear-gradient(180deg, var(--accent-orange), var(--accent-amber));
    border-radius: 4px;
}

.section-header h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 34px;
    letter-spacing: -0.02em;
}



/* ========================================================
   PROJECTS SHOWCASE SECTION - REDESIGNED STUDIO AESTHETIC
   ======================================================== */

.section-subtitle {
    margin: 6px 0 0 0;
    font-size: 14.5px;
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Category Filter Pills */
.projects-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.project-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}

.project-filter-btn:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}

.project-filter-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(129, 140, 248, 0.2) 100%);
    border-color: rgba(56, 189, 248, 0.6);
    color: #38BDF8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.2);
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    color: #38BDF8;
    font-size: 11px;
    font-weight: 700;
}

.project-filter-btn.active .filter-count-badge {
    background: #38BDF8;
    color: #0F172A;
}

.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px currentColor;
}

/* Projects Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Project Card Container - Solid Matte Tactile Finish */
.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 20px 17px 22px 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--card-inner-border), var(--shadow-soft);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.project-card:hover {
    border-color: rgba(217, 107, 67, 0.35);
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px rgba(255, 245, 238, 0.08), var(--shadow-hover);
}

/* Redesigned Project Card Header Bar */
.project-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 22px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-hairline);
}

.project-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--accent-teal);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.project-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot-color, #38BDF8);
    box-shadow: 0 0 10px var(--dot-color, #38BDF8);
    display: inline-block;
}

.project-dot.live-pulse {
    animation: live-pulse-glow 2s infinite ease-in-out;
}

@keyframes live-pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 6px var(--dot-color, #38BDF8);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 14px var(--dot-color, #38BDF8), 0 0 20px var(--dot-color, #38BDF8);
        transform: scale(1.15);
    }
}

.project-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
}

.project-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 9px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Project Card Image Preview with Hover Explore Pill */
.project-card-image-wrap {
    position: relative;
    width: 100%;
    height: 215px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #111a2e 0%, #070c16 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.project-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px 14px;
    display: block;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.project-card:hover .project-card-img {
    transform: scale(1.06);
}

.project-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 21, 37, 0) 50%, rgba(13, 21, 37, 0.6) 100%);
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.project-hover-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #F8FAFC;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    z-index: 2;
    pointer-events: none;
}

.project-card:hover .project-hover-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Card Content Area */
.project-content {
    padding: 24px 24px 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-headline {
    margin-bottom: 10px;
}

.project-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.project-title-link {
    color: #F8FAFC;
    text-decoration: none;
    transition: color 0.25s ease;
}

.project-title-link:hover {
    color: var(--accent-teal);
}

.project-content p {
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 20px 0;
    flex-grow: 1;
    color: var(--text-muted);
}

/* Rich Technology Tags with Color Accent Dots */
.tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    margin-bottom: 20px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.04);
    color: #CBD5E1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px 11px;
    font-size: 11.5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.tag-tech-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.tag:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38BDF8;
    transform: translateY(-1px);
}

/* Action Button Row at Bottom */
.project-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
    margin-top: 2px;
}

.project-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.project-action-btn.primary-action {
    background: rgba(56, 189, 248, 0.08);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.22);
}

.project-action-btn.primary-action:hover {
    background: #0284C7;
    color: #FFFFFF;
    border-color: #0284C7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.project-action-btn.secondary-action {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-action-btn.secondary-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #F8FAFC;
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.project-action-btn .arrow-icon {
    transition: transform 0.2s ease;
}

.project-action-btn:hover .arrow-icon {
    transform: translateX(2px);
}

/* Light Mode Aesthetic Overrides */
body.light-mode .section-subtitle {
    color: #64748B;
}

body.light-mode .project-filter-btn {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light-mode .project-filter-btn:hover {
    background: #F8FAFC;
    color: #0284C7;
    border-color: #BAE6FD;
}

body.light-mode .project-filter-btn.active {
    background: #E0F2FE;
    border-color: #38BDF8;
    color: #0369A1;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

body.light-mode .project-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow:
        0 10px 25px -5px rgba(15, 23, 42, 0.06),
        0 2px 4px rgba(15, 23, 42, 0.02);
}

body.light-mode .project-card:hover {
    border-color: #38BDF8;
    box-shadow:
        0 22px 45px -10px rgba(15, 23, 42, 0.12),
        0 0 25px rgba(2, 132, 199, 0.12);
}

body.light-mode .project-header-bar {
    background: #F8FAFC;
    border-bottom: 1px solid #F1F5F9;
}

body.light-mode .project-type-badge {
    color: #0284C7;
}

body.light-mode .project-num {
    color: #94A3B8;
}

body.light-mode .project-date {
    color: #64748B;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
}

body.light-mode .project-card-image-wrap {
    background: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
}

body.light-mode .project-card-img-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.4) 100%);
}

body.light-mode .project-hover-badge {
    background: #FFFFFF;
    border: 1px solid #BAE6FD;
    color: #0284C7;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

body.light-mode .project-title-link {
    color: #0F172A;
}

body.light-mode .project-title-link:hover {
    color: #0284C7;
}

body.light-mode .project-content p {
    color: #64748B;
}

body.light-mode .tag {
    background-color: #F8FAFC;
    color: #334155;
    border: 1px solid #E2E8F0;
}

body.light-mode .tag:hover {
    background-color: #E0F2FE;
    border-color: #BAE6FD;
    color: #0284C7;
}

body.light-mode .project-footer-actions {
    border-top: 1px solid #F1F5F9;
}

body.light-mode .project-action-btn.primary-action {
    background: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}

body.light-mode .project-action-btn.primary-action:hover {
    background: #0284C7;
    color: #FFFFFF;
    border-color: #0284C7;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}

body.light-mode .project-action-btn.secondary-action {
    background: #F8FAFC;
    color: #475569;
    border: 1px solid #E2E8F0;
}

body.light-mode .project-action-btn.secondary-action:hover {
    background: #F1F5F9;
    color: #0F172A;
    border-color: #CBD5E1;
}

/* Legacy/Fallback N8N Visual Badges */
.project-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-badge.n8n-badge {
    background: rgba(234, 88, 12, 0.2);
    color: #FB923C;
    border: 1px solid rgba(251, 146, 60, 0.4);
}

.project-card-visual {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #0D1628;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.project-card-visual svg {
    position: relative;
    z-index: 1;
    color: #38BDF8;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-visual svg {
    transform: scale(1.05);
}

.project-visual-tag {
    position: relative;
    z-index: 1;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: #94A3B8;
    background: rgba(15, 23, 42, 0.6);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-mode .project-card-visual {
    background: #F1F5F9;
    border-bottom: 1px solid #E2E8F0;
}

body.light-mode .project-card-visual .project-visual-tag {
    background: #FFFFFF;
    color: #475569;
    border: 1px solid #CBD5E1;
}

body.light-mode .project-card[data-category="automation"] .project-headline h3 {
    color: #0F172A !important;
}

body.light-mode .project-badge.n8n-badge {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 700px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 20px 24px 18px 22px;
    text-decoration: none;
    box-shadow: var(--card-inner-border), var(--shadow-soft);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
                border-color 0.3s ease,
                box-shadow 0.35s ease,
                background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(223, 156, 61, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: scaleX(0.5);
    pointer-events: none;
}

.contact-method-card:hover:not(.non-clickable) {
    border-color: rgba(223, 156, 61, 0.4);
    transform: translateY(-4px) scale(1.01);
    box-shadow: inset 0 0 0 1px rgba(255, 245, 238, 0.08), var(--shadow-hover);
    background: var(--bg-surface-hover);
}

.contact-method-card:hover:not(.non-clickable)::before {
    opacity: 1;
    transform: scaleX(1);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                background-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.contact-method-card:hover:not(.non-clickable) .contact-icon {
    background-color: var(--accent-teal);
    color: white;
    border-color: transparent;
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h4 {
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.contact-info span {
    color: var(--text-muted);
    font-size: 14px;
}

.non-clickable {
    cursor: default;
}

/* Copy Email to Clipboard Card */
.copy-email-card {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.copy-email-card:active {
    transform: scale(0.98);
}

.contact-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.contact-info span.copy-badge,
.copy-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5px !important;
    font-weight: 500;
    color: var(--accent-teal) !important;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 1px 6px !important;
    border-radius: 100px;
    letter-spacing: 0.2px;
    line-height: 1.3;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
}

.copy-email-card:hover .copy-badge {
    background: rgba(56, 189, 248, 0.25);
    border-color: rgba(56, 189, 248, 0.6);
    color: #FFFFFF !important;
}

/* Contact Form Card - Solid Matte Finish with Organic Shape */
.contact-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 26px 22px 24px 26px;
    padding: 36px 32px 34px 34px;
    box-shadow: var(--card-inner-border), var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.form-header h3 {
    font-size: 24px;
    margin: 0 0 8px 0;
    font-family: var(--font-heading);
    font-weight: 700;
}

.form-header p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #CBD5E1;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #38BDF8;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748B;
    font-size: 13px;
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
    margin-top: 4px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.5);
    background: linear-gradient(135deg, #7DD3FC 0%, #0284C7 100%);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.form-status.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34D399;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #F87171;
}

/* Toast Notification - Tactile Warm Pill */
.toast-notification {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--card-inner-border), var(--shadow-raised);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-notification svg {
    color: #38BDF8;
    flex-shrink: 0;
}

/* Light Mode Overrides for Skills & Contact */
body.light-mode .skill-category-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.06);
}

body.light-mode .skill-category-card:hover {
    border-color: #0284C7;
    box-shadow: 0 14px 30px -6px rgba(2, 132, 199, 0.15);
}

body.light-mode .skill-category-header {
    border-bottom: 1px solid #F1F5F9;
}

body.light-mode .skill-category-header h3 {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 17.5px;
    letter-spacing: -0.01em;
}

body.light-mode .skill-category-desc {
    color: #1E293B !important;
    font-weight: 600 !important;
    font-size: 12.5px;
    opacity: 0.95;
}

body.light-mode .skill-pill {
    background: #F8FAFC;
    border: 1.5px solid #CBD5E1;
    color: #000000 !important;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}

body.light-mode .skill-pill span {
    color: #000000 !important;
    font-weight: 700 !important;
}

body.light-mode .skill-pill svg {
    color: #0284C7 !important;
}

body.light-mode .skill-pill:hover {
    background: #FFFFFF;
    border-color: #0284C7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

body.light-mode .skill-pill.highlight-pill {
    background: #FFF7ED;
    border-color: #FDBA74;
    color: #9A3412 !important;
}

body.light-mode .skill-pill.highlight-pill span {
    color: #9A3412 !important;
}

body.light-mode .skill-pill.highlight-pill svg {
    color: #EA580C !important;
}

body.light-mode .contact-form-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.06);
}

body.light-mode .form-group label {
    color: #334155;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: #0F172A;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    background: #FFFFFF;
    border-color: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

body.light-mode .toast-notification {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: #0F172A;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.15), 0 0 20px rgba(2, 132, 199, 0.1);
}

body.light-mode .copy-badge {
    background: rgba(2, 132, 199, 0.08);
    border-color: rgba(2, 132, 199, 0.2);
    color: #0284C7;
}

body.light-mode .copy-email-card:hover .copy-badge {
    background: #0284C7;
    color: #FFFFFF;
}

body.light-mode .status-badge {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

body.light-mode .btn-secondary-hero {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #0F172A;
}

body.light-mode .btn-secondary-hero:hover {
    background: #E2E8F0;
    border-color: #94A3B8;
}

body.light-mode .hero-social-btn {
    background: #F1F5F9;
    border-color: #E2E8F0;
    color: #475569;
}

body.light-mode .hero-social-btn:hover {
    background: #0284C7;
    color: #FFFFFF;
    border-color: #0284C7;
}

.site-footer {
    text-align: center;
    padding: 28px 24px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.6) 0%, rgba(11, 18, 32, 0.9) 100%);
    color: var(--text-muted);
    font-size: 14px;
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    justify-content: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 600px;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94A3B8;
    fill: currentColor;
    stroke: currentColor;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-social-btn svg {
    display: block;
    transition: transform 0.25s ease;
}

.footer-social-btn:hover {
    color: #FFFFFF;
    background: rgba(56, 189, 248, 0.18);
    border-color: #38BDF8;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}

.footer-social-btn:hover svg {
    transform: scale(1.1);
}

.footer-author {
    color: #FFFFFF;
    font-weight: 500;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 0;
}

.footer-dots {
    display: flex;
    gap: 6px;
}

.footer-dots span {
    width: 4px;
    height: 4px;
    background-color: var(--accent-teal);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-teal);
}



/* Floating Scroll to Top Button (Bottom-Right) */
.scroll-to-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(11, 18, 32, 0.65);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.06);
    background: var(--accent-teal);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(2, 132, 199, 0.4);
}

body.light-mode .scroll-to-top {
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

body.light-mode .scroll-to-top:hover {
    background: #0284C7;
    color: #FFFFFF;
}

/* Resume Showcase Section (Before Contact) */
.resume-section-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-hairline);
    border-radius: 24px;
    padding: 44px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.resume-section-card::before {
    display: none;
}

.resume-section-content {
    max-width: 640px;
    margin: 0 auto;
}

.resume-section-card h3 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.resume-section-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.resume-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-view-resume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-view-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.45);
    filter: brightness(1.08);
    color: #FFFFFF;
}

.btn-download-resume-alt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 22px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-download-resume-alt:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.resume-last-updated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 18px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hairline);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 12.5px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.01em;
}

.resume-last-updated svg {
    color: var(--accent-teal);
    flex-shrink: 0;
}

.resume-last-updated strong {
    color: var(--text-primary);
    font-weight: 600;
}

body.light-mode .resume-section-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 14px 35px -10px rgba(15, 23, 42, 0.08);
}

body.light-mode .btn-download-resume-alt {
    background: #F1F5F9;
    border-color: #CBD5E1;
    color: #0F172A;
}

body.light-mode .btn-download-resume-alt:hover {
    background: #E2E8F0;
    color: #0284C7;
}

/* Warm Editorial Light Mode (Natural Alabaster Paper & Warm Ink) */
body.light-mode {
    --bg-page: #FBF8F3;          /* Warm alabaster / handmade paper */
    --bg-surface: #FFFFFF;
    --bg-surface-raised: #F4EFE8;
    --bg-surface-hover: #ECE6DE;
    --text-primary: #24201E;     /* Dark warm book ink */
    --text-secondary: #574F49;
    --text-muted: #786E66;
    --border-hairline: rgba(36, 32, 30, 0.08);
    --border-subtle: rgba(36, 32, 30, 0.12);
    --card-inner-border: inset 0 0 0 1px rgba(36, 32, 30, 0.04);
    --accent-teal: #C65B34;      /* Earthy terracotta */
    --accent-teal-dim: #F9EBE5;
    --accent-gold: #B87625;
    --accent-amber: #B87625;
    --accent-orange: #C65B34;
    --accent-sage: #4E735B;
    --shadow-ambient: 0 2px 6px rgba(45, 35, 25, 0.05);
    --shadow-soft: 0 4px 16px rgba(45, 35, 25, 0.06), 0 12px 24px rgba(45, 35, 25, 0.04);
    --shadow-raised: 0 8px 24px rgba(45, 35, 25, 0.08), 0 20px 40px rgba(45, 35, 25, 0.06);
    --shadow-hover: 0 12px 32px rgba(45, 35, 25, 0.1), 0 24px 48px rgba(45, 35, 25, 0.08);
    background-image:
        radial-gradient(ellipse 900px 500px at 50% -100px, rgba(198, 91, 52, 0.05), transparent 70%),
        radial-gradient(ellipse 700px 400px at 50% 100%, rgba(184, 118, 37, 0.04), transparent 70%);
}

/* This line forces the hardcoded white text in your HTML to change color in light mode */
body.light-mode .site-footer span.footer-author {
    color: #0F172A !important;
    font-weight: 700 !important;
}

body.light-mode .footer-social-btn {
    background: #FFFFFF;
    border-color: #E2E8F0;
    color: #475569;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

body.light-mode .footer-social-btn:hover {
    background: #0284C7;
    color: #FFFFFF;
    border-color: #0284C7;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

body.light-mode h1 {
    background: linear-gradient(135deg, #24201E 40%, #C65B34 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* HIGHLIGHT END */

body.light-mode .navbar {
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border: 1px solid transparent;
    box-shadow: none;
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 14px 30px -8px rgba(15, 23, 42, 0.10),
        inset 0 1px 1.5px #ffffff;
}

body.light-mode .nav-link {
    color: #475569;
}

body.light-mode .nav-link:hover {
    color: #0F172A;
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-link.active {
    color: #0F172A;
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body.light-mode .navbar .btn-secondary {
    background: #0284C7;
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

body.light-mode .navbar .btn-secondary:hover {
    background: #0369A1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

body.light-mode .card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 10px 25px -5px rgba(15, 23, 42, 0.05),
        0 1px 3px rgba(15, 23, 42, 0.03);
}

body.light-mode .card::before,
body.light-mode .card::after {
    display: none !important;
}

body.light-mode .card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 36px -10px rgba(15, 23, 42, 0.12),
        0 0 25px rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.35);
}

body.light-mode .image-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 14px 30px -10px rgba(15, 23, 42, 0.08);
}

body.light-mode .image-card::after {
    display: none;
}

body.light-mode .image-label {
    background: rgba(15, 23, 42, 0.85);
    color: #FFFFFF;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

body.light-mode .project-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

body.light-mode .project-card:hover {
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow:
        0 18px 36px -10px rgba(15, 23, 42, 0.10),
        0 0 20px rgba(2, 132, 199, 0.08);
}

body.light-mode .project-overlay {
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
}

body.light-mode .view-project-btn {
    background-color: #FFFFFF;
    color: #0F172A;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

body.light-mode .view-project-btn:hover {
    background-color: var(--accent-teal);
    color: #FFFFFF;
    transform: scale(1.02);
}

body.light-mode .tag {
    background-color: #F1F5F9;
    color: #0369A1;
    border: 1px solid #E2E8F0;
    font-weight: 500;
}

body.light-mode .tag:hover {
    background-color: #E0F2FE;
    color: #0284C7;
    border-color: #BAE6FD;
}

body.light-mode .contact-method-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 8px 20px -5px rgba(15, 23, 42, 0.04);
}

body.light-mode .contact-method-card:hover:not(.non-clickable) {
    background: #FFFFFF;
    border-color: #0284C7;
    border-top-color: #0284C7;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 32px -6px rgba(2, 132, 199, 0.16), 0 0 20px rgba(2, 132, 199, 0.08);
}

body.light-mode .contact-method-card::before {
    background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.8), transparent);
}

body.light-mode .contact-cta {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 14px 30px -10px rgba(15, 23, 42, 0.06);
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    color: #0F172A;
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.09);
    border-color: rgba(0, 0, 0, 0.14);
    color: #0284C7;
}

body.light-mode .contact-icon {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-mode .contact-method-card:hover:not(.non-clickable) .contact-icon {
    background-color: var(--accent-teal);
    color: white;
    border-color: transparent;
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 0 16px rgba(2, 132, 199, 0.4);
}

body.light-mode .cta-buttons a.btn-primary {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.9) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22) !important;
}

body.light-mode .cta-buttons a.btn-primary svg {
    stroke: #FFFFFF !important;
}

body.light-mode .cta-buttons a.btn-primary:hover {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
    color: #FFFFFF !important;
    border-color: #0284C7 !important;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.35) !important;
    transform: translateY(-2px);
}

body.light-mode .cta-buttons a.btn-outline {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #1E293B !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

body.light-mode .cta-buttons a.btn-outline:hover {
    border-color: #0284C7 !important;
    color: #0284C7 !important;
    background-color: #F0F9FF !important;
    transform: translateY(-2px);
}

body.light-mode .site-footer {
    background: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

/* Force crystal-clear high-contrast headings in light mode */
body.light-mode h2,
body.light-mode .section-header h2 {
    color: #0F172A !important;
    font-weight: 700 !important;
}

body.light-mode .skill-category-header h3,
body.light-mode .skill-category-card h3 {
    color: #020617 !important;
    -webkit-text-fill-color: #020617 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

body.light-mode .skill-category-desc {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

body.light-mode .card h3 {
    color: #0F172A !important;
    -webkit-text-fill-color: #0F172A !important;
}

body.light-mode .text-muted,
body.light-mode p.text-muted {
    color: #475569 !important;
}

/* Mobile Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: transform 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 0.25s ease, background 0.3s ease;
}

.menu-toggle span:nth-child(2) {
    width: 20px;
    margin: 0;
}

.menu-toggle.is-active {
    background: rgba(79, 179, 169, 0.16);
    border-color: rgba(79, 179, 169, 0.4);
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .container {
        max-width: 1000px;
        padding: 24px 24px 48px 24px;
    }

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

    .nav-container {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 86px;
    }

    body {
        padding-top: 86px;
    }

    .navbar {
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        left: 50%;
        transform: translateX(-50%);
        top: 14px;
        padding: 0;
        border-radius: 100px;
        background: transparent;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        border: 1px solid transparent;
        box-shadow: none;
        transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
    }

    .navbar.scrolled {
        background: rgba(11, 18, 32, 0.65);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        box-shadow:
            0 16px 40px -8px rgba(0, 0, 0, 0.8),
            inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
    }

    .nav-container {
        padding: 6px 8px 6px 14px;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        position: relative;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 0;
    }

    .navbar.scrolled .nav-container,
    .nav-container.scrolled {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    .brand-logo-img {
        height: 36px;
        max-width: 125px;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

    .nav-cv-desktop {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
    }

    /* Mobile Dropdown Menu */
    .nav-links-wrapper {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(11, 17, 32, 0.92);
        backdrop-filter: blur(28px) saturate(200%);
        -webkit-backdrop-filter: blur(28px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 20px;
        padding: 14px 12px;
        box-shadow:
            0 24px 50px -10px rgba(0, 0, 0, 0.8),
            inset 0 1.5px 2px rgba(255, 255, 255, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.97);
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
    }

    .nav-links-wrapper.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 4px;
        padding: 0;
        margin: 0;
    }

    .nav-link {
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        text-align: left;
        padding: 12px 16px;
        font-size: 15px;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        color: var(--text-muted);
        border-radius: 12px;
        background: transparent;
        transition: all 0.2s ease;
        border: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.12);
        color: #ffffff;
        font-weight: 600;
        padding-left: 20px;
        box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
    }

    .mobile-nav-footer {
        display: block;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .btn-cv-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 16px;
        height: 44px;
        border-radius: 100px;
        background: var(--accent-gold);
        color: var(--text-on-gold);
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        border: none;
        box-shadow: 0 4px 16px rgba(212, 168, 87, 0.35);
        transition: all 0.25s ease;
        white-space: nowrap;
    }

    .btn-cv-mobile svg {
        flex-shrink: 0;
    }

    .btn-cv-mobile:active {
        transform: scale(0.98);
        background: var(--accent-gold-hover);
    }

    /* Light Mode Mobile Nav */
    body.light-mode .navbar {
        background: transparent;
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        border: 1px solid transparent;
        box-shadow: none;
    }

    body.light-mode .navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(24px) saturate(200%);
        -webkit-backdrop-filter: blur(24px) saturate(200%);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(255, 255, 255, 0.95);
        box-shadow:
            0 14px 30px rgba(15, 23, 42, 0.10),
            inset 0 1px 1.5px #ffffff;
    }

    body.light-mode .nav-container {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    body.light-mode .nav-links-wrapper {
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
        backdrop-filter: blur(28px) saturate(200%);
        -webkit-backdrop-filter: blur(28px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.95);
        box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), inset 0 1px 1.5px #ffffff;
    }

    body.light-mode .nav-link {
        color: #52525b;
    }

    body.light-mode .nav-link:hover,
    body.light-mode .nav-link.active {
        background: rgba(0, 0, 0, 0.05);
        color: #18181b;
    }

    body.light-mode .theme-toggle,
    body.light-mode .menu-toggle {
        background: rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: none;
        color: #18181b;
    }

    body.light-mode .theme-toggle:hover,
    body.light-mode .menu-toggle:hover {
        background: rgba(0, 0, 0, 0.09);
        border-color: rgba(0, 0, 0, 0.14);
    }

    body.light-mode .menu-toggle span {
        background: #18181b;
    }

    body.light-mode .mobile-nav-footer {
        border-top-color: rgba(0, 0, 0, 0.06);
    }

    body.light-mode .btn-cv-mobile {
        background: #18181b;
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    }

    /* Disable desktop hover 3D tilt overhead on touch screens */
    .physics-card {
        transform: none !important;
    }

    .glow-effect {
        display: none;
    }

    /* Typography scaling */
    h1 {
        font-size: 32px;
        line-height: 1.25;
        word-break: break-word;
    }

    h2 {
        font-size: 24px;
    }

    .changing-greet {
        font-size: 26px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .blue-line {
        height: 32px;
    }

    /* Bento and Cards */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .intro-card {
        padding: 24px;
    }

    .df-illustration-card {
        min-height: 485px;
        height: auto;
        position: relative !important;
        padding: 24px 16px 20px 16px !important;
        justify-content: flex-end;
    }

    .df-illustration-card.is-active .df-card-photo-layer {
        top: 40px;
        left: 50%;
        transform: translate(-50%, 0);
        width: 204px;
        height: 204px;
    }

    .df-orbit-ring.ring-1 {
        width: 232px;
        height: 232px;
    }

    .df-orbit-ring.ring-2 {
        width: 252px;
        height: 252px;
    }

    .df-screen-card {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.15);
    }

    .df-screen-code {
        padding: 13px 16px;
        font-size: 11.5px;
        line-height: 1.5;
    }

    .df-tech-icons-wrap {
        justify-content: center;
        gap: 12px;
    }

    .df-tech-icon-circle {
        width: 52px;
        height: 52px;
    }

    .df-tech-icon-circle svg {
        width: 22px;
        height: 22px;
    }

    .image-card {
        min-height: 280px;
        max-height: 420px;
        aspect-ratio: 4 / 5;
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }

    .image-card img {
        object-position: center 16%;
    }

    /* Grid system */
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Project Cards Mobile UX: persistent/visible overlay action button on touch */
    .project-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(11, 18, 32, 0.85) 0%, transparent 60%);
        align-items: flex-end;
        padding-bottom: 16px;
    }

    body.light-mode .project-overlay {
        background: linear-gradient(to top, rgba(255, 255, 255, 0.88) 0%, transparent 60%);
    }

    .view-project-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    /* Contact Section */
    /* Contact Section & Form Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-form-card {
        padding: 24px 18px;
        border-radius: 20px;
    }

    .contact-method-card {
        padding: 16px 18px;
        gap: 14px;
    }

    .contact-info span {
        word-break: break-all;
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 16px;
    }

    .hero-actions .hero-socials,
    .hero-socials {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .hero-actions .button-group {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .hero-actions .button-group .btn-primary,
    .hero-actions .button-group .btn-secondary-hero {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Section vertical spacing on mobile */
    .page-section {
        padding-top: 78px;
        scroll-margin-top: 76px;
    }

    /* Theme Toggle inside mobile nav-actions */
    .theme-toggle {
        width: 38px;
        height: 38px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    /* Scroll To Top (Bottom Right on mobile) */
    .scroll-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-dots {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 14px;
    }

    .card {
        padding: 18px 16px;
        border-radius: 18px;
    }

    h1 {
        font-size: 27px;
    }

    .changing-greet {
        font-size: 22px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .blue-line {
        height: 26px;
        width: 3px;
    }

    .image-card {
        min-height: 260px;
        max-height: 380px;
        aspect-ratio: 4 / 5;
        max-width: 310px;
        margin: 0 auto;
        width: 100%;
    }

    .big-tags .tag {
        font-size: 12px;
        padding: 6px 11px;
    }

    .cta-buttons a.btn-full {
        height: 48px;
        font-size: 14px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .df-illustration-card {
        padding: 20px 14px !important;
    }
}

@media (max-width: 380px) {
    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .menu-toggle span {
        width: 18px;
    }

    .brand-logo-img {
        height: 36px;
        max-width: 120px;
    }

    h1 {
        font-size: 24px;
    }

    .contact-method-card {
        padding: 12px 14px;
        gap: 10px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

/* ========================================================
   EDUCATION, PILLARS (WHAT I DO), CERTIFICATIONS & RESUME: AESTHETIC SHADOW & HOVER ANIMATION
   ======================================================== */
.edu-item-card,
.cert-item-card,
.pillar-card,
.resume-section-card,
.about-narrative-card,
.focus-card,
.learning-card,
.about-scroll-card,
.about-aesthetic-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

/* Top accent warm sheen that illuminates on hover */
.edu-item-card::after,
.cert-item-card::after,
.pillar-card::after,
.resume-section-card::after,
.about-narrative-card::after,
.focus-card::after,
.learning-card::after,
.about-scroll-card::after,
.about-aesthetic-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(223, 156, 61, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: scaleX(0.7);
    pointer-events: none;
    z-index: 2;
}

/* Warm lift & natural room lighting shadow on hover */
.edu-item-card:hover,
.cert-item-card:hover,
.pillar-card:hover,
.resume-section-card:hover,
.about-narrative-card:hover,
.focus-card:hover,
.learning-card:hover,
.about-scroll-card:hover,
.about-aesthetic-card:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 245, 238, 0.08),
        var(--shadow-hover);
    border-color: rgba(223, 156, 61, 0.35);
    border-top-color: rgba(223, 156, 61, 0.45);
}

.edu-item-card:hover::after,
.cert-item-card:hover::after,
.pillar-card:hover::after,
.resume-section-card:hover::after,
.about-narrative-card:hover::after,
.focus-card:hover::after,
.learning-card:hover::after,
.about-scroll-card:hover::after,
.about-aesthetic-card:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* Light Mode Enhancement */
body.light-mode .edu-item-card:hover,
body.light-mode .cert-item-card:hover,
body.light-mode .pillar-card:hover,
body.light-mode .resume-section-card:hover,
body.light-mode .about-narrative-card:hover,
body.light-mode .focus-card:hover,
body.light-mode .learning-card:hover,
body.light-mode .about-scroll-card:hover,
body.light-mode .about-aesthetic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px -8px rgba(2, 132, 199, 0.16);
    border-color: #0284C7;
}

body.light-mode .edu-item-card::after,
body.light-mode .cert-item-card::after,
body.light-mode .pillar-card::after,
body.light-mode .resume-section-card::after,
body.light-mode .about-narrative-card::after,
body.light-mode .focus-card::after,
body.light-mode .learning-card::after,
body.light-mode .about-scroll-card::after,
body.light-mode .about-aesthetic-card::after {
    display: none;
}

/* ========================================================
   ACCESSIBILITY: FOCUS INDICATORS & PREFERS-REDUCED-MOTION
   ======================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-teal);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .physics-card {
        transform: none !important;
        transition: none !important;
    }
}

/* ========================================================
   WARM ORGANIC & HUMAN DESIGN UTILITY CLASSES
   Removes the rigid AI-generated aesthetic with handcrafted
   subtle asymmetry, matte surfaces, and natural room lighting
   ======================================================== */

/* 1. Organic Solid Matte Cards (No Glassmorphism) */
.organic-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 24px 18px 22px 20px;
    padding: 32px 28px 28px 32px;
    box-shadow:
        var(--card-inner-border),
        var(--shadow-soft);
    position: relative;
    overflow: hidden;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.organic-card:hover {
    transform: translateY(-4px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 245, 238, 0.08),
        var(--shadow-hover);
    border-color: rgba(223, 156, 61, 0.35);
}

.organic-card-alt {
    border-radius: 19px 25px 18px 24px;
    padding: 28px 32px 32px 28px;
}

/* 2. Handcrafted Organic Border Radii */
.organic-radius-1 {
    border-radius: 24px 18px 22px 20px !important;
}

.organic-radius-2 {
    border-radius: 19px 25px 18px 24px !important;
}

.organic-radius-3 {
    border-radius: 22px 20px 25px 17px !important;
}

.organic-radius-pill {
    border-radius: 999px 980px 995px 985px !important;
}

/* 3. Subtle Asymmetric Padding */
.organic-padding-1 {
    padding: 34px 28px 30px 32px !important;
}

.organic-padding-2 {
    padding: 28px 32px 34px 26px !important;
}

.organic-padding-compact {
    padding: 18px 22px 20px 18px !important;
}

/* 4. Natural Room Lighting Diffuse Shadows */
.shadow-room-ambient {
    box-shadow: var(--shadow-ambient) !important;
}

.shadow-room-soft {
    box-shadow: var(--card-inner-border), var(--shadow-soft) !important;
}

.shadow-room-raised {
    box-shadow: var(--card-inner-border), var(--shadow-raised) !important;
}

.shadow-room-float {
    box-shadow: var(--card-inner-border), var(--shadow-hover) !important;
}

/* 5. Physical Paper & Matte Surface Classes */
.paper-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-hairline) !important;
    box-shadow: var(--card-inner-border), var(--shadow-soft) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.paper-grain-overlay {
    position: relative;
}

.paper-grain-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paperGrain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paperGrain)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    mix-blend-mode: overlay;
    border-radius: inherit;
    z-index: 1;
}

.surface-warm {
    background-color: var(--bg-surface) !important;
}

.surface-warm-raised {
    background-color: var(--bg-surface-raised) !important;
}

/* 6. Human Editorial Typography Helpers */
.font-editorial,
.serif-heading {
    font-family: var(--font-heading) !important;
    letter-spacing: -0.015em;
}

.font-merriweather {
    font-family: 'Merriweather', Georgia, serif !important;
    letter-spacing: -0.01em;
}

.font-playfair {
    font-family: 'Playfair Display', Georgia, serif !important;
    letter-spacing: -0.02em;
}

.warm-heading-gradient {
    background: linear-gradient(135deg, var(--text-primary) 35%, var(--accent-amber) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* 7. Soft Natural Accent Helpers */
.accent-amber-text {
    color: var(--accent-amber) !important;
}

.accent-orange-text {
    color: var(--accent-orange) !important;
}

.accent-sage-text {
    color: var(--accent-sage) !important;
}

.accent-amber-pill {
    background: rgba(223, 156, 61, 0.12) !important;
    border: 1px solid rgba(223, 156, 61, 0.3) !important;
    color: var(--accent-amber) !important;
}

.accent-orange-pill {
    background: rgba(217, 107, 67, 0.12) !important;
    border: 1px solid rgba(217, 107, 67, 0.3) !important;
    color: var(--accent-orange) !important;
}

.accent-sage-pill {
    background: rgba(126, 159, 133, 0.14) !important;
    border: 1px solid rgba(126, 159, 133, 0.32) !important;
    color: #9EC4A4 !important;
}

.warm-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-amber));
    border-radius: 3px;
    display: inline-block;
}
