/* ===========================
   AdhyatamBuzz — Refined Styles
   Upgrades: improved typography, richer gradients,
   stronger glassmorphism, subtle motion, card depth,
   and mobile polish.
   
   v1.1: Force dark theme mode - ignore system light mode
   =========================== */

/* Optional: use Inter + Playfair for a modern + editorial mix.
   If you prefer system fonts only, remove the @import line. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  /* color system - lightened for better visibility */
  --bg: #1a2847;
  --bg-soft: #243354;
  --accent: #00f5ff;
  --accent-2: #ff5aa6;
  /* slightly warmer pink */
  --accent-soft: rgba(0, 245, 255, 0.10);
  --text: #f7f9fb;
  --muted: #b5bcc8;
  --card: #0f1f3a;
  --border: rgba(148, 163, 184, 0.25);
  --glass: rgba(255, 255, 255, 0.05);
  --radius-xl: 1.6rem;
  --radius-lg: 1rem;
  --shadow-soft: 0 28px 60px rgba(2, 8, 23, 0.5);
  --shadow-sm: 0 10px 30px rgba(2, 8, 23, 0.3);
  --nav-h: 60px;
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --glass-border: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));

  /* transition tokens used by theme utility */
  --transition-fast: 220ms;
  --transition-slow: 420ms;
  
  /* Force dark theme - ignore system light mode preference */
  color-scheme: dark;
}

/* -------------------------
   Base / Reset
   ------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body,
#root {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(10, 35, 65, 0.45), transparent 12%),
    radial-gradient(900px 400px at 95% 90%, rgba(255, 90, 150, 0.07), transparent 8%),
    linear-gradient(180deg, #0a1325 0%, #152d52 40%, #0f2844 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  background-attachment: fixed;
  padding-bottom: 4rem;
}

/* links */
a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease, text-shadow .18s ease;
}

a:hover {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
}

/* images */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Layout wrapper */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -------------------------
   Header / Nav
   ------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(26, 40, 71, 0.95), rgba(26, 40, 71, 0.8));
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-orb {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: conic-gradient(from 120deg, rgba(0, 245, 255, 0.9), rgba(255, 90, 150, 0.95), #7c6cff, rgba(0, 245, 255, 0.9));
  box-shadow: 0 6px 22px rgba(0, 245, 255, 0.12), inset 0 3px 10px rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  text-transform: uppercase;
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 8px rgba(0, 245, 255, 0.15);
}

.logo-text-sub {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
}

/* nav links */
.nav-links {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  transition: all .18s cubic-bezier(.2, .9, .3, 1);
  border: 1px solid rgba(0, 245, 255, 0.1);
}

.nav-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
  border-color: rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.06);
  box-shadow: 0 4px 12px rgba(0, 245, 255, 0.1);
}

/* CTA */
.nav-cta {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0, 245, 255, 0.2);
  box-shadow: none;
  text-shadow: none;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--text), var(--accent));
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 2px 8px rgba(0, 245, 255, 0.2);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
  box-shadow: 0 2px 8px rgba(0, 245, 255, 0.3);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  box-shadow: 0 2px 8px rgba(0, 245, 255, 0.3);
}

.nav-cta:hover {
  transform: translateY(-3px);
  background: rgba(0, 245, 255, 0.08);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 245, 255, 0.1);
  color: var(--accent);
}

/* Sun Rays Animation */
.sun-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.8rem 1.4rem 0.8rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 165, 0, 0.03));
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.sun-link:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 165, 0, 0.08));
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.sun-emoji {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  animation: sunFloat 3s ease-in-out infinite, sunGlow 3s ease-in-out infinite, sunPulse 4s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 25px rgba(255, 165, 0, 0.6));
  line-height: 1;
  opacity: 0.15;
}

.sun-rays {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  width: 24px;
  height: 24px;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 15px rgba(255, 165, 0, 0.4));
  opacity: 0.25;
}

.sun-rays::before,
.sun-rays::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: sunRaysExpand 2.5s ease-out infinite;
}

.sun-rays::before {
  width: 24px;
  height: 24px;
  box-shadow: 
    0 -14px 0 -6px rgba(255, 215, 0, 1),
    10px -10px 0 -6px rgba(255, 215, 0, 0.95),
    14px 0 0 -6px rgba(255, 215, 0, 1),
    10px 10px 0 -6px rgba(255, 215, 0, 0.95),
    0 14px 0 -6px rgba(255, 215, 0, 1),
    -10px 10px 0 -6px rgba(255, 215, 0, 0.95),
    -14px 0 0 -6px rgba(255, 215, 0, 1),
    -10px -10px 0 -6px rgba(255, 215, 0, 0.95);
}

