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

:root {
  --google-blue: #3b82f6;
  --google-red: #ef4444;
  --google-yellow: #eab308;
  --google-green: #22c55e;
  
  --google-blue-rgb: 59, 130, 246;
  --google-red-rgb: 239, 68, 68;
  --google-yellow-rgb: 234, 179, 8;
  --google-green-rgb: 34, 197, 94;
}

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

body {
  font-family: "Fredoka", "Comfortaa", system-ui, sans-serif;
  line-height: 1.6;
  background-color: #040814 !important;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 55%) !important;
  min-height: 100vh;
  color: #f1f5f9;
  overflow-x: hidden;
  position: relative;
}

header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #f1f5f9;
  text-align: center;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  margin: 2.5rem auto;
  width: min(94vw, 1200px);
  animation: contentSlideIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.8s;
}

header h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.header-subtitle {
  color: #94a3b8;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 500;
  margin-bottom: 2rem;
}

/* Header Action Pill Row Layout */
.header-actions-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 900px;
  flex-wrap: wrap;
}

/* WhatsApp Feedback Button */
.whatsapp-feedback {
  margin: 0;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.2) !important;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 20px;
  border: 2px solid rgba(16, 185, 129, 0.4) !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15) !important;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(0);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45) !important;
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
}

.whatsapp-btn:active {
  transform: translateY(2px) scale(0.98);
}

.whatsapp-btn i {
  font-size: 1.3rem;
  transition: transform 0.18s ease;
}

.whatsapp-btn:hover i {
  transform: scale(1.15) rotate(10deg);
}

.student-registration-link {
  margin: 0;
}

.student-register-help {
  max-width: min(92vw, 560px);
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, #60a5fa, #34d399, #ffffff, #a78bfa, #60a5fa);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(0.72rem, 1.9vw, 0.82rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  animation: introBlueWhiteShimmer 7s ease-in-out infinite;
}

.free-help-word {
  display: inline-block;
  background: linear-gradient(90deg, #ffffff, #93c5fd, #3b82f6, #ffffff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  text-transform: uppercase;
  animation: introBlueWhiteShimmer 5.5s ease-in-out infinite, freeHelpPop 2.2s ease-in-out infinite;
}

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

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

.student-register-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.2) !important;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid rgba(249, 115, 22, 0.4) !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.15) !important;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(0);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.student-register-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.student-register-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.45) !important;
  border-color: #f97316 !important;
  background: rgba(249, 115, 22, 0.15) !important;
}

.student-register-btn:active {
  transform: translateY(2px) scale(0.98);
}

.student-register-btn i {
  transition: transform 0.18s ease;
}

.student-register-btn:hover i {
  transform: scale(1.15) rotate(-5deg);
}

/* PWA Install Button override */
.install-pwa-btn, .install-pwa-link button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.2) !important;
  color: #ffffff !important;
  font-weight: 800;
  border: 2px solid rgba(59, 130, 246, 0.4) !important;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.15) !important;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  transform: translateY(0) !important;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.install-pwa-btn::before, .install-pwa-link button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.install-pwa-btn:hover, .install-pwa-link button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.45) !important;
  border-color: #3b82f6 !important;
  background: rgba(59, 130, 246, 0.15) !important;
}

.install-pwa-btn:active, .install-pwa-link button:active {
  transform: translateY(2px) scale(0.98) !important;
}

.install-pwa-btn i, .install-pwa-link button i {
  transition: transform 0.18s ease;
}

.install-pwa-btn:hover i, .install-pwa-link button:hover i {
  transform: scale(1.15) translateY(2px);
}

.portal-introduction {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  width: min(92vw, 800px);
  margin: 2.2rem auto 0;
  padding: 1.8rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-align: center;
}

@media (min-width: 769px) {
  .portal-introduction::before {
    display: none !important;
  }
}

.portal-introduction-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.portal-introduction-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 2;
}

.portal-introduction-title {
  color: #60a5fa;
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.portal-introduction-belief {
  color: #94a3b8;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0.5rem 0 1rem;
  text-align: center;
}

.portal-introduction-quote {
  margin: 1rem 0;
  border-left: none;
  padding-left: 0;
  font-style: normal;
  text-align: center;
}

.portal-introduction-quote p {
  color: #ffffff;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0.4rem 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  text-align: center;
}

.speak-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 5px;
}

.portal-introduction-speak {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.8rem 1.8rem;
  border-radius: 20px;
  border: 2px solid rgba(250, 204, 21, 0.4) !important;
  background: rgba(15, 23, 42, 0.2) !important;
  color: #ffffff !important;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.15) !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.portal-introduction-speak::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.portal-introduction-speak:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.45) !important;
  border-color: #facc15 !important;
  background: rgba(250, 204, 21, 0.15) !important;
}

.portal-introduction-speak:active {
  transform: translateY(2px) scale(0.98);
}

.portal-introduction-speak:disabled {
  cursor: wait;
  opacity: 0.6;
}

/* Audio wave container */
.audio-wave-container {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  padding-bottom: 2px;
}

.audio-wave-container.speaking {
  display: inline-flex;
}

.wave-bar {
  width: 6px;
  background: var(--google-yellow);
  border-radius: 99px;
  height: 6px;
  border: 1.5px solid #1e293b;
}

.audio-wave-container.speaking .wave-bar {
  animation: bounceWave 0.8s ease-in-out infinite alternate;
}

