/* ============================================================
   XI RPL 2 - OFFICIAL CLASS WEBSITE
   THEME: SPONGEBOB & CARTOON LANDING PAGE (SMESHARIKI HYBRID)
   Vibrant Ocean Cyan Canvas · Organic Wave Sections · 3D Cartoon Pop
   ============================================================ */

:root {
  /* THEME: BIRU LAUT, WARNA PASIR, & WARNA MATAHARI */
  /* Biru Laut (Ocean Blue) */
  --clr-bg: #013366;
  /* Crystal Deep Ocean Canvas */
  --clr-bg-2: #022347;
  /* Seafloor Navy */
  --clr-bg-card: rgba(3, 44, 92, 0.92);
  /* Ocean Pod Card with Sand Trim */
  --clr-bg-glass: rgba(0, 180, 216, 0.18);
  --clr-border: rgba(244, 208, 111, 0.45);
  /* Warm Sand Border */
  --clr-border-2: #ffe600;
  /* Sunshine Yellow Accent */

  /* Warna Pasir (Golden Sand Dunes & Beach) */
  --clr-sand: #f4d06f;
  /* Golden Seafloor Sand */
  --clr-sand-warm: #e9c46a;
  /* Rich Sand Amber */
  --clr-sand-deep: #d4a343;
  /* Deep Sand Shadow */
  --clr-sand-light: #faedcd;
  /* Sunlit Soft Sand */
  --clr-sand-pearl: #fffdf2;
  /* Pearl White Sand */

  /* Warna Matahari (Radiant Sunshine Yellow) */
  --clr-sun: #ffe600;
  /* SpongeBob / Radiant Sun Yellow */
  --clr-sun-glow: #ffbe0b;
  /* Golden Solar Glow */
  --clr-sun-warm: #ffb703;
  /* Warm Sunset Amber */
  --clr-sun-flare: #ff9e00;
  /* Solar Flare Accent */

  /* Biru Laut Palet Lengkap */
  --clr-ocean: #0077b6;
  --clr-deep: #023e8a;
  --clr-cyan: #00b4d8;
  --clr-aqua: #48cae4;
  --clr-sky: #90e0ef;

  /* Backward Compatibility Aliases */
  --clr-accent: #00b4d8;
  /* Cyan Water Stream */
  --clr-accent-2: #ffe600;
  /* Sunshine Yellow */
  --clr-accent-3: #f4d06f;
  /* Golden Sand */
  --clr-accent-glow: rgba(255, 230, 0, 0.15);
  --clr-accent-light: #72efdd;
  --clr-yellow: #ffe600;
  --clr-gold: #ffbe0b;
  --clr-coral: #ff758f;

  /* Typography Colors */
  --clr-text: #ffffff;
  --clr-text-muted: #d0efff;
  --clr-text-dim: #8ecae6;

  --clr-navbar-bg: rgba(2, 35, 75, 0.94);
  --clr-modal-bg: rgba(2, 28, 60, 0.97);

  /* Fonts */
  --font-display: 'Titan One', 'Fredoka', cursive, sans-serif;
  --font-bubble: 'Fredoka', cursive, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Fredoka', 'DM Sans', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Bubbly Radii */
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-slow: all 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-glow: 0 4px 18px rgba(0, 15, 38, 0.35);
  --shadow-card: 0 12px 36px rgba(0, 15, 38, 0.45);

  --toggle-bg: rgba(244, 208, 111, 0.3);
  --toggle-border: rgba(255, 230, 0, 0.6);

  --card-glow-x: 50%;
  --card-glow-y: 50%;
}

/* Light Theme - Sunny Beach Ocean & Golden Sand */
[data-theme="light"] {
  --clr-bg: #0096c7;
  /* Sparkling Tropical Ocean Blue */
  --clr-bg-2: #0077b6;
  /* Ocean Blue Depth */
  --clr-bg-card: #fffdf5;
  /* Warm Pearl Sand Pod */
  --clr-bg-glass: rgba(255, 253, 245, 0.92);
  --clr-border: rgba(233, 196, 106, 0.55);
  --clr-border-2: #ffbe0b;

  --clr-accent: #0077b6;
  --clr-accent-2: #ffe600;
  --clr-accent-3: #f4d06f;
  --clr-accent-glow: rgba(255, 230, 0, 0.4);
  --clr-accent-light: #00b4d8;

  --clr-yellow: #ffe600;
  --clr-gold: #ffbe0b;
  --clr-coral: #ff758f;
  --clr-ocean: #0077b6;
  --clr-deep: #023e8a;

  --clr-text: #022b52;
  --clr-text-muted: #0b497e;
  --clr-text-dim: #3a7ca5;

  --clr-navbar-bg: rgba(255, 253, 245, 0.95);
  --clr-modal-bg: rgba(255, 250, 238, 0.98);

  --shadow-card: 0 12px 35px rgba(0, 119, 182, 0.16);
}

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

html,
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

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

/* Outer Ocean Blue Canvas with Floating Sunshine Stars ⭐ & Bubbles 🫧 */
body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    /* Sunshine Star 1 (Warna Matahari) */
    radial-gradient(circle at 7% 12%, #ffe600 0, #ffe600 8px, transparent 9px),
    radial-gradient(circle at 7% 12%, rgba(255, 230, 0, 0.4) 0, transparent 20px),
    /* Sunshine Star 2 */
    radial-gradient(circle at 93% 22%, #ffe600 0, #ffe600 10px, transparent 11px),
    radial-gradient(circle at 93% 22%, rgba(255, 230, 0, 0.4) 0, transparent 24px),
    /* Golden Sand Sparkle (Warna Pasir) */
    radial-gradient(circle at 92% 48%, rgba(244, 208, 111, 0.35) 0, rgba(244, 208, 111, 0.35) 14px, transparent 15px),
    radial-gradient(circle at 95% 45%, rgba(244, 208, 111, 0.35) 0, rgba(244, 208, 111, 0.35) 10px, transparent 11px),
    /* Sunshine Star 3 */
    radial-gradient(circle at 6% 65%, #ffe600 0, #ffe600 9px, transparent 10px),
    /* Sunshine Star 4 */
    radial-gradient(circle at 94% 85%, #ffe600 0, #ffe600 10px, transparent 11px),
    /* Warm Sand Pearls (Warna Pasir) */
    radial-gradient(circle at 8% 88%, rgba(233, 196, 106, 0.35) 0, rgba(233, 196, 106, 0.35) 11px, transparent 12px);
  background-attachment: fixed;
  background-repeat: repeat-y;
  background-size: 100% 1200px;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg-2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffe600 0%, #00b4d8 50%, #f4d06f 100%);
  border-radius: var(--radius-full);
}

::selection {
  background: #ffe800;
  color: #042444;
}

/* ==================== LOADING SCREEN ==================== */
#loadingScreen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background:
    radial-gradient(circle at center, rgba(56, 182, 255, 0.35) 0%, rgba(5, 45, 90, 0.97) 55%, rgba(2, 20, 42, 1) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
}

#loadingScreen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loadingParticles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.ls-scanline {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 3px,
      rgba(255, 255, 255, 0.015) 3px,
      rgba(255, 255, 255, 0.015) 4px);
  pointer-events: none;
}
.ls-text-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.ls-animated-text {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  perspective: 800px;
}

.ls-letter {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  display: inline-block;
  color: #fff;
  text-shadow:
    0 0 20px rgba(0, 180, 216, 0.8),
    0 0 40px rgba(0, 180, 216, 0.4),
    3px 3px 0 #033a75;
  will-change: transform, opacity;
}

.ls-letter-space {
  width: 0.6em;
}

/* ===== X - Bouncing Drop ===== */
.ls-letter-x {
  color: #ffe800;
  text-shadow:
    3px 3px 0 #b36b00,
    5px 5px 12px rgba(0, 15, 38, 0.45);
  animation: ls-bounce-drop 2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  animation-delay: 0s;
}

@keyframes ls-bounce-drop {
  0%, 100% { transform: translateY(0) scale(1); }
  15% { transform: translateY(-45px) scale(1.15, 0.9); }
  30% { transform: translateY(0) scale(0.9, 1.1); }
  40% { transform: translateY(-18px) scale(1.05); }
  55% { transform: translateY(0) scale(1); }
}

/* ===== I - 3D Spin Flip ===== */
.ls-letter-i {
  color: #48cae4;
  text-shadow:
    3px 3px 0 #005f73,
    5px 5px 12px rgba(0, 15, 38, 0.45);
  animation: ls-spin-flip 3s ease-in-out infinite;
  animation-delay: 0.15s;
}

@keyframes ls-spin-flip {
  0%, 100% { transform: rotateY(0deg); }
  25% { transform: rotateY(360deg); }
  50% { transform: rotateY(360deg); }
}

/* ===== R - Wave Float ===== */
.ls-letter-r {
  color: #ff758f;
  text-shadow:
    3px 3px 0 #8b0a1e,
    5px 5px 12px rgba(0, 15, 38, 0.45);
  animation: ls-wave-float 2.5s ease-in-out infinite;
  animation-delay: 0.3s;
}

@keyframes ls-wave-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(8deg); }
  50% { transform: translateY(5px) rotate(-3deg); }
  75% { transform: translateY(-10px) rotate(4deg); }
}

