:root{
    --bg: #0a0a0b;
    --bg-alt: #131314;
    --card: #19191b;
    --card-hover: #202022;
    --border: #2a2a2d;
    --gold: #ecb43a;
    --gold-bright: #f4c752;
    --gold-deep: #9c7420;
    --text: #f5f4f1;
    --muted: #9c9a97;
    --muted-2: #6d6b68;
    --radius: 16px;
  }

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

  html{ scroll-behavior: smooth; }

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

  a{ color: inherit; text-decoration: none; }
  ::selection{ background: var(--gold); color: #14110a; }
  :focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }
  img{ max-width: 100%; display: block; }

  .wrap{ max-width: 1180px; margin: 0 auto; padding: 0 32px; }

  /* ---------- nav ---------- */
  header.nav{
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10,10,11,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  .nav-inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    max-width: 1180px;
    margin: 0 auto;
  }

  .logo-link{ display: inline-flex; align-items: center; }
  .logo-img{ height: 50px; width: auto; display: block; }

  .nav-links{
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
  }
  .nav-links a{ transition: color 0.15s ease; position: relative; padding-bottom: 3px; }
  .nav-links a:hover{ color: var(--text); }
  .nav-links a.active{ color: var(--gold-bright); }
  .nav-links a.active::after{
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
  }

  .nav-cta{
    background: var(--gold);
    color: #16130a;
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 20px;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 0 0 0 rgba(236,180,58,0);
  }
  .nav-cta:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -6px rgba(236,180,58,0.55), 0 0 0 3px rgba(236,180,58,0.15);
  }
  .nav-cta::before{
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -60%;
    width: 40%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: 1;
  }
  .nav-cta:hover::before{ left: 130%; }
  .nav-cta::after{
    content: "";
    width: 14px; height: 14px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h9'/%3E%3Cpath d='M8.5 3.8 12.8 8l-4.3 4.2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h9'/%3E%3Cpath d='M8.5 3.8 12.8 8l-4.3 4.2'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }
  .nav-cta:hover::after{ transform: translateX(4px); }

  .nav-toggle{
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px; height: 40px;
    border-radius: 9px;
    font-size: 18px;
    cursor: pointer;
  }

  /* ---------- hero ---------- */
  .hero{
    padding: 88px 0 70px;
    position: relative;
  }

  .hero::before{
    content: "";
    position: absolute;
    top: -10%; right: -10%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(236,180,58,0.14), transparent 65%);
    pointer-events: none;
    z-index: 0;
  }

  .side-label{
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted-2);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
  }
  .side-label::before{
    content: "";
    width: 26px; height: 1px;
    background: var(--gold-deep);
    display: inline-block;
  }

  @media (max-width: 1180px){
    .side-label{ display: none; }
  }

  .hero-grid{
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .badge-pill{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(236,180,58,0.1);
    border: 1px solid rgba(236,180,58,0.3);
    color: var(--gold-bright);
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
  }
  .badge-pill .dot2{
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
    animation: pulse 2s infinite;
  }
  @keyframes pulse{
    0%{ box-shadow: 0 0 0 0 rgba(74,222,128,0.55); }
    70%{ box-shadow: 0 0 0 6px rgba(74,222,128,0); }
    100%{ box-shadow: 0 0 0 0 rgba(74,222,128,0); }
  }

  .hero h1{
    font-size: clamp(36px, 4.6vw, 58px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.06;
    margin-bottom: 20px;
  }
  .hero h1 .gold-word{ color: var(--gold); }

  .hero p.lede{
    color: var(--muted);
    font-size: 17px;
    max-width: 520px;
    margin-bottom: 30px;
  }

  .hero-actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .btn{
    font-weight: 700;
    font-size: 14px;
    padding: 13px 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .btn::after{
    content: "";
    width: 15px; height: 15px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h9'/%3E%3Cpath d='M8.5 3.8 12.8 8l-4.3 4.2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h9'/%3E%3Cpath d='M8.5 3.8 12.8 8l-4.3 4.2'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }
  .btn:hover::after{ transform: translateX(4px); }

  /* Gold button: diagonal shine sweep on hover */
  .btn-gold{
    background: var(--gold);
    color: #16130a;
  }
  .btn-gold:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -8px rgba(236,180,58,0.5), 0 0 0 3px rgba(236,180,58,0.15);
  }
  .btn-gold::before{
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -60%;
    width: 35%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: 1;
  }
  .btn-gold:hover::before{ left: 130%; }

  /* Outline button: fill sweeps in from the left on hover */
  .btn-outline{
    background: transparent;
    color: var(--text);
    border-color: var(--border);
  }
  .btn-outline::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, var(--gold), var(--gold-bright));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    z-index: -1;
  }
  .btn-outline:hover{
    transform: translateY(-2px);
    border-color: var(--gold);
    color: #16130a;
  }
  .btn-outline:hover::before{ transform: scaleX(1); }

  /* hero stat card */
  .hero-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    position: relative;
  }

  .hero-card-top{
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
  }

  .hero-stat{
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
  }
  .hero-stat .n{
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-bright);
  }
  .hero-stat .l{
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 3px;
  }

  .hero-check-list{
    display: flex;
    flex-direction: column;
    gap: 11px;
  }
  .hero-check-list li{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
  }
  .hero-check-list .tick{
    width: 18px; height: 18px;
    border-radius: 50%;
    background: rgba(236,180,58,0.15);
    color: var(--gold-bright);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
  }

  /* ---------- marquee (tech chip belt) ---------- */
  .marquee-section{
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 26px 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .marquee-section::before,
  .marquee-section::after{
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 90px;
    z-index: 2;
    pointer-events: none;
  }
  .marquee-section::before{
    left: 0;
    background: linear-gradient(90deg, var(--bg-alt), transparent);
  }
  .marquee-section::after{
    right: 0;
    background: linear-gradient(270deg, var(--bg-alt), transparent);
  }

  .marquee-track{
    display: flex;
    width: max-content;
    gap: 14px;
    animation: scroll-left 38s linear infinite;
    will-change: transform;
  }
  .marquee-track:hover{ animation-play-state: paused; }

  .tech-chip{
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 9px 16px 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex: 0 0 auto;
    transition: border-color 0.15s ease, color 0.15s ease;
  }
  .tech-chip:hover{ border-color: var(--gold); color: var(--text); }

  .tech-chip .tech-icon{
    width: 16px; height: 16px;
    flex-shrink: 0;
    display: inline-flex;
  }
  .tech-chip .tech-icon svg{ width: 100%; height: 100%; display: block; }

  @keyframes scroll-left{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
  }

  /* ---------- section shared ---------- */
  section{ padding: 92px 0; scroll-margin-top: 80px; }

  .section-tag{
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    display: block;
    margin-bottom: 12px;
  }

  .section-title{
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.015em;
    text-align: center;
    margin-bottom: 14px;
  }

  .section-sub{
    text-align: center;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 50px;
    font-size: 15px;
  }

  .reveal{
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.in{ opacity: 1; transform: translateY(0); }

  /* ---------- services / what i do ---------- */
  .service-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .awards-grid{
    grid-template-columns: repeat(2, 1fr);
    max-width: 780px;
    margin: 0 auto;
  }

  .service-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }
  .service-card:hover{
    transform: translateY(-4px);
    border-color: rgba(236,180,58,0.4);
    background: var(--card-hover);
  }

  .service-icon{
    width: 46px; height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-deep));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #16130a;
    margin-bottom: 18px;
  }

  .service-card h3{
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .service-card p{
    font-size: 13.5px;
    color: var(--muted);
  }

  /* ---------- experience tabs ---------- */
  .exp-layout{
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 44px;
  }

  .exp-tabs{
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 90px;
  }

  .exp-tab{
    text-align: left;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: inherit;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  }
  .exp-tab:hover{ transform: translateX(2px); background: var(--card-hover); }
  .exp-tab.active{
    border-color: var(--border);
    border-left-color: var(--gold);
    background: var(--card-hover);
  }

  .exp-tab .yr{
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--gold-bright);
  }
  .exp-tab .role{ font-size: 14px; font-weight: 700; color: var(--text); }
  .exp-tab .co{ font-size: 12.5px; color: var(--muted); }

  .exp-panels{ position: relative; }

  .exp-panel{
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 34px;
    animation: fade-in-panel 0.35s ease;
  }
  .exp-panel.active{ display: block; }

  @keyframes fade-in-panel{
    from{ opacity: 0; transform: translateY(8px); }
    to{ opacity: 1; transform: translateY(0); }
  }

  .exp-year{
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-bright);
    background: rgba(236,180,58,0.1);
    border: 1px solid rgba(236,180,58,0.25);
    padding: 4px 11px;
    border-radius: 999px;
    width: fit-content;
    margin-bottom: 16px;
  }

  .exp-panel h3{ font-size: 20px; font-weight: 700; margin-bottom: 3px; }
  .exp-panel .co{ font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }

  .exp-panel ul{ display: flex; flex-direction: column; gap: 11px; }
  .exp-panel li{
    list-style: none;
    font-size: 14.5px;
    color: var(--muted);
    padding-left: 18px;
    position: relative;
  }
  .exp-panel li::before{
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
  }

  /* ---------- stat band ---------- */
  .stat-band{
    background: linear-gradient(120deg, var(--gold-deep), #7a5a18);
    padding: 44px 0;
  }
  .stat-band .wrap{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
  }
  .stat-band .n{
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .stat-band .n span {
    font-size: 25px;
    margin-left: 4px;
  }
  .stat-band .l{
    font-size: 12.5px;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
  }

  /* ---------- skills ---------- */
  .skills-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .skill-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 12px;
    padding: 22px 24px;
  }

  .skill-card h4{
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-bright);
    margin-bottom: 14px;
  }

  .chip-row{ display: flex; flex-wrap: wrap; gap: 8px; }
  .chip{
    font-size: 12.5px;
    color: var(--muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  .chip:hover{ color: var(--gold-bright); border-color: var(--gold); }

  /* ---------- education ---------- */
  .edu-list{
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
  }

  .edu-card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
  }
  .edu-card h3{ font-size: 18px; font-weight: 700; margin-bottom: 4px; }
  .edu-card p{ font-size: 13.5px; color: var(--muted); }

  .gpa-badge{
    text-align: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 20px;
  }
  .gpa-badge .v{ font-size: 22px; font-weight: 800; color: var(--gold-bright); }
  .gpa-badge .u{ font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }

  /* ---------- contact ---------- */
  .contact-cta{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 56px 40px;
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
  }
  .contact-cta::before{
    content: "";
    position: absolute;
    top: -40%; left: 50%;
    transform: translateX(-50%);
    width: 500px; height: 260px;
    background: radial-gradient(circle, rgba(236,180,58,0.16), transparent 70%);
    pointer-events: none;
  }
  .contact-cta h2{
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
  }
  .contact-cta p{
    color: var(--muted);
    max-width: 440px;
    margin: 0 auto 28px;
    position: relative;
  }
  .contact-cta .hero-actions{ justify-content: center; position: relative; }

  footer.foot-bar{
    border-top: 1px solid var(--border);
    padding: 30px 0;
    margin-top: 80px;
  }
  .foot-inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--muted-2);
  }
  .foot-inner a:hover{ color: var(--gold-bright); }
  .foot-links{ display: flex; gap: 22px; flex-wrap: wrap; }

  /* ---------- responsive ---------- */
  @media (max-width: 992px){
    .nav-links{ display: none; }
    .nav-toggle{ display: flex; align-items: center; justify-content: center; }
    .hero-grid{ grid-template-columns: 1fr; }
    .service-grid{ grid-template-columns: 1fr 1fr; }
    .stat-band .wrap{ grid-template-columns: repeat(2, 1fr); }
    .skills-grid{ grid-template-columns: 1fr; }
    .exp-layout{ grid-template-columns: 1fr; gap: 14px; }
    .exp-tabs{
      position: static;
      flex-direction: column;
      overflow-x: visible;
      gap: 8px;
      padding-bottom: 0;
    }
    .exp-tab{ flex: initial; }
  }

  @media (max-width: 560px){
    .wrap{ padding: 0 20px; }
    .nav-inner{ padding: 16px 20px; }
    .service-grid{ grid-template-columns: 1fr; }
    .hero-card-top{ flex-direction: column; }
    .stat-band .wrap{ grid-template-columns: 1fr 1fr; gap: 24px 12px; }
    .exp-panel{ padding: 24px 22px; }
    section{ padding: 64px 0; }
  }

  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    .marquee-track{ animation: none; }
    .dot2{ animation: none; }
    *{ transition: none !important; }
  }

  @media print{
    header.nav, .marquee-section, .contact-cta .hero-actions, .btn{ display: none !important; }
    body{ background: #fff; color: #111; }
    .service-card, .exp-tab, .exp-panel, .skill-card, .edu-card, .hero-card, .contact-cta{
      background: #fff; border-color: #ddd;
    }
    .exp-tabs{ display: none; }
    .exp-layout{ grid-template-columns: 1fr; }
    .exp-panel{ display: block !important; margin-bottom: 16px; }
    .stat-band{ background: #eee; }
    .stat-band .n, .stat-band .l{ color: #111; }
    .reveal{ opacity: 1 !important; transform: none !important; }
    section{ padding: 26px 0; }
  }

section#contact,
section#certifications,
section#awards,
section#education,
section#experience {
  padding-top: 0;
}