.audio-wave-container.speaking .wave-bar:nth-child(1) { height: 20px; animation-delay: 0.1s; background: var(--google-blue); }
.audio-wave-container.speaking .wave-bar:nth-child(2) { height: 26px; animation-delay: 0.3s; background: var(--google-red); }
.audio-wave-container.speaking .wave-bar:nth-child(3) { height: 18px; animation-delay: 0.5s; background: var(--google-yellow); }
.audio-wave-container.speaking .wave-bar:nth-child(4) { height: 28px; animation-delay: 0.2s; background: var(--google-green); }
.audio-wave-container.speaking .wave-bar:nth-child(5) { height: 22px; animation-delay: 0.4s; background: var(--google-blue); }

@keyframes bounceWave {
  0% { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

.portal-introduction-status {
  min-height: 14px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 100px;
  animation: contentSlideIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 1s;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  margin-bottom: 60px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 1200px) {
  .video-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 10px;
    padding: 10px;
  }
}

footer {
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 2px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  text-align: center;
  padding: 1.2rem;
  position: relative;
  margin-top: 5rem;
  width: 100%;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  font-family: "Fredoka", system-ui, sans-serif;
  z-index: 10;
}

@media (max-width: 768px) {
  header {
    padding: 1.8rem 0.8rem 1.4rem;
    margin: 1rem auto;
    border-radius: 28px;
    border: 3px solid rgba(255, 255, 255, 0.08);
  }
  header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
  }
  .header-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }
  .portal-introduction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
    padding: 1.2rem 1rem;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center;
  }
  .portal-introduction::before {
    display: none !important;
  }
  .portal-introduction-photo {
    width: 74px;
    height: 74px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  }
  .portal-introduction-copy {
    align-items: center;
    gap: 0.4rem;
  }
  .portal-introduction-title {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    text-align: center;
  }
  .portal-introduction-belief {
    font-size: 0.82rem;
    margin: 0.1rem 0 0.4rem;
    line-height: 1.35;
    text-align: center;
  }
  .portal-introduction-quote {
    border-left: none;
    padding-left: 0;
    margin: 0.4rem 0;
    text-align: center;
  }
  .portal-introduction-quote p {
    font-size: 0.95rem !important;
    text-align: center !important;
    line-height: 1.3 !important;
    margin: 0.1rem 0 !important;
  }
  .speak-controls {
    margin-top: 2px;
  }
  .portal-introduction-speak {
    min-height: 38px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    border-radius: 14px;
    box-shadow: 0 3px 0 #854d0e;
  }
  .portal-introduction-speak:active {
    transform: translateY(3px);
  }
  
  /* Horizontal 3-Column Mobile Action Grid */
  /* Symmetrical Vertical Mobile Action Stack */
  .header-actions-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.8rem !important;
    margin-top: 1.5rem !important;
    width: 100% !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .header-actions-container > div {
    width: 100% !important;
    margin: 0 !important;
  }
  .header-actions-container span {
    display: inline !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
  }
  .whatsapp-btn, .student-register-btn, .install-pwa-btn, .install-pwa-link button {
    padding: 0.6rem 1.2rem !important;
    height: auto !important;
    min-height: 44px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 3px 0 #1e293b !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
  }
  .whatsapp-btn {
    box-shadow: 0 3px 0 #047857 !important;
  }
  .student-register-btn {
    box-shadow: 0 3px 0 #c2410c !important;
  }
  .install-pwa-btn, .install-pwa-link button {
    box-shadow: 0 3px 0 #1e3a8a !important;
  }
  
  .whatsapp-btn:active, .student-register-btn:active, .install-pwa-btn:active, .install-pwa-link button:active {
    transform: translateY(3px) !important;
    box-shadow: none !important;
  }
  .student-register-help {
    font-size: 0.68rem;
    margin-top: 0.5rem;
  }
  .container {
    margin: 1.2rem 0.5rem 5rem;
    padding: 1.5rem 0.8rem;
    border-radius: 28px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .video-wrapper {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  width: 100%;
}

.dashboard-category {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2.5rem 0.5rem;
  position: relative;
}

.category-header {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 900;
  margin-bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0.4rem 0.2rem 0.8rem;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  transform: none !important;
  color: #ffffff !important;
  text-transform: uppercase;
}

.category-header i {
  color: #ffffff !important;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.4));
}

/* 🔵 Blue Category Header Badge */
.category-blue .category-header {
  background: transparent !important;
  color: #60a5fa !important;
  border-bottom: 3.5px solid rgba(59, 130, 246, 0.8) !important;
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

/* 🟢 Green Category Header Badge */
.category-green .category-header {
  background: transparent !important;
  color: #4ade80 !important;
  border-bottom: 3.5px solid rgba(34, 197, 94, 0.8) !important;
  text-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}

/* 🔴 Red Category Header Badge */
.category-red .category-header {
  background: transparent !important;
  color: #f87171 !important;
  border-bottom: 3.5px solid rgba(239, 68, 68, 0.8) !important;
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

/* 🟡 Yellow Category Header Badge */
.category-yellow .category-header {
  background: transparent !important;
  color: #facc15 !important;
  border-bottom: 3.5px solid rgba(234, 179, 8, 0.8) !important;
  text-shadow: 0 0 15px rgba(234, 179, 8, 0.6);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Base Card Button Styling */
.class-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  height: 86px;
  padding: 1.2rem 1.6rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(15, 23, 42, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Specular light highlight */
.class-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 1;
}

.class-btn-label {
  display: block;
  text-align: left;
  line-height: 1.25;
  z-index: 2;
}

.class-btn i {
  font-size: 1.6rem;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  flex: 0 0 auto;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.class-btn-image {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  flex: 0 0 auto;
  z-index: 2;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Jelly button hover effects */
.class-btn:hover {
  transform: translateY(-4px) scale(1.02);
}

.class-btn:hover i {
  transform: scale(1.22) rotate(6deg);
}

.class-btn:hover .class-btn-image {
  transform: scale(1.18) rotate(-4deg);
}

/* satisfying mechanical push down click */
.class-btn:active {
  transform: translateY(2px) scale(0.98);
}

/* Individual Candy Gradients */
/* AI & Coding Labs */
.card-ai {
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15), inset 0 0 10px rgba(168, 85, 247, 0.05) !important;
}
.card-ai:hover {
  border-color: #a855f7 !important;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.45), inset 0 0 15px rgba(168, 85, 247, 0.15) !important;
  background: rgba(168, 85, 247, 0.12) !important;
}

.card-lab-java {
  border-color: rgba(6, 182, 212, 0.4) !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15), inset 0 0 10px rgba(6, 182, 212, 0.05) !important;
}
.card-lab-java:hover {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45), inset 0 0 15px rgba(6, 182, 212, 0.15) !important;
  background: rgba(6, 182, 212, 0.12) !important;
}

.card-lab-python {
  border-color: rgba(132, 204, 22, 0.4) !important;
  box-shadow: 0 0 12px rgba(132, 204, 22, 0.15), inset 0 0 10px rgba(132, 204, 22, 0.05) !important;
}
.card-lab-python:hover {
  border-color: #84cc16 !important;
  box-shadow: 0 0 25px rgba(132, 204, 22, 0.45), inset 0 0 15px rgba(132, 204, 22, 0.15) !important;
  background: rgba(132, 204, 22, 0.12) !important;
}

.card-lab-c {
  border-color: rgba(236, 72, 153, 0.4) !important;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.15), inset 0 0 10px rgba(236, 72, 153, 0.05) !important;
}
.card-lab-c:hover {
  border-color: #ec4899 !important;
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.45), inset 0 0 15px rgba(236, 72, 153, 0.15) !important;
  background: rgba(236, 72, 153, 0.12) !important;
}

.card-lab-cpp {
  border-color: rgba(244, 63, 94, 0.4) !important;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.15), inset 0 0 10px rgba(244, 63, 94, 0.05) !important;
}
.card-lab-cpp:hover {
  border-color: #f43f5e !important;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.45), inset 0 0 15px rgba(244, 63, 94, 0.15) !important;
  background: rgba(244, 63, 94, 0.12) !important;
}

