/* Base + Theme (from V11) */
:root{
  --bg:#0b0e14; --fg:#eaeef6; --muted:#a3a9b9; --accent:#72a0ff; --card:#121625; --border:#1f2434;
  --shadow:0 10px 30px rgba(0,0,0,.35);
}
:root.light{
  --bg:hsl(0,0%,98%); --fg:hsl(210,20%,15%); --muted:hsl(210,10%,40%); --accent:hsl(200,80%,50%); --card:#fff; --border:hsl(210,10%,90%);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;scroll-behavior:smooth}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--fg);line-height:1.6}
.container{max-width:1100px;margin:0 auto;padding:0 1rem}
.section{padding:96px 0}
.section.alt{background:linear-gradient(180deg, transparent, rgba(255,255,255,0.02) 20%, transparent)}
.section-title{font-size:2rem;font-weight:800;margin:0 0 24px;position:relative;text-align:center}
.section-title::after{content:"";display:block;width:80px;height:3px;background:var(--accent);margin:12px auto 0;border-radius:999px}
.body{font-size:1.05rem;color:var(--muted)}
.maxw{max-width:860px}
.center{text-align:center}
.mt{margin-top:24px}
.mb-20{margin-bottom:20px}

/* Header */
/* .site-header{position:sticky;top:0;backdrop-filter:saturate(160%) blur(8px);z-index:50;border-bottom:1px solid transparent;transition:all .2s ease} */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 100;
  /* backdrop-filter: saturate(160%) blur(8px); */
  background:  var(--card); 
  border-bottom: 1px solid transparent;
  transition: all .2s ease;
}
.site-header.scrolled {
  background: var(--card); /* Always solid */
  border-color: var(--border);
}
:root.light .site-header.scrolled {
  background: #fff; /* Always solid in light mode */
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}
.brand{font-weight:800;font-size:1.25rem;text-decoration:none;color:var(--fg)}
.nav{display:flex;gap:16px}
.nav-link{color:var(--muted);text-decoration:none;font-weight:600;padding:8px 10px;border-radius:8px}
.nav-link.active,.nav-link:hover{color:var(--fg);background:var(--card);border:1px solid var(--border)}
.header-actions{display:flex;gap:8px;align-items:center}
.btn.icon{font-size:1.1rem;line-height:1;border:1px solid var(--border);background:var(--card);color:var(--fg);padding:.5rem .6rem;border-radius:10px;cursor:pointer}
#burger{display:none}

/* Theme toggle icons */
.theme-toggle{position: relative;width: 40px;height: 40px;display: inline-flex;align-items: center;justify-content: center;overflow: hidden;}
.theme-toggle .icon-sun,.theme-toggle .icon-moon{position:absolute;transition: transform .35s ease, opacity .35s ease;will-change: transform, opacity;}
.theme-toggle .icon-sun{ transform: rotate(-90deg) scale(0); opacity: 0; }
.theme-toggle .icon-moon{ transform: rotate(0deg) scale(1);  opacity: 1; }
:root.light .theme-toggle .icon-sun{ transform: rotate(0deg) scale(1); opacity: 1; }
:root.light .theme-toggle .icon-moon{ transform: rotate(90deg) scale(0); opacity: 0; }

/* Buttons & Badges */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border-radius:12px;border:1px solid var(--border);background:var(--card);color:var(--fg);text-decoration:none;font-weight:700;box-shadow:var(--shadow);cursor:pointer}
.btn.primary{background:var(--accent);color:#fff;border-color:transparent}
.btn.outline{background:transparent}
.btn.small{padding:.45rem .7rem;font-weight:600;box-shadow:none}
.badges{display:flex;flex-wrap:wrap;gap:8px}
.badge{border:1px solid var(--border);padding:.35rem .6rem;border-radius:999px;background:var(--card);color:var(--muted);font-weight:600;font-size:.9rem}
.badge.outline{background:transparent}

/* Hero */
.hero{position:relative;min-height:90vh;display:flex;align-items:center}
.headline{font-size:2.6rem;margin:0 0 14px;text-align:center}
.lede{margin-top:8px;text-align:center}
.metrics{margin:10px 0 10px;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center}
.pill{border:1px solid var(--border);padding:.35rem .6rem;border-radius:999px;background:var(--card)}
.dot{opacity:.5}
.bg-blur{position:absolute;inset:auto -20% -20% -20%;height:40%;filter:blur(80px);background:radial-gradient(60% 60% at 50% 50%, rgba(114,160,255,.25), transparent 70%)}
.scroll-indicator{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);opacity:.75}
.mouse{width:28px;height:44px;border:2px solid var(--muted);border-radius:20px;display:block;position:relative}
.wheel{width:4px;height:10px;background:var(--muted);display:block;border-radius:999px;position:absolute;left:50%;transform:translateX(-50%);top:8px;animation:wheel 1.6s infinite}
@keyframes wheel{0%{opacity:0;transform:translate(-50%,0)}40%{opacity:1}100%{opacity:0;transform:translate(-50%,14px)}}

