/* FlickVault.io - Coming Soon Page Styles */
/* Cinematic Vault Aesthetic */

/* ===== CSS Custom Properties ===== */
:root {
  --gold: #D4AF37;
  --gold-light: #E8C85A;
  --gold-dark: #B8962E;
  --black: #0A0A0A;
  --charcoal: #1A1A1A;
  --charcoal-light: #2A2A2A;
  --blue-accent: #00A8FF;
  --white: #FAFAFA;
  --white-muted: #888888;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --gold-glow-strong: rgba(212, 175, 55, 0.6);
  --blue-glow: rgba(0, 168, 255, 0.3);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== Utility Classes ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== World Clocks Widget ===== */
.world-clocks {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 16px 20px;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideDown 0.6s ease 0.3s forwards;
}

.world-clocks__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--gold);
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.world-clocks__list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.clock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.clock-item__city {
  font-size: 0.7rem;
  color: var(--white-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.clock-item__time {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 2px;
}

.clock-item__time span {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.clock-item__time span.flip {
  animation: digitFlip 0.3s ease;
}

.clock-separator {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--gold-glow), transparent);
  align-self: center;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 60px;
  overflow: hidden;
}

/* Hero Background Effects */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 168, 255, 0.05) 0%, transparent 40%),
    linear-gradient(180deg, var(--black) 0%, var(--charcoal) 50%, var(--black) 100%);
}

.hero__film-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain 0.5s steps(10) infinite;
}

.hero__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Cinematic Falling Text Background */
.hero__falling-text {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.falling-text-item {
  position: absolute;
  top: 0;
  font-family: var(--font-display);
  white-space: nowrap;
  will-change: transform, opacity;
  transform-origin: center center;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  transition: filter 0.3s ease-out;
}

.falling-text-item.zooming {
  transition: transform 0.4s ease-out, filter 0.3s ease-out;
}

.falling-text-item.glowing {
  text-shadow:
    0 0 10px rgba(212, 175, 55, 0.8),
    0 0 20px rgba(212, 175, 55, 0.6),
    0 0 30px rgba(212, 175, 55, 0.4);
  color: #D4AF37 !important;
  transition: text-shadow 0.4s ease-out, color 0.4s ease-out;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float 8s ease-in-out infinite;
  box-shadow: 0 0 6px var(--gold-glow);
}

/* Hero Content */
.hero__content {
  position: relative;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

/* ===== Cinema Curtain Reveal Animation ===== */

/* Curtain Overlay Container */
.curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  overflow: hidden;
}

.curtain-overlay.hidden {
  display: none;
}

/* Individual Curtain Panels */
.curtain {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100vh;
  z-index: 9001;
  /* Rich velvet gradient */
  background:
    /* Fabric fold highlights */
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      rgba(139, 0, 0, 0.3) 2px,
      transparent 4px,
      rgba(100, 0, 0, 0.2) 8px,
      transparent 12px
    ),
    /* Main velvet gradient */
    linear-gradient(
      90deg,
      #3d0000 0%,
      #5c0a0a 10%,
      #8B0000 30%,
      #6d0000 50%,
      #8B0000 70%,
      #5c0a0a 90%,
      #3d0000 100%
    );
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.curtain--left {
  left: 0;
  transform: translateX(0);
  box-shadow:
    inset -30px 0 60px rgba(0, 0, 0, 0.6),
    10px 0 30px rgba(0, 0, 0, 0.8);
}

.curtain--right {
  right: 0;
  transform: translateX(0);
  box-shadow:
    inset 30px 0 60px rgba(0, 0, 0, 0.6),
    -10px 0 30px rgba(0, 0, 0, 0.8);
}

/* Golden fringe at bottom */
.curtain::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      var(--gold) 2px,
      transparent 4px,
      transparent 8px
    ),
    linear-gradient(180deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

/* Golden rope/tie decoration */
.curtain::before {
  content: '';
  position: absolute;
  top: 20%;
  width: 15px;
  height: 60%;
  background: linear-gradient(180deg,
    var(--gold-dark) 0%,
    var(--gold) 20%,
    var(--gold-light) 50%,
    var(--gold) 80%,
    var(--gold-dark) 100%
  );
  border-radius: 8px;
  box-shadow: 0 0 20px var(--gold-glow);
}

.curtain--left::before {
  right: 20px;
}

.curtain--right::before {
  left: 20px;
}

/* Sparkles container */
.curtain__sparkles {
  position: absolute;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold-light);
  opacity: 0;
}

