/* ==========================================================================
   SHERBENI ACADEMY - DESIGN SYSTEM & PREMIUM STYLES
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #081018;
  --bg-secondary: #122331;
  --accent-orange: #eb5f2e;
  --accent-orange-rgb: 235, 95, 46;
  --secondary-blue: #204557;
  --light-blue: #5a8092;
  --white: #ffffff;
  
  /* Glassmorphism */
  --glass-bg: rgba(18, 35, 49, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(32, 69, 87, 0.35);
  
  /* Lens radius */
  --lens-radius: 120px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--white);
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: 'Outfit', 'Cairo', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.rtl {
  direction: rtl;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--light-blue);
}

/* ==========================================================================
   ATMOSPHERIC BACKGROUNDS
   ========================================================================== */

.space-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0d1e2e 0%, var(--bg-primary) 70%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  will-change: transform;
}

.orb-orange {
  width: 600px;
  height: 600px;
  background-color: var(--accent-orange);
  top: -200px;
  right: -100px;
  animation: orbFloat 25s ease-in-out infinite alternate;
}

.orb-blue {
  width: 800px;
  height: 800px;
  background-color: var(--secondary-blue);
  bottom: -300px;
  left: -200px;
  animation: orbFloat 35s ease-in-out infinite alternate-reverse;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 40px) scale(1.1); }
  100% { transform: translate(-30px, -50px) scale(0.9); }
}

/* ==========================================================================
   STICKY PROGRESS HEADER
   ========================================================================== */

.progress-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background-color: rgba(8, 16, 24, 0.75);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  cursor: pointer;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--white) 50%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--accent-orange);
  margin-top: 2px;
}

.progress-wrapper {
  flex: 0 1 500px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
}

.progress-label {
  color: var(--light-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.progress-status {
  color: var(--white);
  font-weight: 600;
  transition: var(--transition-fast);
}

.progress-percentage {
  color: var(--accent-orange);
  font-weight: 700;
}

.progress-bar-outer {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.progress-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary-blue), var(--accent-orange));
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(235, 95, 46, 0.5);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-orange);
  box-shadow: 0 0 12px rgba(235, 95, 46, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   FULLSCREEN HERO & DETECTIVE LENS
   ========================================================================== */

.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/web.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

@media (max-width: 767px) {
  .hero-layer {
    background-image: url('assets/mobile.png');
  }
}

.layer-blurred {
  z-index: 1;
  filter: blur(35px);
  transform: scale(1.06);
  opacity: 0.95;
  transition: filter 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.layer-clear {
  z-index: 2;
  clip-path: circle(var(--lens-radius) at var(--mouse-x, -500px) var(--mouse-y, -500px));
  -webkit-clip-path: circle(var(--lens-radius) at var(--mouse-x, -500px) var(--mouse-y, -500px));
  will-change: clip-path, -webkit-clip-path;
}

/* UI Ring representing the detective lens */
.detective-lens-ui {
  position: absolute;
  z-index: 15;
  pointer-events: none;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  box-shadow: 0 0 25px rgba(235, 95, 46, 0.35), inset 0 0 20px rgba(235, 95, 46, 0.2);
  width: calc(var(--lens-radius) * 2);
  height: calc(var(--lens-radius) * 2);
  left: calc(var(--mouse-x, -500px) - var(--lens-radius));
  top: calc(var(--mouse-y, -500px) - var(--lens-radius));
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.05) 100%);
  mix-blend-mode: overlay;
  will-change: left, top;
}

/* Hotspots (Interactive zones inside clear layer) */
.hotspots-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.65;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hotspot:hover,
.hotspot.near-lens {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.hotspot-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-orange);
}

.hotspot-pulse::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 2px solid var(--accent-orange);
  border-radius: 50%;
  animation: hotspotRipple 2s ease-out infinite;
  opacity: 0;
}

@keyframes hotspotRipple {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Floating discovery cards */
.discovery-card-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

.discovery-card {
  position: absolute;
  width: 290px;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--glass-glow), inset 0 0 15px rgba(255, 255, 255, 0.05);
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  z-index: 21;
}