/* Grids & Cards */
.grid{display:grid;gap:20px}
.grid.one{grid-template-columns:1fr}
.grid.three{grid-template-columns:repeat(3,1fr)}
.grid.four{grid-template-columns:repeat(4,1fr)}
.cards .card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:var(--shadow);transition:transform .15s ease, box-shadow .15s ease}
.card:hover{transform:translateY(-3px)}
.card.text-center{text-align:center}
.card-title{margin:.25rem 0 .5rem;font-size:1.2rem}
.card-body{color:var(--muted)}
.card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.badge-row{margin-bottom:8px}

/* Timeline, Stats, Lists */
.timeline{display:grid;gap:16px;margin-top:10px}
.timeline-meta{color:var(--muted);margin:0 0 .5rem}
.list{padding-left:1.1rem}
.list li{margin:.35rem 0}
.stats{margin-top:22px}
.stats .stat{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px;text-align:center}
.stat-num{font-size:1.8rem;font-weight:800;color:var(--accent)}
.stat-label{color:var(--muted);font-size:.9rem}

/* Contact */
.grid.contact{grid-template-columns:1fr 1fr}
.contact-list{list-style:none;padding:0;margin:0 0 10px}
.contact-list li{display:flex;gap:6px;align-items:center;margin:6px 0}
.contact-list li span{min-width:110px;color:var(--muted)}
.input{width:100%;border:1px solid var(--border);background:var(--card);color:var(--fg);border-radius:12px;padding:.9rem}
.form-grid{grid-template-columns:1fr 1fr}

/* Education/Certs layout */
.grid.edu{grid-template-columns:1fr 1fr}
.grid.certs.one{grid-template-columns:1fr}
.wrap{flex-wrap:wrap}

/* Footer */
.site-footer{border-top:1px solid var(--border);padding:24px 0;color:var(--muted);text-align:center}

/* Utilities */
.muted{color:var(--muted)}
.small{font-size:.95rem}

/* Tabs */
.tabs{display:flex;gap:8px;justify-content:center;margin:16px 0 6px}
.tab{border:1px solid var(--border);background:var(--card);color:var(--fg);padding:.5rem .8rem;border-radius:999px;cursor:pointer}
.tab.is-active{background:var(--accent);color:#fff;border-color:transparent}

/* Progress */
.progress-block{display:flex;flex-direction:column;gap:6px}
.progress-label{font-weight:700}
.progress{position:relative;height:12px;border:1px solid var(--border);background:#20263a;border-radius:999px;overflow:hidden}
.progress-bar{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--accent);transition:width .4s ease}

/* Accordion (kept; not used now) */
.accordion .accordion-trigger{width:100%;text-align:left;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--card);font-weight:700;display:flex;justify-content:space-between;align-items:center}
.accordion .accordion-content{max-height:0;overflow:hidden;transition:max-height .25s ease;border-left:1px dashed var(--border);border-right:1px dashed var(--border);border-bottom:1px dashed var(--border);border-radius:0 0 12px 12px;padding:0 14px}
.accordion .accordion-item.open .accordion-content{max-height:360px;padding:12px 14px}
.accordion .chev{opacity:.7}

