/* --- RESPONSIVE FIX: 3D AERO GLASS HERO INTERFACE SUBSYSTEM --- */
.aero-hero-viewport-container {
  position: relative;
  width: 100%;
  min-height: 100vh; 
  height: auto !important; /* CRITICAL: Forces parent to expand indefinitely */
  display: block; 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #06000A;
  overflow-x: hidden;
}

/* Force intermediate structural wrappers to dynamically scale */
.digital-services {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto !important; /* CRITICAL: Forces parent to expand indefinitely */
  display: block; 
}

.page-header {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: auto !important; /* CRITICAL: Allows flex container to grow vertically past the screen */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important; 
  box-sizing: border-box;
  padding-top: 150px; 
  padding-bottom: 80px; /* Increased to ensure breathing room at the absolute bottom */
  background-size: cover;
  background-position: center;
}

/* WebGL canvas element dynamically pinned across changing sizes */
.hex-glass-canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* CRITICAL: Anchors to the expanded bottom edge */
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  z-index: 1;
}

/* Premium 3D Aero Glass Specular Layer */
.aero-hero-glass-surface-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* CRITICAL: Replaced height:100% to force stretching with dynamic content */
  width: 100%;
  z-index: 2;
  backdrop-filter: blur(25px) brightness(0.85);
  -webkit-backdrop-filter: blur(25px) brightness(0.85);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

/* Content Hub */
.aero-hero-foreground-content-hub {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  box-sizing: border-box;
  color: #ffffff; /* Contrast against dark glass */
}

/* --- BASE TYPOGRAPHY & ELEMENTS (DESKTOP DEFAULT) --- */

.aero-hero-reddot-logo-img {
  max-width: 250px;
  height: auto;
  margin-bottom: 15px;
}

.aero-hero-main-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 30px 0 30px 0;
  letter-spacing: 2px;
}

.aero-hero-tagline-text {
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: 0.5px;
  margin: 0;
}

/* --- MEDIA QUERIES FOR RESPONSIVE SCALING --- */

/* Mobile Optimization */
@media screen and (max-width: 480px) {
    
  .page-header {
    padding-top: 160px; 
    padding-bottom: 60px; /* Ensures the text never touches the bottom section on mobile */
  }

  .aero-hero-foreground-content-hub {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
    box-sizing: border-box;
  }

  .aero-hero-reddot-logo-img {
    max-width: 165px;
    margin-bottom: 30px;
  }

  .aero-hero-main-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .aero-hero-tagline-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* Tablet Optimization (Small) */
@media screen and (min-width: 481px) and (max-width: 767px) {

  .aero-hero-foreground-content-hub {
    width: 90%;
  }

  .aero-hero-reddot-logo-img {
    max-width: 200px;
    margin-bottom: 20px;
  }

  .aero-hero-main-title {
    font-size: 2.2rem;
  }

  .aero-hero-tagline-text {
    font-size: 0.85rem;
    line-height: 1.6;
  }
    
}

/* Tablet / Desktop Optimization (Large) */
@media screen and (min-width: 768px) and  (max-width: 1280px) {
    
  .page-header {
    padding-top: 200px; 
    padding-bottom: 40px;
  }
  
  .aero-hero-foreground-content-hub {
    width: 95%;
  }

  .aero-hero-reddot-logo-img {
    max-width: 200px;
    margin-bottom: 20px;
  }

  .aero-hero-main-title {
    font-size: 2.5rem;
  }

  .aero-hero-tagline-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

@media screen and (min-width: 1281px) and  (max-width: 1500px) {
    
  .page-header {
    padding-top: 200px; 
    padding-bottom: 40px;
  }

  .aero-hero-reddot-logo-img {
    max-width: 200px;
    margin-bottom: 20px;
  }

  .aero-hero-main-title {
    font-size: 2.5rem;
  }

  .aero-hero-tagline-text {
    font-size: 0.985rem;
    line-height: 1.6;
  }
    
}