/* ==========================================================================
   GOPINATHJI MAHILA COLLEGE & NURSING - MASTER STYLESHEET
   Brand Anchor: Academic Crimson (#9E1B32 / #792121) + Academic Gold (#D4AF37)
   ========================================================================== */

:root {
  --color-primary: #9E1B32;
  --color-primary-dark: #5E121E;
  --color-primary-deep: #3A0B13;
  --color-primary-light: #C8233D;
  --color-primary-soft: #FDF2F4;
  --color-primary-muted: #881A2C;
  --color-accent: #D4AF37;
  --color-accent-light: #F3E5AB;
  --color-accent-dark: #997A15;
  --color-background: #FAF9F6;
  --color-surface: #FFFFFF;
  --color-surface-muted: #F8FAFC;
  --color-text: #18181B;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --color-border-subtle: #F1F5F9;
}

/* Lenis smooth scroll */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

/* Fluid Typography */
.text-hero-headline {
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  line-height: 1.08;
  font-weight: 800;
}

.text-section-title {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
}

.text-subheading {
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.6;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at center, #5E121E 0%, #3A0B13 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader-crest {
  width: 90px;
  height: 90px;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
  animation: pulseCrest 2s infinite ease-in-out;
}

@keyframes pulseCrest {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 1; }
}

.preloader-bar-bg {
  width: 220px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 24px;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, #FFF 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Custom Cursor (Desktop) */
.custom-cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
}

.custom-cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(158, 27, 50, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

body.cursor-hover .custom-cursor-ring {
  width: 58px;
  height: 58px;
  border-color: var(--color-accent);
  background-color: rgba(212, 175, 55, 0.1);
}

@media (pointer: coarse), (max-width: 1024px) {
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }
}

/* Glassmorphism Navigation */
.header-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
}

.header-transparent {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Scroll Progress Bar at Top */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #E11D48 40%, var(--color-accent) 80%, #F59E0B 100%);
  z-index: 99999;
  width: 0%;
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* ==========================================================================
   ADVANCED COLOR GRADIENTS & KEYFRAME ANIMATIONS
   ========================================================================== */

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatSmooth {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(212, 175, 55, 0.35); }
  50% { box-shadow: 0 0 30px rgba(212, 175, 55, 0.7); }
}

