/* ============================================================
   Hari Chintha — Portfolio
   A grab-bag of "fancy dev portfolio" tricks, hand-rolled:
   - preloader (Awwwards-style % counter)
   - custom cursor that grows on hover (agency-site style)
   - animated gradient-mesh blobs + constellation canvas (Stripe/Linear-style hero)
   - floating glass pill nav w/ numbered links (Linear/Raycast + Brittany Chiang style)
   - infinite marquee ticker
   - spotlight-glow + 3D tilt cards (Aceternity-style)
   - magnetic + tactile "pressable" buttons (Josh Comeau-style)
   - scroll progress bar, back-to-top, grain overlay
   ============================================================ */

:root {
  --bg: #f7f8fb;
  --bg-alt: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --text: #14161c;
  --text-soft: #4a5164;
  --text-mute: #8a91a6;
  --border: #e3e7f0;
  --accent: #0e9f8e;
  --accent-2: #4f6bff;
  --accent-3: #ff6b6b;
  --accent-soft: rgba(14, 159, 142, 0.12);
  --shadow: 0 10px 40px -12px rgba(20, 30, 60, 0.18);
  --shadow-sm: 0 4px 18px -8px rgba(20, 30, 60, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --nav-h: 68px;
  --grain-opacity: 0.05;
}

html[data-theme="dark"] {
  --bg: #0a0b10;
  --bg-alt: #0e1017;
  --surface: #12141d;
  --surface-2: #171a24;
  --text: #eef1f8;
  --text-soft: #b6bdd0;
  --text-mute: #7a819a;
  --border: #242836;
  --accent: #2dd4bf;
  --accent-2: #7c8fff;
  --accent-3: #ff8a8a;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 6px 24px -12px rgba(0, 0, 0, 0.55);
  --grain-opacity: 0.06;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}

h1, h2, h3, .hero__name, .nav__brand {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

::selection { background: var(--accent); color: #05221e; }

/* ---------- CUSTOM CURSOR ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 7px; height: 7px; background: var(--accent); opacity: 0; }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid var(--accent);
  opacity: 0; transition: width .25s, height .25s, border-color .25s, background .25s, opacity .2s;
}
html.cursor-ready .cursor-dot, html.cursor-ready .cursor-ring { opacity: 1; }
html.cursor-ready, html.cursor-ready * { cursor: none !important; }
.cursor-ring.hover {
  width: 56px; height: 56px;
  background: var(--accent-soft); border-color: transparent;
}
.cursor-ring.click { width: 26px; height: 26px; }

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform .7s cubic-bezier(.76,0,.24,1), visibility .7s;
}
.preloader.done { transform: translateY(-100%); visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.preloader__logo {
  font-family: "Space Grotesk", sans-serif; font-size: 2rem; font-weight: 700; color: var(--text);
  letter-spacing: -.02em;
}
.preloader__logo span { color: var(--accent); }
.preloader__bar { width: 180px; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.preloader__bar span {
  display: block; height: 100%; width: 0%; background: var(--accent);
  transition: width .15s ease-out;
}
.preloader__count {
  font-family: "JetBrains Mono", monospace; font-size: .8rem; color: var(--text-mute); letter-spacing: .05em;
}

/* ---------- SCROLL PROGRESS ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 9998; transition: width .1s linear;
}

/* ---------- GRAIN OVERLAY ---------- */
.noise-overlay {
  position: fixed; inset: -100px; z-index: 9997; pointer-events: none;
  opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- NAV (floating glass pill) ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
  width: min(880px, 92%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 8px 22px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, background .3s, top .3s;
}
.nav.scrolled { box-shadow: var(--shadow); }

.nav__brand { font-size: 1.25rem; font-weight: 700; }
.nav__brand span { color: var(--accent); }

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  position: relative;
  display: flex; align-items: baseline; gap: 5px;
  padding: 9px 14px;
  font-size: .88rem; font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav__links a em {
  font-style: normal; font-family: "JetBrains Mono", monospace;
  font-size: .68rem; color: var(--accent); opacity: .8;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a.active { color: var(--text); background: var(--accent-soft); }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text-soft);
  cursor: pointer; transition: .2s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(20deg); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

.nav__mobile {
  display: none;
  position: fixed; top: 74px; left: 50%; transform: translateX(-50%) translateY(-12px);
  width: min(280px, 90%); flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 12px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  z-index: 99;
}
.nav__mobile.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__mobile a { padding: 10px 14px; border-radius: 10px; color: var(--text-soft); font-weight: 500; }
.nav__mobile a:hover, .nav__mobile a.active { background: var(--accent-soft); color: var(--text); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
}

.blob {
  position: absolute; border-radius: 50%; filter: blur(70px);
  opacity: .5; will-change: transform;
}
.blob--1 {
  width: 42vw; height: 42vw; left: -10%; top: -10%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  animation: blobMove1 18s ease-in-out infinite;
}
.blob--2 {
  width: 34vw; height: 34vw; right: -8%; top: 8%;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  animation: blobMove2 22s ease-in-out infinite;
}
.blob--3 {
  width: 30vw; height: 30vw; left: 30%; bottom: -18%;
  background: radial-gradient(circle, var(--accent-3), transparent 70%);
  opacity: .25;
  animation: blobMove3 26s ease-in-out infinite;
}
@keyframes blobMove1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.15); }
}
@keyframes blobMove2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, 6%) scale(1.1); }
}
@keyframes blobMove3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -6%) scale(1.2); }
}

