/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white:   #ffffff;
  --off:     #f7f7f7;
  --black:   #0a0a0a;
  --grey:    #6b6b6b;
  --lgrey:   #e8e8e8;
  --accent:  #0066FF;
  --accent2: #0052cc;
  --r:       12px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
.serif-italic {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 800;
}
.accent      { color: var(--accent); }
.accent-bg   { background: var(--accent); color: #fff; }
.light       { color: rgba(255,255,255,.9); }

/* ─── UTILITY ─── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 100px 0; }
.section-tinted { background: var(--off); }

/* ─── BUTTONS ─── */
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: .9rem; border: none;
  text-decoration: none; cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-accent:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,102,255,.3);
}
.btn-accent.btn-lg { padding: 15px 36px; font-size: .95rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 36px; border-radius: 100px;
  border: 2px solid var(--black);
  background: transparent; color: var(--black);
  font-weight: 700; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: all .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-outline:hover {
  background: var(--black); color: var(--white);
  transform: translateY(-2px);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  transition: all .4s;
}
.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lgrey);
  padding: 14px 48px;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.nav-logo {
  font-size: 1.3rem; font-weight: 900;
  letter-spacing: -1px; text-decoration: none; color: var(--black);
}
.logo-dot { font-size: 1.6rem; line-height: 1; }
.nav-links { display: flex; list-style: none; gap: 36px; }
.nav-links a {
  color: var(--grey); text-decoration: none;
  font-size: .85rem; font-weight: 500; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-avail {
  display: flex; align-items: center; gap: 6px;
  font-size: .75rem; color: var(--grey); font-weight: 500;
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 6px #22c55e; animation: ap 2s ease-in-out infinite;
}
@keyframes ap { 0%,100%{opacity:1;} 50%{opacity:.4;} }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--black); border-radius: 1px; transition: .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 120px 80px 80px;
  max-width: 1400px; margin: 0 auto;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  border: 1.5px solid var(--lgrey);
  font-size: .75rem; font-weight: 500; color: var(--grey);
  margin-bottom: 28px;
}
.tag-dot {
  width: 7px; height: 7px; border-radius: 50%;
  animation: ap 2s ease-in-out infinite;
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900; line-height: .97;
  letter-spacing: -3px; margin-bottom: 24px;
}
.hero-body {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: var(--grey); line-height: 1.8;
  max-width: 480px; margin-bottom: 36px;
}
.hero-body strong { color: var(--black); font-weight: 600; }
.hero-ctas {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px;
}
.hero-facts {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--lgrey); border-radius: var(--r);
  overflow: hidden; width: fit-content;
}
.hfact { padding: 14px 20px; text-align: center; }
.hfact-n {
  display: block; font-size: 1.4rem; font-weight: 900;
  line-height: 1; font-family: 'Playfair Display', serif; margin-bottom: 4px;
}
.hfact-l { font-size: .62rem; color: var(--grey); text-transform: uppercase; letter-spacing: 1px; }
.hfact-sep { width: 1.5px; background: var(--lgrey); align-self: stretch; }

