/* Excel Public School - Consolidated Styling System */

html,
body {
  background-color: #f8fafc; /* slate-50 */
  color: #0f172a; /* slate-900 */
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

/* Keyboard Navigation Focus Indicator (WCAG 2.1) */
*:focus-visible {
  outline: 3px solid #0ea5e9 !important; /* sky-500 */
  outline-offset: 3px !important;
}

/* Ambient Lighting Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: #e0f2fe; /* sky-100 */
}

.blob-2 {
  top: 20%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: #fce7f3; /* pink-100 */
}

.about-page .blob-2 {
  top: 25%;
}

.blob-3 {
  top: 60%;
  left: 10%;
  width: 60vw;
  height: 60vw;
  background: #ede9fe; /* violet-100 */
}

.about-page .blob-3 {
  top: 65%;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.03);
}

.glass-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.04);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 40px -1px rgba(0, 0, 0, 0.08);
  transform: translateY(-8px);
}

/* Nav Link Hover */
.nav-link {
  position: relative;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  background-color: #0ea5e9; /* sky-500 */
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1), left 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link.active {
  color: #0ea5e9; /* sky-500 */
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
  left: 0;
}

/* Intuitive Text Highlight */
.text-highlight {
  position: relative;
  display: inline-block;
  z-index: 1;
  color: #0f172a;
  transition: color 0.3s ease;
}

.text-highlight::before {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 40%;
  background-color: rgba(56, 189, 248, 0.35); /* sky-400 */
  z-index: -1;
  transform: skewX(-15deg);
  border-radius: 2px;
  transition: height 0.3s ease, background-color 0.3s ease;
}

.text-highlight:hover::before {
  height: 80%;
  background-color: rgba(56, 189, 248, 0.25);
}

/* Shimmer Button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-shimmer:hover::after {
  left: 150%;
}

.btn-shimmer:hover {
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

/* Gallery Hover */
.gallery-item {
  overflow: hidden;
  border-radius: 1.5rem; /* 2xl */
  position: relative;
}

.gallery-item img {
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Tabs */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-content.active {
  display: block;
}

.tab-content.show {
  opacity: 1;
  transform: translateY(0);
}

.tab-btn {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Timeline / Events Hover */
.event-row {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-row:hover {
  background: rgba(255, 255, 255, 0.65);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 1rem;
}

/* 3D Parallax & Spotlight Hover */
.hover-3d-spotlight {
  position: relative;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  transform-style: preserve-3d;
  overflow: hidden;
  will-change: transform;
}

.hover-3d-spotlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
      rgba(56, 189, 248, 0.08),
      transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

.hover-3d-spotlight:hover::before {
  opacity: 1;
}

.hover-3d-spotlight>* {
  position: relative;
  z-index: 2;
  transform: translateZ(10px);
  transition: transform 0.3s ease-out;
}

.hover-3d-spotlight:hover>* {
  transform: translateZ(20px);
}

/* Scroll Animations */
.reveal-style-1 {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-style-1.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-style-2 {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-style-2.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-style-3 {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-style-3.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-style-4 {
  opacity: 0;
  transform: scale(0.9);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-style-4.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Delay for cascades */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

/* Geometrical Floating Backgrounds */
@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

@keyframes float-reverse {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(20px) rotate(-10deg);
  }
}

.animate-float-slow {
  animation: float-slow 15s infinite ease-in-out;
}

.animate-float-reverse {
  animation: float-reverse 18s infinite ease-in-out;
}

/* Timeline custom lines (About Us page horizontal timeline) */
.timeline-line {
  background: linear-gradient(to right, #38bdf8 33%, #818cf8 66%, #34d399 100%);
}
