/* =============================================
   SUJIT GAUTAM — style.css  (production v5)
   Font: DM Sans + DM Mono
   ============================================= */

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

/* ── THEME VARIABLES ── */
:root {
  /* Dark (default) */
  --bg:      #07070f;
  --bg2:     #0c0c1a;
  --bg3:     #111122;
  --sur:     rgba(255,255,255,0.04);
  --sur2:    rgba(255,255,255,0.08);
  --bdr:     rgba(255,255,255,0.08);
  --bdr2:    rgba(255,255,255,0.14);
  --txt:     #f0f0ff;
  --txt2:    #a8a8c8;
  --txt3:    #6868a0;
  --acc:     #6c63ff;
  --acc2:    #9d8fff;
  --glow:    rgba(108,99,255,0.22);
  --nav-bg:  rgba(7,7,15,0.88);
  --nav-h:   64px;
  --r:       10px;
  --ease:    cubic-bezier(0.16,1,0.3,1);
  --dur:     0.3s;
  /* System fonts as immediate fallback — text visible before DM Sans loads */
  --font:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:    'DM Mono', 'Courier New', monospace;
}

[data-theme="light"] {
  --bg:     #f4f4fc;
  --bg2:    #eaeaf6;
  --bg3:    #dddded;
  --sur:    rgba(0,0,0,0.04);
  --sur2:   rgba(0,0,0,0.08);
  --bdr:    rgba(0,0,0,0.09);
  --bdr2:   rgba(0,0,0,0.16);
  --txt:    #0a0a1a;
  --txt2:   #3a3a5a;
  --txt3:   #6a6a8a;
  --glow:   rgba(108,99,255,0.12);
  --nav-bg: rgba(244,244,252,0.88);
}

/* ── BASE ── */
html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur), color var(--dur);
}

::selection { background: var(--acc); color: #fff; }
a { text-decoration: none; color: inherit; }
p { color: var(--txt2); line-height: 1.75; }
strong { color: var(--txt); font-weight: 600; }
img { display: block; max-width: 100%; }

/* ── PRELOADER ── */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-ring {
  position: absolute;
  width: 52px; height: 52px;
  border: 2px solid var(--bdr);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.pl-text { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; color: var(--acc); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SCROLL CONTAINER ── */
.scroll-wrap {
  height: 100dvh;
  height: 100vh; /* fallback */
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

/* ── SNAP SECTIONS ── */
.snap-sec {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100dvh;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ── NAVBAR ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 clamp(10px, 3vw, 40px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur), border-color var(--dur), backdrop-filter var(--dur);
}
.nav.stuck {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-color: var(--bdr);
}

.nav-logo {
  font-size: clamp(15px, 3vw, 19px);
  font-weight: 900; color: var(--txt);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  margin-right: clamp(8px, 2vw, 24px);
}
.accent-dot { color: var(--acc); }

.nav-links {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(4px, 1.5vw, 28px);
  min-width: 0;
}
.nl {
  font-size: clamp(9px, 1.4vw, 13.5px);
  font-weight: 500; color: var(--txt2);
  white-space: nowrap;
  position: relative; padding: 2px 0;
  transition: color 0.2s;
  flex-shrink: 0;
}
.nl::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 2px;
  background: var(--acc); border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.nl:hover, .nl.active { color: var(--txt); }
.nl:hover::after, .nl.active::after { width: 100%; }

.nav-right {
  display: flex; align-items: center;
  gap: clamp(4px, 1vw, 10px);
  flex-shrink: 0;
  margin-left: clamp(8px, 2vw, 24px);
}
.theme-btn {
  width: clamp(28px, 4.5vw, 34px);
  height: clamp(28px, 4.5vw, 34px);
  border-radius: 50%;
  background: var(--sur); border: 1px solid var(--bdr);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--txt2);
  transition: background 0.2s, border-color 0.2s, transform 0.3s;
  flex-shrink: 0;
}
.theme-btn:hover { background: var(--sur2); border-color: var(--acc); transform: rotate(20deg); }
.icon-moon { display: none; }
[data-theme="dark"]  .icon-moon { display: block; }
[data-theme="dark"]  .icon-sun  { display: none;  }
.hamburger { display: none !important; }
.mobile-nav { display: none !important; }

/* ── SECTION SHARED ── */
.content-sec {
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 48px) 5% 48px;
  background: var(--bg);
}
.alt-sec { background: var(--bg2); }

.container { max-width: 1060px; margin: 0 auto; width: 100%; }

.sec-tag {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--acc); margin-bottom: 10px;
  font-family: var(--mono);
}
.sec-title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--txt); margin-bottom: 36px; line-height: 1.08;
}

