@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800;900&display=swap');

:root {
  /* Login/Logout Aurora Colors */
  --aurora-purple: #a78bfa;
  --aurora-pink: #f0abfc;
  --aurora-blue: #60a5fa;
  --aurora-white: #ffffff;
  
  /* Main Pages Soft Pastel Colors */
  --pastel-lavender: #e9d5ff;
  --pastel-pink: #fce7f3;
  --pastel-blue: #dbeafe;
  --pastel-mint: #d1fae5;
  --pastel-peach: #fed7aa;
  
  /* Text Colors */
  --text-dark: #1e1b4b;
  --text-medium: #4c1d95;
  --text-light: #7c3aed;
  --text-white: #ffffff;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(124, 58, 237, 0.1);
  --shadow-md: 0 4px 16px rgba(124, 58, 237, 0.15);
  --shadow-lg: 0 8px 32px rgba(124, 58, 237, 0.2);
  --glow: 0 0 40px rgba(167, 139, 250, 0.6);
  
  /* Border Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
  color: var(--text-dark);
}

::selection {
  background: var(--aurora-purple);
  color: var(--text-white);
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(167, 139, 250, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--aurora-purple), var(--aurora-pink));
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--aurora-pink), var(--aurora-blue));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   LOGIN & LOGOUT PAGES - AURORA GRADIENT
   ======================================== */

.login-body,
.logout-body {
  background: linear-gradient(135deg, 
    #667eea 0%, 
    #764ba2 25%, 
    #f093fb 50%, 
    #4facfe 75%, 
    #00f2fe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.login-body::before,
.logout-body::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: backgroundMove 20s linear infinite;
  pointer-events: none;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, 
    #667eea 0%, 
    #764ba2 25%, 
    #f093fb 50%, 
    #4facfe 75%, 
    #00f2fe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease;
  backdrop-filter: blur(20px);
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-2xl);
}

.spinner {
  width: 100px;
  height: 100px;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--aurora-white);
  border-right-color: var(--aurora-pink);
  border-radius: var(--radius-full);
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  position: relative;
  z-index: 2;
}

.spinner-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, 
    rgba(167, 139, 250, 0.4) 0%, 
    rgba(240, 171, 252, 0.3) 50%, 
    transparent 70%);
  border-radius: var(--radius-full);
  animation: pulse 2s ease-in-out infinite;
  filter: blur(20px);
  z-index: 1;
}

.loading-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 700;
  color: var(--text-white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  animation: textPulse 2s ease-in-out infinite;
  letter-spacing: 1px;
}

/* Login Container */
.login-container,
.logout-container {
  width: 100%;
  max-width: 480px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card,
.logout-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(30px) saturate(180%);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.37),
    inset 0 0 60px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.login-card::before,
.logout-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%);
  pointer-events: none;
}

.logo-container {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-xl);
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.logo-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 10px 40px rgba(124, 58, 237, 0.4),
    0 0 60px rgba(167, 139, 250, 0.3);
  transition: var(--transition-normal);
  filter: brightness(1.1);
}

.logo-container:hover .logo-img {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 
    0 15px 60px rgba(124, 58, 237, 0.6),
    0 0 80px rgba(167, 139, 250, 0.5);
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 3.2rem);
  font-weight: 900;
  text-align: center;
  color: var(--text-white);
  margin-bottom: var(--space-md);
  text-shadow: 
    0 4px 20px rgba(124, 58, 237, 0.5),
    0 0 40px rgba(167, 139, 250, 0.3);
  letter-spacing: -1px;
  animation: titleGlow 3s ease-in-out infinite;
}

.tagline {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  font-style: italic;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.school-info {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.5px;
}

/* Login Form */
.login-form {
  margin-top: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
  position: relative;
}

.login-form input {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--text-white);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.login-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 0 0 4px rgba(255, 255, 255, 0.1),
    inset 0 2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px) scale(1.01);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 60px;
}

.toggle-password {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-white);
  cursor: pointer;
  font-size: 1.4rem;
  padding: var(--space-sm);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.toggle-password:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