.discovery-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  visibility: visible;
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--light-blue);
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-btn {
  background: linear-gradient(135deg, var(--secondary-blue), rgba(32, 69, 87, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-btn:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 0 10px rgba(235, 95, 46, 0.2);
  transform: translateY(-1px);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  pointer-events: none;
}

.hero-text-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-heading {
  font-size: 3.5rem;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, var(--white) 30%, #a2c6d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.sub-heading {
  font-size: 1.25rem;
  color: var(--bg-primary);
  font-weight: 600;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Countdown */
.countdown-container {
  background: rgba(18, 35, 49, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  pointer-events: auto;
}

.countdown-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.countdown-grid {
  display: flex;
  gap: 24px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 65px;
}

.time-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.time-label {
  font-size: 0.65rem;
  color: var(--light-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* Instructions */
.instruction-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeInUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.instruction-text {
  font-size: 0.85rem;
  color: var(--bg-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.device-icon {
  width: 24px;
  height: 40px;
  border: 2px solid var(--bg-primary);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 1.6s ease-in-out infinite;
}

.swipe-hand {
  width: 6px;
  height: 6px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: handSwipe 2s infinite ease-in-out;
}

@keyframes wheelScroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 14px); opacity: 0; }
}

@keyframes handSwipe {
  0% { transform: translate(-200%, -50%); opacity: 0; }
  20% { transform: translate(-200%, -50%); opacity: 1; }
  80% { transform: translate(100%, -50%); opacity: 1; }
  100% { transform: translate(100%, -50%); opacity: 0; }
}

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

/* Responsive details for icons */
.mobile-only {
  display: none;
}

/* ==========================================================================
   TEACHERS SILHOUETTES
   ========================================================================== */

.teachers-section {
  position: relative;
  z-index: 25;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--glass-border);
  padding: 120px 40px;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--white) 60%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--light-blue);
  text-align: center;
  margin-bottom: 64px;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.teacher-card {
  background: linear-gradient(180deg, rgba(18, 35, 49, 0.4) 0%, rgba(8, 16, 24, 0.8) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.teacher-card:hover {
  transform: translateY(-8px);
  border-color: rgba(235, 95, 46, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(235, 95, 46, 0.05);
}

.silhouette-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(32, 69, 87, 0.25) 0%, rgba(8, 16, 24, 0.6) 80%);
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.silhouette-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  background-color: var(--secondary-blue);
  border-radius: 50%;
  filter: blur(40px);
  bottom: 60px;
  left: calc(50% - 70px);
  opacity: 0.4;
  transition: var(--transition-smooth);
}

.teacher-card:hover .silhouette-glow {
  background-color: var(--accent-orange);
  opacity: 0.5;
  filter: blur(50px);
}

/* Renders custom SVG silhouette silhouettes */
.teacher-silhouette {
  width: 220px;
  height: 280px;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  opacity: 0.75;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.6)) brightness(0.12) blur(1.5px);
  transition: var(--transition-smooth);
}

.teacher-card:hover .teacher-silhouette {
  opacity: 0.9;
  filter: drop-shadow(0 5px 20px rgba(0, 0, 0, 0.8)) brightness(0.2) blur(0px);
}

/* Vector SVG content URLs for crisp teacher shapes */
.silhouette-math {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 120"><circle cx="50" cy="35" r="18" fill="%23FFFFFF"/><path d="M50 56 c-15 0, -25 8, -25 22 l0 42 l50 0 l0 -42 c0 -14, -10 -22, -25 -22 Z" fill="%23FFFFFF"/></svg>');
}
.silhouette-physics {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 120"><circle cx="50" cy="32" r="17" fill="%23FFFFFF"/><path d="M50 52 c-18 0, -28 10, -28 24 l0 44 l56 0 l0 -44 c0 -14, -10 -24, -28 -24 Z" fill="%23FFFFFF"/></svg>');
}
.silhouette-chemistry {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 120"><circle cx="50" cy="34" r="19" fill="%23FFFFFF"/><path d="M50 56 c-14 0, -24 9, -24 23 l0 41 l48 0 l0 -41 c0 -14, -10 -23, -24 -23 Z" fill="%23FFFFFF"/></svg>');
}
.silhouette-biology {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 120"><circle cx="50" cy="33" r="18" fill="%23FFFFFF"/><path d="M50 54 c-16 0, -26 8, -26 23 l0 43 l52 0 l0 -43 c0 -15, -10 -23, -26 -23 Z" fill="%23FFFFFF"/></svg>');
}

.badge-coming {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(235, 95, 46, 0.15);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 1px;
}

.teacher-info {
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.teacher-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.teacher-academy {
  font-size: 0.75rem;
  color: var(--light-blue);
  font-weight: 600;
}

/* ==========================================================================
   GLITCH ANIMATION & LEADS MODAL
   ========================================================================== */

/* Glitch Trigger States */
.glitch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 16, 24, 0.95);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.glitch-overlay.active {
  animation: globalGlitch 0.75s ease-out forwards;
}

.glitch-bar {
  width: 100%;
  height: 25vh;
  background: repeating-linear-gradient(
    0deg,
    rgba(235, 95, 46, 0.15),
    rgba(235, 95, 46, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  transform: skewX(0deg);
}

.glitch-overlay.active .glitch-bar:nth-child(1) {
  animation: skewGlitch 0.4s infinite steps(2);
}
.glitch-overlay.active .glitch-bar:nth-child(2) {
  animation: skewGlitchInverse 0.3s infinite steps(3);
}
.glitch-overlay.active .glitch-bar:nth-child(3) {
  animation: skewGlitch 0.5s infinite steps(1);
}

@keyframes globalGlitch {
  0% { opacity: 0; filter: hue-rotate(0deg); }
  10% { opacity: 1; filter: hue-rotate(90deg) contrast(1.5); }
  20% { opacity: 0.8; transform: translate(5px, -5px); }
  35% { opacity: 1; transform: translate(-10px, 10px) scaleY(1.1); filter: hue-rotate(200deg); }
  45% { opacity: 0; }
  55% { opacity: 1; transform: translate(0, 0); }
  75% { opacity: 0.9; filter: hue-rotate(360deg) invert(0.05); }
  90% { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}

@keyframes skewGlitch {
  0% { transform: skewX(0deg) translate(0); background-color: rgba(235, 95, 46, 0.2); }
  50% { transform: skewX(10deg) translate(20px); background-color: rgba(32, 69, 87, 0.3); }
  100% { transform: skewX(0deg) translate(0); }
}

@keyframes skewGlitchInverse {
  0% { transform: skewX(0deg) translate(0); background-color: rgba(32, 69, 87, 0.2); }
  50% { transform: skewX(-15deg) translate(-25px); background-color: rgba(235, 95, 46, 0.25); }
  100% { transform: skewX(0deg) translate(0); }
}

/* Registration Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 500;
  background-color: rgba(5, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
  padding: 24px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 580px;
  background: rgba(18, 35, 49, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(235, 95, 46, 0.1), inset 0 0 30px rgba(255, 255, 255, 0.05);
  transform: scale(0.9) translateY(30px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-orange) 50%, transparent 100%);
  animation: glowMove 3s infinite linear;
}

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

.modal-card-inner {
  position: relative;
  width: 200%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-screen {
  width: 50%;
  flex-shrink: 0;
  padding: 40px;
}

/* Form screen details */
.modal-header {
  margin-bottom: 30px;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(135deg, var(--white) 50%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--light-blue);
  line-height: 1.5;
}

.registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--light-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-group input, 
.input-group select {
  background: rgba(8, 16, 24, 0.5);
  border: 1px solid var(--glass-border);
  color: var(--white);
  padding: 14px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  width: 100%;
}

.input-group input:focus, 
.input-group select:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 12px rgba(235, 95, 46, 0.25);
  background: rgba(8, 16, 24, 0.7);
}

.input-group select option {
  background-color: var(--bg-primary);
  color: var(--white);
}

.error-msg {
  font-size: 0.75rem;
  color: #ff5252;
  margin-top: 4px;
  display: none;
}

.input-group.invalid input,
.input-group.invalid select {
  border-color: #ff5252;
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.15);
}

.input-group.invalid .error-msg {
  display: block;
}

.submit-btn {
  background: var(--accent-orange);
  border: none;
  color: var(--white);
  padding: 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
  margin-top: 10px;
  box-shadow: 0 10px 25px rgba(235, 95, 46, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(235, 95, 46, 0.45);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: 0.75s;
  z-index: 1;
}

.submit-btn:hover .btn-glow {
  left: 120%;
}

/* Success Screen Details */
.screen-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
}

.success-icon-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-orange);
  box-shadow: 0 0 25px rgba(235, 95, 46, 0.4);
  animation: pulseSuccess 2s infinite ease-in-out;
}

@keyframes pulseSuccess {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.checkmark-svg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  stroke: var(--accent-orange);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 4;
  stroke-miterlimit: 10;
  stroke: var(--accent-orange);
  fill: none;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes strokeCircle {
  100% { stroke-dashoffset: 0; }
}

@keyframes strokeCheck {
  100% { stroke-dashoffset: 0; }
}

.success-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.success-subtitle {
  font-size: 0.95rem;
  color: var(--light-blue);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 30px;
}

.success-countdown-wrapper {
  margin-top: 10px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
}

.success-countdown-wrapper .countdown-grid {
  justify-content: center;
  gap: 16px;
}

.success-countdown-wrapper .time-block {
  min-width: 50px;
}

.success-countdown-wrapper .time-num {
  font-size: 1.5rem;
}

.success-countdown-wrapper .time-label {
  font-size: 0.55rem;
  margin-top: 4px;
}

.success-countdown-wrapper .countdown-title {
  margin-bottom: 8px;
  font-size: 0.65rem;
}

/* Confetti node styles */
.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  animation: confettiFall 4s linear infinite;
  will-change: transform, opacity;
}

@keyframes confettiFall {
  0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(450px) rotate(360deg); opacity: 0; }
}