/* ── ORB AMBIANCE ── */
.orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(90px); z-index: 0;
  animation: orb-float 12s ease-in-out infinite;
}
.o1 { width: 480px; height: 480px; background: rgba(108,99,255,0.15); top: -80px;  left: -80px; }
.o2 { width: 360px; height: 360px; background: rgba(56,189,248,0.08);  bottom: 60px; right: -40px; animation-delay: 5s; }
@keyframes orb-float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-20px) scale(1.02); } }

/* ── HERO ── */
.hero-sec {
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--nav-h) 5% 60px;
  background: var(--bg);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--bdr2) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}
.hero-center {
  position: relative; z-index: 1;
  max-width: 760px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center;
  flex-wrap: wrap; justify-content: center; gap: 7px;
  border: 1px solid rgba(108,99,255,0.25);
  background: rgba(108,99,255,0.07);
  border-radius: 16px; padding: 6px 16px;
  font-size: 11.5px; font-weight: 600; color: var(--acc2);
  margin-bottom: 28px;
  max-width: 100%;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 8px #22c55e;
  animation: bdot 2s ease-in-out infinite; flex-shrink: 0;
}
@keyframes bdot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(1.5); } }
#npl-time { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Name */
.hero-name {
  display: flex; flex-direction: column; align-items: center;
  font-size: clamp(58px, 11vw, 112px);
  font-weight: 900; letter-spacing: -0.05em;
  line-height: 0.92; margin-bottom: 20px;
}
.hero-name-first { color: var(--txt); }
.hero-name-last  { color: var(--acc); }

/* Typed row */
.hero-typed-row {
  font-size: 16px; font-weight: 500; color: var(--txt2);
  margin-bottom: 14px; min-height: 24px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.typed-label { color: var(--txt3); }
#typed       { color: var(--txt); font-weight: 600; }
.typed-cursor { color: var(--acc); animation: blink 0.9s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.hero-desc {
  font-size: 15px; color: var(--txt3);
  margin-bottom: 30px; max-width: 460px; line-height: 1.78;
}

/* Social icon buttons */
.hero-btns { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sur); border: 1px solid var(--bdr2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--txt2); font-size: 20px;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent; outline: none;
}
.icon-btn[aria-label="Facebook"]:hover, .icon-btn[aria-label="Facebook"]:focus-visible {
  background: #1877f2 !important; border-color: #1877f2 !important;
  color: #fff !important; transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(24,119,242,0.5);
}
.icon-btn[aria-label="Instagram"]:hover, .icon-btn[aria-label="Instagram"]:focus-visible {
  background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%) !important;
  border-color: transparent !important; color: #fff !important;
  transform: translateY(-3px); box-shadow: 0 6px 22px rgba(188,24,136,0.5);
}
.icon-btn[aria-label="LinkedIn"]:hover, .icon-btn[aria-label="LinkedIn"]:focus-visible {
  background: #0a66c2 !important; border-color: #0a66c2 !important;
  color: #fff !important; transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(10,102,194,0.5);
}

