/* 
  PREUFUNDEL - Model 10 (7-Section Structure)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Sora:wght@400;600;700;800&display=swap');

:root {
  --color-bg-dark: #020617;
  --color-bg-light: #F8FAFC;
  --color-brand-blue: #0044CC;
  --color-cyan: #00F0FF;
  --color-yellow: #FFD500;

  --gradient-dark: radial-gradient(circle at 10% 10%, #0033A0 0%, #020617 60%);
  --gradient-light: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);

  --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.3);
  --container-max: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
  font-family: 'Sora', sans-serif;
  text-transform: uppercase;
  line-height: 1;
}

.text-cyan {
  color: var(--color-cyan);
}

.text-yellow {
  color: var(--color-yellow);
}

/* Layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--color-bg-dark);
  background-image: var(--gradient-dark);
  color: white;
}

.section-light {
  background: var(--color-bg-light);
  color: #0F172A;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* Navigation */
nav {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 20px;
  transition: 0.3s;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--color-cyan);
}

/* Components */
.card-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 35px;
  border-radius: 16px;
  transition: 0.3s;
}

.card-glass:hover {
  border-color: var(--color-cyan);
  transform: translateY(-5px);
}

.card-white {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.card-white:hover {
  border-color: var(--color-brand-blue);
  transform: translateY(-5px);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-primary {
  background: var(--color-yellow);
  color: #020617;
  border: none;
}

.btn-primary:hover {
  transform: scale(1.05);
  background: white;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-outline:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

/* RUGE Methodology (Timeline) */
.ruge-step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
}

.ruge-step::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 50px;
  bottom: -30px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.ruge-step:last-child::before {
  display: none;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--color-brand-blue);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--color-cyan);
  flex-shrink: 0;
  z-index: 2;
}

/* Program Badges */
.badge-sierra {
  background: #e0f2fe;
  color: #0284c7;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-costa {
  background: #ffedd5;
  color: #c2410c;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.3s;
}

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

/* WhatsApp Widget */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 9999;
  border: 2px solid #128C7E;
  animation: bounce 3s infinite;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* =====================================
   PREMIUM EFFECTS & ANIMATIONS
   ===================================== */

/* Scroll-triggered Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Gradient & Shimmer Animations */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Icon Animations */
@keyframes iconBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes iconSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Pulse Animations */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
  }
}

/* Utility Classes for Scroll Animations */
.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.slide-left {
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

.slide-right {
  opacity: 0;
  animation: slideInRight 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

.delay-6 {
  animation-delay: 0.6s;
}

/* Enhanced Button Effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 213, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 213, 0, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(1.02);
}

.btn-outline {
  position: relative;
  transition: all 0.3s ease;
}

.btn-outline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background: var(--color-cyan);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.btn-outline:hover::after {
  width: 100%;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

/* Enhanced Card Effects */
.card-glass {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-glass:hover {
  border-color: var(--color-cyan);
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2),
    0 0 40px rgba(0, 240, 255, 0.1);
}

.card-white {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-white:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 68, 204, 0.15),
    0 0 20px rgba(0, 68, 204, 0.1);
}

/* Icon Hover Effects */
ion-icon {
  transition: all 0.3s ease;
}

ion-icon:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px currentColor);
}

.icon-bounce:hover {
  animation: iconBounce 0.6s ease infinite;
}