/* ===== P - Elastic Pulse ===== */
.ls-letter-p {
  color: #72efdd;
  text-shadow:
    3px 3px 0 #005f56,
    5px 5px 12px rgba(0, 15, 38, 0.45);
  animation: ls-elastic-pulse 1.8s ease-in-out infinite;
  animation-delay: 0.45s;
}

@keyframes ls-elastic-pulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  30% { transform: scale(1.35); filter: brightness(1.2); }
  50% { transform: scale(0.85); filter: brightness(0.95); }
  70% { transform: scale(1.1); filter: brightness(1.08); }
}

/* ===== L - Glitch Shake ===== */
.ls-letter-l {
  color: #ffbe0b;
  text-shadow:
    3px 3px 0 #7a5600,
    5px 5px 12px rgba(0, 15, 38, 0.45);
  animation: ls-glitch-shake 2.2s steps(1) infinite;
  animation-delay: 0.6s;
}

@keyframes ls-glitch-shake {
  0%, 100% { transform: translate(0) skewX(0deg); text-shadow: 3px 3px 0 #7a5600, 5px 5px 12px rgba(0, 15, 38, 0.45); }
  5% { transform: translate(-3px, 2px) skewX(-4deg); text-shadow: -3px 0 #ff0040, 3px 0 #00ffff; }
  10% { transform: translate(3px, -1px) skewX(3deg); text-shadow: 3px 0 #ff0040, -3px 0 #00ffff; }
  15% { transform: translate(0) skewX(0deg); }
  45% { transform: translate(0) skewX(0deg); }
  48% { transform: translate(2px, -2px) skewX(5deg); text-shadow: -2px 0 #ff0040, 2px 0 #00ffff; }
  50% { transform: translate(-2px, 1px) skewX(-3deg); text-shadow: 2px 0 #ff0040, -2px 0 #00ffff; }
  52% { transform: translate(0) skewX(0deg); }
}

/* ===== 2 - Jelly Wobble & Pop (Tanpa Efek Lampu Neon) ===== */
.ls-letter-2 {
  color: #ff9e00;
  text-shadow:
    3px 3px 0 #7a3a00,
    5px 5px 12px rgba(0, 15, 38, 0.45);
  animation: ls-jelly-wobble 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  animation-delay: 0.75s;
}

@keyframes ls-jelly-wobble {
  0%, 100% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.28, 0.76) rotate(-7deg); }
  35% { transform: scale(0.82, 1.22) rotate(7deg); }
  50% { transform: scale(1.15, 0.88) rotate(-4deg); }
  65% { transform: scale(0.94, 1.06) rotate(3deg); }
  80% { transform: scale(1) rotate(0deg); }
}

/* ===== Text Container Entrance ===== */
.ls-animated-text {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  perspective: 800px;
  animation: ls-text-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes ls-text-enter {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Subtitle ===== */
.ls-subtitle {
  font-family: var(--font-bubble);
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(208, 239, 255, 0.7);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  animation: ls-subtitle-fade 1.5s ease-in-out infinite alternate;
  animation-delay: 1s;
  opacity: 0;
  animation-fill-mode: both;
}

@keyframes ls-subtitle-fade {
  0% { opacity: 0.4; letter-spacing: 0.35em; }
  100% { opacity: 1; letter-spacing: 0.55em; }
}

/* ===== Wave Bar ===== */
.ls-wave-bar {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ls-wave-bar span {
  display: block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, #ffe800, #00b4d8);
  border-radius: var(--radius-full);
  animation: ls-wave-anim 1.2s ease-in-out infinite;
}

.ls-wave-bar span:nth-child(1) { animation-delay: 0s; }
.ls-wave-bar span:nth-child(2) { animation-delay: 0.15s; }
.ls-wave-bar span:nth-child(3) { animation-delay: 0.3s; }
.ls-wave-bar span:nth-child(4) { animation-delay: 0.45s; }
.ls-wave-bar span:nth-child(5) { animation-delay: 0.6s; }

@keyframes ls-wave-anim {
  0%, 100% { height: 8px; opacity: 0.5; }
  50% { height: 28px; opacity: 1; }
}

/* ==================== LOGO TEXT ==================== */
.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffe800;
  letter-spacing: 0.05em;
  text-shadow:
    2px 2px 0 #033a75,
    3px 4px 8px rgba(0, 15, 38, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.nav-logo:hover .logo-text {
  transform: scale(1.08) rotate(-2deg);
  text-shadow:
    2px 2px 0 #033a75,
    4px 5px 12px rgba(0, 15, 38, 0.5);
  color: #fff266;
}

[data-theme="light"] .logo-text {
  color: #0077b6;
  text-shadow: 2px 2px 0 #caf0f8, 0 0 12px rgba(0, 119, 182, 0.3);
}

[data-theme="light"] .nav-logo:hover .logo-text {
  color: #005f73;
  text-shadow: 2px 2px 0 #caf0f8, 0 0 20px rgba(0, 119, 182, 0.5);
}

/* ==================== LAYOUT & POD CONTAINERS ==================== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

/* ==================== REVEAL ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.32s;
}

.reveal-delay-4 {
  transition-delay: 0.45s;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

/* Yellow / Pink Pill Badge */
.section-tag {
  font-family: var(--font-bubble);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffe800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.4rem 1.25rem;
  background: rgba(255, 232, 8, 0.2);
  border: 2px solid #ffe800;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-xs);
  box-shadow: 0 4px 18px rgba(255, 232, 8, 0.35);
}

[data-theme="light"] .section-tag {
  background: #ffbe0b;
  color: #042444;
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 190, 11, 0.45);
}

/* 3D Bold Cartoon Section Titles */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--spacing-sm);
  color: #ffffff;
  text-shadow:
    2px 2px 0 #033a75,
    -1px -1px 0 #033a75,
    0 4px 16px rgba(0, 180, 216, 0.6);
  background: none;
  -webkit-text-fill-color: initial;
}

[data-theme="light"] .section-title {
  color: #0077b6;
  text-shadow: 2px 2px 0 #caf0f8, 0 4px 12px rgba(0, 119, 182, 0.25);
}

.section-desc {
  font-size: 1.12rem;
  color: var(--clr-text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-weight: 500;
}

/* ==================== BUTTONS (JUICY 3D CARTOON PILLS) ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-bubble);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.02em;
}

/* Glossy highlight shine across top edge */
.btn::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 10%;
  right: 10%;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: var(--radius-full);
  pointer-events: none;
}

/* Golden-Yellow Hoverboard Primary Button */
.btn-primary {
  background: linear-gradient(180deg, #fff266 0%, #ffe800 48%, #f5a623 100%);
  color: #042444;
  border: 2.5px solid #ffffff;
  box-shadow: 0 6px 0 #b36b00, 0 12px 24px rgba(255, 232, 8, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 0 #b36b00, 0 16px 30px rgba(255, 232, 8, 0.55);
  color: #042444;
}

.btn-primary:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 2px 0 #b36b00, 0 4px 10px rgba(255, 232, 8, 0.35);
}

/* Sky-Cyan / White Outline Button */
.btn-outline {
  background: rgba(0, 180, 216, 0.22);
  color: #ffffff;
  border: 2.5px solid #48cae4;
  box-shadow: 0 5px 0 #0077b6, 0 10px 22px rgba(0, 180, 216, 0.35);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .btn-outline {
  background: #ffffff;
  color: #0077b6;
  border-color: #00b4d8;
  box-shadow: 0 5px 0 #0077b6, 0 10px 22px rgba(0, 119, 182, 0.2);
}

.btn-outline:hover {
  background: #00b4d8;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 7px 0 #005f73, 0 15px 28px rgba(0, 180, 216, 0.5);
}

.btn-outline:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 2px 0 #005f73;
}

.gender-split-toggle {
  width: auto;
  min-width: 180px;
  justify-content: center;
  font-size: 0.88rem;
  font-family: var(--font-bubble);
  font-weight: 700;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-md);
}

.gender-split-toggle.active {
  background: rgba(255, 232, 8, 0.22);
  border-color: #ffe800;
  color: #ffe800;
  box-shadow: 0 4px 12px rgba(0, 15, 38, 0.3);
}

/* ==================== THEME TOGGLE ==================== */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
}

.theme-toggle-track {
  position: relative;
  width: 54px;
  height: 30px;
  background: var(--toggle-bg);
  border: 2px solid var(--toggle-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  padding: 3px;
  transition: var(--transition);
}

.theme-toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe800, #ffbe0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #042444;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  transform: translateX(0);
  box-shadow: 0 2px 8px rgba(255, 232, 8, 0.5);
}

[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(24px);
  background: #0077b6;
  color: #fff;
}

.theme-icon-dark,
.theme-icon-light {
  position: absolute;
  transition: opacity 0.2s, transform 0.2s;
}

.theme-icon-dark {
  opacity: 1;
  transform: scale(1);
}

.theme-icon-light {
  opacity: 0;
  transform: scale(0.7);
}

[data-theme="light"] .theme-icon-dark {
  opacity: 0;
  transform: scale(0.7);
}

[data-theme="light"] .theme-icon-light {
  opacity: 1;
  transform: scale(1);
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--clr-navbar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(72, 202, 228, 0.4);
  box-shadow: 0 10px 28px rgba(0, 15, 38, 0.35);
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}




.nav-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

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

.nav-link {
  font-family: var(--font-bubble);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--clr-text-muted);
  text-transform: capitalize;
  position: relative;
  padding: 0.42rem 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

[data-theme="light"] .nav-link {
  color: #042444;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #ffe800;
  transition: all 0.3s ease;
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255, 232, 8, 0.6);
}

