/**
 * SGE Foundation - Homepage Specific Stylesheet
 * 
 * Organized for maintainability and performance.
 * Sections:
 * 1. Global Page Overrides
 * 2. Hero Section (Structure, Backgrounds & Typography)
 * 3. SGE Brand Gradient System
 * 4. Custom Buttons
 * 5. Background Visual Effects (Orbs, Stars, Grids)
 * 6. Content Section Components (Feature Cards, Global Media)
 * 7. Metrics & Analytics (Stats Section)
 * 8. Quantum Energy Timeline (Experience)
 * 9. Testimonials (Social Proof)
 * 10. Call to Action (Conversion)
 * 11. Interactive Components (Globe, Launch Badge, Scroll Down)
 * 12. Utility & Animation Keyframes
 */

/* ==========================================================================
   1. Global Page Overrides
   ========================================================================== */

main {
  padding: 0 !important;
}

section {
  overflow: hidden;
  position: relative;
}

.bg-body-tertiary {
  padding-bottom: 6rem !important;
}

/* Page Header (Breadcrumb Section) */
.page-header {
  background: linear-gradient(135deg, #03060a 0%, #0f172a 100%);
  padding-top: clamp(100px, 10vw, 160px);
  padding-bottom: clamp(60px, 8vw, 100px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 200, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Force horizontal overflow safety for utility containers */
.bg-body-tertiary {
  overflow: hidden;
  padding-bottom: 5rem !important; /* Increased for stability */
}

/* Home Index Dropdown Highlighting */
.dropdown-item.home-index-item.active {
  background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
  color: var(--bs-primary) !important;
  font-weight: 700;
}

.dropdown-item.home-index-item.active i {
  color: var(--bs-primary) !important;
}

/* ==========================================================================
   2. Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff; 
  padding-top: min(11.25rem, 25%);
  padding-bottom: min(8.75rem, 25%);
  padding-left: 0;
  padding-right: 0;
  /* Performance Patch: Hardware accelerated clip-path for smooth scroll reveals */
  clip-path: polygon(0 0, 100% 0, 100% var(--hero-clip-y, 90%), 0 100%);
  will-change: clip-path;
  margin-bottom: 3rem;
}

[data-bs-theme="dark"] .hero-section {
  color: white;
}

.hero-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background:
    linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.25) 100%
    ),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=100");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Technical Grain Overlay */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0, 0, 0, 0.1) 1px, rgba(0, 0, 0, 0.1) 2px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}

[data-bs-theme="dark"] .hero-bg {
  /* background:
    linear-gradient(
      135deg,
      rgba(3, 6, 10, 0.98) 0%,
      rgba(15, 23, 42, 0.92) 100%
    ),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80"); */
  background-size: cover;
  background-position: center;
}

[data-bs-theme="dark"] .hero-bg::after {
  opacity: 0.15;
  mix-blend-mode: soft-light;
}