.sun-rays::after {
  width: 24px;
  height: 24px;
  animation-delay: 0.4s;
  box-shadow: 
    0 -14px 0 -6px rgba(255, 165, 0, 0.9),
    10px -10px 0 -6px rgba(255, 165, 0, 0.85),
    14px 0 0 -6px rgba(255, 165, 0, 0.9),
    10px 10px 0 -6px rgba(255, 165, 0, 0.85),
    0 14px 0 -6px rgba(255, 165, 0, 0.9),
    -10px 10px 0 -6px rgba(255, 165, 0, 0.85),
    -14px 0 0 -6px rgba(255, 165, 0, 0.9),
    -10px -10px 0 -6px rgba(255, 165, 0, 0.85);
}

@keyframes sunRaysExpand {
  0% {
    width: 24px;
    height: 24px;
    opacity: 1;
    box-shadow: 
      0 -14px 0 -6px rgba(255, 215, 0, 0.9),
      10px -10px 0 -6px rgba(255, 215, 0, 0.85),
      14px 0 0 -6px rgba(255, 215, 0, 0.9),
      10px 10px 0 -6px rgba(255, 215, 0, 0.85),
      0 14px 0 -6px rgba(255, 215, 0, 0.9),
      -10px 10px 0 -6px rgba(255, 215, 0, 0.85),
      -14px 0 0 -6px rgba(255, 215, 0, 0.9),
      -10px -10px 0 -6px rgba(255, 215, 0, 0.85);
  }
  100% {
    width: 70px;
    height: 70px;
    opacity: 0;
    box-shadow: 
      0 -35px 0 -6px rgba(255, 215, 0, 0),
      25px -25px 0 -6px rgba(255, 215, 0, 0),
      35px 0 0 -6px rgba(255, 215, 0, 0),
      25px 25px 0 -6px rgba(255, 215, 0, 0),
      0 35px 0 -6px rgba(255, 215, 0, 0),
      -25px 25px 0 -6px rgba(255, 215, 0, 0),
      -35px 0 0 -6px rgba(255, 215, 0, 0),
      -25px -25px 0 -6px rgba(255, 215, 0, 0);
  }
}

@keyframes sunFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes sunGlow {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 25px rgba(255, 165, 0, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1)) drop-shadow(0 0 35px rgba(255, 165, 0, 0.8)) drop-shadow(0 0 50px rgba(255, 215, 0, 0.3));
  }
}

@keyframes sunPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes profilePulse {
  0%, 100% {
    box-shadow: 0 0 0 12px rgba(0, 245, 255, 0.3), 0 0 0 14px rgba(0, 245, 255, 0.15), 0 40px 100px rgba(0, 245, 255, 0.25);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 245, 255, 0.5), 0 0 0 14px rgba(0, 245, 255, 0.25), 0 50px 120px rgba(0, 245, 255, 0.35);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

@keyframes shimmerBtn {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* mobile nav collapsed */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    background: linear-gradient(180deg, rgba(10, 19, 37, 0.98), rgba(5, 15, 30, 0.98));
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.15);
    border-top: 1px solid rgba(0, 245, 255, 0.1);
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 245, 255, 0.05);
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links a {
    padding: 0.6rem 0.8rem !important;
    font-size: 0.85rem !important;
    width: 100%;
    text-align: left;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 245, 255, 0.08);
    transition: all 0.2s ease;
  }

  .nav-links a:hover {
    background: rgba(0, 245, 255, 0.1) !important;
    border-color: rgba(0, 245, 255, 0.25) !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.03), 0 4px 12px rgba(0, 245, 255, 0.08);
  }

  .nav {
    padding: 0 0.85rem;
    flex-wrap: nowrap;
    height: var(--nav-h);
  }
}

/* -------------------------
   Main & Sections
   ------------------------- */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  width: 100%;
  flex: 1;
}

section {
  padding: 4rem 2rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.05);
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.5), transparent);
}

/* section heading styles upgraded */
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-heading>div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-kicker {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  background: linear-gradient(135deg, var(--text), rgba(0, 245, 255, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 8px rgba(0, 245, 255, 0.1);
}

.section-desc {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 40rem;
}

/* Portfolio Stats */
.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  margin-top: 1.5rem;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(255, 90, 150, 0.02));
  border: 1px solid rgba(0, 245, 255, 0.15);
  text-align: center;
  box-shadow: 0 8px 26px rgba(2, 6, 23, 0.3), 0 0 20px rgba(0, 245, 255, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.05);
  transition: transform .28s cubic-bezier(.2, .95, 0.2, 1), box-shadow .28s ease;
  backdrop-filter: blur(8px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 245, 255, 0.12), 0 0 30px rgba(0, 245, 255, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 245, 255, 0.25);
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(0, 245, 255, 1), rgba(255, 90, 150, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  font-family: "Playfair Display", serif;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* -------------------------
   Hero
   ------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.4rem;
  align-items: center;
  padding-top: 1rem;
  position: relative;
}



.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(255, 90, 150, 0.04));
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 245, 255, 0.05);
}

.hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.9);
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0.6rem 0;
  font-family: "Playfair Display", serif;
  color: var(--text);
}