.hero__particles {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
}

.hero__three {
  position: absolute; z-index: 0;
  top: 8%; right: 4%; width: 340px; height: 340px;
  opacity: .8; pointer-events: none;
}
@media (max-width: 980px) { .hero__three { display: none; } }

.hero__inner { position: relative; z-index: 1; }

.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 500; color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(14,159,142,.55); }
  70% { box-shadow: 0 0 0 9px rgba(14,159,142,0); }
  100% { box-shadow: 0 0 0 0 rgba(14,159,142,0); }
}

.hero__eyebrow {
  color: var(--accent); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: .85rem; margin-bottom: 14px;
  font-family: "JetBrains Mono", monospace;
}
.hero__name {
  font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 700;
  display: flex; flex-wrap: wrap;
}
.hero__name .char {
  display: inline-block;
  opacity: 0; transform: translateY(60%) rotate(6deg);
  animation: charIn .7s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--i) * 28ms + .3s);
}
.hero__name .char.space { width: .3em; }
@keyframes charIn { to { opacity: 1; transform: translateY(0) rotate(0); } }

.hero__role {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  color: var(--text-soft); font-weight: 600;
  margin: 10px 0 22px; min-height: 1.4em;
}
#typed {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 5s linear infinite;
}
@keyframes gradientShift { to { background-position: 200% center; } }
.type-cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__tagline { max-width: 620px; color: var(--text-soft); font-size: 1.08rem; }
.hero__tagline strong { color: var(--text); }

.hero__cta { display: flex; gap: 14px; margin: 32px 0 26px; flex-wrap: wrap; }

.btn {
  position: relative;
  display: inline-flex; align-items: center;
  border-radius: 11px;
  font-weight: 600; font-size: .96rem; font-family: "Space Grotesk", sans-serif;
  cursor: pointer; border: 1px solid transparent;
  will-change: transform;
}
.btn__face {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 11px;
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.btn--sm .btn__face { padding: 10px 18px; font-size: .9rem; }
.btn--primary .btn__face { background: var(--accent); color: #fff; box-shadow: 0 6px 0 0 color-mix(in srgb, var(--accent) 55%, black); }
.btn--primary:hover .btn__face { transform: translateY(-2px); box-shadow: 0 8px 0 0 color-mix(in srgb, var(--accent) 55%, black); }
.btn--primary:active .btn__face { transform: translateY(4px); box-shadow: 0 2px 0 0 color-mix(in srgb, var(--accent) 55%, black); }
.btn--ghost { border-color: transparent; }
.btn--ghost .btn__face { background: transparent; border: 1px solid var(--border); color: var(--text); box-shadow: 0 6px 0 0 var(--border); }
.btn--ghost:hover .btn__face { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--ghost:active .btn__face { transform: translateY(4px); box-shadow: 0 2px 0 0 var(--border); }

.hero__socials { display: flex; gap: 8px; }
.hero__socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); transition: .2s;
  animation: floatIcon 3.4s ease-in-out infinite;
}
.hero__socials a:nth-child(1) { animation-delay: 0s; }
.hero__socials a:nth-child(2) { animation-delay: .3s; }
.hero__socials a:nth-child(3) { animation-delay: .6s; }
.hero__socials a:nth-child(4) { animation-delay: .9s; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hero__socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px) scale(1.08); animation-play-state: paused; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-mute); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.hero__scroll svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  padding: 16px 0;
}
.marquee__track { display: inline-flex; }
.marquee__group {
  display: inline-flex; align-items: center; gap: 22px; padding-right: 22px;
  animation: marqueeScroll 32s linear infinite;
}
.marquee__group span {
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1.05rem;
  color: var(--text-soft); letter-spacing: .01em;
}
.marquee__group span.dot { color: var(--accent); font-size: .7rem; }
.marquee:hover .marquee__group { animation-play-state: paused; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- SECTIONS ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__kicker {
  color: var(--accent); font-family: "JetBrains Mono", monospace;
  font-weight: 500; letter-spacing: .05em; font-size: .85rem; margin-bottom: 10px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; margin-bottom: 44px; }
.grad-text {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* reveal on scroll */
[data-reveal] { opacity: 0; transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease; }
[data-reveal="up"] { transform: translateY(34px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }
.tl[data-reveal], .skill-group[data-reveal], .project[data-reveal] { transition-delay: calc(var(--d, 0) * 90ms); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.about__text p { color: var(--text-soft); margin-bottom: 16px; }
.about__text strong { color: var(--text); }
.about__meta { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.about__meta div { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: .96rem; }
.about__meta span { font-size: 1.1rem; }

.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease;
}
.stat strong {
  display: block; font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1;
  position: relative; z-index: 1;
}
.stat span { font-size: .85rem; color: var(--text-mute); position: relative; z-index: 1; }

/* ---------- SPOTLIGHT + TILT (shared) ---------- */
.spot {
  position: relative; isolation: isolate;
}
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 70%);
}
.spot:hover::before { opacity: 1; }
[data-tilt] { transform-style: preserve-3d; transition: transform .15s ease-out; }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(var(--border), var(--accent-soft), var(--border));
}
.tl { position: relative; margin-bottom: 26px; }
.tl__dot {
  position: absolute; left: -33px; top: 22px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.section:not(.section--alt) .tl__dot { border-color: var(--bg); }
.tl__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 26px;
  box-shadow: var(--shadow-sm); transition: transform .25s, border-color .25s;
}
.tl__card:hover { transform: translateX(4px); border-color: var(--accent); }
.tl__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.tl__head h3 { font-size: 1.15rem; }
.tl__date {
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem; font-weight: 500; color: var(--accent);
  background: var(--accent-soft); padding: 4px 12px; border-radius: 20px; white-space: nowrap;
}
.tl__org { color: var(--text-mute); font-size: .92rem; margin: 4px 0 14px; font-weight: 500; position: relative; z-index: 1; }
.tl__card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; }
.tl__card li { position: relative; padding-left: 20px; color: var(--text-soft); font-size: .95rem; }
.tl__card li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}

