@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

/* 
  Sky Blue #87CEEB Color Palette Configuration:
  - Sky Blue #87CEEB & Sky Blue Dark #5FA8D3 for all structural navigation & hero backgrounds
  - 60% Dominant Base: White (#FFFFFF) & Light Background (#F5F7FA)
  - 5% Focal Points & Highlights: Gold Accent (#F2A33A)
*/

:root {
  --color-primary: #87CEEB;
  --color-dark-navy: #5FA8D3;
  --color-secondary: #87CEEB;
  --color-accent: #F2A33A;
  --color-accent-light: #FFD477;
  --color-white: #FFFFFF;
  --color-background: #F5F7FA;
  --color-main-text: #263238;
  --color-secondary-text: #667085;
  --color-success: #3E8E5B;
  --color-error: #C84A3A;

  --color-aero: #87CEEB;
  --color-gold: #F2A33A;
  --color-charcoal: #263238;
  --color-apricot: #87CEEB;
}

body, html {
  background-color: #F5F7FA !important;
  color: #263238;
  overflow-x: hidden;
}

/* Sky Blue Canvas & Navigation Overrides */
.bg-white {
  background-color: #FFFFFF !important;
}

.bg-slate-50,
.bg-slate-100 {
  background-color: #F5F7FA !important;
}

.glass-nav {
  background: linear-gradient(135deg, #87CEEB 0%, #3A86C8 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bg-menu-bar {
  background-color: #87CEEB !important;
}

.glass-card {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(135, 206, 235, 0.3);
  box-shadow: 0 10px 25px -5px rgba(135, 206, 235, 0.15);
}

/* Theme Utilities - Sky Blue #87CEEB */
.bg-navy-950 {
  background-color: #2A72B0 !important;
  color: #ffffff;
}

.bg-navy-900 {
  background: linear-gradient(135deg, #87CEEB 0%, #2A72B0 100%) !important;
}

.hero-gradient {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.95) 0%, rgba(42, 114, 176, 0.85) 100%) !important;
}

.bg-sky-blue {
  background-color: #87CEEB !important;
}

.gold-gradient {
  background: linear-gradient(135deg, #F2A33A 0%, #FFD477 100%);
  color: #263238;
}

.navy-gradient {
  background: linear-gradient(135deg, #3A86C8 0%, #87CEEB 100%) !important;
}

/* Red-to-Yellow Letter Gradient: Starts with Red (#DC2626) and ends with Yellow (#F2A33A / #EAB308) */
.red-to-yellow-text,
.red-gradient-text,
.gradient-red-yellow {
  background: linear-gradient(90deg, #DC2626 0%, #F59E0B 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Sky Blue #87CEEB Utility Overrides */
.bg-aero,
.bg-aero-blue {
  background-color: #87CEEB !important;
}

.border-aero,
.border-aero-blue {
  border-color: #87CEEB !important;
}

.bg-apricot,
.bg-apricot-red {
  background-color: #87CEEB !important;
}

.border-apricot,
.border-apricot-red {
  border-color: #87CEEB !important;
}

.bg-soft-blue {
  background-color: #E0F2FE !important;
}

.text-charcoal {
  color: #263238 !important;
}

/* Continuous Circulation Loop Marquee Animation - Seamless & Gapless */
@keyframes continuous-marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee-loop,
.animate-marquee-container {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: continuous-marquee 25s linear infinite;
  will-change: transform;
}

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

/* Custom Scrollbar in Sky Blue & Gold */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
  border-radius: 8px;
  border: 2px solid #0B1329;
}

::-webkit-scrollbar-thumb:hover {
  background: #FBBF24;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #0B1329 !important;
  border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%) !important;
  border-radius: 8px;
  border: 2px solid #0B1329 !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #FBBF24 !important;
}

/* Mobile Responsiveness & Touch Optimization Rules */
@media (max-width: 639px) {
  /* Prevent horizontal scroll leakage on phone screens */
  body, html {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  /* Touch-friendly scrolling containers */
  .touch-scroll {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  /* Responsive Marquee for Mobile */
  .animate-marquee-loop {
    animation-duration: 20s;
  }

  /* Ergonomic Touch Targets on Mobile */
  button, a, input, select {
    touch-action: manipulation;
  }

  /* Compact Padding for Mobile Headers */
  h1 {
    line-height: 1.25 !important;
  }
}

/* Utility for hidden scrollbars in carousels */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hanging Nail Swing Animation for Why Choose MJ School Board (60-Degree Slow Pendulum Swing) */
.hanging-board-wrapper {
  transform-origin: 50% 0px;
  will-change: transform;
}

/* Active 60-Degree Slow Continuous Swing Left to Right around Nail */
.hanging-board-wrapper.animate-hanging-swing {
  animation: slowHangingPendulum60 6.5s ease-in-out infinite alternate;
}

@keyframes slowHangingPendulum60 {
  0% {
    transform: rotate(-30deg);
  }
  100% {
    transform: rotate(30deg);
  }
}

/* 3D Flip Card Animation for Student Growth Journey */
.journey-flip-perspective {
  perspective: 1600px;
  -webkit-perspective: 1600px;
}

.journey-flip-card {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.4, 0.2, 0.2, 1);
  will-change: transform;
}

.journey-flip-card.is-flipped {
  transform: rotateY(180deg);
}

.journey-card-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotateX(0deg);
}

.journey-card-front {
  transform: rotateY(0deg);
  z-index: 2;
}

.journey-card-back {
  transform: rotateY(180deg);
  z-index: 1;
}

@keyframes journeyTimerProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.journey-timer-bar.active {
  animation: journeyTimerProgress 2s linear forwards;
}

/* Mission & Vision Mobile 3D Flip Card (7s Interval Loop) */
.mv-flip-perspective {
  perspective: 1400px;
  -webkit-perspective: 1400px;
}

.mv-flip-card {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.mv-flip-card.is-flipped {
  transform: rotateY(180deg);
}

.mv-card-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateX(0deg);
}

.mv-card-front {
  position: relative;
  transform: rotateY(0deg);
  z-index: 2;
}

.mv-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  z-index: 1;
  height: 100%;
}

@keyframes mvTimerProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Scroll Slide-In Animations (Address & Map Cards) */
.scroll-slide-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.scroll-slide-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

@media (max-width: 640px) {
  .scroll-slide-left {
    transform: translateX(-60px);
    transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .scroll-slide-right {
    transform: translateX(60px);
    transition: opacity 1.25s cubic-bezier(0.22, 1, 0.36, 1), transform 1.25s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

.scroll-slide-left.is-visible,
.scroll-slide-right.is-visible {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-slide-left,
  .scroll-slide-right {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Horizontal Sliders Phone-like Swipe & Drag Format */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  cursor: grab;
}

.overflow-x-auto.cursor-grabbing {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Hide scrollbars cleanly while preserving full smooth touch/drag swipe functionality */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}