/* Syllabus & Notes */
.card-holiday {
  border-color: rgba(249, 115, 22, 0.4) !important;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.15) !important;
}
.card-holiday:hover {
  border-color: #f97316 !important;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.45) !important;
  background: rgba(249, 115, 22, 0.12) !important;
}

/* Video & Programs */
.card-videos {
  border-color: rgba(239, 68, 68, 0.4) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15) !important;
}
.card-videos:hover {
  border-color: #ef4444 !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.45) !important;
  background: rgba(239, 68, 68, 0.12) !important;
}

.card-programs {
  border-color: rgba(234, 179, 8, 0.4) !important;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.15) !important;
}
.card-programs:hover {
  border-color: #eab308 !important;
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.45) !important;
  background: rgba(234, 179, 8, 0.12) !important;
}

/* Mindfulness & Motivation */
.card-motivation {
  border-color: rgba(250, 204, 21, 0.4) !important;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.15) !important;
}
.card-motivation:hover {
  border-color: #facc15 !important;
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.45) !important;
  background: rgba(250, 204, 21, 0.12) !important;
}

.card-meditation {
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15) !important;
}
.card-meditation:hover {
  border-color: #10b981 !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45) !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

/* Class Notes Rainbow spectrum */
.class-btn[href*="class6"] {
  border-color: rgba(255, 117, 140, 0.4) !important;
  box-shadow: 0 0 12px rgba(255, 117, 140, 0.15) !important;
}
.class-btn[href*="class6"]:hover {
  border-color: #ff758c !important;
  box-shadow: 0 0 25px rgba(255, 117, 140, 0.45) !important;
  background: rgba(255, 117, 140, 0.12) !important;
}

.class-btn[href*="class7"] {
  border-color: rgba(112, 161, 255, 0.4) !important;
  box-shadow: 0 0 12px rgba(112, 161, 255, 0.15) !important;
}
.class-btn[href*="class7"]:hover {
  border-color: #70a1ff !important;
  box-shadow: 0 0 25px rgba(112, 161, 255, 0.45) !important;
  background: rgba(112, 161, 255, 0.12) !important;
}

.class-btn[href*="class8"] {
  border-color: rgba(0, 242, 254, 0.4) !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.15) !important;
}
.class-btn[href*="class8"]:hover {
  border-color: #00f2fe !important;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.45) !important;
  background: rgba(0, 242, 254, 0.12) !important;
}