.hero-title span {
  background: linear-gradient(90deg, rgba(0, 245, 255, 1), rgba(255, 90, 150, 1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 44rem;
  margin-bottom: 1.35rem;
}

.hero-badges {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.chip {
  padding: .18rem .6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.74rem;
}

.chip.highlight {
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.06), rgba(255, 90, 150, 0.06));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 40px rgba(0, 245, 255, 0.04);
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  border: 1px solid rgba(0, 245, 255, 0.15);
  background: rgba(0, 245, 255, 0.03);
  color: var(--text);
  transition: transform .18s cubic-bezier(.2, .9, .3, 1), box-shadow .18s ease, background .18s ease, border-color .18s ease;
  box-shadow: 0 4px 16px rgba(0, 245, 255, 0.05), inset 0 1px 2px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.btn-primary {
  background: linear-gradient(135deg, #00f5ff, #00d4ff);
  color: #07101a;
  font-weight: 700;
  border: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 14px 42px rgba(0, 245, 255, 0.18), inset 0 1px 3px rgba(255, 255, 255, 0.12);
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 8px 28px rgba(0, 245, 255, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  background: rgba(0, 245, 255, 0.08);
}

.btn-primary:hover {
  box-shadow: 0 20px 48px rgba(0, 245, 255, 0.25), inset 0 1px 3px rgba(255, 255, 255, 0.15);
  background: linear-gradient(135deg, #00fff7, #00e0ff);
}

.btn:active {
  transform: translateY(-1px) scale(.995);
}

.hero-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 1rem;
}

.hero-visual {
  position: absolute;
  right: -6rem;
  width: 35rem;
  top: 10rem;
  border-radius: 1.6rem;
  min-height: 250px;
  overflow: hidden;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow: var(--shadow-soft);
}

.hero-visual-inner {
  border-radius: inherit;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(2, 10, 20, 0.48), rgba(2, 10, 20, 0.65));
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.motion-gradient {
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 120deg, rgba(0, 245, 255, 0.18), rgba(255, 90, 150, 0.12), rgba(124, 108, 255, 0.14), rgba(0, 245, 255, 0.26));
  filter: blur(56px) saturate(1.12);
  opacity: 0.95;
  animation: spin-slow 26s linear infinite;
}

.floating-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.9);
  opacity: 0.95;
  animation: float 7.5s ease-in-out infinite alternate;
  transform-origin: center;
}

.floating-dot.secondary {
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(255, 90, 150, 0.85);
  animation-duration: 9.5s;
}

.floating-dot.tiny {
  width: 8px;
  height: 8px;
  animation-duration: 6.2s;
}

.hero-visual-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.1rem;
  color: var(--text);
}

.mini-label {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-visual-title {
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--text);
}

.headline-ticker {
  display: flex;
  gap: .6rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  padding: .42rem .65rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.ticker-tag {
  padding: .16rem .48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.ticker-text {
  color: var(--text);
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.92rem;
  transition: opacity .18s ease;
  animation: slideLeftToRight 4s ease-in-out infinite;
  display: inline-block;
}

@keyframes slideLeftToRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0;
  }
}

@keyframes ticker-move {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-40%);
  }
}

.hero-pill {
  border-radius: 999px;
  padding: .38rem .7rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.75rem;
}

/* -------------------------
   Grid / Cards / Preview
   ------------------------- */
.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}



.card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.04), rgba(255, 90, 150, 0.02));
  border: 1px solid rgba(0, 245, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 245, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, border-color .3s ease;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.5), transparent);
}

.card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 26px 70px rgba(0, 245, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 245, 255, 0.3);
}

.card-tag {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.card-text {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: .65rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
}

.preview-box {
  height: 170px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 10% 10%, rgba(0, 245, 255, 0.08), transparent 20%), linear-gradient(180deg, rgba(2, 10, 20, 0.45), rgba(2, 10, 20, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.02);
  margin-bottom: .7rem;
  transition: transform .28s ease, box-shadow .28s ease;
}

.preview-box:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 245, 255, 0.05), inset 0 0 40px rgba(0, 245, 255, 0.03);
  border-color: rgba(0, 245, 255, 0.06);
}

.preview-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  color: rgba(240, 245, 250, 0.92);
  text-align: center;
  backdrop-filter: blur(4px) brightness(.9);
  font-weight: 600;
}

.preview-bars {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54%;
  display: flex;
  gap: 6px;
  padding: 0 0.65rem 0.65rem;
  align-items: flex-end;
}

.bar {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.9), rgba(0, 245, 255, 0.12));
  transform-origin: bottom;
  animation: bars 1.4s ease-in-out infinite alternate;
  opacity: 0.95;
}

.bar:nth-child(2) {
  animation-delay: .22s
}

.bar:nth-child(3) {
  animation-delay: .44s
}

.bar:nth-child(4) {
  animation-delay: .12s
}

.bar:nth-child(5) {
  animation-delay: .36s
}

@keyframes bars {
  from {
    transform: scaleY(0.38);
  }

  to {
    transform: scaleY(1);
  }
}

