/* CSS Custom Properties */
:root {
  --primary-color: #ba365e;
  --primary-light: #d4577a;
  --primary-dark: #9c2b4a;
  --secondary-color: #f8f4f6;
  --accent-color: #fde7ec;
  --text-color: #2c2c2c;
  --text-light: #666666;
  --white: #ffffff;
  --shadow-light: 0 2px 8px rgba(186, 54, 94, 0.1);
  --shadow-medium: 0 4px 20px rgba(186, 54, 94, 0.15);
  --shadow-strong: 0 8px 30px rgba(186, 54, 94, 0.2);
  --shadow-glass: 0 8px 32px rgba(186, 54, 94, 0.1);
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--secondary-color) 100%
  );
  --gradient-glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  --gradient-hero: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  --gradient-team: linear-gradient(
    135deg,
    #ff9a9e 0%,
    #fecfef 50%,
    #fecfef 100%
  );
  --gradient-header: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 50%,
    var(--accent-color) 100%
  );
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Enhanced Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  /* Reduce motion for users who prefer it */
  scroll-snap-type: y proximity;
}

/* Better smooth scrolling with cubic-bezier easing */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  * {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Lexend", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--gradient-hero);
  min-height: 100vh;
  overflow-x: hidden;
  /* Enhanced momentum scrolling for mobile */
  -webkit-overflow-scrolling: touch;
  /* Smooth scrolling for WebKit */
  -webkit-scroll-behavior: smooth;
  /* Optimize for better scroll performance */
  will-change: scroll-position;
  transform: none !important;
  contain: none !important;
  /* Adjust body padding for fixed header */
  padding-top: 90px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fixed Header with Navigation */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(186, 54, 94, 0.1);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.fixed-header.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-image {
  max-height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(186, 54, 94, 0.2));
  transition: all 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(186, 54, 94, 0.3));
}

/* Navigation Styles */
.navigation {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 16px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  z-index: -1;
}

.nav-link:hover::before {
  left: 0;
}