/* CSS Parallax Optimization: Enabled only for desktop to avoid mobile performance/repainting issues */
@media (min-width: 769px) {
  .hero-bg {
    background-attachment: scroll, fixed;
  }
  [data-bs-theme="dark"] .hero-bg {
    background-attachment: scroll, fixed;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  letter-spacing: -0.03em;
  font-weight: 900 !important;
  line-height: 1.1;
}

/* ==========================================================================
   3. SGE Brand Gradient System
   ========================================================================== */

.text-gradient-sge {
  background: linear-gradient(
    -45deg,
    #018a3a, /* Accessible Green for Light Mode */
    #02b74e,
    #007bff,
    #0056b3,
    #018a3a
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #018a3a;
  animation: sge-gradient-flow 8s ease infinite;
  display: inline-block;
  padding-bottom: 0.1em;
}

[data-bs-theme="dark"] .text-gradient-sge,
.hero-section .text-gradient-sge {
  background-image: linear-gradient(
    -45deg,
    #02b74e,
    #00c853, /* Neon Green for Dark Mode */
    #00b0ff,
    #2979ff,
    #02b74e
  );
  color: #00c853;
}

.fw-black {
    font-weight: 900 !important;
}

/* ==========================================================================
   4. Custom Buttons
   ========================================================================== */

.btn-sge-primary {
  background: linear-gradient(135deg, #02b74e 0%, #00a040 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(2, 183, 78, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-sge-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn-sge-primary:hover {
  background: linear-gradient(135deg, #02c755 0%, #00b047 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 183, 78, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-sge-primary:hover::after {
  left: 150%;
}

/* Animated Border Button (Gemini Style) */
.btn-sge-outline {
  position: relative;
  background: var(--bs-secondary-color);
  border: none !important;
  color: var(--bs-emphasis-color);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  z-index: 1;
}

.btn-sge-outline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, #02b74e 0%, #00b0ff 25%, #2979ff 50%, #00b0ff 75%, #02b74e 100%);
  transform-origin: center center;
  animation: gemini-border-spin 3s linear infinite;
  z-index: -2;
}

.btn-sge-outline::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: inherit;
  z-index: -1;
  transition: all 0.4s ease;
}

[data-bs-theme="dark"] .btn-sge-outline {
  color: white;
}

[data-bs-theme="dark"] .btn-sge-outline::after {
  background: rgba(15, 23, 42, 0.85);
}

.btn-sge-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 183, 78, 0.3);
  color: var(--bs-emphasis-color);
}

[data-bs-theme="dark"] .btn-sge-outline:hover {
  color: white;
}

.btn-sge-outline:hover::after {
  background: rgba(255, 255, 255, 0.98);
}

[data-bs-theme="dark"] .btn-sge-outline:hover::after {
  background: rgba(15, 23, 42, 0.98);
}

/* ==========================================================================
   5. Background Visual Effects
   ========================================================================== */

/* Ambient Glowing Orbs */
.orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 1;
  pointer-events: none;
}
.orb-green { background: rgba(0, 200, 83, 0.1); top: -10%; left: -10%; }
.orb-cyan { background: rgba(0, 191, 255, 0.08); bottom: -10%; right: -10%; }
.orb-purple { background: rgba(148, 0, 211, 0.06); top: 50%; left: 50%; transform: translate(-50%, -50%); }

[data-bs-theme="dark"] .orb-green { background: rgba(0, 200, 83, 0.15); }
[data-bs-theme="dark"] .orb-cyan { background: rgba(0, 191, 255, 0.12); }
[data-bs-theme="dark"] .orb-purple { background: rgba(148, 0, 211, 0.1); }

/* Stars & Shooting Stars */
.stars-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

.shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
  border-radius: 50%;
  transform: rotate(-45deg);
  opacity: 0;
  animation: shoot 6s linear infinite;
  animation-delay: var(--delay);
}

/* Theme-specific visual filters */
:root:not([data-bs-theme="dark"]) .stars-wrapper,
:root:not([data-bs-theme="dark"]) .shooting-star,
:root:not([data-bs-theme="dark"]) .halftone {
  display: none !important;
}

/* Light mode structural grid */
:root:not([data-bs-theme="dark"]) .hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
}

.halftone {
  position: absolute;
  width: 50vw;
  height: 50vh;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 14px 14px;
  z-index: 1;
  pointer-events: none;
}
.halftone-top-right {
  top: 0;
  right: 0;
  mask-image: linear-gradient(to bottom left, black 10%, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom left, black 10%, transparent 60%);
}
.halftone-bottom-left {
  bottom: 0;
  left: 0;
  mask-image: linear-gradient(to top right, black 10%, transparent 60%);
  -webkit-mask-image: linear-gradient(to top right, black 10%, transparent 60%);
}

/* ==========================================================================
   6. Content Section Components
   ========================================================================== */

/* Glassmorphic Feature Cards */
.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  overflow: hidden;
  height: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