/* Carousel */
.carousel{position:relative;overflow:hidden;background:var(--card);border:1px solid var(--border);border-radius:12px;margin-bottom:14px}
.carousel-track{display:flex;transition:transform .35s ease}
.carousel-slide{min-width:100%}
.carousel-slide img{display:block;width:100%;height:auto}
.carousel-prev,.carousel-next{position:absolute;top:50%;transform:translateY(-50%);z-index:2}
.carousel-prev{left:10px}
.carousel-next{right:10px}
.carousel-dots{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:flex;gap:6px}
.carousel-dots button{width:8px;height:8px;border-radius:50%;border:1px solid var(--border);background:#fff0}

/* Toaster */
.toaster{position:fixed;right:16px;bottom:16px;display:flex;flex-direction:column;gap:8px;z-index:100}
.toast{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:10px 12px;box-shadow:var(--shadow);min-width:240px}
.toast.destructive{border-color:#9f1f16;background:rgba(217,45,32,.1)}
.toast .title{font-weight:800;margin-bottom:4px}

/* Mobile Nav Sheet */
.mnav{display:flex;flex-direction:column;gap:8px;padding:12px}
.mnav-link{display:block;padding:10px 12px;border-radius:8px;text-decoration:none;color:var(--fg)}
.mnav-link:hover{background:rgba(255,255,255,.06)}
.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:70}
.drawer{position:fixed;left:0;right:0;bottom:0;z-index:80;background:var(--card);border:1px solid var(--border);border-bottom:none;border-top-left-radius:12px;border-top-right-radius:12px;transform:translateY(100%);transition:transform .25s ease}
.drawer.open{transform:translateY(0)}
.drawer-handle{width:100px;height:6px;background:var(--muted);opacity:.35;border-radius:999px;margin:10px auto}

/* === Experience (scoped to #experience only) === */
#experience .exp-list{display:grid;gap:28px;margin-top:16px}
#experience .exp-card{position:relative;background:var(--card);border:1px solid var(--border);border-radius:16px;padding:22px;box-shadow:var(--shadow)}
#experience .exp-card .exp-accent{position:absolute;left:-1px;top:16px;bottom:16px;width:6px;background:var(--accent);border-radius:8px}
#experience .exp-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
#experience .exp-title h3{margin:0 0 4px;font-size:1.4rem;font-weight:800}
#experience .exp-title .company{color:var(--accent);text-decoration:none;font-weight:700}
#experience .exp-impact{display:inline-flex;gap:6px;align-items:center;color:var(--accent);text-decoration:none;font-weight:700;white-space:nowrap}
#experience .exp-impact svg{stroke:var(--accent)}
#experience .exp-meta{display:flex;flex-wrap:wrap;gap:16px;color:var(--muted);margin:8px 0 6px}
#experience .exp-meta .meta{display:inline-flex;gap:6px;align-items:center}
#experience .exp-bullets{margin:8px 0 10px;padding-left:0;list-style:none}
#experience .exp-bullets li{position:relative;padding-left:18px;margin:10px 0}
#experience .exp-bullets li::before{content:"";position:absolute;left:0;top:.6em;width:8px;height:8px;background:var(--accent);border-radius:50%}
#experience .chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
#experience .chip{background:rgba(114,160,255,.12);border:1px solid var(--border);color:var(--fg);padding:.35rem .6rem;border-radius:999px;font-weight:700;font-size:.9rem}
#experience #experience-stats{margin-top:24px}

/* Responsive */
@media (max-width: 1000px){
  .grid.three{grid-template-columns:repeat(2,1fr)}
  .grid.four{grid-template-columns:repeat(2,1fr)}
  .grid.edu{grid-template-columns:1fr}
  .grid.contact{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .nav{display:none}
  #burger{display:inline-flex}
}
@media (max-width: 640px){
  .headline{font-size:2.1rem}
  .section{padding:72px 0}
  .form-grid{grid-template-columns:1fr}
  .grid.three{grid-template-columns:1fr}
  #experience .exp-card{padding:18px}
  #experience .exp-list{gap:20px}
}


/* === Education (scoped) === */
#education .ed-card{
  position:relative;background:var(--card);border:1px solid var(--border);border-radius:16px;
  padding:22px;box-shadow:var(--shadow);margin:18px 0;
}
#education .ed-left{display:flex;gap:14px;align-items:flex-start}
#education .ed-icon{width:44px;height:44px;border-radius:12px;background:rgba(114,160,255,.12);display:flex;align-items:center;justify-content:center;color:var(--accent);border:1px solid var(--border)}
#education .ed-head{display:flex;flex-direction:column}
#education .ed-title{margin:0 0 4px;font-size:1.35rem;font-weight:800}
#education .ed-school{color:var(--accent);font-weight:700;text-decoration:none;margin-bottom:6px}
#education .ed-meta{display:flex;flex-wrap:wrap;gap:16px;color:var(--muted)}
#education .ed-meta .meta{display:inline-flex;gap:6px;align-items:center}
#education .ed-gpa{
  position:absolute;right:18px;top:18px;background:rgba(114,160,255,.12);border:1px solid var(--border);
  border-radius:12px;padding:10px 14px;min-width:78px;text-align:center;
}
#education .gpa-num{font-size:1.4rem;font-weight:800;color:var(--accent)}
#education .gpa-label{font-size:.8rem;color:var(--muted)}
#education .ed-desc{color:var(--muted);margin:14px 0 8px;max-width:90%}
#education .ed-keys{margin-top:6px}
#education .keys-title{font-weight:800;margin:8px 0}
#education .keys-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 40px}
#education .key{display:flex;align-items:flex-start;gap:8px}
#education .ed-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-top:.55rem}
#education .card-muted{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:28px;margin-top:24px;box-shadow:var(--shadow)}
#education .ed-focus-title{text-align:center;margin:0 0 8px;font-weight:800}
#education .ed-focus-body{text-align:center;color:var(--muted);max-width:900px;margin:0 auto}

