/* ==========================================================================
   3D HERO SECTION STYLING
   The Students Hub Interactive WebGL Hero Canvas
   ========================================================================== */

.hero-3d-section {
  position: relative;
  min-height: 90vh;
  background: radial-gradient(circle at 75% 35%, #172554 0%, #0a1128 65%, #050b1a 100%);
  color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 4rem 0 3rem 0;
}

/* Background Atmosphere & Glow */
.hero-glow-orb-1 {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(79, 70, 229, 0.12) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

.hero-glow-orb-2 {
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.15) translate(30px, -20px); opacity: 1; }
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* Left Hero Copy */
.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #93c5fd;
  backdrop-filter: blur(8px);
  margin-bottom: 1.75rem;
  width: fit-content;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-trust-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: livePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes livePing {
  0% { transform: scale(0.9); opacity: 1; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-headline .text-gradient {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.hero-proof-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.proof-metric {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.metric-text {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Right 3D Canvas Showcase */
.hero-3d-showcase {
  position: relative;
  width: 100%;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-three-canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  z-index: 5;
  border-radius: var(--radius-xl);
}

#hero-three-canvas:active {
  cursor: grabbing;
}

/* Floating 3D HUD Badges */
.hud-card {
  position: absolute;
  z-index: 15;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  pointer-events: none;
  animation: floatHud 4s ease-in-out infinite alternate;
}

.hud-card.hud-top-left {
  top: 12px;
  left: 0;
  animation-delay: 0s;
}

.hud-card.hud-bottom-right {
  bottom: 25px;
  right: 10px;
  animation-delay: 2s;
}

@keyframes floatHud {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.hud-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hud-icon.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.hud-icon.blue {
  background: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
}

.hud-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hud-info h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.hud-info p {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* 3D Interactive Subject Selector HUD */
.subject-3d-controller {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10, 17, 40, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  max-width: 95%;
  overflow-x: auto;
}

.subject-node-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: #cbd5e1;
  background: transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.subject-node-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.subject-node-btn.active {
  background: var(--brand-blue);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.5);
}

.hint-rotate-pill {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 15;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hint-rotate-pill svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Responsive 3D Section */
@media (max-width: 1024px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-proof-bar {
    justify-content: center;
  }
  .hero-3d-showcase {
    height: 480px;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.5rem;
  }
  .hero-3d-showcase {
    height: 380px;
  }
  .hud-card {
    display: none; /* Keep clean on small mobile screens */
  }
  .subject-3d-controller {
    bottom: -15px;
  }
}