[data-bs-theme="dark"] .feature-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  transition: transform 0.3s ease;
  aspect-ratio: 1/1;
}

.feature-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

/* Global Dropdown Item Hover Styling */
.dropdown-item {
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
}

.rounded-circle.icon-wrapper,
.rounded-circle.stat-icon,
.rounded-circle.node-core,
.milestone-icon {
    width: 64px !important;
    height: 64px !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 64px !important;
    min-height: 64px !important;
    flex-shrink: 0 !important;
}

/* Fix for icons inside small circles */
.rounded-circle i, .milestone-icon i {
    display: block;
    line-height: 1;
}

/* Process Steps */
.step-card {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .step-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--bs-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.4);
}

/* Typography Headings */
.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--bs-primary);
  border-radius: 2px;
}

/* Global Media Cards */
.media-section {
  background: var(--bs-body-bg);
  padding: 100px 0;
}

[data-bs-theme="dark"] .media-section {
  background: linear-gradient(180deg, #03060a 0%, #0f172a 100%);
}

/* Global Milestones (Media Insights page) */
.milestone-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  margin-bottom: 2rem !important;
}

.milestone-item {
  display: flex !important;
  gap: 1.5rem !important;
  padding: 1.5rem !important;
  background: var(--bs-body-tertiary) !important;
  border: 1px solid var(--bs-border-color-translucent) !important;
  border-radius: 1.25rem !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  align-items: center !important;
  text-align: left !important;
  position: relative !important;
  overflow: hidden !important;
}