.class-btn[href*="class9"] {
  border-color: rgba(255, 159, 67, 0.4) !important;
  box-shadow: 0 0 12px rgba(255, 159, 67, 0.15) !important;
}
.class-btn[href*="class9"]:hover {
  border-color: #ff9f43 !important;
  box-shadow: 0 0 25px rgba(255, 159, 67, 0.45) !important;
  background: rgba(255, 159, 67, 0.12) !important;
}

.class-btn[href*="class10"] {
  border-color: rgba(255, 220, 52, 0.4) !important;
  box-shadow: 0 0 12px rgba(255, 220, 52, 0.15) !important;
}
.class-btn[href*="class10"]:hover {
  border-color: #ffdc34 !important;
  box-shadow: 0 0 25px rgba(255, 220, 52, 0.45) !important;
  background: rgba(255, 220, 52, 0.12) !important;
}

.class-btn[href*="class11"] {
  border-color: rgba(127, 83, 172, 0.4) !important;
  box-shadow: 0 0 12px rgba(127, 83, 172, 0.15) !important;
}
.class-btn[href*="class11"]:hover {
  border-color: #7f53ac !important;
  box-shadow: 0 0 25px rgba(127, 83, 172, 0.45) !important;
  background: rgba(127, 83, 172, 0.12) !important;
}

.class-btn[href*="class12"] {
  border-color: rgba(248, 87, 166, 0.4) !important;
  box-shadow: 0 0 12px rgba(248, 87, 166, 0.15) !important;
}
.class-btn[href*="class12"]:hover {
  border-color: #f857a6 !important;
  box-shadow: 0 0 25px rgba(248, 87, 166, 0.45) !important;
  background: rgba(248, 87, 166, 0.12) !important;
}

@media (max-width: 480px) {
  header {
    padding-top: 2.75rem;
  }
}

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

.registration-page {
  max-width: 760px;
}

.registration-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.registration-card h2 {
  color: #1e3a8a;
  text-align: center;
  font-size: 1.8rem;
}

.registration-card p {
  text-align: center;
  color: #475569;
}

.student-form {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  color: #0f172a;
  font-weight: 700;
}

.form-row input,
.form-row select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.form-row input:focus,
.form-row select:focus {
  outline: 3px solid rgba(59, 130, 246, 0.18);
  border-color: #2563eb;
}

.submit-registration-btn {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: #16a34a;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.22);
}

.submit-registration-btn:hover {
  background: #15803d;
}

.submit-registration-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.registration-status {
  min-height: 24px;
  color: #1e3a8a;
  font-weight: 700;
  text-align: center;
}

.registration-status-loading {
  color: #1e3a8a;
}

.registration-status-success {
  color: #166534;
}

.registration-status-error {
  color: #b91c1c;
}

.registration-note {
  padding: 0.8rem 1rem;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.95rem;
  text-align: left !important;
}

@media (max-width: 768px) {
  .class-buttons {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }

  .class-btn {
    font-size: 1rem;
    height: 92px;
    padding: 0.85rem 1rem;
  }

  .class-btn-label {
    max-width: 11ch;
    font-size: 1rem;
  }

  .holiday-btn .class-btn-label {
    max-width: 12ch;
    font-size: 1rem;
  }

  .spectrum-btn span {
    font-size: 0.96rem;
  }

  .spectrum-btn--hindi::after {
    font-size: 0.88rem;
    max-width: 14ch;
  }
}

/* Error Modal Styles */
.error-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.error-modal-content {
  background: linear-gradient(135deg, #ffffff, #e6e9f0);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

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

.error-message {
  color: #333333;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.close-button {
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  border: 3px solid #1e293b;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 5px 0 #1e293b;
  transition: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.close-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
}

.close-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #1e293b;
}

.close-button:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 #1e293b;
}

@media (max-width: 768px) {
  .error-modal-content {
    padding: 1.5rem;
    width: 85%;
  }

  .error-message {
    font-size: 1rem;
  }

  .close-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  .chapter-btn {
    display: block;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6dd5fa, #1e3c72);
    color: white;
    text-align: center;
    text-decoration: none;
  }
}

/* ==========================================================================
   🌌 Animated Space Background Styles (Real Universe Elements)
   ========================================================================== */
.universe-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

/* Twinkling Star Layers */
.stars-layer-1, .stars-layer-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: repeat;
}

.stars-layer-1 {
  background-image: 
    radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 150px 70px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 300px 250px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 450px 120px, #cbd5e1, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 600px 350px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 750px 220px, #e2e8f0, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 900px 180px, #ffffff, rgba(0,0,0,0));
  background-size: 600px 600px;
  animation: starTwinkle 8s linear infinite, starZoomIn 2.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  opacity: 0.6;
}