/* Gallery Enhanced Effects */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 68, 204, 0.8), rgba(0, 240, 255, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item img,
.gallery-item div {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img,
.gallery-item:hover div {
  transform: scale(1.1);
}

/* Form Input Effects */
input,
select {
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--color-cyan) !important;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2),
    0 0 20px rgba(0, 240, 255, 0.3);
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Animated Gradient Backgrounds */
.gradient-animate {
  background: linear-gradient(270deg, #0044CC, #00F0FF, #0044CC);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* Text Shimmer Effect */
.text-shimmer {
  background: linear-gradient(90deg,
      var(--color-cyan) 0%,
      var(--color-yellow) 50%,
      var(--color-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Floating Animation for Special Elements */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

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

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

/* Counter Animation (for stats) */
.stat-number {
  display: inline-block;
  transition: all 0.3s ease;
}

.stat-number:hover {
  transform: scale(1.1);
  color: var(--color-cyan);
}

/* Enhanced Section Transitions */
.section-dark,
.section-light {
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.section-dark:hover::before {
  opacity: 1;
}

/* CTA Pulse Effect */
.cta-pulse {
  animation: pulse 2s ease infinite;
}

/* Checkmark Animation */
.checkmark-animate {
  display: inline-block;
  transition: all 0.3s ease;
}

.checkmark-animate:hover {
  transform: scale(1.2) rotate(360deg);
  filter: drop-shadow(0 0 10px var(--color-yellow));
}

/* Image Parallax Container */
.parallax-container {
  overflow: hidden;
}

.parallax-container img {
  transition: transform 0.5s ease-out;
}

/* Loading Animation for Buttons */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Smooth Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Badge Animations */
.badge-sierra,
.badge-costa {
  transition: all 0.3s ease;
}

.badge-sierra:hover {
  background: #0284c7;
  color: white;
  transform: scale(1.05);
}

.badge-costa:hover {
  background: #c2410c;
  color: white;
  transform: scale(1.05);
}

/* Enhanced Shadows */
.shadow-premium {
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 0 1px rgba(0, 0, 0, 0.1);
}

.shadow-glow-cyan {
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.3),
    0 0 40px rgba(0, 240, 255, 0.2);
}

.shadow-glow-yellow {
  box-shadow:
    0 0 20px rgba(255, 213, 0, 0.3),
    0 0 40px rgba(255, 213, 0, 0.2);
}

/* =====================================
   HERO & PREMIUM ANIMATIONS
   ===================================== */

/* Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, #ffffff, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Paper Plane Animation */
.paper-plane {
  position: absolute;
  width: 180px;
  z-index: 0;
  opacity: 0.8;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
  animation: flightPath 20s infinite linear;
  pointer-events: none;
}

@keyframes flightPath {
  0% {
    top: 90%;
    left: -10%;
    transform: rotate(10deg) scale(0.6);
  }

  25% {
    top: 60%;
    left: 20%;
    transform: rotate(25deg) scale(0.8);
  }

  50% {
    top: 30%;
    left: 50%;
    transform: rotate(10deg) scale(1);
  }

  75% {
    top: 40%;
    left: 80%;
    transform: rotate(-5deg) scale(0.9);
  }

  100% {
    top: 10%;
    left: 110%;
    transform: rotate(15deg) scale(0.6);
  }
}

/* Sparkles Background Effect */
.section-dark {
  overflow: hidden;
}

.section-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, rgba(255, 213, 0, 0.4) 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(0, 240, 255, 0.4) 2px, transparent 2px),
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
    radial-gradient(circle at 90% 90%, rgba(0, 240, 255, 0.3) 2px, transparent 2px);
  background-size: 100% 100%;
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }

  100% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}


/* ===================================
   HERO SECTION - NUEVO DISEÑO
   =================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 100px 0;
}

/* Carrusel de Fondo */
.hero-background-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: bgSlide 25s infinite;
  background-size: cover;
  background-position: center;
}

.hero-bg-slide:nth-child(1) {
  background-image: url('../img/hero_gallery_1.jpg');
  animation-delay: 0s;
}

.hero-bg-slide:nth-child(2) {
  background-image: url('../img/hero_gallery_2.jpg');
  animation-delay: 5s;
}

.hero-bg-slide:nth-child(3) {
  background-image: url('../img/hero_gallery_3.jpg');
  animation-delay: 10s;
}

.hero-bg-slide:nth-child(4) {
  background-image: url('../img/hero_gallery_4.jpg');
  animation-delay: 15s;
}

.hero-bg-slide:nth-child(5) {
  background-image: url('../img/hero_gallery_5.jpg');
  animation-delay: 20s;
}

@keyframes bgSlide {
  0% {
    opacity: 0;
  }

  4% {
    opacity: 1;
  }

  20% {
    opacity: 1;
  }

  24% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* Overlay oscuro para contraste */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(0, 20, 60, 0.85) 0%,
      rgba(0, 40, 100, 0.75) 100%);
  z-index: 2;
}

/* Grid de contenido */
.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  z-index: 10;
}

/* León Mascota */
.hero-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.leon-wave {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  animation: leonWave 2s ease-in-out;
}

@keyframes leonWave {
  0% {
    transform: translateY(50px) scale(0.8);
    opacity: 0;
  }

  50% {
    transform: translateY(-10px) scale(1.05);
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Hover effect en el león */
.leon-wave:hover {
  animation: leonHover 0.6s ease-in-out infinite alternate;
  cursor: pointer;
}

@keyframes leonHover {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-15px) rotate(3deg);
  }
}

/* ===================================
   NUEVO HERO CAROUSEL - CSS PURO
   =================================== */

.hero-image-wrapper {
  width: 100%;
  height: 550px;
  position: relative;
  border-radius: 20px;
  border-bottom: 4px solid var(--color-cyan);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-image-wrapper img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
  opacity: 0;
  animation: heroFade 25s infinite;
}

/* Cada imagen aparece en su turno (5 imágenes x 5 segundos = 25s total) */
.hero-image-wrapper img:nth-child(1) {
  animation-delay: 0s;
}

.hero-image-wrapper img:nth-child(2) {
  animation-delay: 5s;
}

.hero-image-wrapper img:nth-child(3) {
  animation-delay: 10s;
}

