/* --- ROOT & GLOBAL --- */
:root {
  --primary: #ae00ff;
  --secondary: #ffdd1b;
  --pinky: #ff009d;
  --dark: #1a1a1a;
  --white: #ffffff;
  --soft-bg: #f8f9ff;
}

/* --- 1. ANIMATED LOOP BACKGROUND --- */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  min-height: 100vh;
  /* Multi-color gradient for the loop */
  background: linear-gradient(-45deg, #7b0592, #f702c244, #ffd901, #d4038f);
  background-size: 400% 400%;
  animation: meshGradient 15s ease infinite;
  background-attachment: fixed;
  overflow-x: hidden;
  padding-top: 80px; /* Space for fixed header */
}

@keyframes meshGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* Header styling */
.header {
  background: #fff;
  border-bottom: 2px solid #ddd;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

/* Container */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: fit-content;
  padding: 10px 30px; 
  max-width: 1920px;
  margin: 0 auto;
  box-sizing: border-box;
} 

/* Logo */
.logo img {
  height: 50px;
  width: auto;
  display: block;
  animation: logoFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  will-change: opacity, transform;
}

@keyframes logoFadeIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Navigation Links & Icons */
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none; /* Mobile Hidden */
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 70px;
  right: 0;
  width: 220px;
  border-left: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

nav ul.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  display: flex;           /* Added for icon alignment */
  align-items: center;     /* Centers icon and text vertically */
  gap: 12px;               /* Precise spacing between icon and text */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific Icon Styling */
nav ul li a i {
  font-size: 18px;
  width: 20px;            /* Fixed width so text aligns perfectly */
  text-align: center;
  color: #ae00ff;         /* Brand color for icons */
  transition: transform 0.3s ease;
}

/* Hover Effects */
nav ul li a:hover {
  color: #000;
  background-color: rgba(174, 0, 255, 0.05);
}

nav ul li a:hover i {
  transform: scale(1.2);  /* Subtle icon pop on hover */
}

/* Hamburger Styles */
.hamburger {
  display: block;
  background: #ffdd1b;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 4px;
}

/* Desktop View: Horizontal Navigation */
@media (min-width: 1400px) {
  .hamburger { display: none; }

  nav ul {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    border: none;
    opacity: 1;
    transform: none;
  }

  nav ul li a {
    padding: 10px 15px;
  }

  /* Underline effect for desktop */
  nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 15px;
    background-color: #ae00ff;
    transition: width 0.3s ease;
  }

  nav ul li a:hover::after {
    width: calc(100% - 30px);
  }
}

/* --- HERO SECTION --- */
.student-hero {
  padding: 100px 20px;
  text-align: center;
  background: transparent; /* Background shows through */
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  background: rgba(174, 0, 255, 0.1);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 20px;
}

.student-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(45deg, var(--primary), var(--pinky));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-heading {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 30px;
}

/* --- BUTTONS --- */
.premium-btn {
  display: inline-block;
  padding: 18px 40px;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.premium-btn:hover {
  transform: scale(1.05);
  background: var(--primary);
  box-shadow: 0 15px 30px rgba(174, 0, 255, 0.3);
}

/* --- SECTIONS & TITLES --- */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 50px;
}

/* --- CARDS & GRIDS --- */
.feature-grid, .services-grid, .testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.feature-card, .s-box, .t-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 50px 40px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  transition: 0.4s;
}

.feature-card:hover, .s-box:hover {
  transform: translateY(-12px);
  background: var(--white);
  border-bottom: 5px solid var(--secondary);
  box-shadow: 0 30px 60px rgba(0,0,0,0.06);
}

.feature-card i, .s-box i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 25px;
  display: inline-block;
}

/* --- STATS BAR ANIMATION LOOP --- */
.stats-bar {
  background: var(--dark);
  color: white;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding: 80px 40px;
  text-align: center;
  margin: 80px 0;
}

.stat-item {
  transition: 0.5s;
}

.stat-item i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 15px;
  animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.stat-item h3 {
  font-size: 3rem;
  font-weight: 800;
  margin: 10px 0;
  color: var(--white);
}

/* --- ENROLLMENT FORM REDESIGN --- */
.form-section { 
    padding: 100px 20px; 
    max-width: 1000px;
    margin: 0 auto;
}

.form-intro {
    text-align: center;
    margin-bottom: 50px;
}

.form-intro h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-top: 15px;
}

.apply-card.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  padding: 60px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 40px 100px rgba(0,0,0,0.07);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.input-block { margin-bottom: 25px; }

.input-block label { 
    display: block; 
    font-weight: 700; 
    margin-bottom: 12px; 
    font-size: 0.85rem; 
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
}

.input-block input, 
.input-block select, 
.input-block textarea {
  width: 100%; 
  padding: 16px 20px; 
  border-radius: 15px; 
  border: 2px solid #eee;
  background: #fcfcfc;
  font-size: 1rem;
  font-family: inherit;
  transition: 0.3s;
  box-sizing: border-box;
}

.input-block input:focus, 
.input-block select:focus, 
.input-block textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 10px 20px rgba(174, 0, 255, 0.05);
}

.submit-btn-premium {
  width: 100%;
  padding: 20px;
  background: linear-gradient(90deg, var(--primary), var(--pinky));
  color: white;
  border: none;
  border-radius: 15px;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.4s;
  box-shadow: 0 15px 30px rgba(174, 0, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.submit-btn-premium:hover { 
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(174, 0, 255, 0.4);
}

/* --- FOOTER --- */
.footer { 
    background: rgba(174, 0, 255, 0.671); 
    color: white; 
    padding: 80px 20px 40px; 
    text-align: center; 
}

.social-links {
    margin-bottom: 40px;
}

.social-links a { 
    color: white; 
    margin: 0 15px; 
    font-size: 1.8rem; 
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.social-links a:hover { 
    color: var(--secondary); 
    transform: translateY(-8px) scale(1.2); 
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .apply-card.glass { padding: 30px 20px; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .student-hero h1 { font-size: 2.2rem; }
}

/* === MODAL STYLES === */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex; /* Shown when active */
}

.modal-content {
    background: #000000c0;
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    max-width: 90%;
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    color: #FDB12A;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.modal-close-btn {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #F20530, #FDB12A);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close-btn:hover {
    transform: scale(1.05);
}