/* -------------------------
   Bookshelf / Two-col / Lists
   ------------------------- */
.shelf-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: stretch;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.02), transparent);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 245, 255, 0.05);
}

.book-card {
  flex: 1 1 180px;
  max-width: 100%;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(7, 18, 41, 0.95), rgba(7, 18, 41, 0.85));
  border: 1px solid rgba(0, 245, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 245, 255, 0.06), inset 0 1px 3px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  flex-direction: column;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.3), transparent);
  z-index: 1;
}

.book-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 245, 255, 0.12), inset 0 1px 3px rgba(255, 255, 255, 0.08);
  transform: translateY(-6px);
}

.book-spine {
  height: 160px;
  border-radius: 8px;
  background: linear-gradient(135deg, 
    #1a3a52 0%,
    #00aeff 30%,
    #0066ff 50%,
    #ff00ff 80%,
    #1a3a52 100%);
  margin-bottom: 0.9rem;
  position: relative;
  overflow: visible;
  box-shadow: 
    inset -2px -2px 5px rgba(0, 0, 0, 0.5),
    inset 2px 2px 5px rgba(0, 245, 255, 0.1),
    0 10px 30px rgba(0, 245, 255, 0.15),
    8px 8px 16px rgba(0, 0, 0, 0.4);
  transform: translateZ(20px);
}

.book-spine::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.2), rgba(0, 0, 0, 0.3));
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.6);
}

.book-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text);
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.8), rgba(255, 90, 150, 0.6));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.book-meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.book-cover {
  height: 200px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.15), 8px 8px 16px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.03), rgba(255, 90, 150, 0.02));
  padding: 0.5rem;
  display: block;
}

.book-download-btn {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 245, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.12), rgba(255, 90, 150, 0.06));
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 245, 255, 0.05);
}

.book-download-btn:hover {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.25), rgba(255, 90, 150, 0.12));
  border-color: rgba(0, 245, 255, 0.7);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 245, 255, 0.18);
  transform: translateY(-2px);
  color: var(--accent);
}

.book-download-btn:active {
  transform: translateY(0);
}

/* two-col layout improved */
.two-col {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 1.6rem;
  align-items: start;
}



.list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.bullet {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.25), 0 0 8px rgba(255, 90, 150, 0.15);
  margin-top: 6px;
  flex-shrink: 0;
}

/* tags */
.tag-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .6rem;
}

.tag {
  padding: .25rem .6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(255, 90, 150, 0.04));
  border: 1px solid rgba(0, 245, 255, 0.15);
  color: var(--muted);
  font-size: 0.78rem;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.tag:hover {
  border-color: rgba(0, 245, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 245, 255, 0.1);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.12), rgba(255, 90, 150, 0.06));
}

/* -------------------------
   Forms
   ------------------------- */
.form-card {
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid rgba(0, 245, 255, 0.15);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.06), rgba(255, 90, 150, 0.04));
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.1), 0 0 40px rgba(0, 245, 255, 0.06), inset 0 1px 3px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  animation: shimmer 3s infinite;
}

.form-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(0, 245, 255, 0.03), transparent 70%);
  pointer-events: none;
}

.form-card:hover {
  box-shadow: 0 30px 80px rgba(0, 245, 255, 0.18), 0 0 60px rgba(0, 245, 255, 0.12), inset 0 1px 3px rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 245, 255, 0.25);
  transform: translateY(-5px);
}

.form-row {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.form-row.inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

label {
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--text), rgba(0, 245, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(0, 245, 255, 0.12);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(255, 90, 150, 0.02));
  color: var(--text);
  font-size: 0.92rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 245, 255, 0.05);
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 245, 255, 0.15), 0 8px 32px rgba(0, 245, 255, 0.08);
  transform: translateY(-3px);
  border-color: rgba(0, 245, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(255, 90, 150, 0.04));
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}

input[type="checkbox"] + label,
label input[type="checkbox"] {
  margin: 0;
}

/* Auth Tab Styling */
.auth-tab {
  position: relative;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  padding-bottom: 0.5rem;
}

.auth-tab:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.3);
}

.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
  font-weight: 600;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.3);
}

.auth-form {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* hint text */
.hint {
  font-size: 0.82rem;
  color: var(--muted);
}

/* pill soft */
.pill-soft {
  padding: .28rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
  color: var(--muted);
}

/* -------------------------
   Footer
   ------------------------- */
footer {
  border-top: 1px solid rgba(0, 245, 255, 0.1);
  padding: 4rem 2rem 2.5rem;
  background: linear-gradient(180deg, rgba(0, 245, 255, 0.03), rgba(255, 90, 150, 0.02)), 
              linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.3), transparent);
}

.footer-content {
  max-width: 1120px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.footer-section h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-section h4::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--accent-grad);
  border-radius: 999px;
}

.footer-section p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.85rem;
}

.footer-section a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: all var(--transition-fast) ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
}

.footer-section a::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transition: all var(--transition-fast) ease;
}