.nav-link:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.nav-link i {
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-link:hover i {
  transform: scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle:hover span {
  background: var(--primary-dark);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .fixed-header {
    padding: 10px 0;
  }

  .logo-image {
    max-height: 50px;
  }

  .navigation {
    position: relative;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    padding: 20px;
    min-width: 250px;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 15px;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    padding: 15px;
    border-radius: 12px;
    font-size: 15px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  body {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .fixed-header {
    padding: 8px 0;
  }

  .logo-image {
    max-height: 45px;
  }

  .nav-menu {
    min-width: 200px;
    padding: 15px;
  }

  .nav-link {
    padding: 12px;
    font-size: 14px;
  }

  body {
    padding-top: 70px;
  }
}

/* Particle Background */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: float 40s infinite linear;
  opacity: 0.6;
}

.particle.small {
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.particle.medium {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
}

.particle.large {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
}

.particle.colored-1 {
  background: rgba(186, 54, 94, 0.3);
  box-shadow: 0 0 5px rgba(186, 54, 94, 0.2);
}

.particle.colored-2 {
  background: rgba(52, 152, 219, 0.3);
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);
}

.particle.colored-3 {
  background: rgba(241, 196, 15, 0.3);
  box-shadow: 0 0 5px rgba(241, 196, 15, 0.2);
}

.particle.star {
  border-radius: 0;
  width: 6px;
  height: 6px;
  background: transparent;
  position: relative;
}

.particle.star::before,
.particle.star::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
}

.particle.star::before {
  transform: rotate(45deg);
}

.particle.star::after {
  transform: rotate(-45deg);
}

.particle:nth-child(1) {
  left: 5%;
  animation-delay: 0s;
  animation-duration: 15s;
  animation-name: float;
}
.particle:nth-child(2) {
  left: 15%;
  animation-delay: 2s;
  animation-duration: 18s;
  animation-name: floatSlow;
}
.particle:nth-child(3) {
  left: 25%;
  animation-delay: 4s;
  animation-duration: 12s;
  animation-name: floatWave;
}
.particle:nth-child(4) {
  left: 35%;
  animation-delay: 6s;
  animation-duration: 22s;
  animation-name: float;
}
.particle:nth-child(5) {
  left: 45%;
  animation-delay: 8s;
  animation-duration: 16s;
  animation-name: floatZigzag;
}
.particle:nth-child(6) {
  left: 55%;
  animation-delay: 10s;
  animation-duration: 20s;
  animation-name: floatSlow;
}
.particle:nth-child(7) {
  left: 65%;
  animation-delay: 12s;
  animation-duration: 14s;
  animation-name: float;
}
.particle:nth-child(8) {
  left: 75%;
  animation-delay: 14s;
  animation-duration: 18s;
  animation-name: floatWave;
}
.particle:nth-child(9) {
  left: 85%;
  animation-delay: 16s;
  animation-duration: 25s;
  animation-name: floatZigzag;
}
.particle:nth-child(10) {
  left: 95%;
  animation-delay: 18s;
  animation-duration: 13s;
  animation-name: float;
}
.particle:nth-child(11) {
  left: 8%;
  animation-delay: 1s;
  animation-duration: 17s;
  animation-name: floatSlow;
}
.particle:nth-child(12) {
  left: 18%;
  animation-delay: 3s;
  animation-duration: 19s;
  animation-name: floatWave;
}
.particle:nth-child(13) {
  left: 28%;
  animation-delay: 5s;
  animation-duration: 21s;
  animation-name: float;
}
.particle:nth-child(14) {
  left: 38%;
  animation-delay: 7s;
  animation-duration: 15s;
  animation-name: floatZigzag;
}
.particle:nth-child(15) {
  left: 48%;
  animation-delay: 9s;
  animation-duration: 23s;
  animation-name: floatSlow;
}
.particle:nth-child(16) {
  left: 58%;
  animation-delay: 11s;
  animation-duration: 16s;
  animation-name: float;
}
.particle:nth-child(17) {
  left: 68%;
  animation-delay: 13s;
  animation-duration: 20s;
  animation-name: floatWave;
}
.particle:nth-child(18) {
  left: 78%;
  animation-delay: 15s;
  animation-duration: 14s;
  animation-name: floatZigzag;
}
.particle:nth-child(19) {
  left: 88%;
  animation-delay: 17s;
  animation-duration: 18s;
  animation-name: float;
}
.particle:nth-child(20) {
  left: 98%;
  animation-delay: 19s;
  animation-duration: 22s;
  animation-name: floatSlow;
}
.particle:nth-child(21) {
  left: 3%;
  animation-delay: 0.5s;
  animation-duration: 24s;
  animation-name: floatWave;
}
.particle:nth-child(22) {
  left: 13%;
  animation-delay: 2.5s;
  animation-duration: 17s;
  animation-name: float;
}
.particle:nth-child(23) {
  left: 23%;
  animation-delay: 4.5s;
  animation-duration: 19s;
  animation-name: floatZigzag;
}
.particle:nth-child(24) {
  left: 33%;
  animation-delay: 6.5s;
  animation-duration: 21s;
  animation-name: floatSlow;
}
.particle:nth-child(25) {
  left: 43%;
  animation-delay: 8.5s;
  animation-duration: 15s;
  animation-name: float;
}
.particle:nth-child(26) {
  left: 53%;
  animation-delay: 10.5s;
  animation-duration: 23s;
  animation-name: floatWave;
}
.particle:nth-child(27) {
  left: 63%;
  animation-delay: 12.5s;
  animation-duration: 16s;
  animation-name: floatZigzag;
}
.particle:nth-child(28) {
  left: 73%;
  animation-delay: 14.5s;
  animation-duration: 20s;
  animation-name: float;
}
.particle:nth-child(29) {
  left: 83%;
  animation-delay: 16.5s;
  animation-duration: 18s;
  animation-name: floatSlow;
}
.particle:nth-child(30) {
  left: 93%;
  animation-delay: 18.5s;
  animation-duration: 22s;
  animation-name: floatWave;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatSlow {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    transform: translateY(50vh) translateX(20px) rotate(180deg);
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100vh) translateX(-20px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatWave {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  25% {
    transform: translateY(75vh) translateX(30px) rotate(90deg);
  }
  50% {
    transform: translateY(50vh) translateX(-30px) rotate(180deg);
  }
  75% {
    transform: translateY(25vh) translateX(30px) rotate(270deg);
  }
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-100vh) translateX(0px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatZigzag {
  0% {
    transform: translateY(100vh) translateX(0px) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  20% {
    transform: translateY(80vh) translateX(40px) scale(1);
  }
  40% {
    transform: translateY(60vh) translateX(-40px) scale(0.8);
  }
  60% {
    transform: translateY(40vh) translateX(40px) scale(1.1);
  }
  80% {
    transform: translateY(20vh) translateX(-40px) scale(0.9);
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh) translateX(0px) scale(0.5);
    opacity: 0;
  }
}

/* Header Styles */
.header {
  background: var(--gradient-header);
  padding: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  background-size: 50px 50px;
  animation: headerFloat 20s infinite linear;
}

@keyframes headerFloat {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-50px);
  }
}

.logo {
  position: relative;
  z-index: 1;
}

.logo h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: slideInDown 0.8s ease-out;
}

.logo p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInDown {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 5;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(186, 54, 94, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.hero-stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 180px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-stat:hover {
  transform: translate3d(0, -5px, 0);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-stat:hover::before {
  opacity: 1;
}

.hero-stat-students {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(52, 152, 219, 0.5);
}

.hero-stat-students:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 15px 35px rgba(52, 152, 219, 0.3);
}

.hero-stat-awards {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(241, 196, 15, 0.5);
}

.hero-stat-awards:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 15px 35px rgba(241, 196, 15, 0.3);
}

.hero-stat-regions {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(231, 76, 60, 0.5);
}

.hero-stat-regions:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 15px 35px rgba(231, 76, 60, 0.3);
}

.hero-stat-icon {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.hero-stat-icon i {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1;
}

.greater-than {
  font-size: 2rem;
  margin-right: 0.2rem;
  color: rgba(44, 62, 80, 0.8);
}

.plus {
  font-size: 2rem;
  margin-left: 0.2rem;
  color: rgba(44, 62, 80, 0.8);
}

.hero-stat p {
  color: rgba(44, 62, 80, 0.9);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

/* Star Particle Overlay */
.star-particles-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.star-particle {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.6;
}

.star-particle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  transform: translate(-50%, -50%);
  opacity: 0.6;
}

.star-particle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 200%;
  background: linear-gradient(180deg, transparent, #ffffff, transparent);
  transform: translate(-50%, -50%);
  opacity: 0.6;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Individual Star Positions and Animations */
.star-1 {
  top: 15%;
  left: 10%;
  width: 3px;
  height: 3px;
  animation-delay: 0s;
  animation-duration: 2.5s;
}

.star-2 {
  top: 25%;
  left: 20%;
  width: 4px;
  height: 4px;
  animation-delay: 0.5s;
  animation-duration: 3s;
}

.star-3 {
  top: 35%;
  left: 15%;
  width: 2px;
  height: 2px;
  animation-delay: 1s;
  animation-duration: 2.8s;
}

.star-4 {
  top: 20%;
  left: 35%;
  width: 3px;
  height: 3px;
  animation-delay: 1.5s;
  animation-duration: 3.2s;
}

.star-5 {
  top: 10%;
  left: 50%;
  width: 5px;
  height: 5px;
  animation-delay: 2s;
  animation-duration: 2.7s;
}

.star-6 {
  top: 30%;
  left: 60%;
  width: 3px;
  height: 3px;
  animation-delay: 2.5s;
  animation-duration: 3.1s;
}

.star-7 {
  top: 18%;
  left: 75%;
  width: 4px;
  height: 4px;
  animation-delay: 3s;
  animation-duration: 2.9s;
}

.star-8 {
  top: 28%;
  left: 85%;
  width: 2px;
  height: 2px;
  animation-delay: 0.3s;
  animation-duration: 3.3s;
}

.star-9 {
  top: 8%;
  left: 90%;
  width: 3px;
  height: 3px;
  animation-delay: 0.8s;
  animation-duration: 2.6s;
}

.star-10 {
  top: 40%;
  left: 25%;
  width: 4px;
  height: 4px;
  animation-delay: 1.3s;
  animation-duration: 3.4s;
}

.star-11 {
  top: 12%;
  left: 65%;
  width: 2px;
  height: 2px;
  animation-delay: 1.8s;
  animation-duration: 2.4s;
}

.star-12 {
  top: 32%;
  left: 45%;
  width: 3px;
  height: 3px;
  animation-delay: 2.3s;
  animation-duration: 3.5s;
}

.star-13 {
  top: 22%;
  left: 5%;
  width: 5px;
  height: 5px;
  animation-delay: 2.8s;
  animation-duration: 2.3s;
}

.star-14 {
  top: 38%;
  left: 80%;
  width: 3px;
  height: 3px;
  animation-delay: 0.2s;
  animation-duration: 3.6s;
}

.star-15 {
  top: 16%;
  left: 95%;
  width: 2px;
  height: 2px;
  animation-delay: 0.7s;
  animation-duration: 2.8s;
}

.star-16 {
  top: 26%;
  left: 30%;
  width: 4px;
  height: 4px;
  animation-delay: 1.2s;
  animation-duration: 3.7s;
}

.star-17 {
  top: 14%;
  left: 40%;
  width: 3px;
  height: 3px;
  animation-delay: 1.7s;
  animation-duration: 2.5s;
}

.star-18 {
  top: 34%;
  left: 70%;
  width: 2px;
  height: 2px;
  animation-delay: 2.2s;
  animation-duration: 3.8s;
}

.star-19 {
  top: 24%;
  left: 55%;
  width: 5px;
  height: 5px;
  animation-delay: 2.7s;
  animation-duration: 2.2s;
}

.star-20 {
  top: 36%;
  left: 12%;
  width: 3px;
  height: 3px;
  animation-delay: 0.1s;
  animation-duration: 3.9s;
}

/* Achievements Section */
.achievements {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 244, 246, 0.95) 100%
  );
  position: relative;
  z-index: 5;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* Responsive grid for 6 cards */
@media (min-width: 1400px) {
  .achievement-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .achievement-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .achievement-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.achievement-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-strong);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  /* Optimized for better performance */
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.achievement-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.achievement-card:hover {
  transform: translate3d(0, -10px, 0) scale(1.01);
  box-shadow: 0 15px 40px rgba(186, 54, 94, 0.25);
}

.achievement-icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 3.5rem;
}

.achievement-icon i {
  display: block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  margin: 0 auto;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.achievement-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 2px 2px 4px rgba(186, 54, 94, 0.2);
}

.achievement-number .plus,
.achievement-number .percent {
  font-size: 2.5rem;
  margin-left: 0.2rem;
  color: var(--primary-light);
}

.achievement-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.achievement-card p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(186, 54, 94, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 1.5s ease;
  border-radius: 4px;
  position: relative;
}

.progress-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
}

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

/* Team Section */
.team-section {
  padding: 3rem 0;
  background: var(--gradient-team);
  position: relative;
  z-index: 5;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.team-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.team-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transition: all 0.3s ease;
}

.team-image-container:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.team-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 2rem;
  color: white;
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.team-image-container:hover .team-overlay {
  transform: translateY(0);
}

.team-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.team-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-stat .stat-number {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--white);
}

