/* style.css - Enhanced Modern & Smooth UI Styles for EPS */

:root {
  --brand-color: #0062E6;
  --brand-light: #38bdf8;
  --brand-dark: #0a192f;
  --brand-gradient: linear-gradient(135deg, #0062E6 0%, #0284c7 50%, #38bdf8 100%);
  --accent-color: #f97316;
  --accent-light: #fb923c;
  --accent-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  --surface-card: #ffffff;
  --border-light: rgba(226, 232, 240, 0.8);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Smoothing & Reset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: #f8fafc;
  color: #1e293b;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Section scroll margin for perfect anchor alignment */
section[id] {
  scroll-margin-top: 5.5rem;
}

/* Modern Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.glass-panel-dark {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navbar active state & smooth underline */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--brand-light), var(--brand-color));
  border-radius: 2px;
  transition: width 0.3s var(--ease-smooth);
}

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

/* Navbar Sticky State Transition */
#navbar {
  transition: all 0.35s var(--ease-smooth);
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.navbar-scrolled .nav-container {
  height: 4.25rem !important;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #0062E6 0%, #0050bd 100%);
  color: #ffffff;
  padding: 0.6875rem 1.625rem;
  border-radius: 0.625rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-smooth);
  box-shadow: 0 4px 14px 0 rgba(0, 98, 230, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px -2px rgba(0, 98, 230, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 98, 230, 0.3);
}

.btn-outline {
  border: 1.5px solid #cbd5e1;
  color: #334155;
  background-color: #ffffff;
  padding: 0.6875rem 1.625rem;
  border-radius: 0.625rem;
  font-weight: 600;
  transition: all 0.25s var(--ease-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  border-color: var(--brand-color);
  color: var(--brand-color);
  background-color: rgba(0, 98, 230, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 98, 230, 0.1);
}

/* Background Patterns */
.background-pattern {
  background-image: radial-gradient(#93c5fd 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.background-dots-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* Smooth Reveal System */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
  will-change: opacity, transform;
}

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

.reveal-stagger {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
  will-change: opacity, transform;
}

.reveal.active .reveal-stagger {
  opacity: 1;
  transform: translateY(0);
}

/* Delay Modifiers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Floating Elements Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.float-element {
  animation: float 4.5s ease-in-out infinite;
}

/* Smooth Interactive Blobs */
.interactive-blob {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Gradient Flow Text Animation */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-gradient-flow {
  background-size: 200% auto;
  animation: gradient-flow 6s linear infinite;
}

/* Shimmer Animation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-shimmer {
  animation: shimmer 2s ease-in-out infinite;
}

/* Subtitle Typing Cursor */
#typing-text::after {
  content: '|';
  animation: blink 0.9s infinite;
  margin-left: 2px;
  color: var(--brand-color);
  font-weight: 400;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Cards & Bento Grid Hover Smoothness */
.service-card {
  transition: all 0.35s var(--ease-smooth);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 98, 230, 0.3);
  box-shadow: 0 20px 35px -10px rgba(0, 98, 230, 0.12);
}

.feature-box {
  transition: all 0.3s var(--ease-smooth);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 98, 230, 0.25);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.06);
}

/* Testimonial Marquee (Silky Hardware-Accelerated) */
@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
  gap: 1.75rem;
  will-change: transform;
}

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

.testimonial-card {
  width: 360px;
  flex-shrink: 0;
  white-space: normal;
  transition: all 0.3s var(--ease-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08);
}

/* FAQ Accordion Transition */
.faq-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.active {
  border-color: rgba(0, 98, 230, 0.3);
  box-shadow: 0 8px 24px -6px rgba(0, 98, 230, 0.08);
}

.faq-content {
  transition: max-height 0.4s var(--ease-smooth), opacity 0.3s ease;
}

.faq-icon {
  transition: transform 0.35s var(--ease-smooth);
}

/* WhatsApp Pulse Ring */
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.pulse-ring {
  animation: pulse-ring 2.2s infinite;
}

/* Back to Top Floating Button */
#backToTop {
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), visibility 0.3s;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

/* Premium Form Focus States */
input, select, textarea {
  transition: all 0.25s var(--ease-smooth);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(0, 98, 230, 0.15), 0 4px 12px rgba(0, 98, 230, 0.06);
  transform: translateY(-1px);
}

/* Glowing Mesh Gradient */
@keyframes mesh-pulse {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-45%, -55%) rotate(180deg) scale(1.08); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.mesh-gradient {
  background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.3) 0%, transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(0, 98, 230, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.2) 0%, transparent 60%);
  filter: blur(80px);
  animation: mesh-pulse 24s linear infinite alternate;
}

/* ============================================================
   PROMOTIONAL CAROUSEL & ADMISSION CARDS
   ============================================================ */
#promo-carousel-track {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
}

@media (min-width: 768px) {
  #promo-carousel-track {
    min-height: 560px;
  }
}

@media (min-width: 1024px) {
  #promo-carousel-track {
    min-height: 600px;
  }
}

.promo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.65s ease;
  pointer-events: none;
  z-index: 1;
}

.promo-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 10;
}

.promo-slide.prev-slide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-100%);
  pointer-events: none;
  z-index: 2;
}

.promo-slide.exit-to-right {
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  pointer-events: none;
  z-index: 2;
}

/* Pure Floating Navigation Arrows (No Circle / No Dot) */
.carousel-arrow-btn {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  padding: 0.35rem;
}

.carousel-arrow-btn:hover {
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.7));
}

.carousel-arrow-btn i {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
}


.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.45);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  padding: 0;
  display: inline-block;
}

.carousel-dot.active {
  width: 24px;
  background-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85);
}

.carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.95);
  transform: scale(1.15);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .promo-slide {
    transition: opacity 0.1s ease !important;
    transform: none !important;
  }
  .reveal, .reveal-stagger {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .animate-marquee, .pulse-ring, .float-element, .mesh-gradient {
    animation: none !important;
  }
}

/* ============================================================
   ARTICLE CONTENT TYPOGRAPHY & READER STYLING
   ============================================================ */
.article-content h1 { font-family: 'Outfit', sans-serif; font-size: 1.85rem; font-weight: 800; margin-top: 2rem; margin-bottom: 0.75rem; color: #0f172a; line-height: 1.25; }
.article-content h2 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; margin-top: 1.75rem; margin-bottom: 0.65rem; color: #1e293b; line-height: 1.3; }
.article-content h3 { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #334155; }
.article-content p { margin-bottom: 1.25rem; line-height: 1.8; color: #334155; font-size: 1.05rem; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.75rem; color: #334155; }
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.article-content blockquote { border-left: 4px solid #0284c7; padding-left: 1.25rem; margin: 1.5rem 0; font-style: italic; color: #475569; background: #f0f9ff; padding: 1rem 1.25rem; border-radius: 0 0.75rem 0.75rem 0; }
.article-content img { border-radius: 1rem; margin: 1.75rem 0; max-width: 100%; height: auto; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.07); }
.article-content a { color: #0284c7; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: #0369a1; }
.article-content strong { color: #0f172a; font-weight: 700; }

