/* ==========================================================================
   MIRACLE IT — HERO COMPONENT STYLESHEET
   AI & Machine Learning Course Landing Page Hero
   Modular Component CSS: components/hero/hero.css
   5 Separate Floating & Swapping Technology Cards
   ========================================================================== */

.course-hero-section {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 5.5vw, 5.5rem) 0 clamp(3rem, 5vw, 4.5rem);
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  color: #0F172A;
}

.hero-ambient-grid {
  display: none;
}

.course-hero-section .hero-ambient-orb {
  display: none;
}

.course-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  gap: clamp(1.75rem, 3.2vw, 3.25rem);
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 1.05rem;
  border-radius: 9999px;
  background: rgba(255, 122, 0, 0.08);
  border: 1px solid rgba(255, 122, 0, 0.28);
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 12px rgba(255, 122, 0, 0.1);
}

.pulsing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF7A00;
  box-shadow: 0 0 10px #FF7A00;
  animation: beaconPulse 2s infinite ease-in-out;
}

@keyframes beaconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-tag-text {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  font-weight: 700;
  color: #C2410C;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.85rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #0F172A;
  font-family: var(--font-heading, 'Sora', sans-serif);
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-title-lead {
  color: #0F172A;
}

.hero-title-highlight {
  background: linear-gradient(135deg, #FF7A00 0%, #EA580C 50%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.course-hero-subtitle {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.course-hero-desc {
  font-size: clamp(0.95rem, 1.25vw, 1.05rem);
  color: #475569;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.course-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
  align-items: center;
}

.hero-main-btn {
  position: relative;
  overflow: hidden;
  background: #FF7A00;
  color: #FFFFFF;
  border: 1px solid #FF7A00;
  box-shadow: 0 10px 25px -5px rgba(255, 122, 0, 0.4);
  font-weight: 700;
  padding: 0.95rem 1.65rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-btn:hover {
  background: #EA580C;
  border-color: #EA580C;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(255, 122, 0, 0.5);
}

.hero-secondary-btn {
  background: #F8FAFC;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  font-weight: 600;
  padding: 0.95rem 1.45rem;
  transition: all 0.25s ease;
}

.hero-secondary-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #FF7A00;
  transform: translateY(-2px);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid #E2E8F0;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-val {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}

.hero-stat-val .accent {
  color: #FF7A00;
  font-weight: 800;
}

.hero-stat-label {
  font-size: 0.76rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ==========================================================================
   RIGHT COLUMN: 5 SEPARATE FLOATING & SWAPPING TECHNOLOGY CARDS
   ========================================================================== */
.hero-floating-stage {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.stage-header-badge {
  position: absolute;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.badge-sparkle {
  color: #FF7A00;
}

.badge-sub-dot {
  color: #94A3B8;
  font-size: 0.6rem;
}

.badge-sub-label {
  color: #64748B;
  font-weight: 500;
}

.floating-cards-track {
  position: relative;
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  width: 190px;
  cursor: pointer;
  transition: all 0.65s cubic-bezier(0.2, 0.9, 0.3, 1);
  user-select: none;
}

.card-float-wrapper {
  position: relative;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 1.25rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.35s ease;
  overflow: hidden;
}

.card-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.pill-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.64rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
}

.card-logo-box {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  border-radius: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 10px;
}

.card-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.06));
}

.card-body-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.card-tech-title {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.card-tech-role {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.card-tech-frameworks {
  font-size: 0.68rem;
  color: #64748B;
  line-height: 1.35;
  margin: 0;
}

/* Card 3D Spatial Positions */
.floating-card.pos-0 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.1);
  z-index: 10;
  opacity: 1;
}

.floating-card.pos-0 .card-float-wrapper {
  border-width: 2px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 122, 0, 0.25);
}

.floating-card.pos-1 {
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 155px), calc(-50% - 75px)) scale(0.88);
  z-index: 4;
  opacity: 0.85;
}

.floating-card.pos-2 {
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 155px), calc(-50% - 75px)) scale(0.88);
  z-index: 4;
  opacity: 0.85;
}

.floating-card.pos-3 {
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 135px), calc(-50% + 88px)) scale(0.86);
  z-index: 3;
  opacity: 0.82;
}

.floating-card.pos-4 {
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% - 135px), calc(-50% + 88px)) scale(0.86);
  z-index: 3;
  opacity: 0.82;
}

.floating-card:hover {
  opacity: 1 !important;
  z-index: 20 !important;
}