/* ---------- SKILLS ---------- */
.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-group {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s, border-color .25s;
}
.skill-group:hover { transform: translateY(-4px); border-color: var(--accent); }
.skill-group h3 { font-size: 1.02rem; margin-bottom: 14px; color: var(--text); position: relative; z-index: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.tags span {
  font-size: .85rem; font-weight: 500;
  padding: 6px 13px; border-radius: 8px;
  background: var(--surface-2); color: var(--text-soft);
  border: 1px solid var(--border); transition: .2s;
}
.tags span:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.tags--sm span { font-size: .78rem; padding: 4px 10px; }

/* ---------- PROJECTS ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.project__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--accent); position: relative; z-index: 1; }
.project__top a { color: var(--text-mute); transition: .2s; }
.project__top a:hover { color: var(--accent); }
.project h3 { font-size: 1.25rem; margin-bottom: 10px; position: relative; z-index: 1; }
.project p { color: var(--text-soft); font-size: .95rem; margin-bottom: 14px; position: relative; z-index: 1; }
.project__points { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; position: relative; z-index: 1; }
.project__points li { position: relative; padding-left: 18px; color: var(--text-soft); font-size: .9rem; }
.project__points li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.project--muted { justify-content: space-between; }
.push-bottom { margin-top: auto; }
.project .btn { position: relative; z-index: 1; align-self: flex-start; }

/* ---------- CONTACT ---------- */
.contact { text-align: center; }
.contact .section__title { margin-bottom: 16px; }
.contact__lead { max-width: 560px; margin: 0 auto 40px; color: var(--text-soft); }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact__card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: var(--shadow-sm); transition: transform .25s, border-color .25s, box-shadow .25s; color: var(--accent);
}
.contact__card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.contact__card span { font-size: .8rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; position: relative; z-index: 1; }
.contact__card strong { font-size: .92rem; color: var(--text); font-weight: 600; word-break: break-word; position: relative; z-index: 1; }
.contact__card svg { position: relative; z-index: 1; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 26px 0; background: var(--bg-alt); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-mute); font-size: .88rem; }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px) scale(.8); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .about { grid-template-columns: 1fr; }
  .skills, .projects, .contact__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}

@media (max-width: 720px) {
  .nav { padding: 8px 8px 8px 18px; }
  .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 72px 0; }
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html.cursor-ready, html.cursor-ready * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  html.cursor-ready, html.cursor-ready * { cursor: auto !important; }
}
