/* Premium motion, cards, float, lazy-load */

:root {
  --card-bg: #1C1E24;
  --card-border: rgba(212, 175, 55, 0.22);
  --elev: 0 18px 48px rgba(0, 0, 0, 0.4);
  --elev-hover: 0 28px 64px rgba(212, 175, 55, 0.16);
}

/* Lazy images */
img.lazy {
  opacity: 0;
  transform: scale(1.03);
  filter: blur(8px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), filter 0.7s var(--ease);
  background: var(--mist);
}
img.lazy.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Staggered reveal variants */
.reveal { transition-delay: 0s; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal-left.in,
.reveal-right.in,
.reveal-scale.in {
  opacity: 1;
  transform: none;
}

/* Floating orbs / ambient */
.float-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: floatOrb 10s ease-in-out infinite;
}
.float-orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(229, 193, 88, 0.22);
  top: 8%;
  left: -60px;
  animation-duration: 12s;
}
.float-orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(184, 134, 11, 0.2);
  top: 40%;
  right: -40px;
  animation-duration: 9s;
  animation-delay: -2s;
}
.float-orb-3 {
  width: 160px;
  height: 160px;
  background: rgba(212, 175, 55, 0.16);
  bottom: 10%;
  left: 35%;
  animation-duration: 14s;
  animation-delay: -4s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -24px) scale(1.05); }
  66% { transform: translate(-14px, 16px) scale(0.96); }
}

.float-y {
  animation: floatY 5.5s ease-in-out infinite;
}
.float-y-slow {
  animation: floatY 8s ease-in-out infinite;
}
.float-y-delay {
  animation: floatY 6.5s ease-in-out infinite;
  animation-delay: -2.5s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Premium cards */
.premium-card {
  position: relative;
  background: #1C1E24;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: var(--elev);
  color: #E4E4E7;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  overflow: hidden;
}
.premium-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, #E5C158, #B8860B);
  opacity: 0;
  transition: opacity 0.35s;
}
.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--elev-hover);
  border-color: rgba(212, 175, 55, 0.55);
}
.premium-card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #2A2421;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #E5C158;
  font-size: 20px;
  margin-bottom: 18px;
  animation: floatY 6s ease-in-out infinite;
}
.premium-card:nth-child(2) .card-icon { animation-delay: -1.5s; }
.premium-card:nth-child(3) .card-icon { animation-delay: -3s; }
.premium-card:nth-child(4) .card-icon { animation-delay: -4.5s; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.premium-card h3,
.premium-card .card-title {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  letter-spacing: 0;
  margin-bottom: 10px;
  color: #FFFFFF;
}
.premium-card p {
  font-size: 14.5px;
  color: #D1D5DB;
  margin: 0;
}

/* Genre cards */
.genre-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.genre-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px;
  background: #1C1E24;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  box-shadow: var(--elev);
  color: #E4E4E7;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.genre-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.08);
  right: -40px;
  bottom: -40px;
  transition: transform 0.5s var(--ease);
}
.genre-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--elev-hover);
  border-color: rgba(212, 175, 55, 0.55);
  color: #E5C158;
}
.genre-card:hover::after { transform: scale(1.4); }
.genre-card i {
  font-size: 22px;
  color: #E5C158;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #2A2421;
  border: 1px solid rgba(212, 175, 55, 0.25);
  animation: floatY 5.5s ease-in-out infinite;
}
.genre-card:nth-child(odd) i { animation-delay: -1s; }
.genre-card:nth-child(even) i { animation-delay: -3s; }
.genre-card h4,
.genre-card .genre-card-title {
  display: block;
  font-family: var(--font-brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
  color: #FFFFFF;
}

/* Process as cards */
.path-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.path-card {
  background: #1C1E24;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 24px 18px;
  box-shadow: var(--elev);
  text-align: left;
  color: #E4E4E7;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
  position: relative;
}
.path-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--elev-hover);
  border-color: rgba(212, 175, 55, 0.55);
}
.path-card .path-num {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #E5C158, #B8860B);
  color: #0F1115;
  font-size: 1.1rem;
  margin-bottom: 14px;
  animation: floatY 5s ease-in-out infinite;
}
.path-card:nth-child(2) .path-num { animation-delay: -1s; }
.path-card:nth-child(3) .path-num { animation-delay: -2s; }
.path-card:nth-child(4) .path-num { animation-delay: -3s; }
.path-card:nth-child(5) .path-num { animation-delay: -4s; }
.path-card h3,
.path-card .path-card-title {
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: #FFFFFF;
}
.path-card p {
  font-size: 13px;
  color: #D1D5DB;
  margin: 0;
  line-height: 1.5;
}

