/* ===== Custom Styles for UT Child Development Center ===== */

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
  background: rgba(6, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #c9a84c, #5eead4);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #fff !important;
}

/* Mobile menu */
#mobile-menu.open {
  opacity: 1 !important;
  pointer-events: all !important;
}

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }

/* ===== Hero Animations ===== */
.hero-element {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-element:nth-child(1) { animation-delay: 0.1s; }
.hero-element:nth-child(2) { animation-delay: 0.3s; }
.hero-element:nth-child(3) { animation-delay: 0.5s; }
.hero-element:nth-child(4) { animation-delay: 0.7s; }

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

.hero-visual {
  opacity: 0;
  transform: translateX(40px);
  animation: heroSlideIn 1s ease 0.4s forwards;
}

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

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(40px);
  }

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

/* ===== Gold shimmer on hover ===== */
button:hover,
a:hover {
  cursor: pointer;
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a1628;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a84c, #0d9488);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #e2c05a, #2dd4bf);
}

/* ===== Selection ===== */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #fff;
}

/* ===== Card hover glow ===== */
.group:hover .absolute.top-0.right-0 {
  opacity: 1;
}

/* ===== Input focus ===== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ===== Mobile responsiveness ===== */
@media (max-width: 768px) {
  .font-serif {
    line-height: 1.1;
  }
}