.stars-layer-2 {
  background-image: 
    radial-gradient(1px 1px at 80px 120px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 220px 320px, #cbd5e1, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 400px 180px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 580px 420px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 700px 110px, #e2e8f0, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 850px 290px, #ffffff, rgba(0,0,0,0));
  background-size: 500px 500px;
  animation: starTwinkle 12s linear infinite reverse, starZoomIn 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  opacity: 0.45;
}

/* Globe Mesh Grid Overlay (Google Earth Startup Style) */
.globe-mesh {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: globeMeshStartup 3.5s cubic-bezier(0.16, 1, 0.3, 1) both, globeMeshRotate 180s linear infinite;
  z-index: -9;
}

.mesh-circle {
  position: absolute;
  border: 1px dashed rgba(59, 130, 246, 0.35);
  border-radius: 50%;
}
.circle-1 { width: 250px; height: 250px; }
.circle-2 { width: 500px; height: 500px; }
.circle-3 { width: 750px; height: 750px; border-style: dotted; }

.mesh-line {
  position: absolute;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.25) 50%, rgba(59, 130, 246, 0) 100%);
}
.line-h { width: 100%; height: 1px; }
.line-v { width: 1px; height: 100%; background: linear-gradient(180deg, rgba(59, 130, 246, 0) 0%, rgba(59, 130, 246, 0.25) 50%, rgba(59, 130, 246, 0) 100%); }
.line-d1 { width: 100%; height: 1px; transform: rotate(45deg); }
.line-d2 { width: 100%; height: 1px; transform: rotate(-45deg); }

/* Floating Planets (Google Earth style spherical nodes with dual-track animations) */
.planet-earth {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%),
    radial-gradient(circle at 35% 35%, #60a5fa 10%, #1d4ed8 45%, #1e3a8a 70%, #0b1329 100%);
  box-shadow: 
    inset -12px -12px 30px rgba(0, 0, 0, 0.9), 
    0 0 25px rgba(96, 165, 250, 0.35);
  animation: floatPlanetEarth 65s linear infinite;
  animation-delay: 0s;
  opacity: 0;
  z-index: -8;
}

.planet-earth::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image: 
    radial-gradient(circle at 40% 50%, #34d399 15%, transparent 35%),
    radial-gradient(circle at 70% 30%, #10b981 12%, transparent 30%),
    radial-gradient(circle at 25% 25%, #059669 8%, transparent 25%),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.4) 10%, transparent 28%),
    radial-gradient(circle at 30% 60%, rgba(255,255,255,0.35) 12%, transparent 30%);
  opacity: 0.65;
  mix-blend-mode: source-over;
}

.planet-saturn {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fef08a 0%, #eab308 30%, #ca8a04 60%, #451a03 100%);
  box-shadow: inset -10px -10px 25px rgba(0, 0, 0, 0.9), 0 0 25px rgba(234, 179, 8, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatPlanetSaturn 80s linear infinite;
  animation-delay: 15s;
  opacity: 0;
  z-index: -8;
}

.saturn-rings {
  position: absolute;
  width: 150px;
  height: 30px;
  border: 8px solid rgba(234, 179, 8, 0.45);
  border-top-color: rgba(234, 179, 8, 0.12); /* Transparency gap for realistic overlapping */
  border-radius: 50%;
  transform: rotate(-16deg);
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.12);
  pointer-events: none;
}

.planet-mercury {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #94a3b8 0%, #64748b 45%, #334155 75%, #0f172a 100%);
  box-shadow: inset -6px -6px 15px rgba(0, 0, 0, 0.95), 0 0 12px rgba(148, 163, 184, 0.15);
  animation: floatPlanetMercury 50s linear infinite;
  animation-delay: 35s;
  opacity: 0;
  z-index: -8;
}

.planet-jupiter {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 60%),
    linear-gradient(180deg, 
      #7c2d12 0%, #c2410c 15%, 
      #ea580c 25%, #f97316 40%, 
      #fdba74 55%, #f97316 70%, 
      #c2410c 85%, #7c2d12 100%);
  box-shadow: inset -15px -15px 35px rgba(0, 0, 0, 0.95), 0 0 30px rgba(249, 115, 22, 0.2);
  animation: floatPlanetJupiter 95s linear infinite;
  animation-delay: 50s;
  opacity: 0;
  z-index: -8;
}

.planet-venus {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 60%),
    radial-gradient(circle at 35% 35%, #fef08a 0%, #fde047 30%, #eab308 65%, #713f12 100%);
  box-shadow: inset -9px -9px 22px rgba(0, 0, 0, 0.95), 0 0 20px rgba(254, 224, 71, 0.2);
  animation: floatPlanetVenus 58s linear infinite;
  animation-delay: 25s;
  opacity: 0;
  z-index: -8;
}

.planet-mars {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 55%),
    radial-gradient(circle at 35% 35%, #fca5a5 0%, #ef4444 35%, #b91c1c 70%, #450a0a 100%);
  box-shadow: inset -8px -8px 18px rgba(0, 0, 0, 0.95), 0 0 15px rgba(239, 68, 68, 0.2);
  animation: floatPlanetMars 72s linear infinite;
  animation-delay: 8s;
  opacity: 0;
  z-index: -8;
}

.planet-mars::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 15px;
  width: 14px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.85;
  filter: blur(0.5px);
}

.planet-uranus {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e0f2fe 0%, #7dd3fc 40%, #0284c7 75%, #0c4a6e 100%);
  box-shadow: inset -9px -9px 20px rgba(0, 0, 0, 0.9), 0 0 18px rgba(125, 211, 252, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatPlanetUranus 88s linear infinite;
  animation-delay: 42s;
  opacity: 0;
  z-index: -8;
}

.uranus-rings {
  position: absolute;
  width: 120px;
  height: 12px;
  border: 3px solid rgba(125, 211, 252, 0.35);
  border-radius: 50%;
  transform: rotate(85deg);
  pointer-events: none;
}

.planet-neptune {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #dbeafe 0%, #3b82f6 35%, #1d4ed8 70%, #1e3a8a 100%);
  box-shadow: inset -9px -9px 20px rgba(0, 0, 0, 0.9), 0 0 18px rgba(59, 130, 246, 0.2);
  animation: floatPlanetNeptune 76s linear infinite;
  animation-delay: 62s;
  opacity: 0;
  z-index: -8;
}

.planet-neptune::after {
  content: '';
  position: absolute;
  top: 40%;
  right: 25%;
  width: 15px;
  height: 10px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.6);
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.4);
  opacity: 0.8;
}

