/* ═══════════════════════════════════════════════════════════════
   COLLNET 2026 — Digital Kiosk Display (Portrait)
   Premium Animated Digital Signage
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Color Palette */
  --green-primary: #0E5B3A;
  --green-dark: #0A4A2F;
  --emerald: #1F8A5B;
  --emerald-light: #2BA86E;
  --gold: #D4AF37;
  --gold-light: #E5C76B;
  --white: #FFFFFF;
  --light-bg: #F7FAF8;
  --text-dark: #1F2937;
  --text-light: rgba(255, 255, 255, 0.85);

  /* Typography Scale (responsive via clamp) */
  --fs-hero: clamp(56px, 8vw, 96px);
  --fs-hero-sub: clamp(18px, 2.8vw, 28px);
  --fs-section-title: clamp(36px, 5.5vw, 56px);
  --fs-body: clamp(18px, 2.5vw, 28px);
  --fs-label: clamp(14px, 2vw, 20px);
  --fs-small: clamp(12px, 1.6vw, 16px);
  --fs-card-icon: clamp(32px, 5vw, 52px);
  --fs-card-label: clamp(14px, 2vw, 20px);

  /* Spacing */
  --space-xs: clamp(8px, 1.5vw, 16px);
  --space-sm: clamp(12px, 2vw, 24px);
  --space-md: clamp(20px, 3vw, 36px);
  --space-lg: clamp(32px, 4.5vw, 56px);
  --space-xl: clamp(48px, 6vw, 72px);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 800ms var(--ease-out-expo);
  --transition-medium: 500ms var(--ease-out-expo);
}

html,
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--green-dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Background Effects Layer ─────────────────────────────────── */
.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  will-change: transform;
}

.gradient-orb-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 70%);
  top: -15%;
  right: -20%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.gradient-orb-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  bottom: -10%;
  left: -15%;
  opacity: 0.12;
  animation: orbFloat2 25s ease-in-out infinite;
}

.gradient-orb-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--emerald-light) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  opacity: 0.15;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(-8%, 12%) scale(1.1);
  }

  66% {
    transform: translate(5%, -8%) scale(0.95);
  }
}

@keyframes orbFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  40% {
    transform: translate(10%, -15%) scale(1.15);
  }

  70% {
    transform: translate(-5%, 8%) scale(0.9);
  }
}

@keyframes orbFloat3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-12%, 10%) scale(1.08);
  }
}

/* ── Kiosk Container ──────────────────────────────────────────── */
.kiosk {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}

/* ── Scene Base ───────────────────────────────────────────────── */
.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s var(--ease-out-expo), visibility 0s 1s;
  will-change: opacity;
}

.scene.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s var(--ease-out-expo), visibility 0s 0s;
}

.scene-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

/* ── Scene 1: Hero ────────────────────────────────────────────── */
.scene-1 {
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-primary) 50%, #0D4E33 100%);
}

/* Floating Academic Icons */
.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-icon {
  position: absolute;
  font-size: clamp(24px, 3.5vw, 40px);
  opacity: 0.12;
  will-change: transform;
}

.fi-1 {
  top: 8%;
  left: 12%;
  animation: floatIcon 8s ease-in-out infinite;
}

.fi-2 {
  top: 15%;
  right: 15%;
  animation: floatIcon 10s ease-in-out infinite 1s;
}

.fi-3 {
  top: 35%;
  left: 8%;
  animation: floatIcon 9s ease-in-out infinite 2s;
}

.fi-4 {
  top: 55%;
  right: 10%;
  animation: floatIcon 11s ease-in-out infinite 0.5s;
}

.fi-5 {
  bottom: 20%;
  left: 18%;
  animation: floatIcon 7s ease-in-out infinite 3s;
}

.fi-6 {
  bottom: 30%;
  right: 20%;
  animation: floatIcon 12s ease-in-out infinite 1.5s;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-15px) rotate(5deg);
  }

  75% {
    transform: translateY(10px) rotate(-3deg);
  }
}

/* University Logo */
.uni-logo-wrap {
  margin-bottom: var(--space-xs);
  opacity: 0;
  transform: translateY(20px);
}

.scene-1.active .uni-logo-wrap {
  animation: fadeSlideUp 700ms var(--ease-out-expo) 200ms forwards;
}

.uni-logo-circle {
  width: clamp(56px, 9vw, 80px);
  height: clamp(56px, 9vw, 80px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.uni-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 3vw, 28px);
  letter-spacing: 2px;
  color: var(--white);
}

.uni-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.uni-name {
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(15px);
}

.scene-1.active .uni-name {
  animation: fadeSlideUp 700ms var(--ease-out-expo) 400ms forwards;
}

/* Hero Title */
.hero-text {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.5vw, 6px);
  margin-bottom: var(--space-sm);
}

.hero-line {
  display: block;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-line-1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 6px;
}