.nav-link:hover,
.nav-link.active {
  color: #ffe800;
  background: rgba(0, 180, 216, 0.18);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0077b6;
  background: rgba(0, 180, 216, 0.15);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #ffe800;
  border-radius: 3px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==================== HERO SECTION (BIRU LAUT, WARNA PASIR, & WARNA MATAHARI) ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 160px;
  background:
    /* Sinar Matahari Tembus ke Laut (Warna Matahari) */
    radial-gradient(ellipse at 50% -12%, rgba(255, 230, 0, 0.45) 0%, rgba(255, 190, 11, 0.22) 35%, transparent 72%),
    repeating-conic-gradient(from 180deg at 50% 0%, rgba(255, 230, 0, 0.08) 0deg, rgba(255, 230, 0, 0.08) 6deg, transparent 6deg, transparent 14deg),
    /* Biru Laut Dalam & Tropis (Biru Laut) */
    linear-gradient(180deg, #0096c7 0%, #0077b6 25%, #023e8a 62%, #012a5e 100%);
}

[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse at 50% -12%, rgba(255, 230, 0, 0.65) 0%, rgba(255, 209, 102, 0.35) 35%, transparent 75%),
    repeating-conic-gradient(from 180deg at 50% 0%, rgba(255, 230, 0, 0.12) 0deg, rgba(255, 230, 0, 0.12) 6deg, transparent 6deg, transparent 14deg),
    linear-gradient(180deg, #48cae4 0%, #0096c7 30%, #0077b6 70%, #023e8a 100%);
}

/* Lengkungan Bukit Pasir Laut Emas (Warna Pasir Seafloor Dunes) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: 900px 150px;
  pointer-events: none;
  z-index: 4;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 150' preserveAspectRatio='none'%3E%3Cpath fill='%23d4a343' d='M0,150 C140,50 280,40 420,95 C540,140 680,45 820,60 C860,65 900,80 900,150 L900,150 L0,150 Z'/%3E%3Cpath fill='%23e9c46a' d='M0,150 C110,85 230,70 360,118 C500,160 620,70 770,85 C840,95 900,115 900,150 Z'/%3E%3Cpath fill='%23f4d06f' fill-opacity='0.9' d='M0,150 C90,110 200,95 310,132 C430,168 560,95 700,105 C780,112 850,130 900,150 Z'/%3E%3Ccircle cx='95' cy='95' r='5.5' fill='%23ffffff' fill-opacity='0.85'/%3E%3Ccircle cx='95' cy='95' r='2.5' fill='%23ffe600'/%3E%3Ccircle cx='260' cy='82' r='6' fill='%23ffffff' fill-opacity='0.85'/%3E%3Ccircle cx='260' cy='82' r='2.8' fill='%23ffe600'/%3E%3Ccircle cx='660' cy='98' r='6.5' fill='%23ffffff' fill-opacity='0.85'/%3E%3Ccircle cx='660' cy='98' r='3' fill='%23ffe600'/%3E%3Ccircle cx='800' cy='86' r='5' fill='%23ffffff' fill-opacity='0.85'/%3E%3Ccircle cx='800' cy='86' r='2.2' fill='%23ffe600'/%3E%3C/svg%3E");
}

.parallax-layer {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  will-change: transform;
}

.parallax-bg {
  background: radial-gradient(ellipse at 50% 12%, rgba(72, 202, 228, 0.35) 0%, transparent 70%);
  opacity: 0.7;
  z-index: 0;
}

/* Hawaiian Flower Clouds & Serpentine Streamers */
.parallax-grid {
  z-index: 1;
  background-image:
    /* Flower Cloud (Yellow) */
    radial-gradient(circle at 20% 30%, rgba(255, 232, 8, 0.14) 0, rgba(255, 232, 8, 0.14) 20px, transparent 21px),
    radial-gradient(circle at 23% 27%, rgba(255, 232, 8, 0.14) 0, rgba(255, 232, 8, 0.14) 15px, transparent 16px),
    radial-gradient(circle at 17% 27%, rgba(255, 232, 8, 0.14) 0, rgba(255, 232, 8, 0.14) 15px, transparent 16px),
    /* Flower Cloud (Pink) */
    radial-gradient(circle at 75% 60%, rgba(255, 117, 143, 0.14) 0, rgba(255, 117, 143, 0.14) 20px, transparent 21px),
    radial-gradient(circle at 78% 57%, rgba(255, 117, 143, 0.14) 0, rgba(255, 117, 143, 0.14) 15px, transparent 16px),
    radial-gradient(circle at 72% 57%, rgba(255, 117, 143, 0.14) 0, rgba(255, 117, 143, 0.14) 15px, transparent 16px),
    /* Confetti Sparkles */
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.25) 3px, transparent 7px),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.28) 4px, transparent 9px),
    radial-gradient(circle at 35% 75%, rgba(114, 239, 221, 0.25) 3px, transparent 7px);
  background-size: 340px 340px;
  animation: floating-caustics 12s ease-in-out infinite alternate;
}