.footer-section a:hover {
  color: var(--accent);
  transform: translateX(6px);
}

.footer-section a:hover::after {
  opacity: 1;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(0, 245, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
  align-items: center;
}

.footer-bottom > div:first-child {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* social */
.social-row {
  display: flex;
  gap: 0.8rem;
}

.social {
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.25);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(255, 90, 150, 0.03));
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast) ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 245, 255, 0.05);
}

.social::before {
  content: attr(data-label);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.35), rgba(0, 200, 255, 0.25));
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast) ease;
  border: 1px solid rgba(0, 245, 255, 0.5);
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 245, 255, 0.15);
}

.social:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
}

.social:hover {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(255, 90, 150, 0.08));
  border-color: rgba(0, 245, 255, 0.5);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 245, 255, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* -------------------------
   Micro Animations / Accessibility
   ------------------------- */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(12px, -18px, 0) scale(1.06);
  }
}

/* reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Youth Connect section - responsive wrapper */
#youth-connect > div[style*="grid-template-columns: 1fr 1fr"] {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem !important;
  max-width: 1100px !important;
  margin: 3rem auto !important;
  align-items: stretch !important;
  position: relative !important;
  z-index: 1 !important;
  padding: 0 2rem !important;
}

/* About section - responsive profile grid */
#about > div > div[style*="grid-template-columns: 1fr 1.2fr"] {
  display: grid !important;
  grid-template-columns: 1fr 1.2fr !important;
  gap: 4rem !important;
  align-items: start !important;
  margin-bottom: 4rem !important;
}

/* Generic inline grid responsive fixes */
div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
  display: grid !important;
}

/* Profile image responsive */
div[style*="width: 300px"][style*="height: 300px"][style*="border-radius: 50%"] {
  width: 100% !important;
  max-width: 250px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
}

/* Subscribe form responsive */
div[style*="display: flex"][style*="gap: 0.5rem"][style*="justify-content: center"] {
  display: flex !important;
  gap: 0.5rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

/* -------------------------
   Responsive tweaks
   ------------------------- */

/* ===== BOOKSHELF RESPONSIVE STYLES ===== */

/* Desktop (1200px+) - 3 columns */
@media (min-width: 1200px) {
  .shelf-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 2rem;
  }
  
  .book-card {
    padding: 1.5rem;
  }
}

/* Large Tablet / Small Desktop (900px - 1199px) - 2 columns */
@media (min-width: 901px) and (max-width: 1199px) {
  .shelf-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1.8rem;
  }
  
  .book-card {
    padding: 1.3rem;
  }
}