/* Quote */
.hero-quote {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 24px;
  background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r);
  max-width: 500px; width: 100%;
}
.quote-text   { font-size: 13px; color: var(--txt2); line-height: 1.65; text-align: center; }
.quote-author { font-size: 11px; color: var(--txt3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--mono); }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 8.5px; color: var(--txt3); text-transform: uppercase; letter-spacing: 0.2em;
  animation: cue 2.8s ease-in-out infinite; z-index: 2; pointer-events: none;
}
.cue-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--txt3), transparent); }
@keyframes cue {
  0%,100% { opacity:.35; transform: translateX(-50%) translateY(0);   }
  50%      { opacity:.8;  transform: translateX(-50%) translateY(7px); }
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px; align-items: center;
}
.about-img-wrap {
  position: relative;
  width: 100%; height: 460px;
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border: 1px solid var(--bdr);
  cursor: pointer;
}
.about-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  display: block;
  transition: transform 0.55s var(--ease), filter 0.4s ease;
}
/* Hover overlay */
.about-img-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(108,99,255,0.8) 0%, rgba(108,99,255,0.3) 40%, transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.about-img-wrap::after {
  content: 'Sujit Gautam';
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 16px 20px;
  font-size: 16px; font-weight: 700; color: #fff;
  font-family: var(--font); letter-spacing: 0.02em;
  transform: translateY(14px); opacity: 0;
  transition: transform 0.38s var(--ease), opacity 0.32s ease;
}
.about-img-wrap:hover .about-photo { transform: scale(1.05); filter: brightness(0.85); }
.about-img-wrap:hover::before      { opacity: 1; }
.about-img-wrap:hover::after       { transform: translateY(0); opacity: 1; }

.about-heading {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800; letter-spacing: -0.03em;
  color: var(--txt); padding-bottom: 12px; margin-bottom: 0;
  position: relative;
}
.about-heading::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 44px; height: 2px; background: var(--acc); border-radius: 2px;
}
.about-meta { margin: 16px 0 14px; display: flex; flex-direction: column; gap: 4px; }
.about-meta p { font-size: 14px; color: var(--txt2); line-height: 1.5; }
.about-meta strong { color: var(--txt); font-weight: 600; }
.about-paras { margin-bottom: 22px; }
.about-paras p { font-size: 14px; color: var(--txt2); margin-bottom: 10px; line-height: 1.78; }
.about-paras strong { color: var(--txt); }
.btn-about-contact {
  display: inline-block; padding: 10px 26px;
  border: 1.5px solid var(--bdr2); color: var(--txt);
  font-size: 13.5px; font-weight: 600;
  font-family: var(--font); border-radius: 4px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-about-contact:hover { background: var(--acc); border-color: var(--acc); color: #fff; transform: translateY(-2px); }

/* ── SKILLS ── */
.skills-grid {
  display: flex; flex-wrap: wrap;
  gap: 20px; justify-content: center;
}
.skill-tile {
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.skill-tile:hover {
  border-color: var(--acc); transform: translateY(-4px);
  box-shadow: 0 10px 28px var(--glow);
}
.skill-tile img { width: 56px; height: 56px; pointer-events: none; }

/* ── PROJECTS ── */
.proj-list { display: flex; flex-direction: column; gap: 14px; }
.proj-item {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 22px 24px;
  background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.proj-item:hover { border-color: var(--acc); transform: translateY(-2px); box-shadow: 0 8px 28px var(--glow); }
.proj-num { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: var(--txt3); font-family: var(--mono); flex-shrink: 0; padding-top: 3px; }
.proj-body h3 { font-size: 16px; font-weight: 700; color: var(--txt); margin-bottom: 7px; }
.proj-body p  { font-size: 13.5px; color: var(--txt2); line-height: 1.7; margin-bottom: 12px; }
.proj-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.proj-tags span { font-size: 11px; font-weight: 500; color: var(--txt2); background: var(--sur2); border: 1px solid var(--bdr); border-radius: 999px; padding: 3px 10px; }
.proj-tags .wip { color: var(--acc2); background: rgba(108,99,255,0.08); border-color: rgba(108,99,255,0.18); }

/* ── EDUCATION ── */
.edu-list { display: flex; flex-direction: column; gap: 16px; }
.edu-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 22px;
  background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r);
  transition: border-color 0.2s, transform 0.2s;
}
.edu-item:hover { border-color: var(--acc); transform: translateX(4px); }
.edu-logo-box {
  flex-shrink: 0; width: 64px; height: 64px;
  background: #fff; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bdr); overflow: hidden; padding: 6px;
}
.edu-logo-circle { border-radius: 50%; }
.edu-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.edu-year { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--acc); margin-bottom: 4px; font-family: var(--mono); }
.edu-detail h3  { font-size: 16px; font-weight: 700; color: var(--txt); margin-bottom: 2px; }
.edu-org        { font-size: 13.5px; font-weight: 600; color: var(--txt2); margin-bottom: 2px; }
.edu-org-sub    { font-size: 11.5px; color: var(--txt3); margin-bottom: 8px; }
.edu-detail p   { font-size: 13px; color: var(--txt3); line-height: 1.65; }

/* ── CONTACT SECTION ── */
.contact-sec {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.contact-inner {
  flex: 1;
  padding: calc(var(--nav-h) + 40px) 5% 20px;
  max-width: 1060px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column;
  min-height: 0;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 48px; align-items: start;
  flex: 1; min-height: 0;
}
.contact-intro { font-size: 14.5px; color: var(--txt2); line-height: 1.75; margin-bottom: 20px; }
.clinks { display: flex; flex-direction: column; gap: 9px; }
.clink {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  background: var(--sur); border: 1px solid var(--bdr); border-radius: var(--r);
  transition: border-color 0.2s, transform 0.2s;
}
.clink:hover { border-color: var(--acc); transform: translateX(3px); }
.clink-ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(108,99,255,0.09); border: 1px solid rgba(108,99,255,0.16);
  display: flex; align-items: center; justify-content: center; color: var(--acc2);
  flex-shrink: 0;
}
.clink-lbl { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--txt3); font-weight: 700; }
.clink-val { font-size: 13px; font-weight: 500; color: var(--txt); margin-top: 1px; }

