/* ==========================================================================
   L.R. VALIA ARTS & P.R. MEHTA COMMERCE COLLEGE (VAMCC) - MASTER STYLESHEET
   Brand Anchor: Wine Maroon (#6a1422 / #3d0a13) + Saffron Orange (#d6571f / #ffba85)
   ========================================================================== */

:root {
  --color-primary: #6a1422;
  --color-primary-dark: #4a0d18;
  --color-primary-deep: #3d0a13;
  --color-primary-light: #7f1d2d;
  --color-primary-soft: #f3dadd;
  --color-primary-muted: #5a101c;
  --color-accent: #d6571f;
  --color-accent-light: #ffba85;
  --color-accent-soft: #ffefe0;
  --color-accent-dark: #a63d0e;
  --color-gold: #D4AF37;
  --color-background: #faf0e2;
  --color-soft: #f5ebde;
  --color-surface: #ffffff;
  --color-surface-muted: #f8f1e7;
  --color-text: #1c0e0a;
  --color-text-muted: #6b5c55;
  --color-border: #e4d8cc;
  --color-border-subtle: #f2e8dc;
  --color-green: #4a6b40;
}

/* 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', 'Noto Sans Gujarati', 'Segoe UI', Arial, sans-serif;
  color: var(--color-text);
  background: linear-gradient(180deg, #faf0e2 0%, #f5ebde 44%, #f4eadb 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Fluid Typography */
.text-hero-headline {
  font-size: clamp(2.15rem, 3.8vw, 3.9rem);
  line-height: 1.09;
  font-weight: 800;
}

.hero-dot-grid {
  background-image: radial-gradient(rgba(255, 186, 133, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-slide img {
  transform: scale(1);
  transition: transform 7s ease-out;
}
.hero-slide.active img {
  transform: scale(1.07);
}

.text-section-title {
  font-size: clamp(1.85rem, 3.2vw, 3.1rem);
  line-height: 1.16;
  font-weight: 700;
}

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

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

.preloader-crest {
  width: 92px;
  height: 92px;
  border-radius: 9999px;
  background: #ffffff;
  padding: 6px;
  filter: drop-shadow(0 0 22px rgba(255, 186, 133, 0.45));
  animation: pulseCrest 2s infinite ease-in-out;
}

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

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

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, #ffba85 55%, #ffffff 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(106, 20, 34, 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(214, 87, 31, 0.12);
}

@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.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(228, 216, 204, 0.85);
  box-shadow: 0 4px 20px -2px rgba(61, 10, 19, 0.06);
}

.header-transparent {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(228, 216, 204, 0.75);
}

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

/* ==========================================================================
   GRADIENTS, MARQUEE TICKER & 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 shimmerSweep {
  0% { transform: translateX(-150%) skewX(-20deg); }
  100% { transform: translateX(250%) skewX(-20deg); }
}

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

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerScroll 26s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}

.text-gradient-animated {
  background: linear-gradient(135deg, #6a1422 0%, #d6571f 30%, #ffba85 55%, #7f1d2d 80%, #6a1422 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, #d6571f 0%, #ffba85 45%, #ffefe0 75%, #d6571f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-crimson {
  background: linear-gradient(135deg, #6a1422 0%, #d6571f 55%, #4a0d18 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.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);
}

.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(214, 87, 31, 0.25));
  letter-spacing: -0.015em;
}

/* Navigation Links */
.nav-link-premium {
  position: relative;
  font-weight: 600;
  color: #3a2420;
  padding: 0.5rem 0.2rem;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.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 */
.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);
}
.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, #6a1422 0%, #7f1d2d 50%, #4a0d18 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(106, 20, 34, 0.32);
  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(106, 20, 34, 0.45);
  background: linear-gradient(135deg, #7f1d2d 0%, #8f2234 50%, #6a1422 100%);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #d6571f 0%, #e56c35 55%, #b84412 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(214, 87, 31, 0.36);
  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(214, 87, 31, 0.52);
  background: linear-gradient(135deg, #e56c35 0%, #f07d47 50%, #d6571f 100%);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  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);
}

/* Interactive Cards */
.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(-6px);
  box-shadow: 0 24px 40px -12px rgba(106, 20, 34, 0.16);
  border-color: rgba(106, 20, 34, 0.3);
}

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

.mobile-drawer-scroll::-webkit-scrollbar { width: 4px; }
.mobile-drawer-scroll::-webkit-scrollbar-thumb { background: rgba(255, 186, 133, 0.35); border-radius: 4px; }

/* Trophy / Achievement Card */
.trophy-card-gold {
  position: relative;
  background: linear-gradient(165deg, rgba(61, 10, 19, 0.96) 0%, rgba(36, 6, 11, 0.98) 65%, rgba(20, 3, 6, 1) 100%);
  border: 1px solid rgba(255, 186, 133, 0.32);
  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:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 186, 133, 0.85);
  box-shadow: 0 20px 40px -10px rgba(214, 87, 31, 0.35);
}

.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, #ffba85 0%, #d6571f 55%, #6a1422 100%);
  box-shadow: 0 0 16px rgba(214, 87, 31, 0.45);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.trophy-card-gold:hover .laurel-avatar-ring {
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(255, 186, 133, 0.7);
}
.laurel-crown-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffefe0 0%, #ffba85 100%);
  color: #3d0a13;
  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;
}

.gold-medal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #ffba85 0%, #d6571f 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.65rem;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(214, 87, 31, 0.35);
}

/* Bento Grid */
.bento-card {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px -2px rgba(61, 10, 19, 0.06);
  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(106, 20, 34, 0.18);
  border-color: rgba(106, 20, 34, 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);
}

/* Spotlight & Cinema Gallery */
.gallery-spotlight-stage {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
  background: radial-gradient(ellipse at 50% 0%, #4a0d18 0%, #1c0509 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.07) translate(-1%, -1%); }
  100% { transform: scale(1.03) 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;
}
.gallery-card-inner:hover {
  box-shadow: 0 22px 45px -10px rgba(106, 20, 34, 0.22), 0 0 0 1px rgba(214, 87, 31, 0.45);
}
.gallery-card-inner .gallery-img {
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-card-inner:hover .gallery-img {
  transform: scale(1.08);
}

#cinema-lightbox {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#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 ease; 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: #d6571f !important;
  box-shadow: 0 0 15px rgba(214, 87, 31, 0.65);
  transform: translateY(-4px) scale(1.05);
}

.glass-panel-dark {
  background: rgba(28, 14, 10, 0.78);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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