@keyframes floating-caustics {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-16px) scale(1.02);
  }
}

.parallax-orb {
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0, 210, 211, 0.35) 0%, transparent 70%);
  top: -10%;
  left: -5%;
}

.orb-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255, 71, 126, 0.3) 0%, transparent 70%);
  bottom: 10%;
  right: 5%;
}

.orb-3 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(255, 232, 8, 0.28) 0%, transparent 70%);
  top: 40%;
  right: 20%;
}

.parallax-particles {
  z-index: 2;
  inset: 0;
}

.hero-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Cute Cartoon Ribbon Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #ffe800;
  border-radius: var(--radius-full);
  padding: 0.45rem 1.4rem;
  font-family: var(--font-bubble);
  font-weight: 800;
  font-size: 0.92rem;
  color: #0077b6;
  margin-bottom: var(--spacing-sm);
  box-shadow: 0 6px 18px rgba(0, 30, 80, 0.16), 0 2px 0 #ffaa00;
  letter-spacing: 0.04em;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.hero-badge:hover {
  transform: rotate(1deg) scale(1.04);
}

.badge-dot {
  width: 9px;
  height: 9px;
  background: #ffe600;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 230, 0, 0.75);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(255, 230, 0, 0);
  }
}

/* ==================== HERO TITLE (3D CARTOON POP) ==================== */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  gap: 0.25rem;
}

.title-line {
  display: block;
  line-height: 1.1;
}

.title-line:first-child {
  font-family: var(--font-bubble);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  text-shadow:
    0 3px 0 #00509d,
    0 6px 12px rgba(0, 20, 60, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-theme="light"] .title-line:first-child {
  color: #ffffff;
  text-shadow: 0 3px 0 #0077b6, 0 5px 10px rgba(0, 119, 182, 0.3);
}

/* 3D SpongeBob Yellow Poster Title "XI RPL 2" */
.title-accent {
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: clamp(3.8rem, 9.5vw, 6.8rem);
  font-weight: 900;
  color: #ffe800;
  -webkit-text-stroke: 3.5px #023e8a;
  text-shadow:
    0 4px 0 #023e8a,
    0 8px 0 #012a5e,
    0 12px 0 #00193b,
    0 18px 28px rgba(0, 20, 60, 0.5);
  letter-spacing: 0.04em;
  display: inline-block;
  margin: 0.15rem 0;
  animation: hero-title-bob 4s ease-in-out infinite alternate;
  filter: none;
  -webkit-text-fill-color: initial;
}

@keyframes hero-title-bob {
  0% {
    transform: translateY(0) scale(1);
  }

  100% {
    transform: translateY(-7px) scale(1.015);
  }
}

.title-sub {
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  font-family: var(--font-bubble);
  font-weight: 700;
  color: #023e8a;
  background: #ffffff;
  padding: 0.4rem 1.6rem;
  border-radius: var(--radius-full);
  border: 3px solid #72efdd;
  box-shadow: 0 4px 14px rgba(0, 30, 80, 0.18), 0 2px 0 #00b4d8;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
  display: inline-block;
}

[data-theme="light"] .title-sub {
  color: #0077b6;
  border-color: #38b6ff;
}

/* Crisp Readable Cartoon Cloud Card Description */
.hero-desc {
  font-family: var(--font-body);
  font-size: 1.14rem;
  font-weight: 600;
  color: #ffffff;
  max-width: 660px;
  margin: 0 auto var(--spacing-lg);
  line-height: 1.75;
  background: rgba(0, 45, 105, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.1rem 2rem;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 25px rgba(0, 20, 60, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .hero-desc {
  background: rgba(255, 255, 255, 0.88);
  color: #023e8a;
  border-color: rgba(0, 150, 214, 0.3);
  text-shadow: none;
}

/* Centered Juicy 3D Buttons */
.hero-cta {
  display: flex;
  gap: 1.1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-xl);
}

/* Bubbly Cartoon Pod Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(255, 255, 255, 0.95);
  color: #023e8a;
  border: 3px solid #72efdd;
  border-radius: 24px;
  padding: 0.85rem 1.8rem;
  min-width: 130px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 30, 80, 0.16), 0 3px 0 #0096c7;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: #ffe800;
  box-shadow: 0 12px 28px rgba(0, 30, 80, 0.25), 0 3px 0 #ffaa00;
}

.stat-number {
  display: block;
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0077b6;
  line-height: 1.1;
  text-shadow: none;
}

.stat-label {
  font-family: var(--font-bubble);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ff477e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  display: none;
}

/* Floating Cartoon Sticker Badges */
.hero-deco {
  position: absolute;
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-weight: 800;
  user-select: none;
  pointer-events: none;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.5rem;
  border-radius: 22px;
  border: 3.5px solid #ffffff;
  letter-spacing: 0.05em;
  animation: sticker-float 6s ease-in-out infinite alternate;
}

.deco-1 {
  left: 6%;
  top: 22%;
  background: linear-gradient(135deg, #ffe800, #ffaa00);
  color: #023e8a;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 4px 0 #cc8800;
  transform: rotate(-10deg);
}

.deco-2 {
  right: 6%;
  top: 28%;
  background: linear-gradient(135deg, #ff758f, #ff477e);
  color: #ffffff;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2), 0 4px 0 #c9184a;
  transform: rotate(10deg);
  animation-delay: -3s;
}

@keyframes sticker-float {
  0% {
    transform: translateY(0) rotate(-10deg);
  }

  100% {
    transform: translateY(-16px) rotate(-6deg);
  }
}

.deco-2 {
  animation-name: sticker-float-right;
}

@keyframes sticker-float-right {
  0% {
    transform: translateY(0) rotate(10deg);
  }

  100% {
    transform: translateY(-16px) rotate(14deg);
  }
}

@media (max-width: 992px) {
  .hero-deco {
    display: none;
  }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: #0077b6;
  border: 2px solid #ffe800;
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-bubble);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 18px rgba(0, 30, 80, 0.18);
  animation: bounce-hint 2s ease-in-out infinite;
  z-index: 6;
}

@keyframes bounce-hint {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ==================== GALLERY SECTION (PAINTED WATER SPLASH POD) ==================== */
.gallery-section {
  background: var(--clr-bg-2);
  position: relative;
  border-top: 5px solid #e9c46a;
  border-radius: 50px 50px 0 0;
  margin-top: -30px;
  z-index: 5;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .gallery-section {
  background: #fffdf5;
  border-top: 5px solid #f4d06f;
  box-shadow: 0 -15px 40px rgba(0, 119, 182, 0.15);
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, transparent, #ffe600, #f4d06f, #00b4d8, transparent);
}

.gallery-filter {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.filter-btn {
  font-family: var(--font-bubble);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(244, 208, 111, 0.45);
  color: #fffdf5;
  background: rgba(244, 208, 111, 0.15);
  transition: var(--transition);
  cursor: pointer;
}

[data-theme="light"] .filter-btn {
  color: #0077b6;
  background: rgba(244, 208, 111, 0.22);
  border-color: rgba(233, 196, 106, 0.6);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(180deg, #fff75e 0%, #ffe600 55%, #f4d06f 100%);
  border-color: #ffffff;
  color: #022b52;
  box-shadow: 0 6px 20px rgba(255, 230, 0, 0.45);
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.gallery-item {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--clr-bg-card);
  border: 3px solid rgba(0, 180, 216, 0.35);
  box-shadow: 0 10px 28px rgba(0, 15, 38, 0.4);
  transition: var(--transition);
  animation: fadeIn 0.5s ease both;
}

[data-theme="light"] .gallery-item {
  border-color: rgba(0, 153, 229, 0.2);
  box-shadow: 0 10px 25px rgba(0, 119, 182, 0.12);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #ffe800;
  box-shadow: 0 18px 40px rgba(0, 15, 38, 0.55), 0 0 25px rgba(255, 232, 8, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 18, 40, 0.95) 0%, rgba(3, 18, 40, 0.4) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--spacing-sm);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-title {
  font-family: var(--font-bubble);
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffe800;
  margin-bottom: 0.2rem;
  text-shadow: 1px 1px 0 #043f7a;
}

.gallery-overlay-tag {
  font-family: var(--font-bubble);
  font-size: 0.82rem;
  font-weight: 700;
  color: #72efdd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  background: linear-gradient(135deg, #ff477e, #ffe800);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 18px rgba(255, 71, 126, 0.5);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.gallery-pagination,
.students-pagination {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(0, 180, 216, 0.35);
  color: var(--clr-text-muted);
  font-family: var(--font-bubble);
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 180, 216, 0.15);
  transition: var(--transition);
  cursor: pointer;
}

[data-theme="light"] .page-btn {
  color: #042444;
  background: rgba(0, 153, 229, 0.08);
}

.page-btn:hover,
.page-btn.active {
  background: #ffe800;
  color: #042444;
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 232, 8, 0.5);
  transform: translateY(-2px);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 14, 32, 0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(14px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.open .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-height: 75vh;
  max-width: 90vw;
  border-radius: 26px;
  border: 4px solid #48cae4;
  object-fit: contain;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.65);
}

.lightbox-caption {
  margin-top: var(--spacing-sm);
  font-family: var(--font-bubble);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffe800;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0, 180, 216, 0.25);
  border: 2px solid #48cae4;
  color: #ffffff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  font-size: 1.15rem;
  transition: var(--transition);
  cursor: pointer;
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
}

.lightbox-prev {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: #ff477e;
  border-color: #ffffff;
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 20px rgba(255, 71, 126, 0.6);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.12);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.12);
}

/* ==================== HOMEROOM TEACHER (CHARACTER SHOWCASE) ==================== */
.homeroom-section {
  background: var(--clr-bg);
  position: relative;
  overflow: hidden;
  padding: var(--spacing-2xl) 0;
}

[data-theme="light"] .homeroom-section {
  background: #f0faff;
}

.homeroom-wrapper {
  display: flex;
  justify-content: center;
}

/* Feature Showcase Pod with Splash Backdrop */
.homeroom-card {
  position: relative;
  background: var(--clr-bg-card);
  border: 3.5px solid rgba(244, 208, 111, 0.45);
  border-radius: 32px;
  max-width: 820px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: 0 18px 48px rgba(0, 15, 38, 0.45);
  transition: var(--transition);
}

[data-theme="light"] .homeroom-card {
  background: #fffdf5;
  border-color: rgba(233, 196, 106, 0.6);
  box-shadow: 0 15px 40px rgba(0, 119, 182, 0.14);
}

.homeroom-card:hover {
  border-color: #ffe600;
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0, 15, 38, 0.5), 0 0 35px rgba(255, 230, 0, 0.45);
}

.homeroom-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffe600, #f4d06f, #00b4d8);
}

.homeroom-card::after {
  content: 'WALI KELAS';
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-family: 'Titan One', cursive;
  font-size: 5.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 180, 216, 0.08);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.homeroom-photo-col {
  flex-shrink: 0;
  width: 240px;
  position: relative;
  overflow: hidden;
  border-right: 3px solid rgba(0, 180, 216, 0.25);
}

.homeroom-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.homeroom-card:hover .homeroom-photo-col img {
  transform: scale(1.06);
}

.homeroom-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
}

.homeroom-body {
  flex: 1;
  padding: var(--spacing-lg) var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.homeroom-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 232, 8, 0.2);
  border: 2px solid #ffe800;
  border-radius: var(--radius-full);
  padding: 0.4rem 1.1rem;
  font-family: var(--font-bubble);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffe800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  width: fit-content;
  box-shadow: 0 4px 14px rgba(255, 232, 8, 0.3);
}

