/* ============================================================
   Design tokens — dark / violet system
   ============================================================ */
:root{
  --bg: #0A0A0D;
  --surface: #131317;
  --surface-2: #19191F;
  --border: #232329;
  --border-soft: rgba(255,255,255,0.08);
  --text: #F5F5F7;
  --text-muted: #9A9AA3;
  --text-dim: #6B6B74;

  --violet: #7C5CFC;
  --violet-light: #A78BFA;
  --violet-dim: #3A2E6E;
  --mint: #34D399;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 20px;
  --radius-sm: 12px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
button{ font-family: inherit; cursor: pointer; }

::selection{ background: var(--violet); color: #fff; }

:focus-visible{
  outline: 2px solid var(--violet-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.glow{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 400px at 50% 0%, rgba(124,92,252,0.22), transparent 70%);
}

.eyebrow{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--violet-light);
  margin: 0 0 10px;
}

.gradient-text{
  background: linear-gradient(90deg, var(--violet-light), var(--violet) 60%, #C9B8FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Floating pill nav
   ============================================================ */
.nav-outer{
  position: sticky;
  top: 18px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 var(--pad);
}
.nav{
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 10px 10px 20px;
  background: rgba(19,19,23,0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.logo .mark{
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet-light), var(--violet) 70%);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.nav-links{
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a{ color: var(--text-muted); transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active{ color: var(--text); }

.nav-cta{ display: flex; align-items: center; gap: 10px; }

.nav-cta{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text);
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
}

.mobile-panel{ display: none; }

/* ============================================================
   Mobile Navigation & Responsive Tweaks (Max-width: 780px)
   ============================================================ */
@media (max-width: 780px) {

  /* Fix top header cutoff / spacing on mobile screens */
  .nav-outer {
    position: sticky;
    top: 10px;               /* Leaves breathable top clearance on mobile viewports */
    padding: 0 12px;
  }

  .nav {
    padding: 8px 12px;
    gap: 8px;
  }

  /* Hide plain text nav links on mobile; they live inside .mobile-panel drawer */
  .nav-links {
    display: none;
  }

  /* Make sure the navbar CTA container stays visible & aligned */
  .nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Keep "Download Resume" visible in mobile header bar in a compact format */
  .nav-cta .btn {
    display: inline-flex !important;
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 999px;
    white-space: nowrap;
  }

  /* Toggle button styling */
  .nav-toggle {
    display: flex;
    width: 32px;
    height: 32px;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  /* Dropdown mobile panel floating underneath navbar pill */
  .mobile-panel {
    display: block;
    position: fixed;
    top: 65px;
    left: 12px;
    right: 12px;
    z-index: 99;
    max-width: 980px;
    margin: 0 auto;
    background: rgba(19, 19, 23, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s ease, 
                visibility 0.25s ease;
  }

  .mobile-panel.open {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    padding: 8px 0;
  }

  .mobile-panel ul {
    list-style: none;
    margin: 0;
    padding: 6px 10px;
  }

  .mobile-panel a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-panel a:hover,
  .mobile-panel a.active {
    background: var(--surface-2);
    color: var(--text);
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary{
  background: linear-gradient(135deg, var(--violet-light), var(--violet));
  color: #fff;
  box-shadow: 0 6px 24px rgba(124,92,252,0.35);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 10px 30px rgba(124,92,252,0.5); }
.btn-ghost{
  color: var(--text);
  border-color: var(--border-soft);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover{ border-color: var(--violet-light); }
.btn-sm{ padding: 9px 16px; font-size: 13px; }

/* ============================================================
   Hero
   ============================================================ */
.hero{
  position: relative;
  text-align: center;
  /* margin-top: -80px; 
  padding: clamp(140px, 15vw, 200px) 0 40px; */
   padding: clamp(70px, 12vw, 130px) 0 40px; 
}
.hero-inner{ position: relative; z-index: 1; }
h1{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero p.lead{
  color: var(--text-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 56ch;
  margin: 0 auto 34px;
}
.hero .btn-row{ display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.hero .caption{ margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* ============================================================
   Bento visual grid
   ============================================================ */
.bento{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 64px;
}
.bento .cell{
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  position: relative;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.bento .cell .tag{
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 999px;
}
.bento .c1{ grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, #1B1233, #0A0A0D 70%); }
.bento .c2{ grid-column: span 2; background: linear-gradient(160deg, #241830, #0A0A0D); }
.bento .c3{ grid-column: span 2; background: linear-gradient(160deg, #10151B, #0A0A0D); }
.bento .c4{ grid-column: span 2; background: linear-gradient(160deg, #16101F, #0A0A0D); }
.bento .c5{ grid-column: span 2; background: linear-gradient(160deg, #101014, #0A0A0D); }

@media (max-width: 820px){
  .bento{ grid-template-columns: repeat(2, 1fr); }
  .bento .cell{ grid-column: span 1 !important; grid-row: auto !important; min-height: 130px; }
}

/* ============================================================
   Feature icon strip
   ============================================================ */
.strip{
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  flex-wrap: wrap;
  margin-top: 56px;
}
.strip .item{ text-align: center; }
.strip .icon{
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  color: var(--violet-light);
}
.strip .label{ font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   Section shell
   ============================================================ */
section{ padding: clamp(60px, 9vw, 110px) 0; position: relative; }

.section-head{ text-align: center; margin-bottom: 56px; }
.section-head h2{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.section-head p{
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
  font-size: 15.5px;
}
.section-head.left{ text-align: left; }
.section-head.left p{ margin: 0; }

/* ============================================================
   Two-column feature blocks
   ============================================================ */
.feature-blocks{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.feature-blocks .block{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-blocks .visual{
  height: 220px;
  background: linear-gradient(160deg, #1B1233, #0A0A0D 75%);
  position: relative;
}
.feature-blocks .visual.v2{ background: linear-gradient(160deg, #101820, #0A0A0D 75%); }
.feature-blocks .visual.v3{ background: linear-gradient(160deg, #201018, #0A0A0D 75%); }
.feature-blocks .visual.v4{ background: linear-gradient(160deg, #131022, #0A0A0D 75%); }
.feature-blocks .copy{ padding: 24px 26px 28px; }
.feature-blocks h3{ font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; }
.feature-blocks p{ color: var(--text-muted); font-size: 14.5px; margin: 0; }

@media (max-width: 760px){
  .feature-blocks{ grid-template-columns: 1fr; }
}

.code-mock{
  position: absolute; inset: 18px;
  background: rgba(10,10,13,0.8);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  overflow: hidden;
}
.code-mock .l1{ color: var(--violet-light); }
.code-mock .l2{ color: var(--mint); }
.code-mock div{ margin-bottom: 6px; white-space: nowrap; }

/* ============================================================
   Card grid (work / templates)
   ============================================================ */
.card-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.proj-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.proj-card:hover{ transform: translateY(-4px); border-color: var(--violet-dim); }
.proj-card .thumb{
  height: 170px;
  background: linear-gradient(160deg, #1B1233, #0A0A0D 75%);
  position: relative;
}
.proj-card .thumb.t2{ background: linear-gradient(160deg, #101820, #0A0A0D 75%); }
.proj-card .thumb.t3{ background: linear-gradient(160deg, #201018, #0A0A0D 75%); }
.proj-card .thumb.t4{ background: linear-gradient(160deg, #131022, #0A0A0D 75%); }
.proj-card .thumb.t5{ background: linear-gradient(160deg, #10151B, #0A0A0D 75%); }
.proj-card .thumb.t6{ background: linear-gradient(160deg, #16101F, #0A0A0D 75%); }
.proj-card .body{ padding: 20px 22px 24px; }
.proj-card h3{ font-family: var(--font-display); font-size: 17px; margin: 0 0 4px; }
.proj-card .cat{ color: var(--violet-light); font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.proj-card p{ color: var(--text-muted); font-size: 14px; margin: 0; }

@media (max-width: 900px){ .card-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .card-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   Resource / stack cards
   ============================================================ */
.res-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.res-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
}
.res-card .icon{
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--violet-light);
  margin-bottom: 16px;
}
.res-card h3{ font-size: 15.5px; margin: 0 0 6px; font-family: var(--font-display); }
.res-card p{ color: var(--text-muted); font-size: 13.5px; margin: 0; }

@media (max-width: 900px){ .res-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .res-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   Testimonials
   ============================================================ */
.testi-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testi-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.stars{ color: var(--mint); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-card p.quote{ color: var(--text-muted); font-size: 14.5px; margin: 0 0 18px; }
.testi-card .who{ font-weight: 700; font-size: 14px; }
.testi-card .when{ color: var(--text-dim); font-size: 12.5px; }

@media (max-width: 900px){ .testi-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq{ max-width: 760px; margin: 0 auto; }
.faq-item{ border-top: 1px solid var(--border); }
.faq-item:last-child{ border-bottom: 1px solid var(--border); }
.faq-q{
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4px;
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
}
.faq-q .plus{
  color: var(--violet-light);
  font-size: 18px;
  transition: transform .25s ease;
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-item.open .plus{ transform: rotate(45deg); }
.faq-a{ max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p{ color: var(--text-muted); font-size: 14.5px; padding: 0 4px 22px; margin: 0; max-width: 65ch; }

/* ============================================================
   About page specifics
   ============================================================ */
.about-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-grid p{ color: var(--text-muted); margin: 0 0 16px; font-size: 15px; }
.about-grid p.intro{ color: var(--text); font-size: 18px; }
 
.about-photo{
  width: 80%;
  margin: 0 auto 32px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #1B1233, #0A0A0D 75%);
}
.about-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 760px){
  .about-photo{ width: 100%; aspect-ratio: 16 / 9; max-width: 320px; }
}
 
.stack-list{ list-style: none; margin: 0; padding: 0; }
.stack-list li{
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
}
.stack-list li:last-child{ border-bottom: 1px solid var(--border); }
.stack-list .role{ color: var(--text-dim); font-size: 12.5px; }
 
.timeline{ list-style: none; margin: 0; padding: 0; }
.timeline li{
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
}
.timeline li:last-child{ border-bottom: 1px solid var(--border); }
.timeline .when{ color: var(--violet-light); font-size: 13px; font-weight: 600; }
.timeline h4{ margin: 0 0 6px; font-family: var(--font-display); font-size: 16px; }
.timeline p{ margin: 0; color: var(--text-muted); font-size: 14px; }
 
@media (max-width: 760px){
  .about-grid{ grid-template-columns: 1fr; gap: 36px; }
  .timeline li{ grid-template-columns: 1fr; gap: 6px; }
}



/* ============================================================
   Contact page
   ============================================================ */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.field{ margin-bottom: 20px; }
.field label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.field input, .field textarea{
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--violet-light);
}
.field textarea{ resize: vertical; min-height: 130px; }

.contact-info dt{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 24px;
}
.contact-info dt:first-child{ margin-top: 0; }
.contact-info dd{
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
}
.contact-info dd a:hover{ color: var(--violet-light); }

.form-status{ font-size: 13px; color: var(--mint); margin-top: 4px; min-height: 18px; }

@media (max-width: 760px){
  .contact-grid{ grid-template-columns: 1fr; gap: 36px; }
}

/* ============================================================
   Footer CTA + footer
   ============================================================ */
.cta-band{
  text-align: center;
  border-radius: 28px;
  background: radial-gradient(500px 260px at 50% 0%, rgba(124,92,252,0.28), #0F0B1A 70%);
  border: 1px solid var(--border-soft);
  padding: clamp(48px, 8vw, 84px) 24px;
}
.cta-band h2{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 26px;
}

footer{ padding: 40px 0 60px; }
.footer-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.footer-row a{ color: var(--text-dim); }
.footer-row a:hover{ color: var(--violet-light); }
.footer-links{ display: flex; gap: 22px; }

.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: none; }