/* =========================================================
   ArnavxDev Portfolio — style.css
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --card: #151515;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-secondary: #888888;
  --text-tertiary: #555555;

  --accent-instagram: #e1306c;
  --accent-discord: #5865f2;

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

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

img { max-width: 100%; display: block; }

::selection { background: rgba(255, 255, 255, 0.15); }

/* ---------- Background layers ---------- */

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent 75%);
}

.mouse-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ---------- Custom cursor ---------- */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.55);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring, .mouse-glow { display: none; }
}

/* ---------- Loading screen ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  text-align: center;
  opacity: 0;
  animation: loaderFadeIn 1s var(--ease) forwards 0.15s;
}

.loader-mark {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  padding-left: 0.35em;
}

.loader-status {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.loader-bar-track {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 28px auto 0;
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  transition: width 1.6s var(--ease);
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

/* ---------- Landing / social screen ---------- */

.landing {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}

.landing.is-visible {
  opacity: 1;
  visibility: visible;
}

.landing.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.landing-content {
  text-align: center;
  max-width: 640px;
}

.landing-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.landing-title {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.landing-subtitle {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.social-cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 44px;
  flex-wrap: wrap;
}

.social-card {
  position: relative;
  width: 220px;
  padding: 30px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  transform-style: preserve-3d;
}

.social-card-glow {
  position: absolute;
  inset: -40%;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  filter: blur(30px);
}

.social-card--instagram .social-card-glow {
  background: radial-gradient(circle at 50% 30%, rgba(225, 48, 108, 0.35), transparent 65%);
}

.social-card--discord .social-card-glow {
  background: radial-gradient(circle at 50% 30%, rgba(88, 101, 242, 0.35), transparent 65%);
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
}

.social-card:hover .social-card-glow { opacity: 1; }

.social-icon {
  width: 46px;
  height: 46px;
  color: var(--text-secondary);
  transition: transform 0.5s var(--ease), color 0.5s var(--ease);
}

.social-card--instagram:hover .social-icon {
  color: #e1306c;
  transform: scale(1.08);
}

.social-card--discord:hover .social-icon {
  color: #5865f2;
  transform: scale(1.08);
}

.social-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  transform: translateY(2px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.social-card:hover .social-text {
  opacity: 1;
  transform: translateY(0);
}

.social-text-main {
  font-weight: 600;
  font-size: 0.95rem;
}

.social-text-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.skip-btn {
  margin-top: 56px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s var(--ease);
}

.skip-btn:hover { color: var(--text); }

.skip-arrow {
  display: inline-flex;
  animation: bob 2s ease-in-out infinite;
}

.skip-arrow svg { width: 14px; height: 14px; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- Site shell ---------- */

.site {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.site.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -30px);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), top 0.4s var(--ease), background 0.4s var(--ease);
}

.navbar.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.navbar-brand {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.navbar-links {
  display: flex;
  gap: 26px;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 1px;
  background: var(--text);
  transition: width 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

@media (max-width: 640px) {
  .navbar { gap: 18px; padding: 10px 18px; }
  .navbar-links { gap: 14px; }
  .nav-link { font-size: 0.75rem; }
}

/* ---------- Layout helpers ---------- */

main { position: relative; }

.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 120px 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-subtitle {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.glass-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge-dot { color: #ffffff; display: inline-flex; }
.hero-badge-dot svg { width: 13px; height: 13px; }

.hero-heading {
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-name {
  background: linear-gradient(135deg, #ffffff 0%, #9a9a9a 60%, #565656 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-alias {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.hero-desc {
  margin-top: 18px;
  max-width: 540px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-typing {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text);
}

.typing-word { color: #ffffff; }

.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
  z-index: -1;
}

.btn-primary .ripple { background: rgba(0, 0, 0, 0.25); }

@keyframes ripple {
  to { transform: scale(3); opacity: 0; }
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.scroll-arrow {
  display: inline-flex;
  animation: bob 2s ease-in-out infinite;
}

.scroll-arrow svg { width: 14px; height: 14px; }

/* ---------- About ---------- */

.about-card {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  transform-style: preserve-3d;
}

.about-card p:first-child { color: var(--text); }

/* ---------- IndiumCloud ---------- */

.cloud-visual-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.cloud-visual {
  width: min(360px, 80vw);
  color: #ffffff;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.08));
}

.cloud-led {
  animation: ledPulse 2.4s ease-in-out infinite;
}

.cloud-led-delay { animation-delay: 1.2s; }

@keyframes ledPulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.indiumcloud-copy {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.75;
}

.feature-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: #191919;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  margin-bottom: 14px;
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card:hover .feature-icon {
  color: #ffffff;
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 0.92rem;
  font-weight: 500;
}

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

/* ---------- Projects & Bots (shared card system) ---------- */

.project-grid,
.bot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card,
.bot-card {
  position: relative;
  padding: 30px 26px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--card) 0%, #0d0d0d 100%);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), border-color 0.4s var(--ease);
  overflow: hidden;
}

.project-card::before,
.bot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.project-card:hover,
.bot-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.project-card:hover::before,
.bot-card:hover::before {
  opacity: 1;
}

.project-icon,
.bot-icon {
  display: inline-flex;
  color: var(--text-secondary);
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.project-icon svg,
.bot-icon svg { width: 22px; height: 22px; }

.project-card:hover .project-icon,
.bot-card:hover .bot-icon {
  transform: translateY(-2px);
  color: #ffffff;
}

.project-card h3,
.bot-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-card p,
.bot-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .project-grid, .bot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .project-grid, .bot-grid { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */

.stats-section { padding-top: 60px; padding-bottom: 60px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat {
  padding: 30px 12px;
  border-top: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  font-family: var(--font-mono);
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Skills ---------- */

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.skill-tag {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.skill-tag:hover {
  transform: translateY(-3px);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06);
}

/* ---------- Contact ---------- */

.contact-card {
  padding: 48px;
  text-align: center;
}

.contact-copy {
  color: var(--text-secondary);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.7;
}

.contact-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.footer-heart {
  display: inline-flex;
  vertical-align: -2px;
  color: var(--text-secondary);
  margin: 0 1px;
}

.footer-heart svg { width: 13px; height: 13px; }

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  transition: color 0.3s var(--ease);
}

.footer-links a:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.reveal[data-reveal="fade-up"] { transform: translateY(28px); }
.reveal[data-reveal="fade-down"] { transform: translateY(-28px); }
.reveal[data-reveal="slide-left"] { transform: translateX(-40px); }
.reveal[data-reveal="slide-right"] { transform: translateX(40px); }
.reveal[data-reveal="scale"] { transform: scale(0.92); }
.reveal[data-reveal="blur"] { filter: blur(8px); }

.reveal.is-revealed {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ---------- Site light theme (after skip) ----------
   Per the brief: once the visitor skips past the landing screen,
   the main portfolio switches to a white/grey premium look instead
   of the dark landing screen. Hiding the particle canvas here also
   cuts one of the heavier animation loops, which helps mobile
   scroll performance. */

body.site-light {
  background: linear-gradient(160deg, #ffffff 0%, #f2f2f4 45%, #e7e7ea 100%);
  background-attachment: fixed;
  --bg: #ffffff;
  --bg-secondary: #f5f5f6;
  --card: #ffffff;
  --border: rgba(15, 15, 20, 0.09);
  --border-strong: rgba(15, 15, 20, 0.16);
  --text: #131316;
  --text-secondary: #5b5b62;
  --text-tertiary: #97979e;
}

body.site-light #particleCanvas,
body.site-light .bg-grid,
body.site-light .mouse-glow { display: none; }

body.site-light ::selection { background: rgba(15, 15, 20, 0.12); }

body.site-light .cursor-dot { background: #131316; }
body.site-light .cursor-ring { border-color: rgba(15, 15, 20, 0.3); }
body.site-light .cursor-ring.is-hover { background: rgba(15, 15, 20, 0.05); border-color: rgba(15, 15, 20, 0.5); }

body.site-light .navbar { background: rgba(255, 255, 255, 0.65); border-color: var(--border); }

body.site-light .glass-card,
body.site-light .social-card { background: rgba(15, 15, 20, 0.025); }

body.site-light .hero-name {
  background: linear-gradient(135deg, #131316 0%, #55555c 55%, #96969c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

body.site-light .btn-primary {
  background: #131316;
  color: #ffffff;
}

body.site-light .btn-primary:hover {
  box-shadow: 0 0 24px rgba(15, 15, 20, 0.2);
}

body.site-light .btn-ghost {
  background: rgba(15, 15, 20, 0.03);
}

body.site-light .btn-ghost:hover {
  background: rgba(15, 15, 20, 0.06);
}

body.site-light .btn .ripple { background: rgba(15, 15, 20, 0.28); }
body.site-light .btn-primary .ripple { background: rgba(255, 255, 255, 0.35); }

body.site-light .cloud-visual {
  color: #17171b;
  filter: drop-shadow(0 0 18px rgba(15, 15, 20, 0.08));
}

body.site-light .feature-card:hover { background: #ececef; }

body.site-light .project-card,
body.site-light .bot-card {
  background: linear-gradient(160deg, #ffffff 0%, #eef0f2 100%);
  box-shadow: 0 10px 30px rgba(15, 15, 20, 0.05);
}

body.site-light .project-card::before,
body.site-light .bot-card::before {
  background: linear-gradient(135deg, rgba(15, 15, 20, 0.18), transparent 40%);
}

body.site-light .skill-tag:hover {
  box-shadow: 0 8px 24px rgba(15, 15, 20, 0.08);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .section { padding: 90px 20px; }
  .hero { padding-top: 120px; }
  .social-cards { gap: 14px; }
  .social-card { width: 100%; max-width: 280px; }
}

/* ---------- Mobile performance ----------
   Heavy blur (backdrop-filter) and box-shadow glows are expensive
   for mobile GPUs and cause scroll jank; trim them below 760px. */

@media (max-width: 760px) {
  .navbar,
  .social-card,
  .glass-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .btn-primary:hover { box-shadow: none; }
  body.site-light .btn-primary:hover { box-shadow: none; }
  .skill-tag:hover { box-shadow: none; }
  body.site-light .skill-tag:hover { box-shadow: none; }

  .project-card,
  .bot-card,
  .feature-card,
  .social-card {
    transform: none !important;
  }
}