[data-theme="light"] .homeroom-badge {
  background: #ffbe0b;
  color: #042444;
  border-color: #ffffff;
}

.homeroom-name {
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  text-shadow: 1px 1px 0 #043f7a;
}

[data-theme="light"] .homeroom-name {
  color: #042444;
  text-shadow: none;
}

.homeroom-title {
  font-family: var(--font-bubble);
  font-size: 1rem;
  font-weight: 700;
  color: #72efdd;
  letter-spacing: 0.04em;
  margin-bottom: var(--spacing-sm);
}

[data-theme="light"] .homeroom-title {
  color: #0077b6;
}

.homeroom-divider {
  width: 55px;
  height: 4px;
  background: linear-gradient(90deg, #ffe800, #ff477e);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-sm);
}

.homeroom-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

.homeroom-stats {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.homeroom-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.homeroom-stat-val {
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffe800;
  text-shadow: 1px 1px 0 #043f7a;
}

[data-theme="light"] .homeroom-stat-val {
  color: #ffaa00;
  text-shadow: none;
}

.homeroom-stat-lbl {
  font-family: var(--font-bubble);
  font-size: 0.85rem;
  font-weight: 700;
  color: #72efdd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[data-theme="light"] .homeroom-stat-lbl {
  color: #0096c7;
}

/* ==================== STUDENTS SECTION ==================== */
.students-section {
  background: var(--clr-bg-2);
  position: relative;
  border-top: 4px solid rgba(0, 180, 216, 0.35);
  border-radius: 50px 50px 0 0;
  margin-top: -30px;
  z-index: 6;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .students-section {
  background: #ffffff;
  border-top: none;
  box-shadow: 0 -15px 40px rgba(0, 119, 182, 0.15);
}

.students-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00b4d8, #ff477e, #ffe800, transparent);
}

.students-actions {
  display: flex;
  gap: 1.3rem;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

/* Pink Butterfly / Starfish Button */
.btn-random-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-bubble);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: 2.5px solid #ffffff;
  background: linear-gradient(180deg, #ff758f 0%, #ff477e 52%, #d90429 100%);
  box-shadow: 0 6px 0 #9d0234, 0 12px 24px rgba(255, 71, 126, 0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-random-picker:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 0 #9d0234, 0 16px 30px rgba(255, 71, 126, 0.6);
  color: #fff;
}

.btn-random-picker:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 2px 0 #9d0234;
}

/* Turquoise / Hoverboard Group Picker Button */
.btn-group-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2.1rem;
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-bubble);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  border: 2.5px solid #ffffff;
  background: linear-gradient(180deg, #72efdd 0%, #00b4d8 50%, #0077b6 100%);
  box-shadow: 0 6px 0 #004e70, 0 12px 24px rgba(0, 180, 216, 0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-group-picker:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 0 #004e70, 0 16px 30px rgba(0, 180, 216, 0.6);
  color: #fff;
}

.btn-group-picker:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 2px 0 #004e70;
}