/* ==========================================================================
   MOBILE EXPERIENCE & RESPONSIVENESS
   ========================================================================== */

@media (max-width: 991px) {
  html {
    font-size: 15px;
  }
  
  :root {
    --lens-radius: 95px;
  }

  .header-container {
    padding: 0 24px;
  }

  .progress-wrapper {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 38px;
    background-color: rgba(8, 16, 24, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 99;
  }

  .progress-info {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--white);
    line-height: 1;
  }

  .progress-label {
    display: none;
  }

  .progress-bar-outer {
    width: 100%;
    height: 3px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.15);
  }

  .main-heading {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .sub-heading {
    font-size: 1.1rem;
    max-width: 480px;
  }

  .countdown-container {
    padding: 16px 24px;
  }

  .countdown-grid {
    gap: 16px;
  }

  .time-block {
    min-width: 50px;
  }

  .time-num {
    font-size: 1.75rem;
  }

  .teachers-section {
    padding: 80px 24px;
  }

  .teachers-grid {
    gap: 20px;
  }

  .modal-screen {
    padding: 30px 20px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .input-row .input-group {
    margin-top: 20px;
  }
}

@media (max-width: 575px) {
  .mobile-only {
    display: block;
  }
  
  .desktop-only {
    display: none;
  }

  .brand {
    transform: scale(0.9);
  }

  .main-heading {
    font-size: 2rem;
  }

  .sub-heading {
    font-size: 0.95rem;
  }

  .countdown-container {
    width: 100%;
  }

  /* Keep discovery cards readable at bottom of viewport on mobile */
  .discovery-card {
    position: fixed;
    bottom: 20px;
    left: 20px !important;
    right: 20px !important;
    top: auto !important;
    width: auto;
    margin: 0;
    padding: 16px;
    border-radius: 12px;
    z-index: 1000;
  }
  
  .discovery-card .card-icon {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  .discovery-card .card-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  
  .discovery-card .card-desc {
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  
  .discovery-card .card-btn {
    padding: 6px 12px;
    font-size: 0.7rem;
    border-radius: 6px;
  }
}

/* Accessible Styles for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .layer-blurred {
    filter: none !important;
    transform: none !important;
  }

  .layer-clear {
    clip-path: none !important;
  }

  .detective-lens-ui {
    display: none !important;
  }

  .hotspot {
    opacity: 1 !important;
  }
}

/* ==========================================================================
   WELCOME/INTRO OVERLAY STYLING
   ========================================================================== */

.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, #0d1e2e 0%, var(--bg-primary) 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  padding: 24px;
}

.welcome-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-card {
  max-width: 480px;
  width: 100%;
  background: rgba(18, 35, 49, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--glass-glow);
  position: relative;
  overflow: hidden;
  animation: welcomeAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes welcomeAppear {
  0% { transform: scale(0.9) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.welcome-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  margin-bottom: 24px;
}

.welcome-logo-main {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(135deg, var(--white) 50%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-logo-sub {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 8px;
  color: var(--accent-orange);
  margin-top: 4px;
}

.welcome-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.welcome-desc {
  font-size: 0.9rem;
  color: var(--light-blue);
  line-height: 1.6;
  margin-bottom: 32px;
}

.welcome-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-orange), #ff7e5f);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(235, 95, 46, 0.3), 0 0 15px rgba(235, 95, 46, 0.15);
  transition: all 0.3s ease;
}

.welcome-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(235, 95, 46, 0.45), 0 0 20px rgba(235, 95, 46, 0.25);
}

.welcome-btn:active {
  transform: translateY(0);
}

.welcome-lang-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.welcome-lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-orange);
}

body.rtl .welcome-lang-btn {
  right: auto;
  left: 20px;
}

@media (max-width: 575px) {
  .welcome-card {
    padding: 30px 20px;
  }
  .welcome-logo-main {
    font-size: 1.8rem;
  }
  .welcome-title {
    font-size: 1.25rem;
  }
  .welcome-desc {
    font-size: 0.8rem;
  }
}