.login-btn,
.back-login-btn,
.logout-btn-bottom {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    rgba(255, 255, 255, 0.2) 100%);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  cursor: pointer;
  box-shadow: 
    0 8px 25px rgba(124, 58, 237, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.login-btn::before,
.back-login-btn::before,
.logout-btn-bottom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    transparent 100%);
  opacity: 0;
  transition: var(--transition-normal);
}

.login-btn:hover,
.back-login-btn:hover,
.logout-btn-bottom:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 35px rgba(124, 58, 237, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 40px rgba(167, 139, 250, 0.4);
}

.login-btn:hover::before,
.back-login-btn:hover::before,
.logout-btn-bottom:hover::before {
  opacity: 1;
}

.login-btn:active,
.back-login-btn:active,
.logout-btn-bottom:active {
  transform: translateY(-1px);
}

.btn-loader {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-loader .dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: white;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.btn-loader .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.btn-loader .dot:nth-child(3) {
  animation-delay: 0.4s;
}

#error-msg {
  min-height: var(--space-xl);
  color: #fecaca;
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-align: center;
  margin-top: var(--space-lg);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ========================================
   MAIN PAGES - SOFT PASTEL COLORS
   ======================================== */

.main-body {
  background: linear-gradient(135deg,
    #faf5ff 0%,
    #fce7f3 25%,
    #dbeafe 50%,
    #d1fae5 75%,
    #fed7aa 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  min-height: 100vh;
}

/* Navigation - FIXED LAYOUT */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 2px solid rgba(124, 58, 237, 0.1);
  box-shadow: var(--shadow-sm);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  transition: var(--transition-normal);
}

nav:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: 'Poppins', sans-serif;
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  position: relative;
  padding: var(--space-sm) var(--space-xs);
  transition: var(--transition-fast);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  transition: var(--transition-normal);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
  transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Music Toggle Button - Stays on same line as nav links */
.music-toggle-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  border: 3px solid rgba(124, 58, 237, 0.2);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
  animation: float 4s ease-in-out infinite;
  user-select: none;
  flex-shrink: 0;
}

.music-toggle-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(255, 255, 255, 0.95);
}

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

.music-toggle-btn.playing {
  animation: float 4s ease-in-out infinite, audioPulse 2s ease-in-out infinite;
}

.nav-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
  transition: var(--transition-normal);
  animation: float 4s ease-in-out infinite;
}

.nav-logo:hover {
  transform: translateY(-5px) scale(1.05) rotate(5deg);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
  border-color: rgba(124, 58, 237, 0.4);
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #7c3aed, #ec4899, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
  white-space: nowrap;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-section {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 900;
  margin-bottom: var(--space-lg);
  letter-spacing: -2px;
  background: linear-gradient(135deg, #7c3aed, #ec4899, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  animation: titleSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.school-badge {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 800;
  color: var(--text-medium);
  text-align: center;
  margin-bottom: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(124, 58, 237, 0.1);
  border-radius: var(--radius-sm);
  display: inline-block;
  border: 2px solid rgba(124, 58, 237, 0.2);
  letter-spacing: 0.5px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-description,
.about-description {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  color: var(--text-medium);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.learn-more-btn {
  max-width: 300px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-lg) var(--space-2xl);
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.learn-more-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--glow);
  background: linear-gradient(135deg, #8b5cf6, #f472b6);
}

/* Section Titles */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  margin-bottom: var(--space-xl);
  text-align: center;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--text-medium);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* Testimonials Carousel */
.testimonials-section {
  padding: var(--space-3xl) 0;
}

.testimonial-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.testimonial-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius-lg);
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  min-width: 100%;
  padding: var(--space-3xl) var(--space-2xl);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.25);
}

.testimonial-avatar {
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  margin-bottom: var(--space-xl);
  animation: float 4s ease-in-out infinite;
}

.stars {
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  margin-bottom: var(--space-xl);
  letter-spacing: 4px;
  color: #fbbf24;
  filter: drop-shadow(0 2px 8px rgba(251, 191, 36, 0.3));
}

