/* === HEADER === */
.glass-header {
  z-index: 999999999999999999999 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* iOS Safari support - extend to very top of viewport */
  top: 0 !important;
  padding-top: env(safe-area-inset-top);
  /* Ensure navbar content sits below safe area */
  min-height: calc(56px + env(safe-area-inset-top));
  padding-bottom: 0px;
}

/* iOS specific fixes */
.glass-header .container-fluid {
  padding-top: 0;
  padding-bottom: 0;
}

/* Additional iOS Safari viewport fixes */
@supports (-webkit-touch-callout: none) {
  /* Only apply to iOS devices */
  body {
    /* Prevent rubber band scrolling showing white background */
    background-attachment: fixed;
    /* Ensure proper height calculation */
    min-height: -webkit-fill-available;
  }
  
  .glass-header {
    /* Ensure header extends into safe area */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
}

/* === NAVBAR HAMBURGER ICON === */
.navbar-toggler {
  border: none !important;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  filter: invert(1) brightness(100%);
  width: 1.5em;
  height: 1.5em;
}

/* === HERO SECTION === */
.hero-section {
  min-height: 100vh; /* Full viewport height for proper mobile experience */
  min-height: -webkit-fill-available; /* iOS Safari support */
  padding-top: 4rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 0;
  background: 
    linear-gradient(
      to bottom, 
      var(--hero-linear-fade-color) var(--hero-linear-fade-stop), 
      var(--hero-linear-end-color) var(--hero-linear-end-stop)
    );
  background-size: cover;
  background-position: center top;
}

/* === AURORA EFFECT CONTAINER === */
.aurora-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}

/* Ensure hero content stays above Aurora */
.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 20%, 
    rgba(183, 108, 2, 0.533), 
    rgba(174, 0, 255, 0.11) 60%
  );
  animation: heroGradientCrossfade1 16s ease-in-out infinite;
  z-index: -1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 40% 30%, 
    rgba(150, 80, 180, 0.45), 
    rgba(120, 60, 220, 0.18) 60%
  );
  animation: heroGradientCrossfade2 16s ease-in-out infinite;
  z-index: -1;
}

@keyframes heroGradientCrossfade1 {
  0% { opacity: 1; }
  25% { opacity: 0.3; }
  50% { opacity: 0; }
  75% { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes heroGradientCrossfade2 {
  0% { opacity: 0; }
  25% { opacity: 0.7; }
  50% { opacity: 1; }
  75% { opacity: 0.3; }
  100% { opacity: 0; }
}

.hero-section h1 {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: var(--font-size-lg);
  font-weight: 400;
  max-width: 600px;
  margin-bottom: var(--hero-subheader-margin-bottom);
  color: #ccc;
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-section .gradient-text {
  background: linear-gradient(90deg, var(--brand-gradient-start), var(--brand-gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === FOOTER === */
footer {
  background: var(--featured-gradient-end);
  color: #999;
  text-align: center;
  padding: 2rem 0;
  font-size: var(--font-size-xs);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 9999;  
}

footer p {
  margin: 0;
}

/* === HERO EFFECTS === */
.hero-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-effects canvas,
.hero-effects .astrolabe-overlay {
  position: absolute;
    top: var(--astrolabe-overlay-y) !important;
  left: var(--astrolabe-overlay-x) !important;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-effects canvas#stars {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-effects .hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 100%);
}

.hero-content { 
  z-index: 10; 
}

/* === SECTION-SPECIFIC GRADIENTS === */
.services-section {
  background:
    radial-gradient(
      ellipse 150% 40% at 150% 60%,
      var(--hero-radial-color) 0%,
      var(--hero-radial-fade-color) 60%,
      #000 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,1) 0%,
      var(--hero-linear-fade-color) 10%,
      var(--hero-linear-end-color) 90%,
      rgba(0,0,0,1) 100%
    ),
    linear-gradient(
      to top,
      rgba(0,0,0,1) 0%,
      var(--hero-linear-fade-color) 10%,
      var(--hero-linear-end-color) 90%,
      rgba(0,0,0,1) 100%
    );
  background-color: #000;
  background-size: cover;
  background-position: right center;
}

.about-section {
  background:
    radial-gradient(
      ellipse 100% 40% at -40% 60%,
      var(--hero-radial-color) 0%,
      var(--hero-radial-fade-color) 60%,
      #000 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,1) 0%,
      var(--hero-linear-fade-color) 10%,
      var(--hero-linear-end-color) 90%,
      rgba(0,0,0,1) 100%
    ),
    linear-gradient(
      to top,
      rgba(0,0,0,1) 0%,
      var(--hero-linear-fade-color) 10%,
      var(--hero-linear-end-color) 90%,
      rgba(0,0,0,1) 100%
    );
  background-color: #000;
  background-size: cover;
  background-position: left center;
}

.portfolio-section {
  background:
    radial-gradient(
      ellipse 80% 50% at 60% 40%,
      var(--hero-radial-color) 0%,
      var(--hero-radial-fade-color) 60%,
      #000 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0,0,0,1) 0%,
      var(--hero-linear-fade-color) 10%,
      var(--hero-linear-end-color) 90%,
      rgba(0,0,0,1) 100%
    ),
    linear-gradient(
      to top,
      rgba(0,0,0,1) 0%,
      var(--hero-linear-fade-color) 10%,
      var(--hero-linear-end-color) 90%,
      rgba(0,0,0,1) 100%
    );
  background-color: #000;
  background-size: cover;
  background-position: center center;
}