@media (max-width: 900px){
  #education .ed-gpa{position:static;align-self:flex-start;margin-left:auto}
  #education .ed-desc{max-width:100%}
}
@media (max-width: 640px){
  #education .keys-grid{grid-template-columns:1fr}
  #education .ed-card{padding:18px}
}


/* === Certifications (scoped) === */
#certifications .cert-card{
  position:relative;background:var(--card);border:1px solid var(--border);border-radius:16px;
  padding:22px;box-shadow:var(--shadow);margin:18px 0;
}
#certifications .cert-left{display:flex;gap:14px;align-items:flex-start}
#certifications .cert-icon{width:44px;height:44px;border-radius:12px;background:rgba(114,160,255,.12);display:flex;align-items:center;justify-content:center;color:var(--accent);border:1px solid var(--border)}
#certifications .cert-head{display:flex;flex-direction:column}
#certifications .cert-title{margin:0 0 4px;font-size:1.25rem;font-weight:800}
#certifications .cert-issuer{color:var(--accent);font-weight:700;text-decoration:none;margin-bottom:6px}
#certifications .cert-verified{display:inline-flex;gap:6px;align-items:center;color:#27c17e;font-weight:700}
#certifications .cert-verified .v-icon svg{stroke:#27c17e}
#certifications .cert-desc{color:var(--muted);margin:12px 0 8px}
#certifications .cert-keys{margin-top:6px}
#certifications .keys-title{font-weight:800;margin:8px 0}
#certifications .chips{display:flex;flex-wrap:wrap;gap:8px}
#certifications .chip{background:rgba(114,160,255,.10);border:1px solid var(--border);color:var(--fg);padding:.35rem .6rem;border-radius:999px;font-weight:700;font-size:.9rem}
#certifications .card-muted{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:28px;margin-top:24px;box-shadow:var(--shadow)}
#certifications .cert-focus-title{text-align:center;margin:0 0 8px;font-weight:800}
#certifications .cert-focus-body{text-align:center;color:var(--muted);max-width:900px;margin:0 auto}

@media (max-width: 640px){
  #certifications .cert-card{padding:18px}
}


/* === Projects (scoped) === */
#projects .proj-grid{display:grid;gap:22px;grid-template-columns:repeat(3,1fr);margin-top:14px}
#projects .proj-card{background:var(--card);border:1px solid var(--border);border-radius:16px;overflow:hidden;box-shadow:var(--shadow);display:flex;flex-direction:column}
#projects .proj-media{position:relative;height:220px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));display:block}
#projects .proj-media::after{content:attr(data-initials);position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:64px;font-weight:900;color:rgba(114,160,255,.35);letter-spacing:2px}
#projects .proj-media img{width:100%;height:100%;object-fit:cover;display:block}
#projects .proj-media.has-img::after{opacity:0}
#projects .proj-body{padding:16px}
#projects .proj-title{margin:.4rem 0 .4rem;font-size:1.25rem}
#projects .proj-desc{color:var(--muted);margin:0 0 10px}
#projects .chips.small .chip{font-size:.85rem}
#projects .proj-actions{display:flex;gap:10px;margin-top:12px}
#projects .proj-footer{display:flex;flex-direction:column;gap:8px;align-items:center;margin-top:24px}
@media (max-width: 1000px){#projects .proj-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width: 640px){#projects .proj-grid{grid-template-columns:1fr}#projects .proj-media{height:190px}}


/* === Projects: hover polish & chip/badge containers (scoped) === */
#projects .proj-card{transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease}
#projects .proj-card:hover{transform:translateY(-4px);box-shadow:0 14px 40px rgba(0,0,0,.45)}

#projects .proj-media{overflow:hidden; border-bottom:1px solid var(--border)}
#projects .proj-media::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 75%);z-index:1;pointer-events:none}
#projects .proj-media img{transition:transform .35s ease, filter .35s ease;filter:saturate(.92) contrast(.98) brightness(.96)}
#projects .proj-card:hover .proj-media img{transform:scale(1.06);filter:saturate(1) contrast(1) brightness(1)}
#projects .proj-card:hover .proj-media{box-shadow:0 0 0 3px rgba(114,160,255,.45) inset}

#projects .badge.outline,
#projects .chip{
  background:rgba(255,255,255,.05);
  border-color:rgba(255,255,255,.09);
  color:var(--fg);
  transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
#projects .badge.outline:hover,
#projects .chip:hover{
  background:rgba(114,160,255,.14);
  border-color:rgba(114,160,255,.35);
  transform:translateY(-1px);
}

#projects .gh-btn{display:inline-flex;align-items:center;gap:8px}
#projects .gh-btn .gh{opacity:.95}
#projects .gh-btn:hover{background:rgba(114,160,255,.14);border-color:rgba(114,160,255,.4)}