.testimonial-text {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: var(--space-xl);
  font-style: italic;
  font-weight: 500;
}

.testimonial-author {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
}

.testimonial-role {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-medium);
  font-weight: 600;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(124, 58, 237, 0.2);
  color: var(--text-light);
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.4);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.3);
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid rgba(124, 58, 237, 0.2);
}

.dot:hover {
  background: rgba(124, 58, 237, 0.5);
  transform: scale(1.2);
}

.dot.active {
  background: var(--text-light);
  transform: scale(1.4);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
}

/* Mission & Vision Cards */
.mission-vision {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.mv-card {
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(124, 58, 237, 0.15);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.mv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.25);
}

.mv-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  margin-bottom: var(--space-lg);
  font-weight: 900;
  color: var(--text-light);
}

.mv-card p {
  color: var(--text-medium);
  line-height: 1.8;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 500;
}


/* Ingredient Cards */
.ingredient-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.ingredient-card {
  padding: var(--space-3xl) var(--space-xl);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(124, 58, 237, 0.15);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.ingredient-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.25);
}

.ingredient-icon {
  font-size: clamp(3.5rem, 8vw, 4rem);
  margin-bottom: var(--space-xl);
  animation: float 4s ease-in-out infinite;
  display: inline-block;
}

.ingredient-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  font-weight: 900;
  margin-bottom: var(--space-lg);
  color: var(--text-light);
}

.ingredient-card p {
  color: var(--text-medium);
  line-height: 1.8;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 500;
}

/* QR Section */
.qr-section {
  text-align: center;
  padding: var(--space-3xl) 0;
  margin-top: var(--space-3xl);
}

.qr-description {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  color: var(--text-medium);
  margin-bottom: var(--space-2xl);
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.qr-card {
  display: inline-block;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(124, 58, 237, 0.2);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  cursor: pointer;
}

.qr-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(124, 58, 237, 0.4);
}

.qr-card img {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-sm);
  display: block;
}

.qr-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-medium);
  margin-top: var(--space-lg);
  font-weight: 700;
}

.qr-subtitle a {
  color: var(--text-light);
  text-decoration: underline;
  transition: var(--transition-fast);
  font-weight: 800;
}

.qr-subtitle a:hover {
  color: #ec4899;
}

/* Rating Section */
.rating-section {
  margin-top: var(--space-3xl);
  padding: var(--space-3xl) var(--space-2xl);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.rating-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  font-weight: 900;
  margin-bottom: var(--space-xl);
  color: var(--text-light);
  text-align: center;
}

.stars-rating {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  font-size: clamp(2.5rem, 6vw, 3.2rem);
  margin-bottom: var(--space-lg);
}

.star {
  cursor: pointer;
  transition: var(--transition-fast);
  color: rgba(124, 58, 237, 0.2);
  user-select: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.star:hover,
.star.active {
  color: #fbbf24;
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.6));
}

.star:active {
  transform: scale(1.1) rotate(5deg);
}

.rating-feedback {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  color: var(--text-light);
  font-weight: 800;
  min-height: 32px;
  margin-bottom: var(--space-lg);
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.feedback-container {
  margin-top: var(--space-xl);
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feedback-container textarea {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  border: 2px solid rgba(124, 58, 237, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.05rem);
  resize: vertical;
  min-height: 120px;
  margin-bottom: var(--space-lg);
  transition: var(--transition-normal);
  font-weight: 500;
  line-height: 1.6;
}

.feedback-container textarea::placeholder {
  color: rgba(30, 27, 75, 0.5);
}

.feedback-container textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--text-light);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  transform: translateY(-2px);
}

.submit-feedback-btn {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: var(--text-white);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-feedback-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #8b5cf6, #f472b6);
}

