/* ═══════════════════════════════════════════
   LUMINARY ACADEMY — style.css
   Custom styles (30%) — Tailwind handles the rest
═══════════════════════════════════════════ */

:root {
  --ink: #0f0e0d;
  --parchment: #faf9f7;
  --gold: #c9a96e;
  --gold-light: #e8d5b0;
  --gold-pale: #f7f0e4;
  --cream: #f5f2ed;
  --forest: #2d4a3e;
  --slate: #6b7280;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 3px;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulseSoft {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── NAVBAR ── */
.navbar {
  background: transparent;
}
.navbar.scrolled {
  background: rgba(250, 249, 247, 0.9);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(201, 169, 110, 0.15),
    0 8px 32px rgba(15, 14, 13, 0.07);
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: var(--gold);
}
.nav-link:hover::after {
  width: 100%;
}

/* ── LOGO ICON ── */
.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #c9a96e, #dab183);
  flex-shrink: 0;
}
.logo-name {
  font-family: "DM Serif Display", serif;
  font-size: 1.1rem;
  line-height: 1.1;
}
.logo-sub {
  font-size: 0.65rem;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--ink);
  color: var(--parchment);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c9a96e, #a07840);
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 14, 13, 0.2);
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}
.btn-primary svg {
  transition: transform 0.3s;
}
.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
   background: var(--ink);
  color: var(--parchment);
 
  text-decoration: none;
  border: 1.5px solid rgba(15, 14, 13, 0.18);
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary:hover {
  color: var(--ink);
  background: var(--parchment);
  border-color: var(--ink);
  transform: translateY(-2px);
}

/* ── HERO ── */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: pulseSoft 4s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.18) 0%,
    transparent 70%
  );
}
.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(
    circle,
    rgba(45, 74, 62, 0.12) 0%,
    transparent 70%
  );
  animation-delay: 2s;
}
.hero-orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 30%;
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.08) 0%,
    transparent 70%
  );
  animation-delay: 1s;
}

.hero-badge {
  background: rgba(201, 169, 110, 0.12);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: #8a6a2e;
  animation: fadeUp 0.6s ease 0.2s both;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulseSoft 2s ease-in-out infinite;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #c9a96e 0%, #e8c87a 40%, #a07840 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-slide {
  display: none;
  animation: fadeIn 0.8s ease;
}
.hero-slide.active {
  display: block;
}

.hero-img-overlay {
  background: linear-gradient(
    to bottom,
    transparent 60%,
    rgba(15, 14, 13, 0.25)
  );
}

.glass-card {
  background: #ffffffc7;
  backdrop-filter: blur(5px) saturate(1.3);
  -webkit-backdrop-filter: blur(5px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 24px rgba(15, 14, 13, 0.08);
}

.deco-ring-1 {
  width: 160px;
  height: 160px;
  border: 1.5px dashed #c9a96eaf;
  animation: rotateSlow 30s linear infinite;
}
.deco-ring-2 {
  width: 100px;
  height: 100px;
  border: 1px solid rgba(201, 169, 110, 0.342);
}

.stat-card {
  animation: float 6s ease-in-out infinite;
}
.stat-card:nth-child(2) {
  animation-delay: 0.5s;
}
.stat-card:nth-child(3) {
  animation-delay: 1s;
}

/* ── SLIDER DOTS ── */
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 14, 13, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--gold);
}

/* ── DIVIDER ── */
.divider-line {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 110, 0.3),
    transparent
  );
}

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
}
.marquee-track {
  animation: marquee 30s linear infinite;
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* ── GOLD LINE ── */
.gold-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6a2e;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  display: block;
}

/* ── ABOUT ── */
.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-img-tall {
  height: 420px;
}
.about-stat-box {
  background: var(--gold-pale);
}

/* ── FEATURE CARDS ── */
.feature-card {
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), #ffffff00);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15, 14, 13, 0.12);
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-pale);
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--ink);
}
.feature-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 169, 110, 0.3), transparent);
}