/* === Projects: ensure chips render as individual pills with spacing === */
#projects .chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#projects .chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:.35rem .6rem;border:1px solid var(--border);border-radius:999px;
  font-weight:700;font-size:.9rem;color:var(--fg);
  background:rgba(255,255,255,.05);
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
#projects .chips.small .chip{font-size:.85rem}
#projects .chip:hover{background:rgba(114,160,255,.14);border-color:rgba(114,160,255,.35);transform:translateY(-1px)}

/* === Hero split (scoped to #home) === */
#home.hero-split .hero-grid{display:grid;grid-template-columns:420px 1fr;gap:42px;align-items:center;min-height:72vh}
#home.hero-split .portrait-wrap{position:relative;max-width:420px;aspect-ratio:1/1;border-radius:24px;overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.55), 0 8px 24px rgba(0,0,0,.25);}
#home.hero-split .ring{position:absolute;inset:-6px;border-radius:28px;box-shadow:0 0 0 6px rgba(114,160,255,.35) inset}
#home.hero-split .glow{position:absolute;inset:auto -20% -20% -20%;height:40%;filter:blur(60px);
  background:radial-gradient(60% 60% at 50% 50%, rgba(114,160,255,.35), transparent 70%)}
@media (max-width: 820px){
  #home.hero-split .hero-grid{grid-template-columns:1fr}
  #home.hero-split .hero-copy .headline, 
  #home.hero-split .hero-copy .lede {text-align:center}
  #home.hero-split .hero-copy .metrics, 
  #home.hero-split .cta {justify-content:center}
}

/* === Hero intro (scoped) === */
#home .intro-eyebrow{
  margin:0 0 6px;
  font-size:1.125rem;
  font-weight:700;
  color:var(--muted);
}

#home .intro-name{
  margin:0 0 10px;
  font-weight:900;
  letter-spacing:-0.02em;
  line-height:1.05;
  font-size:clamp(42px, 6vw, 72px);   /* scales nicely */
  color:#1b4dd8;                      /* deep blue like your reference */
}

/* optional: gradient name text — swap class to intro-name gradient if you like */
#home .intro-name.gradient{
  background:linear-gradient(90deg,#1b4dd8 0%, #5aa0ff 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

#home .headline{ /* sits beneath the big name */
  margin-top:6px;
  font-size:clamp(26px, 3.2vw, 40px);
  font-weight:800;
}

/* === Header brand: single-line name, responsive === */
header .brand{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  line-height:1;
  font-weight:900;
  font-size:1.25rem;            /* adjust if you want it smaller/larger */
  letter-spacing:-.01em;
  white-space:nowrap;            /* keep it on one line */
  word-break:keep-all;
  text-decoration:none;
  color:var(--fg);
  max-width:min(42vw, 520px);    /* don't push the menu too far */
  overflow:hidden;
  text-overflow:ellipsis;
  flex:0 1 auto;                 /* brand keeps its width, menu gets the rest */
}

header .brand-name{display:inline}
header .brand-short{display:none;font-weight:900}

/* shrink a bit as the viewport narrows */
@media (max-width: 1200px){
  header .brand{font-size:1.15rem; max-width:36vw}
}
@media (max-width: 1024px){
  header .brand{font-size:1.05rem; max-width:32vw}
}
/* on small screens, swap to the short version */
@media (max-width: 820px){
  header .brand-name{display:none}
  header .brand-short{display:inline}
}

/* === Skills: card layout (scoped to #skills) === */
#skills{position:relative}
#skills .skills-card-grid{
  display:grid; gap:28px; margin-top:18px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}
@media (max-width: 980px){ #skills .skills-card-grid{grid-template-columns:1fr} }

#skills .skill-card{
  position:relative; border-radius:18px;
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:0 24px 60px rgba(0,0,0,.08), 0 6px 20px rgba(0,0,0,.10);
  padding:18px 22px 16px;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
#skills .skill-card:hover{
  transform:translateY(-3px);
  box-shadow:0 28px 80px rgba(0,0,0,.15), 0 10px 28px rgba(0,0,0,.10);
  border-color:rgba(114,160,255,.35);
}
#skills .skill-card::before{
  content:""; position:absolute; inset:-20% -10% auto -10%; height:60%;
  background:radial-gradient(60% 60% at 50% 0%, rgba(114,160,255,.10), transparent 70%);
  pointer-events:none;
}

#skills .sc-head{display:flex; align-items:center; gap:12px; margin-bottom:10px}
#skills .sc-icon{
  display:inline-grid; place-items:center;
  width:36px; height:36px; border-radius:50%;
  background:rgba(114,160,255,.15); color:#1b4dd8;
  font-size:18px;
}
#skills .sc-title{margin:0; font-size:1.2rem; font-weight:900}