/* GEO SVG */
.hero-right {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.geo-wrap {
  position: relative; width: 420px; height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.geo-svg {
  width: 100%; height: 100%;
  animation: geoRotate 40s linear infinite;
}
@keyframes geoRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.geo-spin {
  animation: spinOnly 12s linear infinite;
  transform-origin: 240px 240px;
}
@keyframes spinOnly {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
.geo-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-size: 1.1rem; font-weight: 900; color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 4px; text-transform: uppercase;
  pointer-events: none;
}
.geo-sublabel {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, 20%);
  font-size: .62rem; color: var(--grey);
  letter-spacing: 2px; text-transform: uppercase;
  pointer-events: none;
}

/* ─── MARQUEE ─── */
.marquee-wrap {
  border-top: 1.5px solid var(--lgrey);
  border-bottom: 1.5px solid var(--lgrey);
  overflow: hidden; padding: 14px 0; background: var(--white);
}
.marquee-track {
  display: flex; gap: 32px; width: max-content;
  animation: marquee 30s linear infinite;
  font-size: .82rem; font-weight: 500; color: var(--grey);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.msep { font-size: .6rem; opacity: .6; }

/* ─── SECTION HEADER ─── */
.section-head { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 56px; }
.section-index {
  font-size: .72rem; font-weight: 700; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px; margin-top: 8px; flex-shrink: 0;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; letter-spacing: -2px; line-height: 1.0;
  flex: 1;
}
.section-desc {
  max-width: 320px; color: var(--grey);
  font-size: .88rem; line-height: 1.7; margin-top: 8px; flex-shrink: 0;
}

/* ─── CARDS ─── */
.cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px;
  border: 1.5px solid var(--lgrey); background: var(--lgrey);
}
.card {
  background: var(--white); padding: 36px;
  transition: background .3s;
}
.card:hover { background: var(--off); }
.card-wide  { grid-column: span 2; }
.card-dark  { background: var(--black); }
.card-dark:hover { background: #111; }
.card-accent { border-top: 3px solid var(--accent); }

.card-num {
  font-size: .68rem; font-weight: 700; color: var(--grey);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 2px; margin-bottom: 16px;
}
.card-num.light { color: rgba(255,255,255,.4); }
.card-icon {
  font-size: 1.3rem; margin-bottom: 14px; display: block;
}
.card-icon.light { color: rgba(255,255,255,.7); }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.card p  { font-size: .85rem; color: var(--grey); line-height: 1.7; margin-bottom: 16px; }
.card .light { color: rgba(255,255,255,.7) !important; }
.card-tag {
  display: inline-block; padding: 3px 10px;
  border: 1.5px solid var(--lgrey); border-radius: 4px;
  font-size: .67rem; color: var(--grey); font-weight: 500;
}
.card-tag-light {
  display: inline-block; padding: 3px 10px;
  border: 1.5px solid rgba(255,255,255,.2); border-radius: 4px;
  font-size: .67rem; color: rgba(255,255,255,.5); font-weight: 500;
}

/* ─── SKILLS ─── */
.skills-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px;
}
.skill-main {
  border: 1.5px solid var(--lgrey); border-radius: var(--r);
  padding: 36px; background: var(--white);
}
.skill-main-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.sk-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; flex-shrink: 0;
}
.skill-main h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.sk-sub { font-size: .72rem; color: var(--grey); }

.sk-bars { display: flex; flex-direction: column; gap: 14px; }
.sk-bar-row {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 10px; font-size: .75rem; color: var(--grey);
}
.sk-bar-row.sm { grid-template-columns: 1fr auto; }
.sk-track {
  height: 3px; background: var(--lgrey); border-radius: 100px; overflow: hidden;
}
.sk-fill {
  height: 100%; width: 0; border-radius: 100px;
  background: var(--accent);
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
}
.sk-pct { font-size: .72rem; font-weight: 700; min-width: 24px; text-align: right; }

.skill-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.sk-card {
  border: 1.5px solid var(--lgrey); border-radius: var(--r);
  padding: 24px; background: var(--white);
  transition: border-color .3s, box-shadow .3s;
}
.sk-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(0,102,255,.08); }
.sk-card-icon { font-size: 1.1rem; margin-bottom: 10px; }
.sk-card h4 { font-size: .88rem; font-weight: 700; margin-bottom: 12px; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.sk-chips span {
  padding: 3px 8px; border-radius: 5px;
  border: 1.5px solid var(--lgrey);
  font-size: .65rem; color: var(--grey);
}

.tech-cloud {
  border: 1.5px solid var(--lgrey); border-radius: var(--r);
  padding: 28px; background: var(--white);
}
.tc-label {
  font-size: .65rem; font-weight: 700; color: var(--grey);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; display: block;
}
.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-chips span {
  padding: 5px 14px; border-radius: 100px;
  border: 1.5px solid var(--lgrey);
  font-size: .73rem; color: var(--grey); font-weight: 500;
  transition: all .2s; cursor: default;
}
.tc-chips span:hover { border-color: var(--accent); color: var(--accent); background: rgba(0,102,255,.04); }

/* ─── PROJECTS ─── */
.proj-list { display: flex; flex-direction: column; }
.proj-item {
  display: grid; grid-template-columns: 80px 1fr;
  border-bottom: 1.5px solid var(--lgrey);
  padding: 40px 0; gap: 32px; align-items: start;
  transition: background .2s;
}
.proj-item:first-child { border-top: 1.5px solid var(--lgrey); }
.proj-item:hover { background: var(--off); padding-left: 16px; padding-right: 16px; margin: 0 -16px; }

.proj-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-top: 4px; }
.proj-num {
  font-size: 1.8rem; font-weight: 900;
  font-family: 'Playfair Display', serif; line-height: 1;
}
.proj-badge {
  padding: 2px 8px; border-radius: 4px;
  font-size: .6rem; font-weight: 700; letter-spacing: .5px;
}

.proj-title-row {
  display: flex; align-items: baseline; gap: 14px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.proj-body h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px; }