/* Tablet and below - 900px */
@media (max-width: 900px) {
  main {
    padding: 2.5rem 1.5rem 5rem;
  }

  section {
    padding: 4rem 0;
  }

  #youth-connect > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    padding: 0 1.25rem !important;
  }

  #about > div > div[style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    margin-bottom: 2rem !important;
  }

  div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="width: 300px"][style*="height: 300px"][style*="border-radius: 50%"] {
    width: 220px !important;
    height: 220px !important;
    margin: 0 auto 1.5rem !important;
  }

  div[style*="display: flex"][style*="gap: 0.5rem"][style*="justify-content: center"] {
    flex-wrap: wrap !important;
  }

  input[type="email"][style*="max-width: 300px"] {
    max-width: 100% !important;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .hero-visual {
    position: static;
    width: 100%;
    min-height: 300px;
    right: auto;
    margin-top: 1.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-sub {
    max-width: 100%;
  }

  .nav {
    padding: 0 0.9rem;
    height: auto;
    flex-wrap: wrap;
  }

  .nav-cta {
    padding: 0.42rem 0.8rem;
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .section-heading {
    flex-direction: column;
    gap: 0.8rem;
  }

  .card {
    padding: 1rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row.inline {
    grid-template-columns: 1fr;
  }

  .book-card {
    max-width: none;
  }

  .shelf-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
  main {
    padding: 2rem 1.2rem 3.5rem;
  }

  section {
    padding: 3rem 0;
  }

  #youth-connect > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    padding: 0 1rem !important;
    margin: 2.5rem auto !important;
  }

  #about > div > div[style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
  }

  div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="width: 300px"][style*="height: 300px"][style*="border-radius: 50%"] {
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto 1.2rem !important;
  }

  div[style*="display: flex"][style*="gap: 0.5rem"][style*="justify-content: center"] {
    flex-direction: column !important;
    gap: 0.6rem !important;
  }

  input[type="email"][style*="max-width: 300px"] {
    max-width: 100% !important;
    width: 100% !important;
  }

  .hero {
    padding-top: 1.2rem;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
  }

  .hero-visual {
    min-height: 260px;
  }

  .hero-visual-inner {
    padding: 1.2rem;
  }

  .hero-badges {
    gap: 0.4rem;
    margin-bottom: 0.8rem;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
    min-height: 44px;
  }

  .logo-text-main {
    font-size: 0.82rem;
  }

  .logo-text-sub {
    font-size: 0.62rem;
  }

  .logo-orb {
    width: 40px;
    height: 40px;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }

  .nav {
    padding: 0 0.8rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .sun-link {
    padding: 0.65rem 1.1rem 0.65rem 1.6rem;
    font-size: 0.82rem;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .section-desc {
    font-size: 0.88rem;
  }

  .card {
    padding: 1.2rem;
  }

  .card-title {
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
  }

  .card-text {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .preview-box {
    height: 150px;
  }

  .book-spine {
    height: 150px;
  }

  .book-cover {
    height: 150px;
  }

  .shelf-row {
    padding: 1.2rem;
    gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }
  
  .book-card {
    padding: 1.2rem;
  }
  
  .book-title {
    font-size: 1.1rem !important;
  }
  
  .book-meta {
    font-size: 0.88rem !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section h4 {
    font-size: 0.82rem;
  }

  .footer-section p {
    font-size: 0.8rem;
  }

  .footer-bottom {
    padding: 1.5rem 1rem;
    flex-direction: column;
    gap: 1.2rem;
  }

  .social-row {
    justify-content: center;
    gap: 0.8rem;
  }

  .social {
    padding: 0.38rem 0.75rem;
    font-size: 0.72rem;
    min-height: 40px;
  }

  input,
  textarea {
    font-size: 16px;
    padding: 0.55rem 0.65rem;
    min-height: 44px;
  }

  label {
    font-size: 0.78rem;
  }

  form[data-form="youth-connect"] > div:nth-child(1),
  form[data-form="youth-connect"] > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  .chip {
    font-size: 0.68rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}

/* Small Mobile - 600px and below */
@media (max-width: 600px) {
  main {
    padding: 1.5rem 0.9rem 3rem;
  }

  section {
    padding: 2.5rem 0;
  }

  #youth-connect > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.8rem !important;
    padding: 0 0.9rem !important;
    margin: 2rem auto !important;
  }

  #about > div > div[style*="grid-template-columns: 1fr 1.2fr"] {
    grid-template-columns: 1fr !important;
    gap: 1.8rem !important;
    margin-bottom: 1.8rem !important;
  }

  div[style*="display: grid"][style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="width: 300px"][style*="height: 300px"][style*="border-radius: 50%"] {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto 1rem !important;
  }

  div[style*="display: flex"][style*="gap: 0.5rem"][style*="justify-content: center"] {
    flex-direction: column !important;
    gap: 0.7rem !important;
  }

  input[type="email"][style*="max-width: 300px"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.7rem 0.9rem !important;
  }

  button[style*="padding: 0.6rem 1.5rem"] {
    width: 100% !important;
    padding: 0.7rem 1rem !important;
  }

  .hero {
    padding-top: 1rem;
    gap: 1.3rem;
  }

  .hero-title {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
  }

  .hero-visual {
    min-height: 240px;
  }

  .hero-visual-inner {
    padding: 1rem;
  }

  .hero-badges {
    gap: 0.3rem;
    margin-bottom: 0.6rem;
  }

  .chip {
    font-size: 0.62rem;
    padding: 0.1rem 0.3rem;
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
    min-height: 40px;
  }

  .logo-text-main {
    font-size: 0.75rem;
  }

  .logo-text-sub {
    font-size: 0.55rem;
  }

  .logo-orb {
    width: 36px;
    height: 36px;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.75rem;
    background: rgba(10, 19, 37, 0.98);
    backdrop-filter: blur(10px);
    padding: 0.9rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.active {
    display: flex !important;
  }

  .nav-links a {
    padding: 0.5rem 0.7rem !important;
    font-size: 0.8rem !important;
    width: 100%;
    text-align: left;
  }

  .nav {
    padding: 0 0.6rem;
    flex-wrap: wrap;
    height: auto;
  }

  .nav-cta {
    padding: 0.38rem 0.7rem;
    font-size: 0.75rem;
  }

  .sun-link {
    padding: 0.58rem 0.9rem 0.58rem 1.4rem;
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .section-kicker {
    font-size: 0.62rem;
  }

  .section-desc {
    font-size: 0.82rem;
  }

  .section-heading {
    gap: 0.4rem;
    margin-bottom: 0.8rem;
  }

  .card {
    padding: 1.1rem;
  }

  .card-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .card-text {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .preview-box {
    height: 130px;
  }

  .book-card {
    padding: 0.9rem;
    max-width: 100%;
  }

  .book-spine {
    height: 120px;
    margin-bottom: 0.6rem;
  }

  .book-cover {
    height: 120px;
    margin-bottom: 0.6rem;
  }

  .shelf-row {
    padding: 1rem;
    gap: 1rem;
    grid-template-columns: 1fr;
  }
  
  .book-card {
    padding: 1rem;
    flex-direction: column;
  }
  
  .book-card img {
    height: 200px !important;
    margin-bottom: 1rem !important;
    object-fit: cover;
  }
  
  .book-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.3;
  }
  
  .book-meta {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.2rem !important;
    color: #b5bcc8;
  }
  
  .book-download-btn {
    width: 100% !important;
    padding: 0.85rem !important;
    font-size: 0.9rem !important;
    margin-top: 1rem !important;
  }
  
  section#bookshelf {
    padding: 2rem 0 !important;
  }
  
  .section-heading {
    padding: 0 1rem;
    margin-bottom: 1.5rem !important;
  }
  
  .section-title {
    font-size: 1.5rem !important;
  }
  
  .section-desc {
    font-size: 0.9rem !important;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .form-row.inline {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.75rem;
  }

  .footer-section h4 {
    font-size: 0.75rem;
    margin-bottom: 0.7rem;
  }

  .footer-section p {
    font-size: 0.75rem;
  }

  .footer-bottom {
    padding: 1.2rem 0.75rem;
    gap: 0.8rem;
    font-size: 0.7rem;
  }

  .social-row {
    gap: 0.6rem;
    justify-content: center;
  }

  .social {
    padding: 0.32rem 0.6rem;
    font-size: 0.65rem;
    min-height: 36px;
  }

  input,
  textarea {
    font-size: 16px;
    padding: 0.5rem 0.5rem;
    min-height: 44px;
  }

  label {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
  }

  form[data-form="youth-connect"] > div:nth-child(1),
  form[data-form="youth-connect"] > div:nth-child(2) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.8rem !important;
  }

  .stat-card {
    padding: 0.9rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  button,
  input[type="submit"],
  input[type="button"],
  .btn {
    min-height: 44px;
  }
}

/* ===========================
   Theme utility (dark <-> light)
   - Add class "theme-light" on <html> or <body>
   - Smooth transitions for vars
   - Respects prefers-reduced-motion
   =========================== */

/* Smooth variable transitions for colorable properties */
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color var(--transition-fast) ease,
    color var(--transition-fast) ease,
    border-color var(--transition-fast) ease,
    box-shadow var(--transition-fast) ease,
    fill var(--transition-fast) ease;
}

/* Light-ish theme (subtle, not full bright) */
.theme-light {
  --bg: #f6f8fb;
  /* page backdrop */
  --bg-soft: #eef3f9;
  --accent: #0ea5ff;
  /* keep the cyan feel slightly toned */
  --accent-2: #ff5aa6;
  /* pink pop */
  --accent-soft: rgba(14, 165, 255, 0.14);
  --text: #041026;
  /* dark text on light bg */
  --muted: #475569;
  --card: #ffffff;
  --border: rgba(6, 12, 34, 0.06);
  --glass: rgba(2, 6, 23, 0.03);
  --shadow-soft: 0 20px 50px rgba(6, 12, 34, 0.08);
  --shadow-sm: 0 8px 20px rgba(6, 12, 34, 0.06);
  --nav-h: 72px;
}

/* Optional subtle inversion for logo orb in light theme to remain visible */
.theme-light .logo-orb {
  box-shadow: 0 6px 18px rgba(14, 165, 255, 0.08), inset 0 2px 6px rgba(255, 255, 255, 0.6);
}

/* Inverse nav look in light theme */
.theme-light header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66));
  backdrop-filter: blur(6px) saturate(1.02);
  border-bottom-color: rgba(6, 12, 34, 0.06);
}

/* Make sure hero / cards adapt */
.theme-light .card,
.theme-light .form-card,
.theme-light .book-card,
.theme-light .hero-visual-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 252, 0.92));
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