#skills .sc-list{list-style:none; margin:6px 0 0; padding:0}
#skills .sc-item{padding:12px 0 12px 14px; border-left:3px solid var(--border)}
#skills .sc-item + .sc-item{border-top:1px dashed var(--border)}
#skills .sc-item-title{font-weight:900}
#skills .sc-item-desc{color:var(--muted)}
#skills .muted{color:var(--muted)}

/* Accent variations per card */
#skills .sc-viz .sc-item{border-left-color:#ffd7b3}
#skills .sc-prog .sc-item{border-left-color:#bcd3ff}
#skills .sc-biz .sc-item{border-left-color:#e6c4ff}
#skills .sc-eng .sc-item{border-left-color:#b8f1e3}

/* === Centered + Justified copy blocks across sections === */
/* 1) Keep paragraphs that sit directly under a .section > .container
      narrow, centered on the page, and fully justified. */
:root { --copy-width: 90ch; }  /* tweak between ~70–95ch to taste */


 .section .container > p {
  max-width: var(--copy-width);   /* narrow measure for readability */
  margin-inline: auto;            /* center the paragraph block */
  text-align: justify;            /* justify lines inside the block */
  text-justify: inter-word;       /* better word spacing */
  hyphens: auto;                  /* lets browsers hyphenate to avoid gaps */
 }


/* 2) If you want the *last line* of each paragraph centered as well,
      uncomment the next line (optional, looks nice on short 1-liners). */
/* .section .container > p { text-align-last: center; } */

/* 3) Keep intros you already center-align (e.g., .center class) truly centered,
      not justified. */
.section .container > p.center {
  text-align: center;
  text-justify: auto;
  hyphens: manual;
}

/* 4) Do NOT alter paragraphs inside cards (experience/education/certs/projects).
      They should remain full width inside the card. */
.exp-card p, .edu-card p, .cert-card p, .project-card p {
  max-width: none;
  margin-inline: 0;
  text-align: initial;   /* or inherit your card’s default */
  text-justify: auto;
  hyphens: manual;
}

/* === About: centered block + justified lines (scoped & high specificity) === */
:root { --copy-width: 90ch; } /* adjust between ~70–95ch if you want */

#about .container > p,
#about .container p.body,
#about .container p.lede,
#about .container .about-text {
  max-width: var(--copy-width);
  margin-inline: auto;                 /* center the paragraph block */
  text-align: justify !important;      /* justify lines inside */
  text-justify: inter-word;
  hyphens: auto;
  text-align-last: center;             /* optional: center the last line */
}

/* If you ever add a truly centered one-liner inside About, keep it centered */
#about .container > p.center {
  text-align: center !important;
  text-justify: auto;
  hyphens: manual;
}

/* Don’t affect the cards under About */
#about .exp-card p,
#about .edu-card p,
#about .cert-card p,
#about .project-card p {
  max-width: none;
  margin-inline: 0;
  text-align: initial !important;
  text-justify: auto;
  hyphens: manual;
}
/* === Keep Contact section left-aligned and full width === */
#contact .container p,
#contact .container li,
#contact .contact-card p,
#contact .contact-card li {
  max-width: none;
  margin-inline: 0;
  text-align: left !important;
  text-align-last: auto;
  text-justify: auto;
  hyphens: manual;
}

/* Ensure the two columns align from the top (no odd vertical centering) */
#contact .contact-grid { align-items: start; }

/* Buttons/links in Contact should never justify */
#contact .btn, #contact .link-row, #contact a { text-align: left; }

/* Force the two-card layout to stretch full width and ignore global centering */
#contact .contact-cards{
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 24px !important;

  /* kill inherited centering/max-width */
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;

  /* make columns occupy full track width */
  justify-content: stretch !important;
  justify-items: stretch !important;
  align-items: start !important;
}

#contact .contact-card{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;         /* in case something set float */
}

/* If a global rule centers all direct children of .container, neutralize it here */
#contact .container > .contact-cards{
  margin-inline: 0 !important;
}

/* Keep form’s two-column grid intact */
#contact .contact-form .form-grid{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

/* Mobile: stack the cards */
@media (max-width: 900px){
  #contact .contact-cards{ grid-template-columns: 1fr !important; }
  #contact .contact-form .form-grid{ grid-template-columns: 1fr !important; }
}

/* ===== Contact: two-card layout using .grid.contact, .card and .card-1 ===== */
#contact .grid.contact{
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 24px !important;

  /* neutralize any inherited centering/max-width */
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  justify-content: stretch !important;
  justify-items: stretch !important;
  align-items: start !important;
}