.btn-random-picker::before,
.btn-group-picker::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 10%;
  right: 10%;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.btn-random-picker i,
.btn-group-picker i {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.btn-random-picker:hover i {
  transform: rotate(30deg);
}

.btn-group-picker:hover i {
  transform: scale(1.2);
}

.students-search {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.search-box i {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #00b4d8;
  font-size: 1.1rem;
}

.search-box input {
  width: 100%;
  background: var(--clr-bg-card);
  border: 3px solid rgba(0, 180, 216, 0.35);
  border-radius: var(--radius-full);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 1.3rem 0.85rem 3.2rem;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(0, 15, 38, 0.25);
}

[data-theme="light"] .search-box input {
  background: #f7fcff;
  border-color: rgba(0, 153, 229, 0.3);
  color: #042444;
}

.search-box input:focus {
  border-color: #ffe800;
  box-shadow: 0 0 0 5px rgba(255, 232, 8, 0.3), 0 8px 24px rgba(0, 15, 38, 0.35);
}

.search-box input::placeholder {
  color: var(--clr-text-dim);
  font-family: var(--font-bubble);
}

/* Students Grid */
.students-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-bottom: var(--spacing-lg);
  min-height: 200px;
}

@media (min-width: 1400px) {
  .students-grid {
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .students-grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 1.1rem;
  }
}

@media (max-width: 520px) {
  .students-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 330px) {
  .students-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==================== PHOTOCARD TICKET DESIGN (INSPIRASI FREYA) ==================== */
.student-card.photocard {
  container-type: inline-size;
  container-name: photocard;
  position: relative;
  content-visibility: visible;
  width: 100%;
  aspect-ratio: 9 / 15.2;
  background: #09121d;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(14px, 7cqi, 26px);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(0, 10, 25, 0.45);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  user-select: none;
  isolation: isolate;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] .student-card.photocard {
  background: #e9eff5;
  border-color: rgba(0, 119, 182, 0.2);
  box-shadow: 0 10px 24px rgba(0, 50, 100, 0.12);
}

@media (hover: hover) {
  .student-card.photocard:not(.pc-face):hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #00b4d8;
    box-shadow: 0 20px 44px rgba(0, 10, 25, 0.6), 0 0 20px rgba(0, 180, 216, 0.35);
  }
  .student-card.photocard:hover .pc-name-line {
    width: clamp(45px, 26cqi, 75px);
    background: #00b4d8;
  }
  .student-card.photocard:hover .pc-photo-frame img {
    transform: scale(1.05);
  }
  .student-card.photocard:hover .pc-holo-overlay {
    opacity: 1;
    animation: holoSwipe 1.1s ease forwards;
  }
}

.student-card.photocard:not(.pc-face):active {
  transform: scale(0.97);
  transition: transform 0.15s ease;
}

/* Top Right Ticket Tab */
.pc-ticket-tag {
  position: absolute;
  top: 0;
  right: clamp(8px, 4.5cqi, 16px);
  z-index: 8;
  background: #d8e2ec;
  color: #08121e;
  padding: clamp(6px, 3cqi, 9px) clamp(3px, 1.8cqi, 6px) clamp(7px, 3.6cqi, 11px);
  border-radius: 0 0 clamp(6px, 3cqi, 10px) clamp(6px, 3cqi, 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .pc-ticket-tag {
  background: #0f1e33;
  color: #ffffff;
}

.pc-tag-text {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.48rem, 2.8cqi, 0.62rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

.pc-tag-year {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.44rem, 2.5cqi, 0.56rem);
  font-weight: 700;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  opacity: 0.85;
}

/* Left Vertical Number Ribbon */
.pc-side-ribbon {
  position: absolute;
  left: 0;
  top: 48%;
  transform: translateY(-50%);
  z-index: 8;
  background: rgba(4, 12, 22, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-left: none;
  border-radius: 0 clamp(6px, 3cqi, 10px) clamp(6px, 3cqi, 10px) 0;
  padding: clamp(7px, 4cqi, 12px) clamp(3px, 1.8cqi, 6px);
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .pc-side-ribbon {
  background: rgba(15, 30, 50, 0.92);
}

.pc-num-text {
  display: block;
  font-family: 'Space Mono', 'DM Sans', monospace;
  font-size: clamp(0.62rem, 3.8cqi, 0.82rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.12em;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

/* Header Section */
.pc-header {
  position: relative;
  z-index: 6;
  padding: clamp(10px, 6cqi, 18px) clamp(10px, 6cqi, 18px) 0;
  max-width: calc(100% - clamp(28px, 14cqi, 48px));
  text-align: left;
}

.pc-big-name {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: clamp(1.25rem, 11cqi, 2.3rem);
  font-weight: 900;
  font-style: italic;
  color: #f8fafc;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

[data-theme="light"] .pc-big-name {
  color: #0b1a2d;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.pc-name-line {
  width: clamp(28px, 18cqi, 55px);
  height: clamp(2.5px, 1.2cqi, 3.5px);
  background: #ffe600;
  border-radius: 2px;
  margin: clamp(4px, 2cqi, 7px) 0 clamp(3px, 1.5cqi, 6px);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.pc-sub-names {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pc-full-name {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.56rem, 3.8cqi, 0.74rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
}

[data-theme="light"] .pc-full-name {
  color: #1a2a3e;
}

.pc-sub-role {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.48rem, 3cqi, 0.62rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8ecae6;
  text-transform: uppercase;
  white-space: nowrap;
}

[data-theme="light"] .pc-sub-role {
  color: #0077b6;
}

/* Background Animated Downward Falling Name Watermark - Full Card Coverage */
.pc-bg-watermark {
  position: absolute;
  inset: -20% -30%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.38;
  transform: rotate(-6deg);
  transition: opacity 0.35s ease;
}

[data-theme="light"] .pc-bg-watermark {
  opacity: 0.25;
}

.student-card.photocard:hover .pc-bg-watermark {
  opacity: 0.72;
}

.pc-wm-stream {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: pcWatermarkFall 14s linear infinite;
  will-change: transform;
}

.pc-wm-group {
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 4.5cqi, 15px);
  padding-bottom: clamp(9px, 4.5cqi, 15px);
}

.pc-wm-row {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-size: clamp(1.2rem, 9cqi, 1.9rem);
  font-weight: 900;
  font-style: italic;
  white-space: nowrap;
  line-height: 0.92;
  letter-spacing: 0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.52);
  transition: -webkit-text-stroke-color 0.35s ease;
}

[data-theme="light"] .pc-wm-row {
  -webkit-text-stroke: 1.5px rgba(0, 80, 160, 0.42);
}

.student-card.photocard:hover .pc-wm-row {
  -webkit-text-stroke-color: rgba(0, 180, 216, 0.95);
}

/* Animasi Nama Bergerak Turun ke Bawah (Seamless Loop 100% Tanpa Jeda) */
@keyframes pcWatermarkFall {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0%);
  }
}

/* Photo Frame & Image */
.pc-photo-frame {
  position: absolute;
  inset: 0;
  top: 22%;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.pc-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.pc-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Titan One', sans-serif;
  font-size: clamp(2rem, 18cqi, 3.5rem);
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #0077b6 0%, #023e8a 100%);
}

/* Bottom Right Badge (MEMBER / KETUA) */
.pc-bottom-tag {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 7;
  background: rgba(5, 15, 28, 0.95);
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: clamp(10px, 6cqi, 16px) 0 0 0;
  padding: clamp(4px, 2.2cqi, 6px) clamp(10px, 5.5cqi, 18px) clamp(5px, 2.8cqi, 8px);
  box-shadow: -4px -4px 14px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .pc-bottom-tag {
  background: rgba(10, 25, 45, 0.95);
}

.pc-role-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.72rem, 4.6cqi, 1.05rem);
  font-weight: 900;
  font-style: italic;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Holographic Sheen Overlay on Hover */
.pc-holo-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.22) 42%,
    rgba(0, 210, 255, 0.28) 48%,
    rgba(255, 117, 143, 0.22) 54%,
    transparent 75%
  );
  transform: translateX(-100%);
  transition: opacity 0.3s ease;
}

.student-card.photocard:hover .pc-holo-overlay {
  opacity: 1;
  animation: holoSwipe 1.1s ease forwards;
}

@keyframes holoSwipe {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ==================== STRUCTURE SECTION (WARNA PASIR GOLDEN DUNE WAVE) ==================== */
.structure-section {
  background: linear-gradient(180deg, #f4d06f 0%, #e9c46a 50%, #d4a343 100%);
  position: relative;
  overflow: hidden;
  border-radius: 50px 50px 0 0;
  margin-top: -30px;
  z-index: 7;
  padding: var(--spacing-2xl) 0 calc(var(--spacing-2xl) + 20px);
  box-shadow: 0 -15px 40px rgba(212, 163, 67, 0.35);
}

.structure-section .section-title {
  color: #022b52;
  text-shadow: 2px 2px 0 #fffdf5, 0 4px 14px rgba(0, 0, 0, 0.12);
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.structure-section .info-card {
  background: #fffdf5;
  border: 3px solid #ffffff;
  border-radius: 28px;
  padding: var(--spacing-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(180, 130, 40, 0.2);
}

.structure-section .info-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffe600, #f4d06f, #0077b6);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.structure-section .info-card:hover {
  border-color: #ffe600;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(180, 130, 40, 0.35), 0 0 25px rgba(255, 230, 0, 0.4);
}

.structure-section .info-card:hover::after {
  transform: scaleX(1);
}

.structure-section .info-card h3 {
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0077b6;
  margin-bottom: var(--spacing-xs);
  letter-spacing: 0.02em;
}

.structure-section .info-card p {
  font-family: var(--font-bubble);
  font-size: 1.05rem;
  font-weight: 700;
  color: #042444;
  line-height: 1.5;
}

.structure-section .info-card:first-child {
  grid-column: 1 / -1;
  max-width: 440px;
  margin: 0 auto var(--spacing-sm);
  width: 100%;
}

/* ==================== FOOTER ==================== */
.footer {
  background: linear-gradient(180deg, #041a35 0%, #010d1c 100%);
  border-top: 4px solid #00b4d8;
  padding: var(--spacing-xl) 0 var(--spacing-md);
  position: relative;
  z-index: 8;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffe800, #ff477e, #00b4d8, transparent);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--spacing-xl);
  align-items: start;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(72, 202, 228, 0.2);
}

.footer-brand .nav-logo {
  font-family: 'Titan One', 'Fredoka', cursive, sans-serif;
  font-size: 1.65rem;
  color: #ffe800;
  -webkit-text-stroke: 1.5px #043f7a;
  text-shadow: 2px 2px 0 #043f7a, 0 0 15px rgba(0, 210, 211, 0.4);
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  max-width: 290px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-family: var(--font-bubble);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #ffe800;
  transform: translateX(4px);
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-end;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(0, 180, 216, 0.45);
  background: rgba(0, 180, 216, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffe800;
  font-size: 1.15rem;
  transition: var(--transition);
}

.social-link:hover {
  background: #ff477e;
  border-color: #ffffff;
  color: #fff;
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 0 18px rgba(255, 71, 126, 0.55);
}

.footer-bottom {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-text-dim);
}

.footer-bottom i {
  color: #ff477e;
  animation: pulse-dot 1.5s infinite;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff266 0%, #ffe800 100%);
  border: 2.5px solid #ffffff;
  color: #042444;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(255, 232, 8, 0.55);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 26px rgba(255, 232, 8, 0.7);
}

/* ==================== TOAST & EXPORT OVERLAY ==================== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(4, 25, 54, 0.95);
  border: 2.5px solid #ffe800;
  color: #ffe800;
  font-family: var(--font-bubble);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 232, 8, 0.35);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.export-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(2, 14, 34, 0.85);
  backdrop-filter: blur(12px);
  gap: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.export-loading.show {
  opacity: 1;
  pointer-events: all;
}

.export-loading-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(72, 202, 228, 0.3);
  border-top-color: #ffe800;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.export-loading p {
  font-family: var(--font-bubble);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffe800;
}

#groupExportSnapshot {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 820px;
  background: #053b75;
  padding: 36px;
  font-family: 'Fredoka', sans-serif;
  color: #ffffff;
  border-radius: 28px;
  z-index: -1;
  border: 4px solid #00b4d8;
}

#groupExportSnapshot .snap-header {
  text-align: center;
  margin-bottom: 24px;
}

#groupExportSnapshot .snap-title {
  font-family: 'Titan One', cursive;
  font-size: 32px;
  color: #ffe800;
  -webkit-text-stroke: 2px #043f7a;
  text-shadow: 2px 2px 0 #043f7a;
  margin-bottom: 6px;
}

#groupExportSnapshot .snap-subtitle {
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #72efdd;
  letter-spacing: 0.05em;
}

#groupExportSnapshot .snap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

#groupExportSnapshot .snap-card {
  background: rgba(4, 25, 54, 0.9);
  border: 2px solid rgba(0, 180, 216, 0.4);
  border-radius: 20px;
  overflow: hidden;
}

#groupExportSnapshot .snap-card-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Titan One', cursive;
  font-size: 16px;
  color: #fff;
}

#groupExportSnapshot .snap-members {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#groupExportSnapshot .snap-member {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #d0efff;
}

#groupExportSnapshot .snap-member-num {
  font-family: 'Titan One', cursive;
  color: #ffe800;
  font-size: 13px;
}

#groupExportSnapshot .snap-footer {
  text-align: center;
  font-size: 12px;
  color: #70aedb;
  font-weight: 600;
}

/* ==================== RESPONSIVE RULES ==================== */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 76px;
    right: 0;
    width: min(85vw, 320px);
    height: calc(100vh - 76px);
    background: var(--clr-navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: var(--spacing-xl) var(--spacing-lg);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-left: 2px solid var(--clr-border);
    gap: var(--spacing-md);
    z-index: 1000;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 110px 0 140px;
  }

  .hero-stats {
    gap: var(--spacing-sm);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-social {
    align-items: flex-start;
    flex-direction: row;
  }
}

@media (max-width: 768px) {
  .homeroom-card {
    flex-direction: column;
  }

  .homeroom-photo-col {
    width: 100%;
    height: 280px;
    border-right: none;
    border-bottom: 3px solid rgba(0, 180, 216, 0.25);
  }

  .structure-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

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

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

  .students-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-random-picker,
  .btn-group-picker {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .structure-grid {
    grid-template-columns: 1fr;
  }
}
/* ==================== HORIZONTAL CAROUSEL (SATU DERET KARTU SISWA) ==================== */
.students-carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 1.5rem 0 0.8rem;
  display: flex;
  align-items: center;
}

.students-grid.horizontal-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 1.35rem !important;
  padding: 1.5rem 0.8rem 2rem !important;
  margin-bottom: 0 !important;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #ffe600 rgba(2, 28, 60, 0.6);
}

/* Custom Horizontal Scrollbar */
.students-grid.horizontal-row::-webkit-scrollbar {
  height: 9px;
}

.students-grid.horizontal-row::-webkit-scrollbar-track {
  background: rgba(2, 28, 60, 0.65);
  border-radius: 999px;
  margin: 0 1.5rem;
}

.students-grid.horizontal-row::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #00b4d8, #ffe600, #ff9e00);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.6);
}

/* Photocard sizing in horizontal carousel (Satu Deret) */
.students-grid.horizontal-row .student-card-container,
.students-grid.horizontal-row .student-card.photocard {
  flex: 0 0 clamp(235px, 68vw, 268px) !important;
  width: clamp(235px, 68vw, 268px) !important;
  aspect-ratio: 9 / 15.2 !important;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  margin: 0 !important;
}

/* Carousel Arrow Navigation Buttons */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(4, 25, 54, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2.5px solid #ffe600;
  color: #ffe600;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 230, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-arrow.prev-arrow {
  left: -20px;
}

.carousel-arrow.next-arrow {
  right: -20px;
}

.carousel-arrow:hover {
  background: linear-gradient(135deg, #ffe600, #ff9e00);
  color: #042444;
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.16);
  box-shadow: 0 12px 30px rgba(255, 230, 0, 0.75);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.92);
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none; /* Native touch swipe is superior on touch screens */
  }
}

.students-carousel-hint {
  text-align: center;
  margin: 0.2rem 0 1rem;
  font-family: 'Fredoka', 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: #8ecae6;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.students-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(4, 25, 54, 0.85);
  border: 1.5px solid rgba(255, 230, 0, 0.4);
  color: #ffe600;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  margin-top: 0.5rem;
}

/* ==================== 3D CARD FLIP & POKÉMON CHARACTER SIDE ==================== */
.student-card-container {
  perspective: 1200px;
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 15.2;
  cursor: pointer;
  transform: translateZ(0);
}

.student-card-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform;
}

.student-card-container.is-flipped .student-card-flipper {
  transform: rotateY(180deg);
}

/* Card Faces */
.student-card-container .pc-face {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  content-visibility: visible !important;
  isolation: auto !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  margin: 0 !important;
}

.student-card-container .pc-front {
  transform: rotateY(0deg) translateZ(1px) !important;
  z-index: 2 !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease 0.25s, visibility 0s linear 0.25s;
}

.student-card-container .pc-back {
  transform: rotateY(180deg) translateZ(1px) !important;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease 0.25s, visibility 0s linear 0.25s;
  background: radial-gradient(circle at 50% 25%, #162438 0%, #070f1a 100%) !important;
  border-color: rgba(255, 230, 0, 0.4) !important;
  box-shadow: 0 14px 35px rgba(0, 10, 25, 0.6), 0 0 25px rgba(255, 230, 0, 0.15) !important;
}

/* Flipped State */
.student-card-container.is-flipped .pc-front {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.student-card-container.is-flipped .pc-back {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 4 !important;
  pointer-events: auto;
}

[data-theme="light"] .pc-back {
  background: radial-gradient(circle at 50% 25%, #ffffff 0%, #e0ebf5 100%) !important;
  border-color: rgba(255, 180, 0, 0.5) !important;
}

@media (hover: hover) {
  .student-card-container:hover {
    transform: translateY(-8px) scale(1.02);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .student-card-container:hover .pc-face {
    box-shadow: 0 22px 48px rgba(0, 10, 25, 0.65), 0 0 24px rgba(0, 180, 216, 0.35);
  }
  .student-card-container.is-flipped:hover .pc-back {
    box-shadow: 0 22px 48px rgba(0, 10, 25, 0.65), 0 0 28px rgba(255, 230, 0, 0.4);
    border-color: #ffe600;
  }
  .student-card-container:hover .pc-name-line {
    width: clamp(45px, 26cqi, 75px);
  }
  .student-card-container:hover .pc-photo-frame img {
    transform: scale(1.06);
  }
  .student-card-container:hover .pc-holo-overlay {
    opacity: 1;
    animation: holoSwipe 1.1s ease forwards;
  }
}

.student-card-container:active {
  transform: scale(0.97);
  transition: transform 0.15s ease;
}

/* Pokemon Side Special Typography & Highlights */
.pc-pokemon-name {
  color: #ffe600 !important;
  text-shadow: 0 0 16px rgba(255, 230, 0, 0.65), 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  font-size: clamp(1.35rem, 10.5cqi, 2.15rem) !important;
  letter-spacing: 0.02em;
}

.pc-pokemon-line {
  background: linear-gradient(90deg, #ffe600, #ff4d6d) !important;
  box-shadow: 0 0 10px rgba(255, 230, 0, 0.7);
}

.pc-pokemon-sub {
  color: #00b4d8 !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
}

.pc-ticket-pokemon {
  background: linear-gradient(135deg, #ffe600 0%, #ff9e00 100%) !important;
  color: #06111f !important;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(255, 230, 0, 0.4);
}

.pc-ribbon-pokemon {
  border-right-color: rgba(255, 230, 0, 0.45) !important;
  color: #ffe600 !important;
}

.pc-tag-pokemon-bottom {
  background: linear-gradient(135deg, rgba(255, 158, 0, 0.95), rgba(255, 77, 109, 0.95)) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: -4px -4px 14px rgba(255, 77, 109, 0.35);
}

.pc-pokemon-frame img {
  filter: drop-shadow(0 14px 26px rgba(255, 230, 0, 0.3)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7)) !important;
  object-fit: contain !important;
}

/* Flip Trigger Badge on Card */
.pc-flip-badge {
  position: absolute;
  top: clamp(8px, 4.5cqi, 13px);
  left: clamp(8px, 4.5cqi, 13px);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(4, 20, 40, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(0, 180, 216, 0.55);
  border-radius: 999px;
  padding: 4px 9px 4px 8px;
  color: #00b4d8;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.6rem, 3.8cqi, 0.72rem);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.pc-flip-badge i {
  font-size: 0.75rem;
  transition: transform 0.4s ease;
}

.pc-flip-badge:hover i {
  transform: rotate(180deg);
}

.pc-flip-badge:hover {
  background: #00b4d8;
  color: #050e18;
  border-color: #00b4d8;
  transform: scale(1.08);
  box-shadow: 0 0 14px rgba(0, 180, 216, 0.65);
}

.pc-flip-badge.pokemon-flip {
  border-color: rgba(255, 230, 0, 0.65);
  color: #ffe600;
}

.pc-flip-badge.pokemon-flip:hover {
  background: #ffe600;
  color: #050e18;
  border-color: #ffe600;
  box-shadow: 0 0 14px rgba(255, 230, 0, 0.65);
}

/* Portfolio Button on Card */
.pc-portfolio-btn {
  position: absolute;
  bottom: clamp(7px, 4cqi, 11px);
  left: clamp(8px, 4.5cqi, 13px);
  z-index: 10;
  width: clamp(28px, 14cqi, 34px);
  height: clamp(28px, 14cqi, 34px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 20, 40, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: clamp(0.72rem, 4cqi, 0.85rem);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.pc-portfolio-btn:hover {
  background: #00b4d8;
  color: #050e18;
  border-color: #00b4d8;
  transform: scale(1.14);
  box-shadow: 0 0 14px rgba(0, 180, 216, 0.7);
}

/* Flip All Cards Button */
.btn-flip-all-cards {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.12) 0%, rgba(255, 110, 0, 0.12) 100%);
  border: 2px solid #ffe600;
  border-radius: 999px;
  padding: 8px 18px;
  color: #ffe600;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(255, 230, 0, 0.2);
}

.btn-flip-all-cards i {
  transition: transform 0.4s ease;
}

.btn-flip-all-cards:hover i {
  transform: rotate(180deg);
}

.btn-flip-all-cards:hover {
  background: linear-gradient(135deg, #ffe600 0%, #ff9e00 100%);
  color: #050e18;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(255, 230, 0, 0.45);
}

.btn-flip-all-cards.active {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  border-color: #00b4d8;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}