.team-stat .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.team-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-strong);
}

.feature-icon {
  color: var(--primary-color);
  background: var(--accent-color);
  padding: 0.8rem;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text {
  flex: 1;
}

.feature-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.feature-item p {
  color: var(--text-light);
  line-height: 1.4;
  font-size: 0.9rem;
}

/* Student Excellence Section */
.student-excellence {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 244, 246, 0.95) 100%
  );
  position: relative;
  z-index: 5;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.student-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.student-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.student-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.student-card:hover::before {
  opacity: 1;
}

.student-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-medium);
}

.student-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--gradient-primary);
  color: var(--white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: var(--shadow-light);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.student-info {
  text-align: center;
}

.student-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.student-school {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.student-achievements {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(186, 54, 94, 0.05);
  border-radius: 10px;
  border-left: 3px solid var(--primary-color);
  transition: all 0.3s ease;
  text-align: left;
}

.achievement-item:hover {
  background: rgba(186, 54, 94, 0.1);
  transform: translateX(5px);
}

.achievement-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
  width: 20px;
  flex-shrink: 0;
}

.achievement-item span {
  font-size: 0.9rem;
  color: var(--text-color);
  font-weight: 500;
}

/* Details Section */
.details {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 244, 246, 0.95) 100%
  );
  position: relative;
  z-index: 5;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.detail-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-medium);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-glass);
}