/* ── CONTACT FORM ── */
.contact-form {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--sur); border: 1px solid var(--bdr);
  border-radius: 14px; padding: 24px 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg { position: relative; }
.fg input, .fg textarea {
  width: 100%; background: var(--bg2);
  border: 1px solid var(--bdr); border-radius: 8px;
  padding: 17px 12px 7px;
  font-size: 13.5px; font-family: var(--font); color: var(--txt);
  outline: none; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.fg textarea { padding-top: 20px; }
.fg input::placeholder, .fg textarea::placeholder { color: transparent; }
.fg input:focus, .fg textarea:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--glow); }
.fg label {
  position: absolute; top: 12px; left: 12px;
  font-size: 12.5px; color: var(--txt3); font-weight: 500; pointer-events: none;
  transition: top 0.18s, font-size 0.18s, color 0.18s;
}
.fg input:not(:placeholder-shown) + label,
.fg input:focus + label,
.fg textarea:not(:placeholder-shown) + label,
.fg textarea:focus + label { top: 3px; font-size: 9px; color: var(--acc); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.ferr { display: block; font-size: 10.5px; color: #f87171; margin-top: 3px; min-height: 14px; }

.form-submit {
  background: var(--acc); color: #fff; border: none; border-radius: 8px;
  padding: 12px 20px; font-size: 13.5px; font-weight: 700; font-family: var(--font);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  box-shadow: 0 4px 16px var(--glow);
}
.form-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 22px var(--glow); background: var(--acc2); }
.form-submit:disabled { opacity: 0.55; cursor: not-allowed; }
.form-submit svg { flex-shrink: 0; transition: transform 0.2s; }
.form-submit:hover:not(:disabled) svg { transform: translateX(4px); }

.countdown { font-size: 11px; color: var(--txt3); text-align: center; min-height: 14px; }
.form-ok {
  display: none; text-align: center; padding: 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500;
  background: rgba(34,197,94,0.09); border: 1px solid rgba(34,197,94,0.22); color: #4ade80;
}
.form-ok.show { display: block; }

/* ── FOOTER ── */
.footer {
  flex-shrink: 0;
  border-top: 1px solid var(--bdr);
  padding: 14px 5%;
  background: var(--bg3);
}
.footer-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 11.5px; color: var(--txt3); }
.socials { display: flex; gap: 6px; }
.soc {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--sur); border: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: center; color: var(--txt2);
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.22s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent; outline: none;
}
.soc[aria-label="LinkedIn"]:hover, .soc[aria-label="LinkedIn"]:focus-visible {
  background: #0a66c2 !important; border-color: #0a66c2 !important;
  color: #fff !important; transform: translateY(-2px); box-shadow: 0 5px 18px rgba(10,102,194,0.5);
}
.soc[aria-label="Instagram"]:hover, .soc[aria-label="Instagram"]:focus-visible {
  background: linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%) !important;
  border-color: transparent !important; color: #fff !important;
  transform: translateY(-2px); box-shadow: 0 5px 18px rgba(188,24,136,0.5);
}
.soc[aria-label="Facebook"]:hover, .soc[aria-label="Facebook"]:focus-visible {
  background: #1877f2 !important; border-color: #1877f2 !important;
  color: #fff !important; transform: translateY(-2px); box-shadow: 0 5px 18px rgba(24,119,242,0.5);
}
.soc[aria-label="WhatsApp"]:hover, .soc[aria-label="WhatsApp"]:focus-visible {
  background: #25d366 !important; border-color: #25d366 !important;
  color: #fff !important; transform: translateY(-2px); box-shadow: 0 5px 18px rgba(37,211,102,0.5);
}