.hero-image-wrapper img:nth-child(4) {
  animation-delay: 15s;
}

.hero-image-wrapper img:nth-child(5) {
  animation-delay: 20s;
}

@keyframes heroFade {
  0% {
    opacity: 0;
  }

  4% {
    opacity: 1;
  }

  20% {
    opacity: 1;
  }

  24% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.hero-image-wrapper:hover img {
  animation-play-state: paused;
}

/* Ensure 50/50 Grid for Hero */
/* Ensure 50/50 Grid for Hero and proper height */
.section-dark .hero-grid {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: stretch;
  gap: 40px;
  /* Stretch to fill height */
}

.section-dark .hero-grid>div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1000px) {
  .hamburger {
    display: block;
    z-index: 9999;
    position: relative;
  }

  /* Fix for oversized titles on mobile - Force override of inline styles */
  h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    line-height: 1.1 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  h2 {
    font-size: clamp(2rem, 6vw, 2.8rem) !important;
  }

  h3 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  .page-hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem) !important;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    z-index: 9998;
    padding: 20px;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .nav-links a {
    font-size: 1.5rem;
    color: white;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a:hover {
    color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.05);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  section {
    padding: 60px 0;
  }

  .card-glass:hover,
  .card-white:hover {
    transform: translateY(-5px);
  }

  .parallax-container img {
    transform: none !important;
  }

  .university-carousel {
    animation: scroll-universities 40s linear infinite;
  }

  .university-item {
    min-width: 120px;
    height: 70px;
    font-size: 1.2rem;
  }
}

/* Footer Styles Override for Social Icons */
.social-icon:hover {
  color: var(--color-cyan) !important;
  transform: translateY(-3px);
}

/* University Carousel Styles */
.university-carousel-container {
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.university-item {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 150px;
  height: 80px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.3s;
}

.university-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  /* Make logos subtle/grey initially */
  opacity: 0.7;
  transition: all 0.3s ease;
}

.university-item:hover img {
  filter: grayscale(0%) brightness(1);
  /* Full color on hover */
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll-universities {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Scrolls half because we duplicated items */
}

/* Premium Styled Logo Placeholders */
.uni-card {
  background: white;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 120px;
  height: 80px;
  text-align: center;
  font-weight: 800;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.uni-card:hover {
  transform: scale(1.05);
}

/* Enhanced Shadows */
.shadow-premium {
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 0 1px rgba(0, 0, 0, 0.1);
}

.shadow-glow-cyan {
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.3),
    0 0 40px rgba(0, 240, 255, 0.2);
}

.shadow-glow-yellow {
  box-shadow:
    0 0 20px rgba(255, 213, 0, 0.3),
    0 0 40px rgba(255, 213, 0, 0.2);
}

/* Responsive */
@media (max-width: 1000px) {
  .hamburger {
    display: block;
    z-index: 9999;
    position: relative;
  }

  /* Fix for oversized titles on mobile - Force override of inline styles */
  h1 {
    font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    line-height: 1.1 !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  h2 {
    font-size: clamp(2rem, 6vw, 2.8rem) !important;
  }

  h3 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  .page-hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem) !important;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    z-index: 9998;
    padding: 20px;
    backdrop-filter: blur(10px);
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .nav-links a {
    font-size: 1.5rem;
    color: white;
    width: 100%;
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a:hover {
    color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.05);
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  section {
    padding: 60px 0;
  }

  .card-glass:hover,
  .card-white:hover {
    transform: translateY(-5px);
  }

  .parallax-container img {
    transform: none !important;
  }

  .university-carousel {
    animation: scroll-universities 40s linear infinite;
  }

  .university-item {
    min-width: 120px;
    height: 70px;
    font-size: 1.2rem;
  }
}

/* Footer Styles Override for Social Icons */
.social-icon:hover {
  color: var(--color-cyan) !important;
  transform: translateY(-3px);
}

/* University Carousel Styles */
.university-carousel-container {
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.university-item {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 150px;
  height: 80px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.3s;
}

.university-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5);
  /* Make logos subtle/grey initially */
  opacity: 0.7;
  transition: all 0.3s ease;
}

.university-item:hover img {
  filter: grayscale(0%) brightness(1);
  /* Full color on hover */
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll-universities {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Scrolls half because we duplicated items */
}

/* Premium Styled Logo Placeholders */
.uni-card {
  background: white;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 120px;
  height: 80px;
  text-align: center;
  font-weight: 800;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.uni-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Hero Carousel */
.hero-carousel {
  display: grid !important;
  grid-template-areas: 'stack';
  position: relative;
  overflow: hidden;
  /* Ensure border-radius clips images */
}

.hero-slide {
  grid-area: stack;
  width: 100%;
  height: auto;
  /* Allow height to adapt */
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
  display: block;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}