/* Halley's Comets (Shooting Stars) */
.comet-1, .comet-2, .comet-3, .comet-4 {
  position: absolute;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 75%, #ffffff 100%);
  border-radius: 50%;
  transform: rotate(-32deg);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.6));
}

.comet-1 {
  top: 15%;
  left: -300px;
  animation: flyHalleyComet1 22s linear infinite;
  animation-delay: 4s;
}

.comet-2 {
  top: 50%;
  left: -300px;
  animation: flyHalleyComet2 32s linear infinite;
  animation-delay: 15s;
}

.comet-3 {
  top: 30%;
  left: -300px;
  animation: flyHalleyComet1 26s linear infinite;
  animation-delay: 9s;
}

.comet-4 {
  top: 65%;
  left: -300px;
  animation: flyHalleyComet2 36s linear infinite;
  animation-delay: 22s;
}

/* Keyframes for spatial transitions */
@keyframes starTwinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}

@keyframes starZoomIn {
  0% { transform: scale(0.35); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes floatPlanetEarth {
  0% {
    left: -150px;
    top: 80%;
    transform: scale(0.3) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  50% {
    left: 45%;
    top: 40%;
    transform: scale(1.1) rotate(180deg);
    opacity: 0.85;
  }
  92% {
    opacity: 0.85;
  }
  100% {
    left: 105%;
    top: 10%;
    transform: scale(0.3) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatPlanetSaturn {
  0% {
    right: -200px;
    top: 15%;
    transform: scale(0.35) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.8;
  }
  50% {
    right: 50%;
    top: 45%;
    transform: scale(1.0) rotate(-90deg);
    opacity: 0.8;
  }
  92% {
    opacity: 0.8;
  }
  100% {
    right: 105%;
    top: 85%;
    transform: scale(0.35) rotate(-180deg);
    opacity: 0;
  }
}

@keyframes floatPlanetMercury {
  0% {
    left: -100px;
    top: 5%;
    transform: scale(0.25);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  50% {
    left: 40%;
    top: 25%;
    transform: scale(0.7);
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    left: 105%;
    top: 45%;
    transform: scale(0.25);
    opacity: 0;
  }
}

@keyframes floatPlanetJupiter {
  0% {
    right: -250px;
    top: 90%;
    transform: scale(0.4) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.9;
  }
  50% {
    right: 48%;
    top: 50%;
    transform: scale(1.4) rotate(120deg);
    opacity: 0.9;
  }
  92% {
    opacity: 0.9;
  }
  100% {
    right: 105%;
    top: 10%;
    transform: scale(0.4) rotate(240deg);
    opacity: 0;
  }
}

@keyframes globeMeshStartup {
  0% {
    transform: translate(-50%, -50%) scale(0.1) rotate(-60deg);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 0.15;
  }
}

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

@keyframes flyHalleyComet1 {
  0% {
    left: -250px;
    top: 5%;
    transform: rotate(-32deg) scale(0.2);
    opacity: 0;
  }
  6% {
    opacity: 0.9;
    transform: rotate(-32deg) scale(1);
  }
  16% {
    left: 80%;
    top: 55%;
    transform: rotate(-32deg) scale(0.8);
    opacity: 0;
  }
  100% {
    left: 120%;
    top: 80%;
    transform: rotate(-32deg) scale(0);
    opacity: 0;
  }
}

@keyframes flyHalleyComet2 {
  0% {
    left: -250px;
    top: 35%;
    transform: rotate(-28deg) scale(0.3);
    opacity: 0;
  }
  5% {
    opacity: 0.85;
    transform: rotate(-28deg) scale(0.9);
  }
  14% {
    left: 75%;
    top: 75%;
    transform: rotate(-28deg) scale(0.7);
    opacity: 0;
  }
  100% {
    left: 120%;
    top: 95%;
    transform: rotate(-28deg) scale(0);
    opacity: 0;
  }
}

@keyframes contentSlideIn {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatPlanetVenus {
  0% {
    left: -150px;
    top: 40%;
    transform: scale(0.3) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  50% {
    left: 50%;
    top: 20%;
    transform: scale(0.95) rotate(90deg);
    opacity: 0.85;
  }
  90% {
    opacity: 0.85;
  }
  100% {
    left: 105%;
    top: 5%;
    transform: scale(0.3) rotate(180deg);
    opacity: 0;
  }
}

@keyframes floatPlanetMars {
  0% {
    right: -150px;
    top: 75%;
    transform: scale(0.25) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.8;
  }
  50% {
    right: 45%;
    top: 55%;
    transform: scale(0.75) rotate(-180deg);
    opacity: 0.8;
  }
  92% {
    opacity: 0.8;
  }
  100% {
    right: 105%;
    top: 35%;
    transform: scale(0.25) rotate(-360deg);
    opacity: 0;
  }
}

@keyframes floatPlanetUranus {
  0% {
    right: -180px;
    top: 25%;
    transform: scale(0.3) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.75;
  }
  50% {
    right: 48%;
    top: 52%;
    transform: scale(0.85) rotate(100deg);
    opacity: 0.75;
  }
  90% {
    opacity: 0.75;
  }
  100% {
    right: 105%;
    top: 80%;
    transform: scale(0.3) rotate(200deg);
    opacity: 0;
  }
}

@keyframes floatPlanetNeptune {
  0% {
    right: -150px;
    top: 60%;
    transform: scale(0.3);
    opacity: 0;
  }
  8% {
    opacity: 0.8;
  }
  50% {
    right: 52%;
    top: 30%;
    transform: scale(0.8);
    opacity: 0.8;
  }
  92% {
    opacity: 0.8;
  }
  100% {
    right: 105%;
    top: 5%;
    transform: scale(0.3);
    opacity: 0;
  }
}


/* Legacy network nav removed - replaced by sirganguly-nav.css */


/* ==========================================================================
   📊 Global Glassmorphic Visitor Counter Styles
   ========================================================================== */
.visitor-counter {
  transition: all 0.2s ease !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 2px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
  font-family: "Fredoka", system-ui, sans-serif !important;
  z-index: 1200 !important;
}

.visitor-counter h3 {
  color: #60a5fa !important;
  font-weight: 900 !important;
}

/* Desktop styles */
@media (min-width: 769px) {
  .visitor-counter {
    top: 8px !important;
    left: 10px !important;
    bottom: auto !important;
    padding: 5px 8px !important;
    min-width: 120px !important;
    max-width: 140px !important;
    font-size: 10.5px !important;
  }
  
  .visitor-counter h3 {
    font-size: 9.5px !important;
    margin: 0 0 1px 0 !important;
    text-shadow: 0 0 6px rgba(96, 165, 250, 0.35);
  }
  
  .visitor-count-value {
    font-size: 9.5px !important;
  }
  
  .visitor-counter:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(59, 130, 246, 0.2) !important;
  }
}

/* Mobile styles - much smaller and positioned to not overlap */
@media (max-width: 768px) {
  .visitor-counter {
    top: 5px !important;
    left: 6px !important;
    bottom: auto !important;
    padding: 3px 5px !important;
    min-width: 80px !important;
    max-width: 95px !important;
    font-size: 8px !important;
    z-index: 1200 !important;
    line-height: 1.1 !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    border-radius: 9px !important;
  }
  
  .visitor-counter h3 {
    font-size: 7.5px !important;
    margin: 0 0 1px 0 !important;
    line-height: 1 !important;
  }
  
  .visitor-count-value {
    font-size: 7.5px !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
  }
}

/* Remove any link styling from counter display */
.visitor-counter-display {
  cursor: default !important;
  pointer-events: none !important;
}

.visitor-counter-display * {
  cursor: default !important;
  pointer-events: none !important;
}

/* Very small screens */
@media (max-width: 480px) {
  .visitor-counter {
    top: 4px !important;
    left: 5px !important;
    bottom: auto !important;
    padding: 2px 4px !important;
    min-width: 72px !important;
    max-width: 86px !important;
  }
  
  .visitor-counter h3 {
    font-size: 6.5px !important;
  }
  
  .visitor-count-value {
    font-size: 6.5px !important;
  }
}

/* Very small screens override for nav title alignment */
@media (max-width: 480px) {
  .network-nav-container {
    padding-left: 135px;
  }
  .network-nav-title {
    margin-left: 0 !important;
    font-size: 0.68rem;
  }
}

@media (max-width: 380px) {
  .network-nav-container {
    padding-left: 120px;
  }
  .network-nav-title {
    display: none;
  }
}

/* ==========================================================================
   👨‍🏫 Floating Brand Profile Card Styles
   ========================================================================== */
.brand-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px !important;
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 2px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
  font-family: "Fredoka", system-ui, sans-serif !important;
  height: 100%;
  box-sizing: border-box;
}

.brand-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
  background: #ffffff;
}

.brand-name {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .brand-profile {
    padding: 3px 6px !important;
    gap: 6px;
    border-radius: 9px !important;
  }
  .brand-avatar {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
  }
  .brand-name {
    font-size: 9.5px;
  }
}

@media (max-width: 480px) {
  .brand-profile {
    padding: 2px 4px !important;
    gap: 4px;
  }
  .brand-avatar {
    width: 16px;
    height: 16px;
    border: 0.8px solid rgba(255, 255, 255, 0.35);
  }
  .brand-name {
    font-size: 8px;
  }
}
/* ==========================================================================
   Brand-Visitor Widget - Responsive Position Overrides
   ========================================================================== */

@media (min-width: 769px) {
  .brand-visitor-widget {
    top: 8px !important;
    left: 10px !important;
    gap: 8px !important;
  }
}

@media (max-width: 768px) {
  .brand-visitor-widget {
    top: 5px !important;
    left: 6px !important;
    gap: 5px !important;
    max-width: 155px !important;
  }
}

@media (max-width: 480px) {
  .brand-visitor-widget {
    top: 4px !important;
    left: 5px !important;
    gap: 4px !important;
    max-width: 130px !important;
  }
}

@media (max-width: 380px) {
  .brand-visitor-widget {
    top: 3px !important;
    left: 4px !important;
    gap: 3px !important;
    max-width: 115px !important;
  }
  .brand-name {
    display: none !important;
  }
}

/* ==========================================================================
   Comprehensive Mobile Layout Fixes
   ========================================================================== */

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .class-btn {
    height: auto;
    min-height: 72px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
  .dashboard-category {
    padding: 1.5rem 0.25rem;
  }
  .category-header {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
  }
  header h1 {
    font-size: 1.4rem !important;
  }
  .header-subtitle {
    font-size: 0.82rem !important;
  }
  .header-actions-container {
    max-width: 100% !important;
    padding: 0 0.5rem !important;
  }
  .whatsapp-btn, .student-register-btn, .install-pwa-btn, .install-pwa-link button {
    font-size: 1rem !important;
    min-height: 48px !important;
    padding: 0.7rem 1rem !important;
  }
  footer {
    font-size: 0.82rem;
    padding: 1rem 0.75rem;
  }
}

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

/* ==========================================================================
   🌌 Sir Ganguly Ecosystem Quick Links Grid inside Hero Banner
   ========================================================================== */
.ecosystem-grid-container {
  max-width: 900px;
  margin: 2rem auto 1.5rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.42) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 2px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  animation: contentSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
  box-sizing: border-box;
}

.ecosystem-grid-title {
  font-family: "Fredoka", system-ui, sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #93c5fd !important;
  text-shadow: 0 0 8px rgba(147, 197, 253, 0.3) !important;
  margin-top: 0 !important;
  margin-bottom: 1.2rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-align: center !important;
}

.ecosystem-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.85rem !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Buttons */
.sg-hero-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.55rem !important;
  padding: 0.75rem 1.1rem !important;
  border-radius: 16px !important;
  font-family: "Fredoka", system-ui, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border: 2px solid rgba(255, 255, 255, 0.18) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  transform: translateY(0) scale(1) !important;
  will-change: transform;
  cursor: pointer !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box;
}

.sg-hero-btn::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0) 55%
  ) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.sg-hero-btn:hover {
  transform: translateY(-4px) scale(1.03) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.sg-hero-btn:active {
  transform: translateY(2px) scale(0.97) !important;
  transition: all 0.1s ease !important;
}

/* Gradients */
.sg-hero-btn.sg-btn-home {
  background: linear-gradient(135deg, #3b82f6, #06b6d4) !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4) !important;
}
.sg-hero-btn.sg-btn-home:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.55), 0 0 12px rgba(6, 182, 212, 0.4) !important;
}

.sg-hero-btn.sg-btn-ai {
  background: linear-gradient(135deg, #a855f7, #ec4899) !important;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4) !important;
}
.sg-hero-btn.sg-btn-ai:hover {
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.55), 0 0 12px rgba(236, 72, 153, 0.4) !important;
}

.sg-hero-btn.sg-btn-questions {
  background: linear-gradient(135deg, #f97316, #ef4444) !important;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4) !important;
}
.sg-hero-btn.sg-btn-questions:hover {
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.55), 0 0 12px rgba(239, 68, 68, 0.4) !important;
}

.sg-hero-btn.sg-btn-books {
  background: linear-gradient(135deg, #22c55e, #10b981) !important;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4) !important;
}
.sg-hero-btn.sg-btn-books:hover {
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.55), 0 0 12px rgba(16, 185, 129, 0.4) !important;
}

.sg-hero-btn.sg-btn-career {
  background: linear-gradient(135deg, #6366f1, #3b82f6) !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4) !important;
}
.sg-hero-btn.sg-btn-career:hover {
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.55), 0 0 12px rgba(59, 130, 246, 0.4) !important;
}

.sg-hero-btn.sg-btn-mentor {
  background: linear-gradient(135deg, #eab308, #f97316) !important;
  box-shadow: 0 4px 16px rgba(234, 179, 8, 0.4) !important;
}
.sg-hero-btn.sg-btn-mentor:hover {
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.55), 0 0 12px rgba(249, 115, 22, 0.4) !important;
}

.sg-btn-icon {
  font-size: 1.05rem !important;
  line-height: 1 !important;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.sg-hero-btn:hover .sg-btn-icon {
  transform: scale(1.2) rotate(-5deg) !important;
}

/* Responsive Grid Breakpoints */
@media (max-width: 900px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .ecosystem-grid-container {
    max-width: 600px !important;
    padding: 1rem !important;
    margin: 1.75rem auto 1.25rem !important;
  }
}

@media (max-width: 500px) {
  .ecosystem-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.4rem !important;
  }
  .ecosystem-grid-container {
    max-width: 100% !important;
    margin: 1.5rem 0.15rem 0.85rem !important;
    padding: 0.65rem 0.4rem !important;
    border-radius: 20px !important;
  }
  .sg-hero-btn {
    flex-direction: column !important;
    padding: 0.55rem 0.25rem !important;
    font-size: 0.68rem !important;
    border-radius: 12px !important;
    width: 100% !important;
    gap: 0.25rem !important;
    min-height: 64px !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .sg-btn-icon {
    font-size: 1.15rem !important;
  }
  .ecosystem-grid-title {
    font-size: 0.95rem !important;
    margin-bottom: 0.65rem !important;
  }
}