.proj-type { font-size: .75rem; color: var(--grey); font-weight: 500; }
.proj-body p {
  font-size: .88rem; color: var(--grey); line-height: 1.75; margin-bottom: 14px;
}
.proj-achieve {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: .83rem; color: var(--black); font-weight: 500;
  margin-bottom: 18px; line-height: 1.5;
}
.proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tags span {
  padding: 4px 10px; border-radius: 100px;
  border: 1.5px solid var(--lgrey);
  font-size: .68rem; color: var(--grey); font-weight: 500;
}
.proj-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid var(--black);
  color: var(--black); text-decoration: none;
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  transition: all .2s; -webkit-tap-highlight-color: transparent;
}
.proj-link:hover { background: var(--black); color: var(--white); }

/* ─── EDUCATION ─── */
.edu-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.5px;
  border: 1.5px solid var(--lgrey); background: var(--lgrey);
}
.edu-card { background: var(--white); padding: 32px; transition: background .25s; }
.edu-card:hover { background: var(--off); }
.edu-main { border-left: 3px solid var(--accent); }
.edu-year {
  font-size: .7rem; font-weight: 700; letter-spacing: 2px;
  font-family: 'JetBrains Mono', monospace; margin-bottom: 10px; display: block;
}
.edu-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 5px; }
.edu-org     { font-size: .79rem; color: var(--grey); margin-bottom: 14px; }
.edu-score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.edu-score {
  padding: 3px 12px; border-radius: 4px;
  font-size: .78rem; font-weight: 800;
}
.edu-dist { font-size: .68rem; color: var(--grey); text-transform: uppercase; letter-spacing: 1px; }
.edu-subjects { display: flex; flex-wrap: wrap; gap: 5px; }
.edu-subjects span {
  padding: 2px 8px; border-radius: 4px;
  border: 1.5px solid var(--lgrey);
  font-size: .63rem; color: var(--grey);
}

/* ─── CONTACT ─── */
.contact-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact-desc { font-size: .92rem; color: var(--grey); line-height: 1.8; margin-bottom: 36px; }
.contact-links { display: flex; flex-direction: column; gap: 0; }
.clink {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0; border-bottom: 1.5px solid var(--lgrey);
  text-decoration: none; color: var(--black); transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.clink:last-child { border-bottom: none; }
.clink:hover { color: var(--accent); padding-left: 6px; }
.clink.no-hover { pointer-events: none; }
.clink i { font-size: 1rem; width: 20px; flex-shrink: 0; }
.cl-label { display: block; font-size: .62rem; color: var(--grey); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; }
.cl-val   { font-size: .85rem; font-weight: 500; }

.cform { display: flex; flex-direction: column; gap: 0; }
.fg { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.fg label {
  font-size: .7rem; font-weight: 600; color: var(--black);
  text-transform: uppercase; letter-spacing: 1px;
}
.fg input, .fg textarea {
  padding: 13px 16px; border-radius: var(--r);
  border: 1.5px solid var(--lgrey);
  background: var(--white); color: var(--black);
  font-size: .9rem; font-family: 'Inter', sans-serif;
  outline: none; resize: none; transition: border-color .2s;
  -webkit-appearance: none;
}
.fg input:focus, .fg textarea:focus { border-color: var(--accent); }
.fg input::placeholder, .fg textarea::placeholder { color: #bbb; }
.fnote { margin-top: 10px; font-size: .78rem; color: var(--accent); min-height: 18px; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1.5px solid var(--lgrey);
  padding: 36px 0; background: var(--white);
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer-inner p { font-size: .78rem; color: var(--grey); margin-top: 4px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: .8rem; color: var(--grey); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ─── REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 110px 28px 60px; text-align: center; }
  .hero-body { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-facts { margin: 0 auto; }
  .hero-right { display: none; }
  .skills-layout { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .navbar.scrolled { padding: 10px 20px; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(20px);
    padding: 90px 32px 32px; gap: 24px; z-index: 998; align-items: flex-start;
  }
  .nav-links.open a { font-size: 1.3rem; color: var(--black); }
  .cards-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .skill-cards { grid-template-columns: 1fr; }
  .proj-item { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .proj-num { font-size: 1.2rem; }
  .section-head { flex-direction: column; gap: 12px; }
  .section-desc { max-width: 100%; }
  .hero-facts { flex-wrap: wrap; width: 100%; }
  .hfact { min-width: 40%; }
  .hfact-sep { display: none; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-accent.btn-lg, .btn-outline { width: 100%; justify-content: center; }
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
}