@keyframes shimmerSweep {
  0% { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}

/* Animated Gradient Text */
.text-gradient-animated {
  background: linear-gradient(135deg, #9E1B32 0%, #E11D48 25%, #D4AF37 50%, #C41E3A 75%, #9E1B32 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 6s ease infinite;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D4AF37 40%, #FEF08A 70%, #B45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-crimson {
  background: linear-gradient(135deg, #9E1B32 0%, #C8233D 50%, #791321 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main Text Interactive Hover ("Main text ma proper animation hover karye to must banavo") */
.text-hover-lift {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease, text-shadow 0.35s ease;
}
.text-hover-lift:hover {
  transform: translateY(-2px);
  color: var(--color-primary);
  text-shadow: 0 4px 12px rgba(158, 27, 50, 0.15);
}

.title-hover-glow {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}
.title-hover-glow:hover {
  filter: drop-shadow(0 2px 14px rgba(212, 175, 55, 0.3));
  letter-spacing: -0.015em;
}

/* Navigation Links with Expanding Animated Underline */
.nav-link-premium {
  position: relative;
  font-weight: 500;
  color: #374151;
  padding: 0.5rem 0.2rem;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-link-premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2.5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 99px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link-premium:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}
.nav-link-premium:hover::after,
.nav-link-premium.active::after {
  width: 100%;
  left: 0%;
}

/* Shimmer Sweep Effect for Buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-150%) skewX(-20deg);
  transition: none;
}
.btn-shimmer:hover::before {
  animation: shimmerSweep 1s ease-in-out forwards;
}

/* Brand Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #9E1B32 0%, #B81D39 50%, #801223 100%);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(158, 27, 50, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(158, 27, 50, 0.45);
  background: linear-gradient(135deg, #B81D39 0%, #D42848 50%, #9E1B32 100%);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #D4AF37 0%, #E5C158 50%, #C49B24 100%);
  color: #1F1600;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.55);
  background: linear-gradient(135deg, #E5C158 0%, #F5D374 50%, #D4AF37 100%);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--color-primary);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Card Transitions & Reveal */
.interactive-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  will-change: transform;
}
.interactive-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px -12px rgba(158, 27, 50, 0.16);
  border-color: rgba(158, 27, 50, 0.25);
}

/* Image Reveal Clip-Path */
.reveal-clip {
  clip-path: inset(0 0 0 0 round 16px);
  transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Ambient Orbs */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.4;
  animation: floatSmooth 8s ease-in-out infinite;
}

/* Custom Scrollbar for Mobile Drawer */
.mobile-drawer-scroll::-webkit-scrollbar {
  width: 4px;
}
.mobile-drawer-scroll::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

/* ==========================================================================
   HALL OF FAME (GOLD TROPHY CARDS) & BENTO GRID ARCHITECTURE
   ========================================================================== */

/* Gold Foil Trophy Card */
.trophy-card-gold {
  position: relative;
  background: linear-gradient(165deg, rgba(46, 10, 18, 0.95) 0%, rgba(26, 4, 8, 0.98) 60%, rgba(15, 2, 4, 1) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.trophy-card-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.trophy-card-gold:hover {
  transform: translateY(-8px);
  border-color: rgba(245, 211, 116, 0.9);
  box-shadow: 0 20px 40px -10px rgba(212, 175, 55, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.trophy-card-gold:hover::before {
  opacity: 1;
}

/* Laurel Avatar Frame with Gold Ring */
.laurel-avatar-frame {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto;
}
.laurel-avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  padding: 3px;
  background: linear-gradient(135deg, #F5D374 0%, #D4AF37 50%, #997A15 100%);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.trophy-card-gold:hover .laurel-avatar-ring {
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(212, 175, 55, 0.7);
}
.laurel-crown-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FDF0A6 0%, #D4AF37 100%);
  color: #1A0508;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 10;
  transition: transform 0.3s ease;
}
.trophy-card-gold:hover .laurel-crown-badge {
  transform: translateX(-50%) translateY(-3px) scale(1.15);
}

/* Gold Medal Pill Badge */
.gold-medal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
  color: #1C0409;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

/* Bento Grid Architecture */
.bento-card {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  background-color: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(158, 27, 50, 0.16);
  border-color: rgba(158, 27, 50, 0.3);
}
.bento-card .bento-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover .bento-image {
  transform: scale(1.05);
}
.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   ADVANCED GSAP GALLERY & CINEMA LIGHTBOX STYLES
   ========================================================================== */
.gallery-spotlight-stage {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  background: radial-gradient(ellipse at 50% 0%, #3A0B13 0%, #120306 100%);
}

.gallery-spotlight-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.gallery-spotlight-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.spotlight-kenburns {
  animation: spotlightKenBurns 18s ease-in-out infinite alternate;
}

@keyframes spotlightKenBurns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1.04) translate(1%, 0.5%); }
}

.gallery-card-wrap {
  perspective: 1200px;
}

.gallery-card-inner {
  transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.gallery-card-inner:hover {
  box-shadow: 0 22px 45px -10px rgba(158, 27, 50, 0.22), 0 0 0 1px rgba(212, 175, 55, 0.4);
}

.gallery-card-inner .gallery-img {
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

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

/* Lightbox Pro Cinema */
#cinema-lightbox {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cinema-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.filmstrip-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filmstrip-track::-webkit-scrollbar {
  display: none;
}

.filmstrip-thumb {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.55;
  filter: grayscale(40%);
}

.filmstrip-thumb:hover {
  opacity: 0.9;
  filter: grayscale(0%);
  transform: translateY(-3px);
}

.filmstrip-thumb.active {
  opacity: 1;
  filter: grayscale(0%);
  border-color: #D4AF37 !important;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
  transform: translateY(-4px) scale(1.05);
}

/* Glassmorphic Toolbars */
.glass-panel-dark {
  background: rgba(18, 18, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

