/**
 * Alpha Delving — Hero Slider Styles
 * Rekolet-inspired full-viewport hero with massive typography,
 * floating glass card, auto-rotating 6 slides, and bottom social bar
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #e2efff 100%); /* Light theme gradient */
  overflow: hidden;
  padding-top: 84px; /* navbar offset */
}

/* Connected Rotating Square Network Canvas */
#squareNetworkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Keeps it behind text and cards */
  pointer-events: none; /* Allows clicks through to buttons and slider controls */
}

/* Subtle radial cyan glow background */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 160, 233, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 160, 233, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   SLIDE CONTAINER
   ========================================================================== */
.hero-slider {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   SLIDE INNER LAYOUT — Two columns
   ========================================================================== */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--spacing-margin);
}

/* ==========================================================================
   LEFT: Massive Display Typography
   ========================================================================== */
.hero-text {
  z-index: 2;
}

.hero-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-cyan);
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(12px);
  animation: hero-text-in 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-pretitle::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-brand-cyan);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #0b132b; /* Deep navy text for crisp contrast on light gradient */
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-text-in 0.7s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .accent {
  color: var(--color-brand-cyan);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: #475569; /* Refined slate for high contrast */
  max-width: 520px;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(16px);
  animation: hero-text-in 0.6s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(12px);
  animation: hero-text-in 0.6s 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hero-text-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   RIGHT: Floating Glass Card (Rekolet style — Light Theme Frosted Glass)
   ========================================================================== */
.hero-glass-card {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 160, 233, 0.15);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  color: #0b132b;
  position: relative;
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  animation: glass-in 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes glass-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-glass-card .glass-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-brand-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-glass-card .glass-headline {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #0b132b;
  margin-bottom: 1rem;
}

.hero-glass-card .glass-headline em {
  font-style: normal;
  color: var(--color-brand-cyan);
}

.hero-glass-card .glass-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin-bottom: 1.5rem;
}

.hero-glass-card .glass-stat {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 1rem;
}

.hero-glass-card .glass-stat-item {
  text-align: center;
}

.hero-glass-card .glass-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-brand-cyan);
}

.hero-glass-card .glass-stat-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   SLIDER CONTROLS — Arrows & Dots
   ========================================================================== */
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: var(--space-md) 0 var(--space-xl) 0;
  z-index: 5;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #0b132b;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.hero-arrow:hover {
  background: var(--color-brand-cyan);
  border-color: var(--color-brand-cyan);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 16px rgba(0, 160, 233, 0.45);
}

.hero-arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.22);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero-dot.active {
  background-color: var(--color-brand-cyan);
  box-shadow: 0 0 12px rgba(0, 160, 233, 0.5);
  transform: scale(1.25);
}

.hero-dot:hover:not(.active) {
  background-color: rgba(15, 23, 42, 0.45);
}

/* ==========================================================================
   HERO BOTTOM SOCIAL BAR (Rekolet style — Light Theme Glass Bar)
   ========================================================================== */
.hero-social-bar {
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5;
}

.hero-social-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  text-decoration: none;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
  transition: all var(--transition-base);
}

.hero-social-link:last-child {
  border-right: none;
}

.hero-social-link:hover {
  color: var(--color-brand-cyan);
  background-color: rgba(255, 255, 255, 0.85);
}

.hero-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-lg);
  }

  .hero-glass-card {
    max-width: 380px;
  }

  .hero-title {
    font-size: clamp(36px, 7vw, 52px);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-content {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
    gap: 1.5rem;
  }

  .hero-glass-card {
    max-width: 100%;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  .hero-glass-card .glass-headline {
    font-size: 20px;
    margin-bottom: 0.5rem;
  }

  .hero-glass-card .glass-desc {
    font-size: 13px;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.15;
    margin-bottom: 0.75rem;
  }

  .hero-desc {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .hero-controls {
    padding: var(--space-sm) 0 var(--space-md) 0;
    gap: 1rem;
  }

  .hero-social-bar {
    flex-wrap: wrap;
  }

  .hero-social-link {
    flex: 1 1 50%;
    padding: 0.75rem 0.5rem;
    font-size: 12.5px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  }

  .hero-social-link:nth-child(2) {
    border-right: none;
  }
}

@media (max-width: 480px) {
  .hero-arrow {
    width: 34px;
    height: 34px;
  }

  .hero-arrow svg {
    width: 14px;
    height: 14px;
  }

  .hero-dots {
    gap: 8px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .hero-social-link {
    flex: 1 1 50%;
    border-right: none;
    font-size: 12px;
  }

  .hero-glass-card .glass-stat {
    gap: 0.75rem;
  }

  .hero-glass-card .glass-stat-value {
    font-size: 19px;
  }
}