.milestone-item:hover {
  background: rgba(0, 200, 83, 0.08) !important;
  border-color: rgba(0, 200, 83, 0.25) !important;
  transform: translateX(10px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.milestone-icon {
  background: rgba(0, 200, 83, 0.1) !important;
  color: #00c853 !important;
  border-radius: 12px !important;
  box-shadow: 0 0 15px rgba(0, 200, 83, 0.1) !important;
}

.milestone-content h6 {
  margin-bottom: 0.25rem !important;
  color: var(--bs-emphasis-color) !important;
  font-weight: 800 !important;
}

@media (max-width: 768px) {
  .milestone-item {
    padding: 1.25rem !important;
    gap: 1rem !important;
  }
}

.media-card {
  background: rgba(var(--bs-body-bg-rgb), 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.08);
  border-radius: 2rem;
  overflow: hidden;
  height: 100%;
  min-height: 480px; /* Synchronized Column Height */
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

[data-bs-theme="dark"] .media-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.media-card:hover {
  transform: translateY(-10px);
  border-color: var(--bs-primary);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 
              0 0 20px rgba(var(--bs-primary-rgb), 0.25);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   7. Metrics & Analytics
   ========================================================================== */

.stats-section {
  background: linear-gradient(135deg, var(--bs-body-bg) 0%, var(--bs-body-secondary) 100%);
  color: var(--bs-body-color);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

[data-bs-theme="dark"] .stats-section {
  background: linear-gradient(135deg, #03060a 0%, #0f172a 100%);
  color: white;
}

/* Legacy Stat Card */
.stat-card {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(var(--bs-emphasis-color-rgb), 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.05);
  border-radius: 1.5rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-bs-theme="light"] .stat-card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); }

.stat-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.stat-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  background: linear-gradient(45deg, rgba(var(--bs-emphasis-color-rgb), 0.03), rgba(var(--bs-emphasis-color-rgb), 0.06));
  border-radius: 1rem;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  background-image: linear-gradient(45deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-success-rgb), 0.15));
}

.stat-number {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(to bottom, var(--bs-emphasis-color), var(--bs-secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-bs-theme="dark"] .stat-number {
  background: linear-gradient(to bottom, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Premium Glassmorphic Stats Bar */
.stats-glass-blur {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

@media (min-width: 992px) {
    .stats-glass-blur {
        border-radius: 100px; /* Pill shape */
    }
}

.stats-glass-blur.resetting {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-bs-theme="light"] .stats-glass-blur {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-label {
    letter-spacing: 2px;
    font-size: 0.7rem;
    color: var(--bs-primary);
}

.stat-value {
    font-family: var(--sge-font-sans);
    font-weight: 800;
    letter-spacing: -1px;
    transform: translateZ(20px);
    display: inline-block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(13, 110, 253, 0.5), transparent);
}

/* ==========================================================================
   8. Quantum Energy Timeline
   ========================================================================== */

.quantum-timeline-wrapper {
    background: radial-gradient(circle at 50% -20%, rgba(13, 110, 253, 0.12) 0%, transparent 50%), 
                radial-gradient(circle at 50% 120%, rgba(25, 135, 84, 0.08) 0%, transparent 60%);
    padding: 60px 0;
    overflow: hidden;
}

.timeline-orbit-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.energy-path-line {
    position: absolute;
    left: 50%;
    top: 10px;
    width: 3px;
    height: calc(100% - 20px);
    background: var(--sge-line-path);
    transform: translateX(-50%);
    border-radius: 50px;
    z-index: 0;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}
 
/* Moving Scroll Indicator */
.energy-path-flow {
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    height: 350px; /* Logic Patch: Sync with JS flowHeight variable */
    background: linear-gradient(to bottom, transparent, var(--sge-success), #fff);
    transform: translateX(-50%);
    box-shadow: 0 0 25px var(--sge-success), 0 0 45px rgba(2, 183, 78, 0.4);
    border-radius: 20px;
    will-change: top, opacity;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.quantum-node {
    position: relative;
    width: 100%;
    display: flex;
    margin-bottom: 60px;
    z-index: 2;
}

.quantum-node:nth-child(even) { flex-direction: row-reverse; }

.node-content-box {
    width: 44%;
    background: rgba(0, 0, 0, 0.4); /* Subdued latent state */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0.3; /* Highly subdued */
    transform: translateY(10px) scale(0.98);
}

[data-bs-theme="light"] .node-content-box {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.node-content-box:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(13, 110, 253, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 80px rgba(13, 110, 253, 0.15);
}

.node-core {
    width: 44px;
    height: 44px;
    background: var(--bs-body-tertiary);
    border: 2px solid var(--sge-line-path);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--bs-secondary-color);
    font-size: 1.1rem;
    opacity: 0.4;
    filter: grayscale(1) blur(1px);
}

.node-pulse {
    animation: node-pulse-green 2s infinite ease-in-out;
}

@keyframes node-pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.quantum-node:hover .node-core {
    border-color: var(--bs-primary);
    box-shadow: 0 0 30px rgba(13, 110, 253, 0.8);
    transform: translateX(-50%) rotate(360deg) scale(1.1);
}

/* Energized State: Triggered via IntersectionObserver in Home JS */
.quantum-node.energized .node-core {
    color: white;
    transform: translateX(-50%) scale(1.15) rotate(720deg);
}

.quantum-node.energized.node-yellow .node-core { background: #FFC107; border-color: #FFC107; box-shadow: 0 0 30px rgba(255, 193, 7, 0.5); }
.quantum-node.energized.node-blue .node-core { background: #0D6EFD; border-color: #0D6EFD; box-shadow: 0 0 30px rgba(13, 110, 253, 0.5); }
.quantum-node.energized.node-purple .node-core { background: #6F42C1; border-color: #6F42C1; box-shadow: 0 0 30px rgba(111, 66, 193, 0.5); }
.quantum-node.energized.node-cyan .node-core { background: #0DCAF0; border-color: #0DCAF0; box-shadow: 0 0 30px rgba(13, 202, 240, 0.5); }
.quantum-node.energized.node-green .node-core { background: #198754; border-color: #198754; box-shadow: 0 0 30px rgba(25, 135, 84, 0.5); }

/* Specific Icon Colors (Mapping classes added in home_c.php) */
.node-color-yellow { --node-primary: #FFD700; --node-glow: rgba(255, 215, 0, 0.6); --node-glow-intense: rgba(255, 215, 0, 0.4); }
.node-color-blue { --node-primary: #007BFF; --node-glow: rgba(0, 123, 255, 0.6); --node-glow-intense: rgba(0, 123, 255, 0.4); }
.node-color-purple { --node-primary: #9D50BB; --node-glow: rgba(157, 80, 187, 0.6); --node-glow-intense: rgba(157, 80, 187, 0.4); }
.node-color-cyan { --node-primary: #00E5FF; --node-glow: rgba(0, 229, 255, 0.6); --node-glow-intense: rgba(0, 229, 255, 0.4); }
.node-color-green { --node-primary: #00E676; --node-glow: rgba(0, 230, 118, 0.6); --node-glow-intense: rgba(0, 230, 118, 0.4); }

.quantum-node.energized .node-core {
    background: var(--node-primary) !important;
    border-color: var(--node-primary) !important;
    box-shadow: 0 0 25px var(--node-primary), 
                0 0 50px var(--node-glow), 
                0 0 80px var(--node-glow-intense),
                inset 0 0 15px rgba(255, 255, 255, 0.8) !important;
    color: white !important; /* Vibrant white on brand colors */
    transform: translateX(-50%) scale(1.3) rotate(720deg) !important;
    opacity: 1 !important;
    filter: none !important; /* Remove grayscale and blur */
}

.quantum-node.energized .node-content-box {
    border-color: var(--node-primary) !important;
    border-width: 2px !important;
    background: linear-gradient(135deg, rgba(var(--bs-body-bg-rgb), 0.95) 0%, rgba(var(--bs-body-bg-rgb), 1) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 
                0 0 35px var(--node-glow), 
                0 0 70px var(--node-glow-intense),
                inset 0 0 0 2px var(--node-glow);
    transform: translateY(-15px) scale(1.02) !important;
    opacity: 1 !important;
}

[data-bs-theme="dark"] .quantum-node.energized .node-content-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(15, 23, 42, 0.9) 100%);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 
                0 0 40px var(--node-glow), 
                0 0 80px var(--node-glow-intense),
                inset 0 0 2px rgba(255, 255, 255, 0.2);
}

[data-bs-theme="light"] .quantum-node.energized .node-content-box {
    background: linear-gradient(135deg, white 0%, rgba(var(--bs-body-bg-rgb), 0.9) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 
                0 0 12px var(--node-glow);
}

@media (max-width: 991px) {
    .quantum-node.energized .node-core {
        transform: scale(1.15); /* No translateX override on mobile */
    }
}

.node-year-tag {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bs-primary);
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 991px) {
    .energy-path-line, .energy-path-flow, .node-core { left: 20px; transform: none; }
    .quantum-node, .quantum-node:nth-child(even) { flex-direction: row; padding-left: 55px; margin-bottom: 40px; }
    .node-content-box { width: 100%; border-radius: 16px; }
    .quantum-node:hover .node-core { transform: rotate(360deg) scale(1.15); }
}

/* ==========================================================================
   9. Testimonials (Social Proof)
   ========================================================================== */

.testimonial-card-premium {
    background: rgba(var(--bs-body-bg-rgb), 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.08);
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    height: 100%;
    min-height: 380px; /* Adjusted card height */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

[data-bs-theme="light"] .testimonial-card-premium {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.testimonial-card-premium:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 110, 253, 0.3);
}

.testimonial-quote-icon {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    opacity: 0.1;
    font-size: 4rem;
    color: var(--bs-primary);
    transform: rotate(180deg); 
}

.testimonial-quote-icon-bottom {
    position: absolute;
    bottom: 5.5rem;
    right: 1.5rem;
    opacity: 0.05;
    font-size: 8rem;
    color: var(--bs-primary);
    transform: rotate(210deg);
    z-index: 0;
    pointer-events: none;
}

/* Premium Carousel UI Sync */
#testimonialCarousel .carousel-inner {
    padding: 1rem 0;
    overflow: visible;
}

#testimonialCarousel .carousel-item {
    /* Let content define height but ensure centering */
    text-align: center;
}

/* Ensure the card inside centers itself and doesn't squash */
.testimonial-card-premium {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 480px; /* Synchronized Column Height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card-premium .card-body {
    flex: none;
}

.small-badge {
    padding: 0.35em 0.5em !important;
    font-size: 0.65rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    min-width: 20px;
}

.carousel-indicators-premium {
    gap: 12px;
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
}

.carousel-indicators-premium button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: var(--bs-primary) !important;
    opacity: 0.2 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 6px !important;
    outline: none !important;
    box-sizing: content-box !important;
}

.carousel-indicators-premium button.active {
    width: 32px !important;
    height: 12px !important;
    border-radius: 20px !important;
    opacity: 1 !important;
    background-color: var(--bs-primary) !important;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.5);
}

.testimonial-avatar-wrapper {
    display: inline-block;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-success) 100%);
}

.testimonial-avatar-wrapper img {
    border: 2px solid var(--bs-body-bg);
}

/* ==========================================================================
   10. Call to Action (Conversion)
   ========================================================================== */

.cta-wrapper {
  background: linear-gradient(135deg, #0f172a 0%, #00c853 100%);
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ==========================================================================
   11. Interactive Components
   ========================================================================== */

/* Globe Component */
.globe-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.globe-canvas {
  width: 100%;
  aspect-ratio: 1/1;
  cursor: grab;
}

.globe-canvas:active { cursor: grabbing; }

/* Launch Badge (Genesis Stats) */
.launch-badge {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #00c853 !important;
  padding: 0.6rem 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: badge-pulse-light 2s infinite ease-in-out;
}

[data-bs-theme="dark"] .launch-badge {
  background: rgba(0, 200, 83, 0.1) !important;
  border: 1px solid rgba(0, 200, 83, 0.3) !important;
  animation: badge-pulse-dark 2s infinite ease-in-out;
}

@media (max-width: 768px) {
  .launch-badge {
    font-size: 0.7rem !important;
    padding: 0.5rem 1rem !important;
    max-width: 100%;
  }
}

/* ==========================================================================
   12. Utility & Animation Keyframes
   ========================================================================== */

.hover-lift {
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out !important;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.opacity-05 { opacity: 0.05 !important; }
.line-height-relaxed { line-height: 1.7; }
.ls-1 { letter-spacing: 0.05em; }

/* Scroll Down Indicator Styling */
.scroll-down {
  position: absolute;
  bottom: 80px; /* Default desktop position */
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: color 0.3s;
}

@media (max-width: 768px) {
  .scroll-down {
    /* Anchored safely above bottom nav (56px) and back-to-top button (90px) */
    bottom: clamp(70px, 15vh, 70px); 
    font-size: 1.5rem;
  }
}

.scroll-down:hover {
  color: white;
}

/* Core Animations */
@keyframes sge-gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gemini-border-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes badge-pulse-light {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
  50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15), 0 0 10px rgba(0, 0, 0, 0.05); }
}

@keyframes badge-pulse-dark {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 200, 83, 0.1); }
  50% { transform: scale(1.05); box-shadow: 0 4px 25px rgba(0, 200, 83, 0.25), 0 0 15px rgba(0, 200, 83, 0.2); }
}

@keyframes shimmer-effect {
  0% { transform: translateX(-150%) rotate(35deg); }
  20%, 100% { transform: translateX(150%) rotate(35deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: var(--opacity); transform: scale(1.2); box-shadow: 0 0 4px rgba(255, 255, 255, 0.8); }
}

@keyframes shoot {
  0% { transform: rotate(-45deg) translateX(0); opacity: 1; }
  10%, 100% { transform: rotate(-45deg) translateX(-500px); opacity: 0; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

[data-bs-theme="light"] .node-content-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