/* Style BOTH cards identically (left + right) */
#contact .grid.contact > .card,
#contact .grid.contact > .card-1{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

#contact .grid.contact h3.card-title{
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

/* Optional: keep contact text left-aligned only inside this section */
#contact .card p,
#contact .card li,
#contact .card-1 p,
#contact .card-1 li{
  text-align: left !important;
  max-width: none;
  margin-inline: 0;
}

/* If your form has a two-column top row */
#contact .card-1 form .form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Mobile: stack cards and form fields */
@media (max-width: 900px){
  #contact .grid.contact{ grid-template-columns: 1fr !important; }
  #contact .card-1 form .form-grid{ grid-template-columns: 1fr !important; }
}

/* =========================================
   CONTACT — force 2 equal columns + kill centering
   Works even if global .card has margin:auto or fixed width
   ========================================= */

/* Row layout for the two cards */
#contact .grid.contact{
  /* prefer grid; we'll also fall back to flex below */
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 24px !important;

  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;

  justify-content: stretch !important;
  justify-items: stretch !important;
  align-items: start !important;
}

/* If some global CSS flips it to flex, make that work too */
@supports not (grid-template-columns: 1fr 1fr) {
  #contact .grid.contact{
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }
  #contact .grid.contact > .card,
  #contact .grid.contact > .card-1{
    flex: 1 1 480px !important;      /* wrap to one column on small widths */
  }
}

/* Style BOTH cards and kill inherited centering/widths */
#contact .grid.contact > .card,
#contact .grid.contact > .card-1{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;

  /* override any global .card rules */
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  margin-inline: 0 !important;
  float: none !important;
}

/* Titles inside each card */
#contact .grid.contact h3.card-title{
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 1.25rem;
}

/* Keep contact text left aligned only in this section */
#contact .grid.contact p,
#contact .grid.contact li{
  text-align: left !important;
  max-width: none;
  margin-inline: 0;
}

/* Form top row (name/email) side-by-side */
#contact .card-1 form .form-grid{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
}

/* Mobile: stack */
@media (max-width: 900px){
  #contact .grid.contact{
    grid-template-columns: 1fr !important;
  }
  #contact .card-1 form .form-grid{
    grid-template-columns: 1fr !important;
  }
}

/* --- CONTACT: hard place the cards in left/right columns --- */
#contact .grid.contact{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-auto-flow: row !important;          /* ensure we flow rows, not columns */
  gap: 24px !important;

  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  justify-content: stretch !important;
  justify-items: stretch !important;
  align-items: start !important;
}

/* Force explicit placement of the two cards */
#contact .grid.contact > .card{
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
}

#contact .grid.contact > .card-1{
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
}

/* Nuke any centering/fixed widths coming from global .card rules */
#contact .grid.contact > .card,
#contact .grid.contact > .card-1{
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  margin-inline: 0 !important;
  float: none !important;
  place-self: stretch !important;   /* overrides justify-self/align-self from globals */
}

/* Mobile: stack in a single column */
@media (max-width: 900px){
  #contact .grid.contact{
    grid-template-columns: 1fr !important;
  }
  #contact .grid.contact > .card,
  #contact .grid.contact > .card-1{
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

/* ===== Float-in on scroll (global) ===== */
:root{
  --reveal-distance: 22px;
  --reveal-duration: 560ms;
  --reveal-ease: cubic-bezier(.21,.61,.35,1);
}

/* Base state before reveal */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  filter: blur(1.2px);
  will-change: transform, opacity;
  transition:
    transform var(--reveal-duration) var(--reveal-ease),
    opacity   var(--reveal-duration) ease,
    filter    var(--reveal-duration) ease;
  transition-delay: var(--reveal-delay, 0ms);
}

/* When in view */
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Optional directional variants you can add if you want */
.reveal-left  { transform: translateX(calc(var(--reveal-distance) * -1)); }
.reveal-left.in-view  { transform: translateX(0); }

.reveal-right { transform: translateX(var(--reveal-distance)); }
.reveal-right.in-view { transform: translateX(0); }

/* Accessibility: disable animations for users who prefer no motion */
@media (prefers-reduced-motion: reduce){
  .reveal,
  .reveal.in-view {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}


/* Contact: make email & phone not blue */
#contact .contact-list a,
#contact .contact-list a:visited,
#contact .contact-list a:active,
#contact .contact-list a:focus {
  color: inherit !important;          /* use the surrounding text color */
  text-decoration: none;              /* remove underline */
}

/* Optional hover style */
#contact .contact-list a:hover {
  color: var(--accent) !important;    /* or inherit if you want no change */
  text-decoration: underline;         /* or none */
}
/* ====================================================Animation ==============================================================*/