.hero-line-2 {
  font-size: var(--fs-hero);
  color: var(--gold);
  text-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
}

.hero-line-3 {
  font-size: clamp(36px, 5.5vw, 56px);
  color: var(--white);
  letter-spacing: 4px;
}

.scene-1.active .hero-line-1 {
  animation: fadeSlideUp 800ms var(--ease-out-expo) 600ms forwards;
}

.scene-1.active .hero-line-2 {
  animation: fadeSlideUp 800ms var(--ease-out-expo) 800ms forwards;
}

.scene-1.active .hero-line-3 {
  animation: fadeSlideUp 800ms var(--ease-out-expo) 1000ms forwards;
}

.hero-subtitle {
  font-size: var(--fs-hero-sub);
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.5;
  max-width: 90%;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

.scene-1.active .hero-subtitle {
  animation: fadeSlideUp 700ms var(--ease-out-expo) 1200ms forwards;
}

/* Event Pills */
.event-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: center;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
}

.scene-1.active .event-details {
  animation: fadeSlideUp 700ms var(--ease-out-expo) 1400ms forwards;
}

.event-pill {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: clamp(8px, 1.5vw, 14px) clamp(16px, 3vw, 28px);
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.event-icon {
  font-size: clamp(16px, 2.2vw, 22px);
}

/* Applications Badge */
.badge-wrap {
  opacity: 0;
  transform: translateY(20px);
}

.scene-1.active .badge-wrap {
  animation: fadeSlideUp 700ms var(--ease-out-expo) 1600ms forwards;
}

.applications-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: linear-gradient(135deg, var(--gold) 0%, #C19A2E 100%);
  color: var(--green-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: var(--fs-label);
  padding: clamp(10px, 1.5vw, 16px) clamp(24px, 4vw, 40px);
  border-radius: 100px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 30px rgba(212, 175, 55, 0.35);
  animation: badgePulse 2.5s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-dark);
  animation: dotBlink 1.5s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.35);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 4px 50px rgba(212, 175, 55, 0.55);
    transform: scale(1.03);
  }
}

@keyframes dotBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ── Scene 2: What is COLLNET? ────────────────────────────────── */
.scene-2 {
  background: linear-gradient(170deg, #071E14 0%, var(--green-primary) 60%, #0A4A2F 100%);
}

.section-label {
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(15px);
}

.scene.active .section-label {
  animation: fadeSlideUp 600ms var(--ease-out-expo) 200ms forwards;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: var(--fs-section-title);
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
}

.scene.active .section-title {
  animation: fadeSlideUp 700ms var(--ease-out-expo) 400ms forwards;
}

.text-gold {
  color: var(--gold);
}

/* Info Cards Grid */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  width: min(85%, 420px);
}

.info-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(12px, 2vw, 20px);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: box-shadow 500ms ease;
}

.info-card.animate-in {
  animation: cardReveal 600ms var(--ease-out-expo) forwards;
}

.card-icon {
  font-size: var(--fs-card-icon);
  margin-bottom: var(--space-xs);
  display: block;
}

.card-label {
  font-size: var(--fs-card-label);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
}

/* ── Scene 3: Ambassador Roles ────────────────────────────────── */
.scene-3 {
  background: linear-gradient(175deg, var(--green-primary) 0%, #082E1D 60%, #0A3D28 100%);
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.5vw, 14px);
  width: min(90%, 440px);
}

.role-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(10px, 1.8vw, 16px);
  padding: clamp(12px, 2vw, 20px) clamp(8px, 1.5vw, 14px);
  text-align: center;
  opacity: 0;
  transform: translateY(25px) scale(0.95);
  position: relative;
  overflow: hidden;
}

.role-card.animate-in {
  animation: cardReveal 550ms var(--ease-out-expo) forwards;
}

.role-card.glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(31, 138, 91, 0.3));
  z-index: -1;
  opacity: 0;
  animation: glowPulse 2s ease-in-out forwards;
}