/* Voice cards — equal height, premium polish */
.voice {
  background: #1C1E24;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  color: #E4E4E7;
}
.voice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #E5C158, #B8860B);
}
.voice::after {
  content: "\201C";
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: rgba(229, 193, 88, 0.18);
  pointer-events: none;
}
.voice:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 22px 50px rgba(212, 175, 55, 0.12);
}

/* Floating WhatsApp only */
.float-widgets .float-btn {
  animation: floatY 4.5s ease-in-out infinite;
  border-radius: 50% !important;
  width: 56px;
  height: 56px;
  font-size: 26px;
  box-shadow: 0 12px 28px rgba(47, 107, 79, 0.35);
}
.float-whatsapp {
  background: #25d366 !important;
}

/* Book cover premium float */
.book-cover {
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(18, 24, 20, 0.18);
  animation: floatY 7s ease-in-out infinite;
}
.rail-slide:nth-child(2n) .book-cover { animation-delay: -2s; }
.rail-slide:nth-child(3n) .book-cover { animation-delay: -4s; }

/* Intro visual float frame */
.intro-visual {
  border-radius: 20px;
  box-shadow: var(--elev-hover);
  animation: floatY 9s ease-in-out infinite;
}
.intro-visual img { border-radius: 20px; }

/* Start form card */
.start-form-wrap {
  background: #1C1E24 !important;
  border: 1px solid rgba(212, 175, 55, 0.22) !important;
  border-radius: 20px;
  box-shadow: var(--elev-hover);
  color: #E4E4E7;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.start-form-wrap:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.5) !important;
}
.start-form-wrap h3,
.start-form-wrap .form-block-title { color: #FFFFFF; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 16px; }
.start-visual {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--elev);
  animation: floatY 8s ease-in-out infinite;
}
.start-visual img { border-radius: 16px; }

/* Stats cards */
.stats-row .stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 16px;
  padding: 28px 16px;
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.stats-row .stat:hover {
  transform: translateY(-6px);
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Hero shimmer / premium CTA */
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  animation: btnShine 4.5s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 60%, 100% { left: -120%; }
  80% { left: 140%; }
}

/* Floating widgets gentle bounce */
.float-widgets .float-btn {
  animation: floatY 4.5s ease-in-out infinite;
  border-radius: 14px !important;
  box-shadow: 0 12px 28px rgba(18, 24, 20, 0.22);
}
.float-widgets .float-btn:nth-child(2) { animation-delay: -1.2s; }
.float-widgets .float-btn:nth-child(3) { animation-delay: -2.4s; }

/* Header premium glass */
.site-header {
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.site-header.scrolled {
  box-shadow: 0 8px 32px rgba(18, 24, 20, 0.06);
}

/* Service / contact premium */
.service-cta-box,
.contact-form-wrap,
.contact-info-card,
.award-form-card {
  border-radius: 20px;
  box-shadow: var(--elev);
}
.contact-info-card { border-radius: 20px; }

/* Parallax helper */
[data-parallax] {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  img.lazy { filter: none; opacity: 1; transform: none; }
}

@media (max-width: 1200px) {
  .path-cards { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .genre-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .card-grid,
  .card-grid-3,
  .path-cards,
  .genre-cards { grid-template-columns: repeat(2, 1fr); }
  .card-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card-grid,
  .card-grid-3,
  .card-grid-2,
  .path-cards,
  .genre-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .premium-card,
  .path-card,
  .genre-card { padding: 16px 14px; }
  .premium-card h3,
  .premium-card .card-title,
  .path-card h3,
  .path-card .path-card-title,
  .genre-card h4,
  .genre-card .genre-card-title { font-size: 13px; }
  .premium-card p,
  .path-card p { font-size: 12px; line-height: 1.45; }
  .card-icon { width: 40px; height: 40px; font-size: 16px; margin-bottom: 12px; }
  .path-card .path-num { width: 34px; height: 34px; font-size: 0.95rem; margin-bottom: 10px; }
  .genre-card i { width: 36px; height: 36px; font-size: 16px; }
  .premium-card:hover,
  .genre-card:hover,
  .path-card:hover,
  .voice:hover { transform: none; }
}