/* ===== Float-in on scroll (global) ===== */
:root{
  --reveal-distance: 22px;
  --reveal-duration: 560ms;
  --reveal-ease: cubic-bezier(.21,.61,.35,1);
}

/* Base state before reveal */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  filter: blur(1.2px);
  will-change: transform, opacity;
  transition:
    transform var(--reveal-duration) var(--reveal-ease),
    opacity   var(--reveal-duration) ease,
    filter    var(--reveal-duration) ease;
  transition-delay: var(--reveal-delay, 0ms);
}

/* When in view */
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Optional directional variants you can add if you want */
.reveal-left  { transform: translateX(calc(var(--reveal-distance) * -1)); }
.reveal-left.in-view  { transform: translateX(0); }

.reveal-right { transform: translateX(var(--reveal-distance)); }
.reveal-right.in-view { transform: translateX(0); }

/* Accessibility: disable animations for users who prefer no motion */
@media (prefers-reduced-motion: reduce){
  .reveal,
  .reveal.in-view {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ===================================================================================
                             Full-bleed header + hero only
   ================================================================================= */

/* page gutter so content doesn't touch the edges */
:root{
  --page-gutter: clamp(16px, 4vw, 48px);
}

/* 1) Header: let the inner container span the full viewport width */
.site-header .container.header-inner,
.site-header .header-inner{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* 2) Hero section: make its container full-width */
#home > .container,
.section.hero > .container{
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Ensure the hero grid itself stretches edge-to-edge */
#home .hero-grid{
  width: 100% !important;
  max-width: none !important;
  justify-content: stretch !important;
}

/* If your generic .container sets special alignment on children,
   prevent hero/header from re-centering items */
.site-header .header-inner > * ,
#home .hero-grid > * {
  justify-self: stretch;
}

#home .hero-copy .accent {
  display: inline-block;
  margin-top: .5rem;
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(90deg, var(--accent), var(--accent-2, #4AA3FF));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;       /* gradient text */
}

/* Hero value proposition: center, readable width */
#home .hero-copy .value-prop,
#home .hero-copy .accent.value-prop {
  text-align: center;
  max-width: 40ch;         /* keeps the line readable */
  margin: 0.75rem auto 0;  /* centers with auto margins */
  line-height: 1.2;
}

/* optional: give it a subtle emphasis without shouting */
#home .hero-copy .value-prop {
  font-weight: 700;
  letter-spacing: .2px;
}

/* Center only the hero one-liner (under your name) */
#home .hero-copy h3 {
  display: block;
  width: 100%;
  text-align: center !important;   /* force center within the text column */
  margin-top: .5rem;
  line-height: 1.2;
}

/* optional polish for the line itself */
#home .hero-copy h3 .accent {
  font-weight: 800;
  letter-spacing: .2px;
}

.portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; /* Remove the circle effect */
}

#home.hero-split .portrait-wrap {
  max-width: 420px;
  height: 420px;
  border-radius: 24px; /* Optional: keep slight rounding on the box */
  aspect-ratio: auto;  /* Remove forced square aspect */
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 8px 24px rgba(0,0,0,.25);
}

#projects .proj-card:hover .proj-title {
  color: #72a0ff;
  transition: color 0.2s;
}
/* Header Blue when hovered or active */
header .brand:hover,
.nav-link:hover,
.nav-link.active {
  color: #1b4dd8 !important;
  background: var(--card);
  border: 1px solid var(--border);
  transition: color 0.2s;
}
/* Prevent horizontal scroll on larger screens */
html, body {
  overflow-x: hidden;
}

/* Allow horizontal scroll on screens 640px or less */
@media (max-width: 640px) {
  html, body {
    overflow-x: auto;
  }
}
#about .container > p,
#about .container p.body,
#about .container p.lede,
#about .container .about-text {
  text-align: left !important;
  text-justify: auto !important;
  hyphens: manual !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg);
  text-align: center;
  margin-bottom: 24px;
}
.card:hover {
  box-shadow: 0 0 32px 0 #1b4dd880, 0 4px 24px rgba(0,0,0,0.10);
  background: inherit;
  transition: box-shadow 0.3s cubic-bezier(.21,.61,.35,1), background 0.3s cubic-bezier(.21,.61,.35,1);
}

.grid.cards .card:hover {
  transform: translateY(-12px);
  box-shadow: 0 0 32px 0 #1b4dd880, 0 4px 24px rgba(0,0,0,0.10);
  background: inherit;
  transition: transform 0.3s cubic-bezier(.21,.61,.35,1), box-shadow 0.3s cubic-bezier(.21,.61,.35,1), background 0.3s cubic-bezier(.21,.61,.35,1);
}
.card-icon img {
  display: block;
  margin: 0 auto 8px auto;
  width: 32px;
  height: 32px;
}