/* Tweak buttons / nav CTA in light */
.theme-light .nav-cta {
  color: #fff;
  text-shadow: none;
  box-shadow: 0 10px 30px rgba(14, 165, 255, 0.08);
}

.theme-light .btn-primary {
  box-shadow: 0 10px 32px rgba(14, 165, 255, 0.08);
}

/* If you want the page background to animate when theme switches, wrap root with this */
html,
body {
  transition: background-color var(--transition-slow) ease, color var(--transition-slow) ease;
}

/* ===========================
   Logo load animation (also used for small micro-interaction)
   - Adds .logo-animate to .logo to trigger
   - Respected by prefers-reduced-motion
   =========================== */

.logo {
  --logo-scale: 1;
  transform-origin: center;
}

.logo-animate {
  animation: logo-pop 850ms cubic-bezier(.2, .9, .3, 1) both;
  will-change: transform, filter;
}

@keyframes logo-pop {
  0% {
    transform: scale(.6) rotate(-6deg);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    opacity: 0;
  }

  60% {
    transform: scale(1.08) rotate(4deg);
    opacity: 1;
    filter: drop-shadow(0 18px 30px rgba(0, 245, 255, 0.08));
  }

  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 18px 30px rgba(0, 245, 255, 0.06));
  }
}

/* soft hover micro-glow for logo after load */
.logo-loaded:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 20px 40px rgba(0, 245, 255, 0.06));
  transition: transform 220ms ease, filter 220ms ease;
}