.detail-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.detail-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prize-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prize-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(186, 54, 94, 0.05);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.prize-item:hover {
  transform: translateX(5px);
  background: rgba(186, 54, 94, 0.1);
  box-shadow: 0 4px 8px rgba(186, 54, 94, 0.2);
}

.prize-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  box-shadow: var(--shadow-light);
}

.prize-type {
  font-weight: 500;
  color: var(--text-color);
}

.locations {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.location {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.location:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-strong);
  background: var(--primary-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo-header {
    padding: 15px 0;
  }

  .logo-image {
    max-height: 60px;
  }

  .logo h1 {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hero-stat {
    min-width: auto;
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .greater-than,
  .plus {
    font-size: 1.8rem;
  }

  .hero-stat-icon {
    font-size: 1.8rem;
  }

  /* Star particles responsive */
  .star-particle {
    animation-duration: 2s !important;
  }

  .star-particle::before,
  .star-particle::after {
    animation-duration: 2s !important;
  }

  .achievement-number {
    font-size: 3rem;
  }

  .achievement-number .plus,
  .achievement-number .percent {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .student-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .prize-breakdown {
    gap: 0.8rem;
  }

  .prize-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .logo-header {
    padding: 12px 0;
  }

  .logo-image {
    max-height: 45px;
  }

  .logo h1 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .achievement-card,
  .detail-card {
    padding: 1.5rem;
  }

  .achievement-number {
    font-size: 2.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .greater-than,
  .plus {
    font-size: 1.5rem;
  }

  .hero-stat-icon {
    font-size: 1.5rem;
  }

  .hero-stat {
    padding: 1.2rem;
  }

  /* Star particles mobile optimization */
  .star-particle {
    animation-duration: 1.5s !important;
  }

  .star-particle::before,
  .star-particle::after {
    animation-duration: 1.5s !important;
    opacity: 0.6 !important;
  }

  .star-particle[class*="star-"]:nth-child(odd) {
    display: none;
  }

  .team-image {
    height: 300px;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .student-card {
    padding: 1.5rem;
  }

  .student-avatar {
    width: 80px;
    height: 80px;
  }

  .student-name {
    font-size: 1.2rem;
  }

  .achievement-item {
    padding: 0.6rem;
  }

  .achievement-item span {
    font-size: 0.8rem;
  }
}

/* Enhanced Smooth Scrolling Performance */
* {
  /* Ultra-smooth transitions for all elements */
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Custom easing curves for ultra-smooth animations */
:root {
  --easing-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --easing-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --easing-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Ultra-smooth scroll behavior */
:focus {
  scroll-behavior: smooth;
}

/* Maximum scroll performance optimization */
body {
  /* Reduce paint and layout on scroll */
  contain: layout style paint;
  /* Optimize scrolling performance */
  overscroll-behavior: contain;
  /* Better scroll anchoring */
  overflow-anchor: auto;
  /* Optimize for composite layers */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Ultra-smooth momentum scrolling */
.container,
.achievement-grid,
.student-grid,
.team-features {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* Force hardware acceleration */
  transform: translate3d(0, 0, 0);
  will-change: scroll-position;
}

/* Optimized scroll performance for sections */
.hero,
.achievements,
.student-achievement-tabs,
.testimonials-section,
.team-section {
  /* Enable hardware acceleration */
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  /* Optimize paint performance */
  contain: layout style;
}

/* Smooth scroll snap for better UX */
@media (min-width: 768px) {
  .hero,
  .achievements,
  .student-achievement-tabs,
  .testimonials-section,
  .team-section {
    scroll-snap-align: start;
    scroll-margin-top: 2rem;
  }
}

/* Additional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes smoothSlideIn {
  from {
    opacity: 0;
    transform: translate3d(-20px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes smoothZoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.95, 0.95, 1);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

/* Smooth animation classes */
.smooth-fade-in {
  animation: fadeInUp 0.8s var(--easing-smooth) forwards;
}

.smooth-slide-in {
  animation: smoothSlideIn 0.8s var(--easing-smooth) forwards;
}

.smooth-zoom-in {
  animation: smoothZoomIn 0.8s var(--easing-smooth) forwards;
}

/* Enhanced card animations */
.achievement-card,
.student-card,
.feature-item {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.achievement-card {
  animation: fadeInUp 0.8s var(--easing-smooth) forwards;
}

.achievement-card:nth-child(1) {
  animation-delay: 0.1s;
}
.achievement-card:nth-child(2) {
  animation-delay: 0.2s;
}
.achievement-card:nth-child(3) {
  animation-delay: 0.3s;
}
.achievement-card:nth-child(4) {
  animation-delay: 0.4s;
}
.achievement-card:nth-child(5) {
  animation-delay: 0.5s;
}
.achievement-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Smooth hover transitions */
.achievement-card:hover,
.student-card:hover,
.feature-item:hover {
  transition: transform 0.4s var(--easing-smooth),
    box-shadow 0.4s var(--easing-smooth);
}

/* Optimized particle animations */
.particle {
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* Performance optimizations for smooth scrolling */
.hero,
.achievements,
.student-excellence,
.team-section {
  contain: layout style paint;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

/* Testimonials Section */
.testimonials-section {
  padding: 30px 0;
  background: var(--gradient-secondary);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(186, 54, 94, 0.03) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

/* Testimonials Carousel */
.testimonials-carousel {
  position: relative;
  max-width: 900px;
  margin: 30px auto 0;
  padding: 0 60px;
}

.carousel-container {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.testimonial-card {
  min-width: 50%;
  height: 400px;
  padding: 25px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(186, 54, 94, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-sizing: border-box;
  margin: 0 1px;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.testimonial-card:hover::before {
  opacity: 1;
}

/* Testimonial Avatar */
.testimonial-avatar {
  margin-bottom: 15px;
  position: relative;
  flex-shrink: 0;
}

.student-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(186, 54, 94, 0.3);
  transition: all 0.3s ease;
}

.testimonial-card:hover .student-avatar-img {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(186, 54, 94, 0.4);
}

/* Testimonial Content */
.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.testimonial-content .student-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 5px;
  line-height: 1.3;
  flex-shrink: 0;
}

.testimonial-content .student-school {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 4px;
  font-weight: 500;
  flex-shrink: 0;
}

.testimonial-content .student-achievement {
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 10px;
  padding: 4px 12px;
  background: rgba(186, 54, 94, 0.1);
  border-radius: 15px;
  display: inline-block;
  flex-shrink: 0;
}

.testimonial-text {
  margin-top: 10px;
  flex: 1;
  display: flex;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 150px;
  min-height: 0;
}

.testimonial-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  font-style: italic;
  position: relative;
  padding: 0 18px;
  word-wrap: break-word;
}

.testimonial-text p::before {
  content: "\201C";
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  top: -10px;
  left: -10px;
  opacity: 0.3;
  font-family: serif;
}

.testimonial-text p::after {
  content: "\201D";
  font-size: 3rem;
  color: var(--primary-color);
  position: absolute;
  bottom: -25px;
  right: -10px;
  opacity: 0.3;
  font-family: serif;
}

/* Custom Scrollbar for Testimonial Text */
.testimonial-text::-webkit-scrollbar {
  width: 6px;
}

.testimonial-text::-webkit-scrollbar-track {
  background: rgba(186, 54, 94, 0.1);
  border-radius: 3px;
}

.testimonial-text::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.testimonial-text::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 30px;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-primary);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-strong);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.prev-btn {
  position: relative;
}

.next-btn {
  position: relative;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(186, 54, 94, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  background: rgba(186, 54, 94, 0.6);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

/* Responsive Design for Testimonials */
@media (max-width: 768px) {
  .testimonials-carousel {
    padding: 0 40px;
  }

  .testimonial-card {
    min-width: 100%;
    height: 350px;
    padding: 20px 15px;
  }

  .testimonial-text {
    max-height: 120px;
  }

  .carousel-nav {
    padding: 0 20px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .student-avatar-img {
    width: 70px;
    height: 70px;
  }

  .testimonial-content .student-name {
    font-size: 1.1rem;
  }

  .testimonial-text p {
    font-size: 0.9rem;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .testimonials-section {
    padding: 25px 0;
  }

  .testimonials-carousel {
    padding: 0 20px;
    margin: 20px auto 0;
  }

  .testimonial-card {
    height: 320px;
    padding: 20px 12px;
  }

  .testimonial-text {
    max-height: 100px;
  }

  .carousel-nav {
    padding: 0 15px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .student-avatar-img {
    width: 60px;
    height: 60px;
  }

  .testimonial-content .student-name {
    font-size: 1rem;
  }

  .testimonial-content .student-school {
    font-size: 0.85rem;
  }

  .testimonial-text p {
    font-size: 0.85rem;
    padding: 0 12px;
  }
}

/* Student Achievement Tabs Section */
.student-achievement-tabs {
  padding: 80px 0;
  background: var(--gradient-secondary);
  position: relative;
  overflow: hidden;
}

.student-achievement-tabs::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glass);
  pointer-events: none;
  z-index: 1;
}

.student-achievement-tabs .container {
  position: relative;
  z-index: 2;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(186, 54, 94, 0.3);
  color: var(--primary-color);
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 16px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.3s ease;
  z-index: -1;
}

.tab-btn:hover::before,
.tab-btn.active::before {
  left: 0;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Tab Content */
.tab-content {
  margin-top: 40px;
}

.tab-pane {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Student Grid */
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

/* Student Card */
.student-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid rgba(186, 54, 94, 0.1);
  position: relative;
  overflow: hidden;
}

.student-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.student-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.student-card:hover::before {
  opacity: 1;
}

.student-info {
  text-align: center;
}

.student-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 8px;
  line-height: 1.3;
}

.student-class {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 500;
}

.student-rank {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: var(--shadow-light);
}

.student-school {
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.4;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .student-achievement-tabs {
    padding: 60px 0;
  }

  .tab-navigation {
    gap: 12px;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .student-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .student-card {
    padding: 20px;
  }

  .student-name {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .student-achievement-tabs {
    padding: 40px 0;
  }

  .tab-navigation {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 200px;
  }

  .student-card {
    padding: 16px;
  }

  .student-name {
    font-size: 15px;
  }

  .student-class {
    font-size: 13px;
  }

  .student-rank {
    font-size: 13px;
    padding: 4px 12px;
  }

  .student-school {
    font-size: 13px;
  }
}

/* Expand/Collapse Functionality for Student Grids */
.student-grid {
  position: relative;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.student-grid.collapsed {
  max-height: 600px; /* Approximate height for 3 rows */
}

.student-grid.collapsed .student-card:nth-child(n + 10) {
  display: none;
}

.student-grid.expanded {
  max-height: none;
}

.student-grid.expanded .student-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.expand-btn-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.expand-btn {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.expand-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.expand-btn i {
  transition: transform 0.3s ease;
}

.expand-btn.expanded i {
  transform: rotate(180deg);
}

.expand-btn.hidden {
  display: none;
}

/* Responsive adjustments for expand button */
@media (max-width: 768px) {
  .student-grid.collapsed {
    max-height: 420px; /* Adjusted for single column on mobile */
  }

  .student-grid.collapsed .student-card:nth-child(n + 4) {
    display: none;
  }

  .expand-btn {
    padding: 10px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .student-grid.collapsed {
    max-height: 320px; /* Further adjusted for smaller screens */
  }

  .student-grid.collapsed .student-card:nth-child(n + 4) {
    display: none;
  }

  .expand-btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}

/* Simple Floating Consultation Button */
.floating-consultation-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #ba365e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(186, 54, 94, 0.4);
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.floating-consultation-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(186, 54, 94, 0.6);
  width: 140px;
  border-radius: 30px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon i {
  font-size: 22px;
  color: white;
}

.btn-text {
  color: white;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0;
  margin-left: 8px;
  transition: opacity 0.3s ease;
}

.floating-consultation-btn:hover .btn-text {
  opacity: 1;
}

.btn-pulse {
  display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .floating-consultation-btn {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }

  .floating-consultation-btn:hover {
    width: 120px;
    border-radius: 27px;
  }

  .btn-icon i {
    font-size: 20px;
  }

  .btn-text {
    font-size: 10px;
  }
}

/* NEW: hide text by default for perfect icon centering */
.btn-text {
  display: none;
}

.floating-consultation-btn:hover .btn-text {
  display: flex;
}

/* NEW: force fixed positioning just in case of overrides */
.floating-consultation-btn {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
}

/* FIX: ensure viewport-based fixed positioning */
html,
body {
  perspective: none !important;
  transform-style: flat !important;
}