/* Floating Bobbing Keyframes */
.floating-card:nth-child(1) .card-float-wrapper { animation: floatLevitate0 4.6s ease-in-out infinite alternate; }
.floating-card:nth-child(2) .card-float-wrapper { animation: floatLevitate1 5.2s ease-in-out infinite alternate 0.6s; }
.floating-card:nth-child(3) .card-float-wrapper { animation: floatLevitate2 4.8s ease-in-out infinite alternate 1.2s; }
.floating-card:nth-child(4) .card-float-wrapper { animation: floatLevitate3 5.4s ease-in-out infinite alternate 1.8s; }
.floating-card:nth-child(5) .card-float-wrapper { animation: floatLevitate4 5.0s ease-in-out infinite alternate 2.4s; }

@keyframes floatLevitate0 { 0% { transform: translateY(0px) rotate(0deg); } 100% { transform: translateY(-9px) rotate(1deg); } }
@keyframes floatLevitate1 { 0% { transform: translateY(0px) rotate(0deg); } 100% { transform: translateY(-8px) rotate(-1.2deg); } }
@keyframes floatLevitate2 { 0% { transform: translateY(0px) rotate(0deg); } 100% { transform: translateY(-10px) rotate(0.8deg); } }
@keyframes floatLevitate3 { 0% { transform: translateY(0px) rotate(0deg); } 100% { transform: translateY(-8px) rotate(1.2deg); } }
@keyframes floatLevitate4 { 0% { transform: translateY(0px) rotate(0deg); } 100% { transform: translateY(-9px) rotate(-1deg); } }

/* Theme Color Accents for AI & Machine Learning */
/* Python & NumPy */
.card-theme-numpy { color: #4D77CF; }
.card-theme-numpy .card-glow-edge { background: #4D77CF; }
.card-theme-numpy .card-tech-role { color: #2563EB; }
.card-theme-numpy .floating-card.pos-0 .card-float-wrapper,
.card-theme-numpy:hover .card-float-wrapper {
  border-color: #4D77CF;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.12), 0 0 20px rgba(77, 119, 207, 0.25);
}

/* Scikit-Learn */
.card-theme-scikit { color: #F7931E; }
.card-theme-scikit .card-glow-edge { background: #F7931E; }
.card-theme-scikit .card-tech-role { color: #D97706; }
.card-theme-scikit .floating-card.pos-0 .card-float-wrapper,
.card-theme-scikit:hover .card-float-wrapper {
  border-color: #F7931E;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.12), 0 0 20px rgba(247, 147, 30, 0.25);
}

/* PyTorch */
.card-theme-pytorch { color: #EE4C2C; }
.card-theme-pytorch .card-glow-edge { background: #EE4C2C; }
.card-theme-pytorch .card-tech-role { color: #DC2626; }
.card-theme-pytorch .floating-card.pos-0 .card-float-wrapper,
.card-theme-pytorch:hover .card-float-wrapper {
  border-color: #EE4C2C;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.12), 0 0 20px rgba(238, 76, 44, 0.25);
}

/* TensorFlow */
.card-theme-tensorflow { color: #FF6F00; }
.card-theme-tensorflow .card-glow-edge { background: #FF6F00; }
.card-theme-tensorflow .card-tech-role { color: #EA580C; }
.card-theme-tensorflow .floating-card.pos-0 .card-float-wrapper,
.card-theme-tensorflow:hover .card-float-wrapper {
  border-color: #FF6F00;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.12), 0 0 20px rgba(255, 111, 0, 0.25);
}

/* OpenCV & GenAI */
.card-theme-opencv { color: #5C3EE8; }
.card-theme-opencv .card-glow-edge { background: #5C3EE8; }
.card-theme-opencv .card-tech-role { color: #7C3AED; }
.card-theme-opencv .floating-card.pos-0 .card-float-wrapper,
.card-theme-opencv:hover .card-float-wrapper {
  border-color: #5C3EE8;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.12), 0 0 20px rgba(92, 62, 232, 0.25);
}

/* Swapper Controls */
.stage-swap-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  z-index: 5;
}

.swap-arrow-btn {
  background: transparent;
  border: none;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.swap-arrow-btn:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.swap-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.swap-dot.active {
  background: #FF7A00;
  width: 18px;
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.6);
}

@media (max-width: 991px) {
  .course-hero-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-floating-stage {
    height: 420px;
  }
  .floating-cards-track {
    height: 330px;
  }
  .floating-card {
    width: 165px;
  }
}