.feedback-thanks {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 800;
  color: var(--text-light);
  margin-top: var(--space-xl);
  text-align: center;
  font-family: 'Poppins', sans-serif;
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* References Section */
.references-section {
  padding: var(--space-3xl) 0;
  margin-top: var(--space-3xl);
}

.references-intro {
  text-align: center;
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  color: var(--text-medium);
  margin-bottom: var(--space-2xl);
  font-weight: 600;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.reference-card {
  padding: var(--space-2xl) var(--space-xl);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border: 2px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.reference-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(124, 58, 237, 0.25);
}

.reference-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 900;
  margin-bottom: var(--space-lg);
  color: var(--text-light);
}

.reference-card p {
  color: var(--text-medium);
  line-height: 1.8;
  font-size: clamp(0.98rem, 2vw, 1.05rem);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.reference-card p strong {
  font-weight: 800;
  color: var(--text-dark);
}

.research-link {
  display: inline-block;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  transition: var(--transition-fast);
  font-family: 'Poppins', sans-serif;
  margin-top: var(--space-sm);
}

.research-link:hover {
  color: #ec4899;
  transform: translateX(5px);
}

.references-note {
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-medium);
  margin-top: var(--space-3xl);
  line-height: 1.8;
  font-style: italic;
  font-weight: 600;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* Feedback Table */
.feedback-table-container {
  margin-top: var(--space-2xl);
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

#feedbackTable {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
}

#feedbackTable thead {
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: var(--text-white);
}

#feedbackTable th {
  padding: var(--space-lg) var(--space-md);
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

#feedbackTable td {
  padding: var(--space-md);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  font-size: clamp(0.95rem, 2vw, 1rem);
  color: var(--text-medium);
  font-weight: 500;
}

#feedbackTable tbody tr {
  transition: var(--transition-fast);
}

#feedbackTable tbody tr:hover {
  background: rgba(124, 58, 237, 0.05);
}

/* Logout Button */
.logout-btn-bottom {
  max-width: 240px;
  margin: var(--space-3xl) auto var(--space-2xl);
  display: flex;
}

/* Footer */
footer {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-medium);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.footer-main {
  margin-bottom: var(--space-sm);
  font-weight: 800;
}

.footer-sub {
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 500;
  color: var(--text-medium);
  opacity: 0.8;
}

/* Logout Page Specific */
.logout-icon-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-2xl);
  animation: float 5s ease-in-out infinite;
}

.logout-icon {
  font-size: clamp(5rem, 10vw, 6rem);
}

.logout-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 3.8rem);
  font-weight: 900;
  margin-bottom: var(--space-xl);
  letter-spacing: -1px;
  color: var(--text-white);
  text-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
  text-align: center;
}

.logout-message {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
  font-weight: 500;
  text-align: center;
}

.logout-submessage {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  font-weight: 600;
  line-height: 1.75;
  text-align: center;
}

.qr-section-logout {
  margin: var(--space-2xl) 0;
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.qr-title-logout {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.6rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
  color: var(--text-white);
  text-align: center;
}

.qr-description-logout {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
  line-height: 1.75;
  font-weight: 500;
  text-align: center;
}

.qr-code-container-logout {
  display: inline-block;
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.4);
  margin: 0 auto var(--space-lg);
}

.qr-code-container-logout:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.qr-image-logout {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-sm);
  display: block;
}

.qr-subtitle-logout {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.95);
  margin-top: var(--space-md);
  font-weight: 700;
  text-align: center;
}

.qr-link-logout {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
  margin-top: var(--space-sm);
  font-weight: 600;
  text-align: center;
}

.qr-link-logout a {
  color: var(--text-white);
  text-decoration: underline;
  transition: var(--transition-fast);
  font-weight: 800;
}

.qr-link-logout a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.back-login-btn {
  max-width: 300px;
  margin: var(--space-2xl) auto;
}

.logout-footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.logout-brand {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  color: var(--text-white);
}

