@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-light: #ffffff;
    --text-dark: #09090b;
    --text-light: #f4f4f5;
    --accent: #6366f1;
    --grey-surface: #f4f4f7;
    --border-color: #e4e4e7;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* LOADER */
.premium-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease-in-out;
}

.loader-content { text-align: center; width: 280px; }
.loader-subtitle { color: var(--accent); letter-spacing: 4px; font-size: 0.65rem; font-weight: 700; display: block; margin-bottom: 10px; }
.loader-title-wrapper { overflow: hidden; margin-bottom: 20px; }
.loader-title { color: #fff; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; animation: slideUpTitle 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.loader-bar-container { width: 100%; height: 2px; background: #222; border-radius: 2px; overflow: hidden; }
.loader-progress-bar { width: 0%; height: 100%; background: #fff; animation: fillLoader 1.2s ease-in-out forwards; }

@keyframes slideUpTitle { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes fillLoader { to { width: 100%; } }

/* NAVBAR */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 50px; z-index: 100; background: transparent;
    transition: background 0.4s ease, color 0.4s ease;
}

.logo { font-weight: 900; font-size: 1.5rem; letter-spacing: -1px; text-decoration: none; color: #111827; }
.logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; }
.nav-links a { text-decoration: none; color: #111827; font-weight: 500; font-size: 0.95rem; margin-left: 30px; transition: all 0.3s ease; }
.nav-links a:hover { color: var(--accent); }

.nav-links .nav-cta {
    background: #111827; color: #ffffff; padding: 8px 18px; border-radius: 20px; transition: all 0.3s ease;
}
.nav-links .nav-cta:hover { background: var(--accent); color: #ffffff; }

/* LAYOUT CONSTRAINTS */
.container-large { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-small { max-width: 800px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }

.section-header { margin-bottom: 50px; }
.section-subtitle { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: #71717a; display: block; margin-bottom: 10px; }
.section-title { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.hero{

    position:relative;

    width:100%;

    height:100vh;

    background:#F8F7F4;

    overflow:hidden;

}

.hero-portrait-layer{
    position:absolute;

    left:50%;
    bottom:220px;

    transform:translateX(-50%);

    z-index:1;

    display:flex;
    justify-content:center;
    align-items:flex-end;
}
.portrait-wrap{
    width:auto;
    position:relative;
    display:flex;
    justify-content:center;
}

/* ============ ORBITING APP BUBBLES ============ */
.orbit-field{
    position:absolute;
    top:36%;
    left:50%;
    width:0;
    height:0;
    pointer-events:none;
}

.orbit-bubble{
    position:absolute;
    top:50%;
    left:50%;
    width:var(--bsize, 80px);
    height:var(--bsize, 80px);
    margin:calc(var(--bsize, 80px) / -2) 0 0 calc(var(--bsize, 80px) / -2);
    pointer-events:auto;
    opacity:0;
    transform:scale(0);
    will-change:transform, opacity;
}
.orbit-bubble.is-back{ z-index:1; }
.orbit-bubble.is-front{ z-index:4; }

.bubble{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:100%;
    border-radius:50%;
    background:#fff;
    border:3px solid #fff;
    box-shadow:0 14px 28px rgba(17,24,39,.18), 0 3px 8px rgba(17,24,39,.08);
    color:#fff;
    text-decoration:none;
    cursor:pointer;
    padding:0;
    transition:transform .25s ease, box-shadow .25s ease;
}
.orbit-bubble.is-back .bubble{ opacity:.94; }

.bubble:hover{
    transform:scale(1.1);
    box-shadow:0 20px 36px rgba(17,24,39,.24);
}

.bubble svg{
    width:var(--isize, 38px);
    height:var(--isize, 38px);
}

/* Bold, colorful fills so the bubbles read as app icons */
.bubble-figma{ background:#fff; padding:0; overflow:hidden; cursor:default; }
.bubble-figma .bubble-img{ width:100%; height:100%; object-fit:contain; display:block; border-radius:50%; background:#fff; }
.bubble-figma:hover{ transform:none; box-shadow:0 14px 28px rgba(17,24,39,.18), 0 3px 8px rgba(17,24,39,.08); }
.bubble-about{ background:#fff; padding:0; overflow:hidden; }
.bubble-about .bubble-img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:50%; }
.bubble-mail{ background:#fff; padding:0; overflow:hidden; }
.bubble-mail .bubble-img{ width:100%; height:100%; object-fit:contain; display:block; border-radius:50%; background:#fff; }
.bubble-linkedin{ background:linear-gradient(160deg,#0aa2f5,#0a66c2); }
.bubble-github{ background:linear-gradient(160deg,#374151,#111827); }
.bubble-instagram{ background:linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7); }
.bubble-resume{ background:linear-gradient(160deg,#34d399,#059669); }

@media (max-width:968px){
    .orbit-field{ top:34%; }
    .bubble{ border-width:2px; }
}

/* ============ HERO TAGLINE ============ */
.hero-tagline{
    position:absolute;
    left:50%;
    bottom:48px;
    transform:translateX(-50%);
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin:0;
    font-size:17px;
    font-weight:500;
    letter-spacing:-.2px;
    color:#3f3f46;
    white-space:nowrap;
}
.hero-tagline .dot{
    width:7px;
    height:7px;
    flex:none;
    border-radius:50%;
    background:#22C55E;
}

@media (max-width:968px){
    .hero-tagline{
        bottom:26px;
        width:88%;
        font-size:14px;
        white-space:normal;
        text-align:center;
    }
}

/* ============ ABOUT POPUP ============ */
.about-popup-backdrop{
    position:fixed;
    inset:0;
    z-index:100;
    background:rgba(17,24,39,.35);
    backdrop-filter:blur(4px);
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
}
.about-popup-backdrop.is-open{
    opacity:1;
    pointer-events:auto;
}

.about-popup{
    position:fixed;
    top:50%;
    left:50%;
    width:340px;
    max-width:88vw;
    z-index:101;
    background:#fff;
    border-radius:26px;
    overflow:hidden;
    box-shadow:0 30px 70px rgba(17,24,39,.28);
    opacity:0;
    pointer-events:none;
    transform:translate(-50%,-46%);
    transition:opacity .3s ease, transform .3s ease;
}
.about-popup.is-open{
    opacity:1;
    pointer-events:auto;
    transform:translate(-50%,-50%);
}

.about-popup-close{
    position:absolute;
    top:20px;
    right:18px;
    width:38px;
    height:38px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.92);
    color:#111;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:5;
    box-shadow:0 4px 10px rgba(17,24,39,.15);
}
.about-popup-close:hover{ background:#fff; }

/* --- Card-style layout, inspired by the "Wall of Portfolios" reference --- */
.about-card-photo{
    position:relative;
    height:214px;
    background:
        radial-gradient(rgba(17,24,39,.07) 1px, transparent 1px) 0 0/14px 14px,
        linear-gradient(160deg,#f3ded0,#e7c9ae);
}

.about-card-photo-img{
    position:absolute;
    top:28px;
    left:20px;
    width:130px;
    height:130px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid #fff;
    box-shadow:0 8px 18px rgba(17,24,39,.18);
}

.about-card-badge{
    position:absolute;
    top:128px;
    left:112px;
    width:46px;
    height:46px;
    border-radius:50%;
    background:#111827;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:21px;
    border:3px solid #fff;
    box-shadow:0 4px 10px rgba(17,24,39,.2);
}

.about-card-body{
    padding:22px 24px 26px;
}

.about-card-name{
    font-size:1.65rem;
    font-weight:800;
    letter-spacing:-.5px;
    margin:0 0 4px;
    color:#111;
}

.about-card-role{
    font-size:16px;
    font-weight:500;
    color:#71717a;
    margin:0 0 20px;
}

.about-card-meta{
    display:flex;
    align-items:baseline;
    gap:12px;
    margin-bottom:14px;
}
.about-card-meta-label{
    font-size:.75rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1.5px;
    color:#a1a1aa;
    position:relative;
    padding-right:12px;
}
.about-card-meta-label::after{
    content:"";
    position:absolute;
    right:0;
    top:2px;
    bottom:2px;
    width:1px;
    background:rgba(17,24,39,.15);
}
.about-card-meta-value{
    font-size:1.15rem;
    font-weight:800;
    color:#111;
}

.about-card-divider{
    display:flex;
    align-items:center;
    margin-bottom:20px;
}
.about-card-divider .dot{
    width:6px;
    height:6px;
    flex:none;
    border-radius:50%;
    background:#c9c9d1;
}
.about-card-divider .line{
    flex:1;
    height:1px;
    margin:0 6px;
    background:rgba(17,24,39,.12);
}

.about-card-desc{
    font-size:14.5px;
    line-height:1.75;
    color:#555;
    margin:0 0 22px;
}

.about-card-cta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 20px;
    border-radius:999px;
    background:#F8F7F4;
    border:1.5px solid rgba(17,24,39,.08);
    text-decoration:none;
    color:#111;
    font-weight:700;
    font-size:15.5px;
    transition:background .2s ease, transform .2s ease;
}
.about-card-cta:hover{
    background:#F0EFEA;
    transform:translateY(-1px);
}
.about-card-cta .link-arrow{ transition:transform .2s ease; }
.about-card-cta:hover .link-arrow{ transform:translate(2px,-2px); }

/* ============ GET IN TOUCH POPUP ============ */
.connect-popup-backdrop{
    position:fixed;
    inset:0;
    z-index:100;
    background:rgba(17,24,39,.35);
    backdrop-filter:blur(4px);
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
}
.connect-popup-backdrop.is-open{
    opacity:1;
    pointer-events:auto;
}

.connect-popup{
    position:fixed;
    top:50%;
    left:50%;
    width:380px;
    max-width:88vw;
    z-index:101;
    background:#F5FBF7;
    border-radius:26px;
    overflow:hidden;
    box-shadow:0 30px 70px rgba(17,24,39,.28);
    opacity:0;
    pointer-events:none;
    transform:translate(-50%,-46%);
    transition:opacity .3s ease, transform .3s ease;
}
.connect-popup.is-open{
    opacity:1;
    pointer-events:auto;
    transform:translate(-50%,-50%);
}

.connect-popup-hero{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:170px;
    padding:36px 24px;
    background:linear-gradient(160deg,#16321f,#0c1f14);
}

.connect-popup-icon svg{
    width:64px;
    height:64px;
    color:#eafff0;
    opacity:.9;
}

.connect-popup-close{
    position:absolute;
    top:16px;
    left:16px;
    width:32px;
    height:32px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-size:20px;
    line-height:1;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}
.connect-popup-close:hover{ background:rgba(255,255,255,.25); }

.connect-popup-body{
    padding:30px 26px 32px;
    text-align:center;
}

.connect-popup-body h3{
    font-size:2rem;
    font-weight:800;
    line-height:1.05;
    letter-spacing:-1px;
    margin:0 0 24px;
    color:#0f2419;
}

.connect-popup-links{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.connect-pill{
    display:flex;
    align-items:center;
    gap:12px;
    padding:14px 18px;
    border-radius:999px;
    border:1.5px solid rgba(15,36,25,.15);
    background:#fff;
    text-decoration:none;
    color:#0f2419;
    font-weight:700;
    font-size:14.5px;
    transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.connect-pill:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(15,36,25,.12);
    border-color:rgba(15,36,25,.3);
}

.connect-pill-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:20px;
    height:20px;
    flex:none;
}
.connect-pill-icon svg{ width:100%; height:100%; }

/* ============ AVATAR / PEDESTAL SCENE ============ */

.avatar-scene{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 500px;
    max-width: 68vw;
    perspective: 1100px;
}

/* Soft ambient glow pooling beneath the character */
.avatar-pedestal-glow{
    position: absolute;
    bottom: -6px;
    width: 400px;
    height: 190px;
    max-width: 90%;
    background: radial-gradient(ellipse at center,
        rgba(99,102,241,.32) 0%,
        rgba(99,102,241,.14) 45%,
        rgba(99,102,241,0) 75%);
    filter: blur(32px);
    z-index: 0;
    pointer-events: none;
}

/* Idle floating bob — also carries the 3D perspective context down to
   the tilt wrapper (perspective must reach the tilted element via an
   unbroken chain of preserve-3d ancestors, or the rotation flattens) */
.avatar-float{
    position: relative;
    z-index: 2;
    animation: avatarBob 4.5s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes avatarBob{
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Cursor-tracking tilt (rotationX/Y driven by GSAP quickTo in script.js) */
.avatar-tilt{
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Pupils — positioned over the character's actual eye coordinates
   (found via face detection) and nudged a few px by JS to track the
   cursor independently of the head tilt, like a real gaze shift. */
.avatar-eye{
    position: absolute;
    width: 1.7%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #4a3222 0%, #1c120b 65%, #120a06 100%);
    pointer-events: none;
    will-change: transform;
}
.avatar-eye-left{  left: 42.9%; top: 36.7%; }
.avatar-eye-right{ left: 55.9%; top: 37.9%; }

.hero-image{
    display:block;
    width: 340px;
    max-width: 100%;
    height:auto;
    filter: drop-shadow(0 24px 26px rgba(20,32,25,.16));
}

/* Glass pedestal disc the character floats above */
.avatar-disc{
    position: relative;
    z-index: 1;
    width: 250px;
    height: 20px;
    margin-top: -8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #eef0ff 100%);
    box-shadow:
        0 10px 22px rgba(99,102,241,.28),
        inset 0 1px 1px rgba(255,255,255,.9);
}

.avatar-disc-reflection{
    width: 170px;
    height: 6px;
    margin-top: 6px;
    border-radius: 50%;
    background: rgba(99,102,241,.18);
    filter: blur(4px);
}

.hero-fade{

    position:absolute;

    bottom:0;

    left:0;

    width:100%;

    height:20%;

    z-index:2;

    background:linear-gradient(
to top,

#F8F7F4 0%,
#F8F7F4 25%,
rgba(248,247,244,.92) 45%,
rgba(248,247,244,.55) 70%,
rgba(248,247,244,0) 100%

);

}
.hero-content{

    position:absolute;

    bottom:55px;

    left:50%;

    transform:translateX(-50%);

    width:1200px;

    display:flex;

    justify-content:space-between;

    align-items:flex-end;

    z-index:5;

}
.hero-left{

    width:450px;

}

.status{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:24px;

    font-size:14px;

    color:#64748B;

}

.dot{

    width:8px;

    height:8px;

    background:#22C55E;

    border-radius:50%;

}

.hero-left h1{

    font-size:40px;

    line-height:1.05;

    letter-spacing:-2px;

    font-weight:800;

    color:#111;

}
.hero-right{

    width:330px;

}

.hero-right p{

    color:#555;

    line-height:1.7;

    margin-bottom:28px;

    font-size:16px;

}

.hero-btn{

    display:inline-block;

    padding:14px 28px;

    border-radius:12px;

    background:#111827;

    color:white;

    text-decoration:none;

    font-weight:600;

}


/* PHILOSOPHY */
.philosophy-text { font-size: 2.1rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.8px; color: #1e293b; }

/* TIMELINE */
.timeline { position: relative; max-width: 850px; margin: 0 auto; padding-left: 30px; border-left: 2px solid var(--border-color); }
.timeline-item { position: relative; margin-bottom: 45px; display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.timeline-item::before { content: ''; position: absolute; left: -36px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #000; border: 3px solid #fff; }
.time-meta h4 { font-size: 1.1rem; font-weight: 700; }
.time-meta span { font-size: 0.8rem; color: #71717a; }
.time-content h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.time-content p { font-size: 0.95rem; color: #52525b; line-height: 1.5; }

/* PROCESS GRID */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; background: #fafafa; border: 1px solid var(--border-color); padding: 25px; border-radius: 12px; }
.step-num { font-size: 2.5rem; font-weight: 900; opacity: 0.12; display: block; margin-bottom: -10px; }
.process-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: #52525b; line-height: 1.5; }

/* CAPABILITIES / SKILLS & TOOLS */
.light-grey-block { background-color: var(--grey-surface); }
.skills-pill-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.skill-category-box { background: #fff; border: 1px solid var(--border-color); padding: 30px; border-radius: 16px; }
.skill-category-box h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: #0f172a; }

/* MINI TOOL CARDS GRID */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 12px;
}

.tool-card {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.tool-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tool-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e293b;
}

/* HOVER ANIMATION */
.tool-card:hover {
    transform: translateY(-5px) scale(1.03);
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1);
}

/* TOOLTIP */
.tool-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #0f172a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tool-card:hover .tool-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* TEXT PILLS */
.tags-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tag { background: #f1f5f9; color: #1e293b; font-size: 0.85rem; font-weight: 600; padding: 8px 14px; border-radius: 20px; border: 1px solid #e2e8f0; }

@media (max-width: 968px) {
    .skills-pill-wrapper { grid-template-columns: 1fr; gap: 20px; }
    .tools-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   06 / ACHIEVEMENTS & RECOGNITION
   ========================================================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.badge-card {
    background: #fcfcfb;
    border: 1px solid var(--border-color);
    padding: 24px 22px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.badge-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    border-color: #d4d4d8;
}

.badge-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.badge-card:hover .badge-icon-wrapper {
    transform: scale(1.06);
    background: var(--accent);
    color: #ffffff;
}

.badge-svg {
    width: 17px;
    height: 17px;
}

.badge-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.badge-org {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 12px;
}

.badge-card p {
    color: #52525b;
    line-height: 1.55;
    font-size: 0.88rem;
}

.cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.cert-list li {
    font-size: 0.86rem;
    color: #334155;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-list li:last-child {
    border-bottom: none;
}

.cert-list li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
}

/* Mobile Responsiveness - Ensure this exists in your @media (max-width: 968px) block */
@media (max-width: 968px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* CONTACT & FOOTER */
.dark-theme-block { background: var(--bg-dark); color: var(--text-light); }
.footer-subtext { font-size: 1rem; color: #a1a1aa; margin-bottom: 30px; }

.compact-contact-bar {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px;
    background: #121215; padding: 10px 20px; border-radius: 50px; border: 1px solid #27272a; width: fit-content; margin: 0 auto 30px;
}
.email-pill { display: flex; align-items: center; gap: 8px; color: #f4f4f5; text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 8px 16px; background: rgba(255,255,255,0.05); border-radius: 30px; transition: all 0.25s ease; }
.email-pill:hover { background: rgba(255,255,255,0.1); color: var(--accent); }

.btn-action-secondary { background: transparent; color: #ffffff; border: 1px solid #3f3f46; padding: 8px 18px; font-size: 0.85rem; border-radius: 30px; display: flex; align-items: center; gap: 6px; text-decoration: none; }
.btn-action-secondary:hover { border-color: #ffffff; background: rgba(255,255,255,0.05); }

.social-icon-links { display: flex; align-items: center; gap: 8px; padding-left: 5px; border-left: 1px solid #27272a; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #a1a1aa; text-decoration: none; transition: all 0.25s ease; }
.social-icon:hover { color: #ffffff; background: #27272a; }

.final-footer p { font-size: 0.82rem; color: #71717a; }

/* RESPONSIVE DESIGN */
@media (max-width: 968px) {
    .products-grid, .process-grid, .skills-pill-wrapper, .grid-2col { grid-template-columns: 1fr; gap: 20px; }
    .timeline { padding-left: 20px; }
    .timeline-item { grid-template-columns: 1fr; gap: 8px; }
    .timeline-item::before { left: -26px; }
    .navbar { padding: 20px; }
    .nav-links a { margin-left: 15px; font-size: 0.85rem; }
}
/* ==========================================================================
   07 / BEYOND DESIGN
   ========================================================================== */
.beyond-section {
    background: #f7f6f2;
    border-radius: 32px;
    padding: 110px 56px 100px;
}

.beyond-header {
    margin-bottom: 56px;
}

.beyond-header .section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: #a19b8c;
    margin-bottom: 12px;
}

.beyond-header .section-title {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    color: #0f172a;
    margin-bottom: 24px;
}

.beyond-lead {
    font-size: 1.125rem; /* 18px */
    color: #75705f;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* 2x2 CARD GRID */
.beyond-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px;
    margin-top: 48px;
}

.beyond-card {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    position: relative;
}

/* CARD HOVER */
.beyond-card:hover {
    transform: translateY(-6px) rotate(-0.3deg);
    background: #ffffff;
    border-color: #ece7dc;
    box-shadow: 0 20px 44px rgba(120, 108, 76, 0.1);
}

/* CIRCLE ICON BADGE — larger, warmer */
.beyond-icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease, color 0.35s ease;
}

.beyond-card:hover .beyond-icon-circle {
    background: var(--accent);
    color: #ffffff;
    transform: scale(1.12) rotate(-6deg);
}

.beyond-svg {
    width: 30px;
    height: 30px;
}

.beyond-card h3 {
    font-size: 1.35rem; /* ~21.6px */
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.beyond-card p {
    font-size: 1.02rem; /* ~16px */
    color: #746f60;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* GHOST / LINK BUTTON */
.beyond-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    margin-top: auto;
    padding-top: 8px;
    transition: color 0.2s ease;
}

.beyond-link .link-arrow {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.beyond-link:hover .link-arrow {
    transform: translate(3px, -3px);
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 968px) {
    .beyond-section {
        padding: 64px 28px 56px;
        border-radius: 24px;
    }

    .beyond-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
/* CONTAINER (used by the work/featured-works section) */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}


/* ==========================================================================
   AMBIENT BACKGROUND GLOWS (subtle Apple-style depth behind the hero)
   ========================================================================== */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.glow-1 {
  top: -10%;
  left: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
}

.glow-2 {
  top: 10%;
  right: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.10), transparent 70%);
}

/* ==========================================================================
   SELECTED / FEATURED WORK SECTION
   ========================================================================== */
.work-section {
  position: relative;
  z-index: 2;
  background-color: var(--bg-light, #ffffff);
  padding-top: 60px;
  padding-bottom: 120px;
}

.work-header {
  margin-bottom: 32px;
}

.work-header .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #a1a1aa;
  display: block;
  margin-bottom: 10px;
}

.work-header .section-title {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #111;
}

.work-section .container{
    max-width:1120px;
}

.work-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,520px));
    justify-content:center;
    gap:22px;
}

.work-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio:  1.8 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: #e4e4e7; /* fallback while image loads */
}

/* Dark variant for cards without a screenshot (Eventra / Currently Designing) */
.card-dark {
  background: linear-gradient(155deg, #0c1023 0%, #131a33 55%, #0a0d1a 100%);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Gradient overlay so text stays legible over any image */
.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.65) 100%);
}

.card-text {
  color: #fff;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-title .status-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

.project-subtitle {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
  max-width: 320px;
}

.arrow-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.work-card:hover .arrow-icon {
  opacity: 1;
  transform: translate(0, 0);
  background: var(--accent, #6366f1);
}

@media (max-width: 768px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   MOTION SYSTEM — additive rules only. Nothing above this block is
   modified: layout, typography, color and spacing are untouched.
   ========================================================================== */

/* ---- Masked word/line reveal (used by JS-driven splits) ---- */
.mask-word { overflow: hidden; display: inline-block; vertical-align: top; }
.mask-inner { display: inline-block; will-change: transform, opacity; }

/* ---- Navbar scroll intelligence ---- */
.navbar {
    will-change: transform, background-color;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.4s ease,
                backdrop-filter 0.4s ease,
                box-shadow 0.4s ease;
}
.navbar.navbar--scrolled {
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.navbar.navbar--hidden { transform: translateY(-110%); }

.nav-links a {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:not(.nav-cta):hover { transform: translateY(-2px); }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }

/* ---- Ambient hero glow drift ---- */
@keyframes glowDrift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, 14px); } }
@keyframes glowDrift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, 12px); } }
.glow-1 { animation: glowDrift1 16s ease-in-out infinite; }
.glow-2 { animation: glowDrift2 19s ease-in-out infinite; }

/* ---- Status dot pulse ---- */
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); }
    50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}
.status .dot,
.project-title .status-dot { animation: dotPulse 2.4s ease-in-out infinite; }

/* ---- Selected work: hover motion + cursor highlight ---- */
.card-image-wrapper {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card:hover .card-image-wrapper { transform: translateY(-4px); }

.card-text { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.work-card:hover .card-text { transform: translateY(-4px); }

.card-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}
.work-card:hover .card-image-wrapper::before { opacity: 1; }

/* ---- Project -> case study transition overlay ---- */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: #0b0b0d;
    z-index: 2000;
    pointer-events: none;
}

/* ---- Career timeline drawing ---- */
.timeline { position: relative; }
.tl-progress-line {
    position: absolute;
    top: 0;
    left: -2px;
    width: 2px;
    height: 100%;
    background: var(--accent);
    transform-origin: top;
    pointer-events: none;
}
.tl-dot {
    position: absolute;
    left: -36px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
    border: 3px solid #fff;
}
.timeline-item.tl-enhanced::before { display: none; }

@media (max-width: 968px) {
    .tl-dot { left: -26px; }
}

/* ---- Design process progress path ---- */
.process-grid { position: relative; }
.process-progress-track {
    position: relative;
    height: 2px;
    background: var(--border-color);
    margin-bottom: 24px;
    border-radius: 2px;
    overflow: hidden;
}
.process-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
}
.process-step { transition: box-shadow 0.35s ease, border-color 0.35s ease; }
.process-step .step-num { transition: transform 0.35s ease, opacity 0.35s ease; }
.process-step.active .step-num { transform: scale(1.08); opacity: 0.2; }
.process-step.active { box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08); border-color: #c7c9fb; }

/* ---- Beyond the Screen: personality micro-interactions ---- */
.beyond-svg { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.beyond-card:nth-child(1):hover .beyond-svg { transform: translate(2px, -2px); }
.beyond-card:nth-child(2):hover .beyond-svg { transform: rotate(8deg); }
.beyond-card:nth-child(3):hover .beyond-svg { transform: translateY(-2px) scale(1.05); }
.beyond-card:nth-child(4):hover .beyond-svg { transform: rotate(-6deg); }

/* ---- Buttons: lift + restrained sheen ---- */
.hero-btn, .email-pill {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.25s ease;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18); }
.email-pill:hover { transform: translateY(-2px); }

.hero-btn::after, .email-pill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-20deg);
    opacity: 0;
    pointer-events: none;
}
.hero-btn:hover::after, .email-pill:hover::after {
    opacity: 1;
    animation: sheen 0.8s ease forwards;
}
@keyframes sheen { from { left: -60%; } to { left: 120%; } }

/* ---- Custom cursor ---- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.custom-cursor.is-active { opacity: 1; }
.custom-cursor.is-hover-project { width: 56px; height: 56px; }
.custom-cursor.is-hover-btn { width: 34px; height: 34px; }
body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button { cursor: none; }

/* ---- Reduced motion & touch: strip non-essential motion ---- */
@media (prefers-reduced-motion: reduce) {
    .glow-1, .glow-2,
    .status .dot,
    .project-title .status-dot { animation: none !important; }
    .navbar, .navbar.navbar--hidden { transform: none !important; }
    .custom-cursor { display: none !important; }
    .hero-btn::after, .email-pill::after { display: none !important; }
}

@media (hover: none), (pointer: coarse) {
    .custom-cursor { display: none !important; }
    body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: auto; }
}
/* =========================================================
   MOBILE HERO FIX
   ========================================================= */
@media (max-width: 968px) {

    .hero {
        min-height: 100svh;
        height: auto;
        overflow: hidden;
    }

    .hero-portrait-layer {
        width: 100%;
    }

    .avatar-scene {
        width: 270px;
        max-width: 62vw;
    }

    .avatar-pedestal-glow {
        width: 260px;
        height: 120px;
    }

    .avatar-disc {
        width: 160px;
    }

    .avatar-disc-reflection {
        width: 110px;
    }

    .hero-content {
        position: absolute;
        left: 0;
        bottom: 32px;
        width: 100%;
        padding: 0 24px;
        box-sizing: border-box;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;

        transform: none;
        z-index: 5;
    }

    .hero-left,
    .hero-right {
        width: 100%;
        max-width: 100%;
    }

    .status {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .hero-left h1 {
        font-size: clamp(30px, 8vw, 42px);
        line-height: 1.05;
        letter-spacing: -1.5px;
        max-width: 100%;
    }

    .hero-right p {
        font-size: 14px;
        line-height: 1.55;
        max-width: 340px;
        margin-bottom: 18px;
    }

    .hero-btn {
        padding: 12px 22px;
        font-size: 14px;
    }

    .hero-fade {
        height: 35%;
        z-index: 2;
    }
}
/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.mobile-menu-btn {
    display: none;
}

@media (max-width: 968px) {

    .navbar {
        padding: 18px 20px;
        height: 72px;
        box-sizing: border-box;
    }

    .logo {
        font-size: 1.4rem;
        position: relative;
        z-index: 1002;
    }

    .mobile-menu-btn {
        display: flex;
        width: 42px;
        height: 42px;
        padding: 0;
        border: 0;
        background: transparent;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        position: relative;
        z-index: 1002;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
        background: #111827;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100svh;

        background: #F8F7F4;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        gap: 22px;
        padding: 100px 32px 40px;
        box-sizing: border-box;

        margin: 0;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-20px);
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;

        z-index: 1001;
    }

    .nav-links a {
        margin: 0;
        font-size: clamp(2rem, 8vw, 3rem);
        font-weight: 700;
        letter-spacing: -1.5px;
    }

    .nav-links .nav-cta {
        margin-top: 12px;
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 30px;
    }

    .navbar.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar.menu-open .mobile-menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar.menu-open .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    .navbar.menu-open .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    body.menu-open {
        overflow: hidden;
    }
}
/* =========================================================
   MOBILE HERO — PORTRAIT ABOVE INTRO
   ========================================================= */

@media (max-width: 968px) {

    .hero-portrait-layer {
        position: absolute;
        top: 26px;
        left: 50%;
        right: auto;
        bottom: auto;

        width: 300px;
        max-width: none;

        transform: translateX(-50%);
        z-index: 1;
        pointer-events: none;
    }

    .portrait-wrap {
        width: 100%;
        max-width: none;
    }

    .hero-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        opacity: 1;
    }

    .hero-content {
        position: relative;
        width: 100%;
        padding: 0 28px;
        box-sizing: border-box;

        margin-top: 285px;

        z-index: 5;
    }
}
/* ==========================================================================
   RESUME-STYLE FLOATING NAVBAR
   Shared visual treatment with resume.html
   ========================================================================== */
.navbar.top-nav {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(560px, calc(100vw - 40px));
    min-height: 64px;
    height: 64px;
    padding: 0 22px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255,255,255,.98);
    border-radius: 22px;
    box-shadow: 0 10px 34px rgba(0,0,0,.11);
    border: 1px solid rgba(15,32,25,.08);
    color: #142019;
    transition:
        width .5s cubic-bezier(0.19, 1, 0.22, 1),
        padding .5s cubic-bezier(0.19, 1, 0.22, 1),
        gap .5s cubic-bezier(0.19, 1, 0.22, 1),
        border-radius .5s cubic-bezier(0.19, 1, 0.22, 1),
        box-shadow .35s ease,
        background .35s ease;
}

.navbar.top-nav .nav-brand {
    color: #142019;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: hidden;
    max-width: 200px;
    opacity: 1;
    transform: scale(1);
    transform-origin: left center;
    transition:
        max-width .45s cubic-bezier(0.19, 1, 0.22, 1),
        opacity .3s ease,
        transform .45s cubic-bezier(0.19, 1, 0.22, 1),
        margin .45s cubic-bezier(0.19, 1, 0.22, 1);
}

.navbar.top-nav .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    margin: 0;
    position: relative;
}

.navbar.top-nav .nav-links a {
    position: relative;
    z-index: 1;
    color: #142019;
    text-decoration: none;
    margin: 0;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: color .25s ease;
}

.navbar.top-nav .nav-links a:hover {
    color: #142019;
    opacity: 1;
}

.navbar.top-nav .nav-links a::after {
    display: none;
}

/* Sliding hover pill — follows the cursor between links (JS-positioned) */
.navbar.top-nav .nav-indicator {
    position: absolute;
    top: 50%;
    left: 0;
    height: 38px;
    width: 0;
    border-radius: 999px;
    background: rgba(99, 102, 241, .13);
    transform: translate(0, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition:
        transform .35s cubic-bezier(0.19, 1, 0.22, 1),
        width .35s cubic-bezier(0.19, 1, 0.22, 1),
        opacity .2s ease;
}

.navbar.top-nav .nav-socials {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    max-width: 90px;
    opacity: 1;
    transform: scale(1);
    transform-origin: right center;
    transition:
        max-width .45s cubic-bezier(0.19, 1, 0.22, 1),
        opacity .3s ease,
        transform .45s cubic-bezier(0.19, 1, 0.22, 1),
        margin .45s cubic-bezier(0.19, 1, 0.22, 1);
}

.navbar.top-nav .social-link {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #142019;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, opacity .2s ease;
}

.navbar.top-nav .social-link:hover {
    transform: translateY(-1px);
    opacity: .65;
}

.navbar.top-nav.navbar--scrolled {
    background: rgba(255,255,255,.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 30px rgba(0,0,0,.10);
}

/* Compact / shrunk state — reached once the hero has scrolled past.
   Brand and socials collapse away, leaving just the centered link pill. */
.navbar.top-nav.navbar--compact {
    width: min(370px, calc(100vw - 40px));
    padding: 0 14px;
    gap: 0;
    border-radius: 999px;
}

.navbar.top-nav.navbar--compact .nav-brand {
    max-width: 0;
    opacity: 0;
    transform: scale(.85);
    margin-right: -12px;
    pointer-events: none;
}

.navbar.top-nav.navbar--compact .nav-socials {
    max-width: 0;
    opacity: 0;
    transform: scale(.85);
    margin-left: -12px;
    pointer-events: none;
}

@media (max-width: 640px) {
    .navbar.top-nav {
        top: 16px;
        min-height: 52px;
        height: 52px;
        padding-left: 18px;
        padding-right: 16px;
        width: min(420px, calc(100vw - 28px));
    }

    .navbar.top-nav .nav-links {
        gap: 2px;
        font-size: 12px;
    }

    .navbar.top-nav .nav-links a {
        font-size: 12px;
        padding: 8px 11px;
    }

    .navbar.top-nav .nav-indicator {
        height: 32px;
    }

    .navbar.top-nav .nav-socials {
        gap: 10px;
        max-width: 70px;
    }

    .navbar.top-nav .social-link {
        width: 19px;
        height: 19px;
        font-size: 12px;
    }

    .navbar.top-nav .nav-brand {
        font-size: 13px;
        max-width: 150px;
    }

    .navbar.top-nav.navbar--compact {
        width: min(260px, calc(100vw - 28px));
    }
}

@media (max-width: 430px) {

    .navbar.top-nav {
        width: calc(100vw - 24px);
        min-height: 58px;
        height: 58px;
        padding: 0 14px;
        gap: 8px;
        justify-content: space-between;
        box-sizing: border-box;
    }

    /* SHOW BRAND ON MOBILE */
    .navbar.top-nav .nav-brand {
        display: block;
        flex-shrink: 1;
        width: auto;
        max-width: 112px;
        min-width: 0;

        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        opacity: 1;
        transform: scale(1);
        margin: 0;
    }

    /* Hide social icons on mobile */
    .navbar.top-nav .nav-socials {
        display: none;
    }

    /* Navigation */
    .navbar.top-nav .nav-links {
        flex: 1;
        min-width: 0;

        display: flex;
        align-items: center;
        justify-content: flex-end;

        gap: 0;
        margin: 0;
    }

    .navbar.top-nav .nav-links a {
        padding: 8px 5px;
        font-size: 11px;
        white-space: nowrap;
    }
}
/* =========================================================
   NAVBAR — HERO / NON-HERO STATE
   (superseded by the animated flex collapse defined above;
   kept empty intentionally so nothing fights the transition)
   ========================================================= */

/* =========================================================
   FINAL MOBILE HERO/NAV FIX
   Prevent the legacy mobile-menu rules from turning the
   floating portfolio navbar into a vertical full-screen menu.
   ========================================================= */
@media (max-width: 968px) {
    .navbar.top-nav .nav-links {
        position: static;
        inset: auto;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        z-index: auto;
    }

    .navbar.top-nav .nav-links a {
        margin: 0;
        padding: 8px 10px;
        font-size: 12px;
        line-height: 1;
        white-space: nowrap;
    }

    .navbar.top-nav .nav-indicator {
        display: none;
    }

    .navbar.top-nav .mobile-menu-btn {
        display: none;
    }

    .navbar.top-nav {
        top: 16px;
        height: 52px;
        min-height: 52px;
        width: min(420px, calc(100vw - 28px));
        padding: 0 12px;
        gap: 4px;
        justify-content: center;
    }

    .hero-portrait-layer {
        top: 82px;
    }
}

@media (max-width: 430px) {
    .navbar.top-nav {
        width: calc(100vw - 24px);
        padding: 0 8px;
    }

    .navbar.top-nav .nav-links {
        gap: 0;
    }

    .navbar.top-nav .nav-links a {
        padding: 8px 8px;
        font-size: 11.5px;
    }

    .hero-portrait-layer {
        top: 78px;
    }
}

/* =========================================================
   HERO MOBILE — FINAL CENTERING FIX
   Three earlier @media(max-width:968px) blocks all set
   `.hero-portrait-layer`'s position (once to bottom-anchor it,
   once to pin it near the top for the "portrait above intro"
   layout, once more to nudge it to top:82px/78px for the navbar
   redesign), and `.hero` was switched from a fixed 100vh to
   `height:auto; min-height:100svh`. Because the portrait and the
   `.hero-tagline` are both position:absolute, neither contributes
   to that auto height, so the section still stretches to fill the
   full screen — it just leaves everything squeezed under the
   navbar with a large dead gap above the tagline (see screenshot).
   This last block wins the cascade (same specificity, declared
   last) and re-centers the portrait vertically inside the
   full-height hero so the gap closes, matching the desktop layout.
   ========================================================= */
@media (max-width: 968px) {
    .hero {
        height: 100svh;
        min-height: 100svh;
    }

    .hero-portrait-layer {
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -54%);
    }
}

@media (max-width: 430px) {
    .hero-portrait-layer {
        transform: translate(-50%, -52%);
    }
}
/* ==========================================
   DESKTOP-STYLE NAVBAR FOR ALL SCREEN SIZES
   ========================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 40px; /* Standard desktop padding */
    box-sizing: border-box;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111827;
    text-decoration: none;
    white-space: nowrap; /* Prevents text from breaking into two lines */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px; /* Even spacing between links */
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #111827;
}

/* Hide any mobile menu button if present */
.mobile-menu-btn {
    display: none !important;
}


/* ==========================================
   MOBILE SCALING (Prevents overflow on small screens)
   ========================================== */

@media (max-width: 600px) {
    .navbar {
        padding: 16px 18px; /* Slightly tighter padding for small screens */
    }

    .nav-brand {
        font-size: 0.95rem; /* Slightly smaller brand font */
    }

    .nav-links {
        gap: 12px; /* Tighter gap between links on phone screens */
    }

    .nav-links a {
        font-size: 0.85rem; /* Scaled down link text to fit all 4 links */
    }
}