/* ── PROGRAMS ── */
.program-card {
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.program-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(201, 169, 110, 0.08) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.program-card:hover {
  border-color: rgba(201, 169, 110, 0.3) !important;
  transform: translateY(-4px);
}
.program-card:hover::after {
  opacity: 1;
}
.program-arrow {
  transition: var(--transition);
}
.program-card:hover .program-arrow {
  background: var(--gold);
  border-color: var(--gold) !important;
}

/* ── GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item--tall {
  grid-row: span 2;
}
.gallery-item--wide {
  grid-column: span 2;
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 14, 13, 0.65) 0%,
    transparent 60%
  );
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Gallery filter */
.gallery-filter {
  border: 1.5px solid rgba(15, 14, 13, 0.15);
  color: var(--slate);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-filter.active,
.gallery-filter:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.gallery-item.hidden {
  display: none;
}

/* ── TESTIMONIALS ── */
.testimonial-card {
  transition: var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15, 14, 13, 0.12);
}
.testimonial-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 120px;
  line-height: 0.7;
  color: rgba(201, 169, 110, 0.12);
  position: absolute;
  top: 20px;
  left: 24px;
}
.trust-divider {
  width: 1px;
  height: 48px;
  background: rgba(15, 14, 13, 0.1);
}

/* ── FAQ ── */
.faq-item {
  background: white;
  transition: var(--transition);
}
.faq-item:hover {
  border-color: #c9a96e66 !important;
}
.faq-question {
  font-family: "DM Sans", sans-serif;
  background: transparent;
}
.bg-ink {
  background: #0d0e42 !important;
}
.faq-answer {
  max-height: 0;

  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease;
  padding-bottom: 0;
}
.faq-item.open .faq-answer {
  min-height: 50px;
  padding-bottom: 24px;
  /* background: red; */
}
.faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ── CONTACT ── */
.contact-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--gold-pale);
  border: 1px solid rgba(201, 169, 110, 0.2);
}
.contact-info-card {
  transition: var(--transition);
}
.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 14, 13, 0.08);
}
.contact-input {
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
  font-family: "DM Sans", sans-serif;
}
.contact-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

/* ── MOBILE MENU ── */
.mobile-menu {
  background: rgba(250, 249, 247, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Hamburger animation */
.hamburger.open #h1 {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open #h2 {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open #h3 {
  transform: translateY(-6px) rotate(-45deg);
  width: 24px;
}

/* ── SOCIAL BUTTONS ── */
.social-btn {
  width: 38px;
  height: 38px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}
.social-btn:hover {
  background: rgba(201, 169, 110, 0.1);
  transform: translateY(-3px);
}

/* ── ADMISSION POPUP ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 14, 13, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.popup-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.admission-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95) !important;
  z-index: 1000;
  width: 90%;
  max-width: 1100px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  box-shadow: 0 40px 100px rgba(15, 14, 13, 0.35);
}
.admission-popup.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
  animation: popIn 0.4s ease forwards;
}

.popup-left {
  background: linear-gradient(135deg, var(--forest) 0%, #1a2e27 100%);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}
.popup-left::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(201, 169, 110, 0.15) 0%,
    transparent 70%
  );
}
.popup-badge {
  display: inline-block;
  background: rgba(201, 169, 110, 0.2);
  border: 1px solid rgba(201, 169, 110, 0.3);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
}

.popup-right {
  background: var(--parchment);
  padding: 48px 40px;
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ffffff26;
  background: #ffffff1a;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.1s;
}
.popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.popup-input {
  background: white;
  font-family: "DM Sans", sans-serif;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.popup-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-img-grid {
    grid-template-columns: 1fr;
  }
  .about-img-tall {
    height: 260px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
  .gallery-item--tall {
    grid-row: span 1;
  }
  .admission-popup {
    grid-template-columns: 1fr;
    width: 95%;
  }
  .popup-left {
    padding: 36px 28px;
  }
  .popup-right {
    padding: 36px 28px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item--wide {
    grid-column: span 1;
  }
}