.logout-tagline {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.logout-credits {
  font-size: clamp(0.98rem, 2vw, 1.05rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.5px;
}

.logout-year {
  font-size: clamp(0.9rem, 2vw, 1rem);
  color: rgba(255, 255, 255, 0.8);
  margin-top: var(--space-md);
  font-weight: 500;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes textPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

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

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

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.4; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

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

@keyframes backgroundMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

@keyframes shimmer {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 
      0 4px 20px rgba(124, 58, 237, 0.5),
      0 0 40px rgba(167, 139, 250, 0.3);
  }
  50% {
    text-shadow: 
      0 4px 30px rgba(124, 58, 237, 0.7),
      0 0 60px rgba(167, 139, 250, 0.5);
  }
}

@keyframes titleSlideIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes audioPulse {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(124, 58, 237, 0.2),
      0 0 30px rgba(124, 58, 237, 0.3);
  }
  50% {
    box-shadow: 
      0 8px 25px rgba(124, 58, 237, 0.4),
      0 0 50px rgba(124, 58, 237, 0.6);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  nav {
    padding: var(--space-md) var(--space-lg);
    flex-wrap: wrap;
  }
  
  .nav-left {
    gap: var(--space-sm);
  }
  
  .nav-right {
    width: 100%;
    justify-content: space-between;
    margin-top: var(--space-md);
    margin-left: 0;
  }
  
  .nav-links {
    gap: var(--space-md);
    flex: 1;
    justify-content: center;
  }
  
  .music-toggle-btn {
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
    margin-left: var(--space-md);
  }
  
  .main-content {
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .ingredient-cards,
  .mission-vision,
  .references-grid {
    grid-template-columns: 1fr;
  }
  
  .carousel-btn {
    width: 48px;
    height: 48px;
    font-size: clamp(1.6rem, 4vw, 2rem);
  }
  
  .testimonial-card {
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .login-card,
  .logout-card {
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .qr-section-logout {
    padding: var(--space-lg);
  }
  
  #feedbackTable {
    font-size: 0.9rem;
  }
  
  #feedbackTable th,
  #feedbackTable td {
    padding: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .login-body,
  .logout-body {
    padding: var(--space-md);
  }
  
  .login-card,
  .logout-card {
    padding: var(--space-xl) var(--space-md);
  }
  
  nav {
    padding: var(--space-sm) var(--space-md);
  }
  
  .nav-left {
    gap: var(--space-xs);
  }
  
  .nav-logo,
  .music-toggle-btn {
    width: 48px;
    height: 48px;
  }
  
  .music-toggle-btn {
    font-size: 1.5rem;
  }
  
  .nav-links {
    gap: var(--space-sm);
  }
  
  .nav-links a {
    padding: var(--space-xs) 4px;
    font-size: clamp(0.88rem, 2vw, 0.95rem);
  }
  
  .brand-name {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
  }
  
  .qr-card img {
    width: 180px;
    height: 180px;
  }
  
  .qr-image-logout {
    width: 160px;
    height: 160px;
  }
  
  .main-content {
    padding: var(--space-2xl) var(--space-md);
  }
  
  .logo-container {
    width: 100px;
    height: 100px;
  }
  
  .stars-rating {
    gap: var(--space-sm);
    font-size: clamp(2.2rem, 6vw, 2.8rem);
  }
  
  .ingredient-card,
  .mv-card,
  .reference-card {
    padding: var(--space-xl) var(--space-md);
  }
  
  .rating-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .qr-card,
  .qr-code-container-logout {
    padding: var(--space-md);
  }
  
  .qr-section-logout {
    padding: var(--space-md);
  }
  
  .carousel-btn {
    width: 44px;
    height: 44px;
  }
  
  .carousel-dots {
    gap: var(--space-sm);
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  .spinner-container {
    width: 80px;
    height: 80px;
  }
  
  .spinner {
    width: 80px;
    height: 80px;
    border-width: 5px;
  }
  
  #feedbackTable {
    font-size: 0.85rem;
  }
  
  #feedbackTable th,
  #feedbackTable td {
    padding: var(--space-xs);
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

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

/* Focus Styles */
*:focus-visible {
  outline: 3px solid var(--aurora-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--aurora-purple);
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .login-body,
  .logout-body {
    background: linear-gradient(135deg, #000080, #4B0082);
  }
  
  .main-body {
    background: #ffffff;
  }
  
  .login-card,
  .logout-card,
  .testimonial-card,
  .ingredient-card,
  .mv-card,
  .reference-card,
  .rating-section {
    border-width: 3px;
  }
}