/* Respect users who want no motion */
@media (prefers-reduced-motion: reduce) {

  .logo-animate,
  .theme-transition * {
    animation: none !important;
    transition: none !important;
  }
}

/* -------- Bookshelf animations & tilt -------- */

/* initial hidden state for entrance animation */
.book-card.book-entrance {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: transform 520ms cubic-bezier(.2, .9, .25, 1), opacity 520ms ease;
  will-change: transform, opacity;
  transform-origin: center bottom;
}

/* visible state after intersection */
.book-card.book-entrance.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 3D tilt ready */
.book-card {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  perspective: 900px;
  transition: box-shadow 240ms ease, transform 240ms cubic-bezier(.2, .9, .3, 1);
}

/* subtle hover lift for pointer devices */
@media (hover: hover) {
  .book-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateZ(-2deg);
    box-shadow: 0 40px 80px rgba(0, 245, 255, 0.15), 0 0 60px rgba(0, 245, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.3);
  }
}

/* inner sheen used for parallax effect (optional). we use JS to toggle a class that shifts this pseudo element */
.book-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  transform: translateZ(0);
  transition: transform 360ms ease, opacity 360ms ease;
  opacity: 0.7;
}

/* mobile: horizontal shelf */
.shelf-row.shelf-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.9rem;
  padding-bottom: 0.6rem;
}

.shelf-row.shelf-scroll .book-card {
  flex: 0 0 72%;
  scroll-snap-align: center;
  max-width: none;
}

/* reduce motion for those who prefer it */
@media (prefers-reduced-motion: reduce) {

  .book-card.book-entrance,
  .book-card,
  .shelf-row.shelf-scroll .book-card {
    transition: none !important;
    transform: none !important;
  }
}

/* ===========================
   PREMIUM BUTTON STYLING
   All buttons with premium feel & animations
   =========================== */

button, 
input[type="submit"], 
input[type="button"],
.btn {
  position: relative;
  overflow: hidden;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  border-radius: 0.8rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: none;
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.1);
}

button:hover, 
input[type="submit"]:hover, 
input[type="button"]:hover,
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 245, 255, 0.25);
}

button:active, 
input[type="submit"]:active, 
input[type="button"]:active,
.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0, 245, 255, 0.15);
}

/* Primary buttons */
.btn-primary,
button[type="submit"],
input[type="submit"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: var(--bg) !important;
  padding: 0.85rem 2rem !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary::before,
button[type="submit"]::before,
input[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.btn-primary:hover::before,
button[type="submit"]:hover::before,
input[type="submit"]:hover::before {
  left: 100%;
}

/* Secondary buttons */
.btn:not(.btn-primary) {
  background: rgba(0, 245, 255, 0.1) !important;
  color: var(--text) !important;
  border: 2px solid var(--accent) !important;
  padding: 0.75rem 1.8rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

.btn:not(.btn-primary):hover {
  background: rgba(0, 245, 255, 0.2) !important;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.3) !important;
}

/* Special button styles */
button:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Book download button */
.book-download-btn {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(255, 90, 150, 0.1)) !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  padding: 0.7rem 1.2rem !important;
  font-size: 0.85rem !important;
  margin-top: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.book-download-btn:hover {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.25), rgba(255, 90, 150, 0.15)) !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 15px 40px rgba(0, 245, 255, 0.25) !important;
}

/* Subscribe button styling */
button[style*="background: var(--accent)"] {
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  border-radius: 0.6rem !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  box-shadow: 0 8px 20px rgba(0, 245, 255, 0.15) !important;
}

button[style*="background: var(--accent)"]:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(0, 245, 255, 0.3) !important;
}

/* Delete button styling */
button[style*="background: rgba(255, 90, 150, 0.2)"] {
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
  border-radius: 0.4rem !important;
  transition: all 0.3s ease !important;
}

button[style*="background: rgba(255, 90, 150, 0.2)"]:hover {
  background: rgba(255, 90, 150, 0.35) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 15px rgba(255, 90, 150, 0.2) !important;
}

/* Button with icon spacing */
.btn .icon,
button span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: 0.3rem;
}

/* Animation for button ripple effect */
@keyframes buttonRipple {
  from {
    box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.7);
  }
  to {
    box-shadow: 0 0 0 15px rgba(0, 245, 255, 0);
  }
}

.btn-primary:active::after,
button[type="submit"]:active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: buttonRipple 0.6s ease-out;
}

/* ===== PAGE TRANSITION ANIMATIONS ===== */

/* Fade in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Slide up animation */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide down animation */
@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page transition fade out */
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Section transition IN */
section.transition-in {
  animation: slideUpFade 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Section transition OUT */
section.transition-out {
  animation: fadeOut 0.3s ease-out;
}

/* Main content fade transition */
main section {
  transition: opacity 0.3s ease;
}

/* Smooth page load transition */
body.page-loading {
  opacity: 0;
}

body.page-loading-done {
  animation: fadeIn 0.5s ease forwards;
}