@keyframes glowPulse {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

.role-icon {
  font-size: clamp(24px, 4vw, 38px);
  margin-bottom: clamp(4px, 0.8vw, 8px);
}

.role-text {
  font-size: clamp(12px, 1.8vw, 16px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

/* ── Scene 4: Benefits ────────────────────────────────────────── */
.scene-4 {
  background: linear-gradient(165deg, #071E14 0%, var(--green-primary) 50%, #0D4E33 100%);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vw, 14px);
  width: min(88%, 440px);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(10px, 1.8vw, 16px);
  padding: clamp(12px, 2vw, 20px) clamp(14px, 2.2vw, 22px);
  opacity: 0;
  transform: translateX(-30px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.benefit-item.animate-in {
  animation: slideInLeft 600ms var(--ease-out-expo) forwards;
}

.benefit-icon {
  font-size: clamp(24px, 3.5vw, 36px);
  flex-shrink: 0;
  width: clamp(40px, 6vw, 54px);
  text-align: center;
}

.benefit-text {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

/* ── Scene 5: QR Code / CTA ───────────────────────────────────── */
.scene-5 {
  background: linear-gradient(160deg, var(--green-dark) 0%, #0E5B3A 40%, #082E1D 100%);
}

.cta-title {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0px, 0.3vw, 4px);
  margin-bottom: var(--space-md);
}

.cta-line {
  display: block;
  font-weight: 800;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(25px);
}

.cta-line-1 {
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 3px;
}

.cta-line-2 {
  font-size: clamp(48px, 7.5vw, 80px);
  color: var(--gold);
  text-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

.cta-line-3 {
  font-size: clamp(30px, 4.5vw, 48px);
  color: var(--white);
  letter-spacing: 3px;
}

.scene-5.active .cta-line-1 {
  animation: fadeSlideUp 800ms var(--ease-out-expo) 200ms forwards;
}

.scene-5.active .cta-line-2 {
  animation: fadeSlideUp 800ms var(--ease-out-expo) 400ms forwards;
}

.scene-5.active .cta-line-3 {
  animation: fadeSlideUp 800ms var(--ease-out-expo) 600ms forwards;
}

/* QR Code */
.qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: scale(0.9);
}

.scene-5.active .qr-wrap {
  animation: scaleIn 800ms var(--ease-out-expo) 900ms forwards;
}

.qr-border {
  position: relative;
  width: clamp(200px, 38vw, 360px);
  height: clamp(200px, 38vw, 360px);
  padding: clamp(12px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: clamp(16px, 2.5vw, 24px);
  animation: qrPulse 2.5s ease-in-out infinite;
}

.qr-inner {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: clamp(8px, 1.5vw, 14px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  border-radius: 4px;
}

/* QR Corner Accents */
.qr-corner {
  position: absolute;
  width: clamp(24px, 4vw, 36px);
  height: clamp(24px, 4vw, 36px);
  border-color: var(--gold);
  border-style: solid;
  border-width: 0;
}

.qr-corner-tl {
  top: -2px;
  left: -2px;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: clamp(16px, 2.5vw, 24px);
}

.qr-corner-tr {
  top: -2px;
  right: -2px;
  border-top-width: 3px;
  border-right-width: 3px;
  border-top-right-radius: clamp(16px, 2.5vw, 24px);
}

.qr-corner-bl {
  bottom: -2px;
  left: -2px;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-bottom-left-radius: clamp(16px, 2.5vw, 24px);
}

.qr-corner-br {
  bottom: -2px;
  right: -2px;
  border-bottom-width: 3px;
  border-right-width: 3px;
  border-bottom-right-radius: clamp(16px, 2.5vw, 24px);
}

@keyframes qrPulse {

  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }

  50% {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 30px 5px rgba(212, 175, 55, 0.15);
  }
}

.qr-label {
  margin-top: var(--space-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  animation: labelShimmer 3s ease-in-out infinite;
}

@keyframes labelShimmer {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Contact Info */
.contact-info {
  text-align: center;
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(15px);
}

.scene-5.active .contact-info {
  animation: fadeSlideUp 600ms var(--ease-out-expo) 1200ms forwards;
}

.contact-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2px;
}

.contact-role {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.contact-phone {
  font-size: var(--fs-label);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* Deadline Badge */
.deadline-wrap {
  opacity: 0;
  transform: translateY(15px);
}

.scene-5.active .deadline-wrap {
  animation: fadeSlideUp 600ms var(--ease-out-expo) 1400ms forwards;
}

.deadline-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: clamp(10px, 1.8vw, 16px);
  padding: clamp(10px, 1.5vw, 16px) clamp(24px, 4vw, 40px);
}

.deadline-label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.deadline-date {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 800;
  color: var(--gold);
}

/* ── Progress Dots ────────────────────────────────────────────── */
.progress-dots {
  position: fixed;
  right: clamp(12px, 2vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 12px);
  z-index: 100;
}

.dot {
  width: clamp(6px, 1vw, 10px);
  height: clamp(6px, 1vw, 10px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 400ms var(--ease-out-expo);
}

.dot.active {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  transform: scale(1.4);
}

/* ── Shared Animations ────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

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

/* ── Card Float Animation (applied via JS) ────────────────────── */
.card-float {
  animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {

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

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

/* ── Scene Transition Helpers ─────────────────────────────────── */
.scene.exiting {
  animation: sceneFadeOut 800ms var(--ease-out-expo) forwards;
}

@keyframes sceneFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* ── Responsive: Landscape Prevention ─────────────────────────── */
@media (orientation: landscape) and (max-height: 600px) {
  :root {
    --fs-hero: 42px;
    --fs-section-title: 28px;
    --fs-body: 16px;
    --space-lg: 20px;
    --space-md: 14px;
  }
}

/* ── Performance: Prefer reduced motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}