/* Shared CSS for St. Mother Teresa International School */
/* Color System: Blue-Teal Gradient, Oxford Navy (#0A1E42), Yellow (#F5A623), Maroon (#8B1E2B), Orange (#F97316) on Very Light Cream Canvas (#FDFCF7) */

:root {
  --color-navy: #0A1E42;            /* Oxford Deep Royal Navy */
  --color-navy-dark: #06132B;       /* Midnight Dark */
  --color-yellow: #F5A623;          /* Academic Yellow */
  --color-maroon: #8B1E2B;          /* Collegiate Maroon */
  --color-orange: #F97316;          /* Vibrant Orange */
  --color-teal: #0D9488;            /* Deep Teal */
  --color-blue: #0A58CA;            /* Deep Royal Blue */
  --color-cream-bg: #FDFCF7;        /* Very Light Cream Page Canvas */
  --color-cream-soft: #FAF7F2;      /* Soft Light Cream Section Surface */
  --color-white: #FFFFFF;           /* Card White */
  --color-border: #E2E8F0;
  --gradient-blue-teal: linear-gradient(135deg, #0A58CA 0%, #0284C7 50%, #0D9488 100%);
  --gradient-blue-teal-hover: linear-gradient(135deg, #084298 0%, #0369A1 50%, #0B7264 100%);
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #0A1E42;
  background-color: #FDFCF7;
}

h1, h2, h3, h4, h5, h6, nav, button, .font-heading {
  font-family: 'Inter', sans-serif;
}

/* ==================== GRADIENT BLUE & TEAL UTILITIES ==================== */
.btn-gradient-blue-teal {
  background: linear-gradient(135deg, #0A58CA 0%, #0284C7 50%, #0D9488 100%);
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gradient-blue-teal:hover {
  background: linear-gradient(135deg, #084298 0%, #0369A1 50%, #0B7264 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(13, 148, 136, 0.35);
}

.gradient-text-blue-teal {
  background: linear-gradient(135deg, #0A58CA 0%, #0284C7 50%, #0D9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-border-blue-teal {
  border-image: linear-gradient(135deg, #0A58CA 0%, #0284C7 50%, #0D9488 100%) 1;
}

/* ==================== GLOBAL CENTERED MARGIN CONTAINER ==================== */
.site-container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.75rem; /* 28px on Small Mobile */
  padding-right: 1.75rem;
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .site-container {
    padding-left: 2.25rem; /* 36px */
    padding-right: 2.25rem;
  }
}

@media (min-width: 640px) {
  .site-container {
    padding-left: 3rem; /* 48px on Tablet */
    padding-right: 3rem;
  }
}

@media (min-width: 1024px) {
  .site-container {
    padding-left: 4.5rem; /* 72px on Desktop */
    padding-right: 4.5rem;
  }
}

@media (min-width: 1280px) {
  .site-container {
    padding-left: 5.5rem; /* 88px on Large Desktop */
    padding-right: 5.5rem;
  }
}

@media (min-width: 1536px) {
  .site-container {
    padding-left: 6.5rem; /* 104px on Ultra-wide */
    padding-right: 6.5rem;
  }
}

/* Hero Crossfade Slider */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 7s ease-out;
  transform: scale(1.06);
  z-index: 0;
  overflow: hidden;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
  z-index: 1;
}

/* ==================== SCROLL-REVEAL ANIMATION SYSTEM ==================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-from-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-from-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible,
.reveal-from-left.is-visible,
.reveal-from-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Staggered Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }

/* Accessible Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-from-left,
  .reveal-from-right,
  .reveal-scale,
  .hero-slide {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Dropdown Menu Styles */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Quick Links Floating Box */
.quick-link-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-link-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(13, 148, 136, 0.25);
}

/* Ticker marquee animation */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Continuous Facilities Marquee / Auto-scroll */
@keyframes scroll-facilities {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.facilities-slider-track {
  display: flex;
  width: max-content;
  animation: scroll-facilities 35s linear infinite;
}

.facilities-slider-track:hover {
  animation-play-state: paused;
}

/* Hide scrollbars for clean horizontal display */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Lightbox Modal */
.lightbox-modal {
  transition: opacity 0.3s ease;
}
.lightbox-modal.hidden {
  display: none;
  opacity: 0;
}

/* ==================== PREMIUM PAGE PRELOADER ==================== */
#page-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #0B2554 0%, #06132B 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}

#page-preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes preloader-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(13, 148, 136, 0.45));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 35px rgba(2, 132, 199, 0.7));
  }
}

.preloader-logo {
  animation: preloader-pulse 2s ease-in-out infinite;
}

@keyframes preloader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.preloader-spinner {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: #0D9488;
  border-right-color: #0284C7;
  border-bottom-color: #0A58CA;
  animation: preloader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes preloader-bar {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

.preloader-bar-fill {
  animation: preloader-bar 1.5s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