/* ── SIDE DOTS ── */
.side-dots {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 8px;
}
.sd {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bdr2); border: none; cursor: pointer; padding: 0;
  transition: background 0.25s, height 0.25s, border-radius 0.25s;
}
.sd.active { background: var(--acc); height: 20px; border-radius: 3px; box-shadow: 0 0 8px var(--glow); }
.sd:hover:not(.active) { background: var(--txt3); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.vis { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* ── TABLET 960px ── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-img-wrap { height: 260px; }
  .about-photo { object-position: center 20%; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .side-dots { display: none; }
}

/* ── MOBILE 768px ── */
@media (max-width: 768px) {
  :root { --nav-h: 52px; }

  /* Sections */
  .snap-sec {
    height: 100dvh; height: 100vh;
    min-height: 100dvh; min-height: 100vh;
  }

  /* Content sections */
  .content-sec {
    padding: calc(var(--nav-h) + 14px) 4% 12px;
    justify-content: flex-start;
  }

  /* ── ABOUT ── */
  .about-grid {
    display: flex; flex-direction: column; gap: 12px;
    height: calc(100dvh - var(--nav-h) - 26px);
    height: calc(100vh  - var(--nav-h) - 26px);
    overflow: hidden;
  }
  .about-photo-col { flex-shrink: 0; }
  .about-img-wrap {
    width: 100%; height: 190px;
    aspect-ratio: unset; border-radius: 10px;
  }
  .about-photo { object-position: center 18%; }
  .about-text {
    flex: 1; display: flex; flex-direction: column;
    justify-content: flex-start; overflow: hidden; min-height: 0;
  }
  .about-heading { font-size: 19px; padding-bottom: 7px; }
  .about-heading::after { width: 32px; }
  .about-meta { margin: 7px 0 7px; gap: 2px; }
  .about-meta p { font-size: 12px; }
  .about-paras { margin-bottom: 8px; overflow: hidden; }
  .about-paras p { font-size: 11.5px; line-height: 1.5; margin-bottom: 5px; }
  .btn-about-contact { padding: 7px 18px; font-size: 12px; align-self: flex-start; margin-top: auto; }

  /* ── CONTACT ── */
  .contact-sec {
    height: 100dvh; height: 100vh;
    overflow: hidden;
  }
  .contact-inner {
    flex: 1; min-height: 0;
    padding: calc(var(--nav-h) + 10px) 4% 0;
  }
  .contact-inner .sec-tag  { margin-bottom: 3px; font-size: 9px; }
  .contact-inner .sec-title { margin-bottom: 10px; font-size: 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 8px; flex: 1; min-height: 0; overflow: hidden; }
  .contact-intro { font-size: 12px; line-height: 1.5; margin-bottom: 6px; }
  .clinks { gap: 5px; }
  .clink { padding: 7px 10px; }
  .clink-ic { width: 26px; height: 26px; border-radius: 6px; }
  .clink-ic svg { width: 12px; height: 12px; }
  .clink-lbl { font-size: 8px; }
  .clink-val { font-size: 11px; }
  .contact-form { padding: 10px; gap: 6px; border-radius: 10px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 7px; }
  .fg input, .fg textarea { padding: 14px 10px 5px; font-size: 12px; }
  .fg textarea { min-height: 50px; max-height: 68px; resize: none; }
  .fg label { font-size: 11px; top: 10px; left: 10px; }
  .fg input:not(:placeholder-shown) + label,
  .fg input:focus + label,
  .fg textarea:not(:placeholder-shown) + label,
  .fg textarea:focus + label { top: 2px; font-size: 8px; }
  .ferr { font-size: 9px; min-height: 10px; }
  .form-submit { padding: 9px 14px; font-size: 12px; }
  .countdown { font-size: 9.5px; min-height: 10px; }

  /* ── FOOTER ── */
  .footer { padding: 9px 4%; flex-shrink: 0; }
  .footer-inner { flex-direction: row; gap: 12px; justify-content: center; }
  .footer-copy { font-size: 10.5px; }
  .soc { width: 28px; height: 28px; border-radius: 6px; }
  .socials { gap: 5px; }

  /* ── GENERAL ── */
  .sec-title { font-size: clamp(22px, 6vw, 34px); margin-bottom: 16px; }
  .sec-tag { font-size: 9.5px; margin-bottom: 5px; }
  .hero-sec { padding-top: calc(var(--nav-h) + 10px); }
  .hero-name { font-size: clamp(36px, 11vw, 60px); }
  .hero-typed-row { font-size: 14px; }
  .hero-desc { font-size: 13.5px; margin-bottom: 20px; }
  .hero-quote { padding: 10px 16px; max-width: 100%; }
  .quote-text { font-size: 12px; }
  .quote-author { font-size: 10px; }
  .skills-grid { gap: 14px; }
  .skill-tile { width: 88px; height: 88px; }
  .skill-tile img { width: 48px; height: 48px; }
  .edu-item { flex-direction: column; gap: 10px; padding: 14px; }
  .edu-logo-box { width: 52px; height: 52px; }
  .edu-detail h3 { font-size: 14px; }
  .edu-org { font-size: 12px; }
  .edu-org-sub { font-size: 10.5px; }
  .edu-detail p { font-size: 11.5px; line-height: 1.5; }
  .edu-year { font-size: 9px; }
  .proj-item { padding: 14px; gap: 12px; }
  .proj-body h3 { font-size: 14px; }
  .proj-body p { font-size: 12px; margin-bottom: 8px; }
  .proj-tags span { font-size: 10px; }
}

/* ── SMALL PHONES 480px ── */
@media (max-width: 480px) {
  :root { --nav-h: 46px; }
  .hero-btns { gap: 10px; }
  .icon-btn { width: 40px; height: 40px; font-size: 18px; }
  .about-img-wrap { height: 160px; }
  .about-heading { font-size: 17px; }
  .skills-grid { gap: 12px; }
  .skill-tile { width: 78px; height: 78px; }
  .skill-tile img { width: 42px; height: 42px; }
}

/* ── TINY PHONES 320–380px ── */
@media (max-width: 380px) {
  :root { --nav-h: 42px; }
  .nl { font-size: 8px; }
  .nav-links { gap: 3px; }
  .hero-name { font-size: clamp(30px, 10vw, 48px); }
  .hero-typed-row { font-size: 12px; }
  .hero-desc { font-size: 12px; }
  .about-img-wrap { height: 130px; }
  .about-heading { font-size: 15px; }
  .about-meta p { font-size: 11px; }
  .about-paras p { font-size: 10.5px; line-height: 1.45; margin-bottom: 4px; }
  .btn-about-contact { padding: 5px 12px; font-size: 10.5px; }
  .skill-tile { width: 68px; height: 68px; }
  .skill-tile img { width: 36px; height: 36px; }
  .proj-item { padding: 12px 10px; gap: 10px; }
  .soc { width: 26px; height: 26px; }
}

/* ── REDUCE MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