/* Curtain Animation States */
.curtain-overlay.animate .curtain--left {
  animation: curtainOpenLeft 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.curtain-overlay.animate .curtain--right {
  animation: curtainOpenRight 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

/* Logo Container */
.logo-container {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  overflow: visible;
}

/* Main Logo */
.logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.15em;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* FLICK text - spins in from left */
.logo__flick {
  display: inline-block;
  color: var(--gold);
  text-shadow:
    0 0 20px var(--gold-glow),
    0 0 40px rgba(212, 175, 55, 0.3);
  opacity: 0;
  transform: translateX(-100vw) rotate(720deg);
}

/* VAULT text - metallic vault door look */
.logo__vault {
  display: inline-block;
  background: linear-gradient(
    180deg,
    #e8e8e8 0%,
    var(--gold) 25%,
    #a8893c 50%,
    var(--gold) 75%,
    #e8e8e8 100%
  );
  background-size: 100% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.3))
          drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.2));
  opacity: 0;
  transform: translateX(100vw);
  position: relative;
}

/* Flash effect when texts meet */
.logo__flash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Animation states when curtain reveal is active */
.logo-container.animate .logo__flick {
  animation: flickSpinIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards;
}

.logo-container.animate .logo__vault {
  animation: vaultSlideIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards,
             vaultMetalShine 3s ease-in-out 2.8s infinite;
}

.logo-container.animate .logo__flash {
  animation: logoFlash 0.6s ease-out 2.4s forwards;
}

/* Camera shake when texts meet */
.logo-container.animate {
  animation: cameraShake 0.3s ease-out 2.5s;
}

/* Final state after animation */
.logo-container.revealed .logo__flick {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
  animation: logoGlow 3s ease-in-out infinite;
}

.logo-container.revealed .logo__vault {
  opacity: 1;
  transform: translateX(0);
  animation: vaultMetalShine 3s ease-in-out infinite;
}

/* Skip animation - show logo immediately */
.logo-container.skipped .logo__flick,
.logo-container.skipped .logo__vault {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.logo-container.skipped .logo__flick {
  animation: logoGlow 3s ease-in-out infinite;
}

.logo-container.skipped .logo__vault {
  animation: vaultMetalShine 3s ease-in-out infinite;
}

/* ===== Curtain Keyframes ===== */
@keyframes curtainOpenLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-105%);
  }
}

@keyframes curtainOpenRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(105%);
  }
}

/* ===== Logo Animation Keyframes ===== */
@keyframes flickSpinIn {
  0% {
    opacity: 0;
    transform: translateX(-100vw) rotate(720deg);
  }
  60% {
    opacity: 1;
    transform: translateX(10px) rotate(-10deg);
  }
  80% {
    transform: translateX(-5px) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes vaultSlideIn {
  0% {
    opacity: 0;
    transform: translateX(100vw);
  }
  60% {
    opacity: 1;
    transform: translateX(-10px);
  }
  80% {
    transform: translateX(5px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes logoFlash {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
  }
  50% {
    width: 300px;
    height: 300px;
    opacity: 1;
  }
  100% {
    width: 500px;
    height: 500px;
    opacity: 0;
  }
}

@keyframes cameraShake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px) rotate(-0.5deg);
  }
  40% {
    transform: translateX(5px) rotate(0.5deg);
  }
  60% {
    transform: translateX(-3px) rotate(-0.3deg);
  }
  80% {
    transform: translateX(3px) rotate(0.3deg);
  }
}

@keyframes logoGlow {
  0%, 100% {
    text-shadow:
      0 0 20px var(--gold-glow),
      0 0 40px rgba(212, 175, 55, 0.3);
  }
  50% {
    text-shadow:
      0 0 30px var(--gold-glow-strong),
      0 0 60px rgba(212, 175, 55, 0.5),
      0 0 80px rgba(212, 175, 55, 0.3);
  }
}

@keyframes vaultMetalShine {
  0%, 100% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* Skip button */
.skip-intro {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--white-muted);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.skip-intro.visible {
  opacity: 1;
}

.skip-intro:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(26, 26, 26, 0.95);
}

.tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--white-muted);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.8s forwards;
}

/* Vault Icon */
.vault-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 3rem;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.vault-icon__circle {
  width: 100%;
  height: 100%;
  border: 3px solid var(--gold);
  border-radius: 50%;
  position: relative;
  animation: vaultPulse 3s ease-in-out infinite;
  box-shadow:
    0 0 20px var(--gold-glow),
    inset 0 0 20px var(--gold-glow);
}

.vault-icon__play {
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 28px solid var(--gold);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.2s forwards;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--white);
  letter-spacing: 4px;
  line-height: 1;
  min-width: 80px;
  position: relative;
  background: var(--charcoal);
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.countdown__value.flip {
  animation: countdownFlip 0.6s ease;
}

.countdown__label {
  font-size: 0.7rem;
  color: var(--white-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 10px;
}

.countdown__separator {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold);
  align-self: flex-start;
  padding-top: 20px;
  opacity: 0.6;
}

/* Email Signup Form */
.signup {
  max-width: 500px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.4s forwards;
}

.signup__form {
  display: flex;
  gap: 12px;
  position: relative;
}

.signup__input-wrapper {
  flex: 1;
  position: relative;
}

.signup__input {
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--white);
  background: rgba(26, 26, 26, 0.8);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 50px;
  outline: none;
  transition: all var(--transition-normal);
}

.signup__input::placeholder {
  color: var(--white-muted);
}

.signup__input:focus {
  border-color: var(--gold);
  box-shadow:
    0 0 0 4px var(--gold-glow),
    0 0 30px var(--gold-glow);
}

.signup__button {
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.signup__button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px var(--gold-glow-strong),
    0 0 40px var(--gold-glow);
}

.signup__button:active {
  transform: translateY(0);
}

.signup__message {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 24px;
}

.signup__message--success {
  color: var(--gold);
}

.signup__message--error {
  color: #FF6B6B;
}

/* Success State */
.signup--success .signup__form {
  display: none;
}

.signup__success-content {
  display: none;
  text-align: center;
  animation: fadeUp 0.5s ease;
}

.signup--success .signup__success-content {
  display: block;
}

.signup__success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.signup__success-text {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.signup__success-subtext {
  color: var(--white-muted);
  font-size: 0.9rem;
}

/* ===== Features Section ===== */
.features {
  padding: 100px 20px;
  background: linear-gradient(180deg, var(--black) 0%, var(--charcoal) 50%, var(--black) 100%);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: rgba(26, 26, 26, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.visible {
  animation: fadeUp 0.6s ease forwards;
}

.feature-card:nth-child(2).visible {
  animation-delay: 0.1s;
}

.feature-card:nth-child(3).visible {
  animation-delay: 0.2s;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-glow) 0%, transparent 50%, var(--gold-glow) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px var(--gold-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 1rem;
}

.feature-card__desc {
  color: var(--white-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Social Links ===== */
.social {
  padding: 60px 20px;
  text-align: center;
}

.social__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--white-muted);
  margin-bottom: 24px;
}

.social__links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.social__link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social__link:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--gold-glow);
}

.social__link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer__text {
  color: var(--white-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer__platforms {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* ===== Confetti Canvas ===== */
.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ===== Animations ===== */
@keyframes slideDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes logoReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0%, 100% {
    background-position: 200% center;
  }
  50% {
    background-position: 0% center;
  }
}

@keyframes vaultPulse {
  0%, 100% {
    box-shadow:
      0 0 20px var(--gold-glow),
      inset 0 0 20px var(--gold-glow);
  }
  50% {
    box-shadow:
      0 0 40px var(--gold-glow-strong),
      inset 0 0 30px var(--gold-glow-strong);
  }
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

@keyframes float {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

@keyframes digitFlip {
  0% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0);
    opacity: 0.5;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes countdownFlip {
  0% {
    transform: perspective(400px) rotateX(0);
  }
  50% {
    transform: perspective(400px) rotateX(-90deg);
    opacity: 0.5;
  }
  100% {
    transform: perspective(400px) rotateX(0);
    opacity: 1;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__film-grain,
  .particle,
  .hero__falling-text,
  .curtain-overlay {
    display: none;
  }

  .logo__flick,
  .logo__vault {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Responsive Design ===== */

/* Mobile First - Base styles above */

/* Small devices */
@media (max-width: 480px) {
  /* Mobile curtain optimizations */
  .curtain::before {
    width: 10px;
  }

  .curtain::after {
    height: 25px;
  }

  .curtain-overlay.animate .curtain--left,
  .curtain-overlay.animate .curtain--right {
    animation-duration: 1.2s;
    animation-delay: 0.3s;
  }

  .logo-container.animate .logo__flick,
  .logo-container.animate .logo__vault {
    animation-duration: 1s;
    animation-delay: 0.6s;
  }

  .logo-container.animate .logo__flash {
    animation-delay: 1.5s;
  }

  .logo-container.animate {
    animation-delay: 1.6s;
  }

  .world-clocks {
    position: relative;
    top: 0;
    right: 0;
    margin: 10px;
    border-radius: 12px;
  }

  .world-clocks__list {
    gap: 8px;
  }

  .clock-item {
    min-width: 60px;
  }

  .clock-separator {
    display: none;
  }

  .hero {
    padding: 20px 15px 40px;
    min-height: auto;
  }

  .countdown {
    gap: 5px;
  }

  .countdown__value {
    min-width: 55px;
    padding: 10px 12px;
    font-size: 2rem;
  }

  .countdown__separator {
    padding-top: 12px;
    font-size: 1.5rem;
  }

  .signup__form {
    flex-direction: column;
  }

  .signup__button {
    width: 100%;
  }
}

/* Tablets */
@media (min-width: 481px) and (max-width: 768px) {
  .world-clocks {
    top: 10px;
    right: 10px;
    padding: 12px 16px;
  }

  .clock-separator:nth-child(6),
  .clock-separator:nth-child(8) {
    display: none;
  }
}

/* Desktop */
@media (min-width: 769px) {
  .world-clocks__list {
    flex-wrap: nowrap;
  }

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

/* Large Desktop */
@media (min-width: 1200px) {
  .hero__content {
    max-width: 1000px;
  }
}
