/* Hero Section with Modern Mesh Gradient & Glassmorphism */
.hero-parallax {
  position: relative;
  /* Use min-height: 100vh to ensure full screen coverage, but allow growing */
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Stack vertically */
  align-items: center;
  justify-content: center;
  max-width: 100%;
  background-color: var(--warm-cream);
  padding-bottom: 60px;
  padding-top: 100px; /* Ensure space from top */
}


/* Abstract Background Shapes & Mesh Gradient */
.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.parallax-bg::before,
.parallax-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.8; /* Increased opacity for more vibrant colors */
  animation: floatShape 20s infinite alternate ease-in-out;
  z-index: 0;
}



/* Large soft teal orb top left */
.parallax-bg::before {
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, var(--soft-teal) 0%, rgba(125, 189, 182, 0) 65%);
  top: -25%;
  left: -15%;
  animation-delay: -5s;
}

/* Large coral/peach orb bottom right */
.parallax-bg::after {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--coral-peach) 30%, rgba(240, 166, 147, 0) 70%);
  bottom: -20%;
  right: -10%;
}

/* Add a grain texture for premium feel */
.hero-parallax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
  background-image: 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");
}

/* Additional shape via child element equivalent */
.parallax-bg {
  background: 
    radial-gradient(at 80% 20%, rgba(139, 165, 176, 0.4) 0px, transparent 50%),
    radial-gradient(at 20% 80%, rgba(255, 249, 244, 0.9) 0px, transparent 50%);
}

/* Floating Abstract Shapes */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  z-index: 1;
  box-shadow: 
    inset 0 0 20px rgba(255,255,255,0.5),
    0 10px 20px rgba(0,0,0,0.05);
  animation: floatIslands 15s ease-in-out infinite alternate;
}

.shape-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  left: 10%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  border: 1px solid rgba(255,255,255,0.3);
  animation-delay: 0s;
}

.shape-2 {
  width: 80px;
  height: 80px;
  bottom: 25%;
  right: 15%;
  background: linear-gradient(135deg, rgba(125, 189, 182, 0.2), rgba(125, 189, 182, 0.05));
  border: 1px solid rgba(125, 189, 182, 0.2);
  animation-delay: -5s;
}

.shape-3 {
  width: 180px;
  height: 180px;
  top: 40%;
  right: 8%;
  background: linear-gradient(135deg, rgba(240, 166, 147, 0.15), rgba(240, 166, 147, 0.05));
  border: 1px solid rgba(240, 166, 147, 0.2);
  animation-delay: -10s;
}

@keyframes floatIslands {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes floatShape {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 40px) scale(1.1); }
  100% { transform: translate(-20px, -20px) scale(0.95); }
}

/* Floating SVG Icons */
.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.05; /* Reduced opacity as requested */
  z-index: 1; /* Ensure on top of background/overlay but below content */
  animation: floatIslands 12s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.icon-chart {
  top: 25%;
  right: 15%;
  color: var(--deep-teal);
  width: 80px;
  height: 80px;
  transform: rotate(15deg);
  animation-delay: 0s;
  opacity: 0.05;
}

.icon-shield {
  bottom: 10%;
  left: 25%;
  color: var(--sage-dark);
  width: 100px;
  height: 100px;
  opacity: 0.05;
  transform: rotate(-10deg);
  animation-delay: -4s;
}

.icon-pie {
  top: 25%;
  left: 18%;
  color: var(--rosegold);
  width: 70px;
  height: 70px;
  transform: rotate(-5deg);
  animation-delay: -8s;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(30px);
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  padding-top: 50px; /* Reduced since we have flex column breathing room */
  max-width: 1200px;
  animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-bottom: 0; /* Let flex gap handle spacing */
  flex: 0 0 auto; /* Allow content to size itself */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 4.8rem; /* Slightly reduced from 5rem for better balance */
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: var(--dark-clay);
  letter-spacing: -0.02em;
  max-width: 100%;
}

/* Highlight */
.hero-content h1 {
  background: linear-gradient(135deg, var(--deep-teal) 0%, var(--charcoal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.5rem; /* Increased for better readability */
  margin-bottom: 3rem;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.7; /* Improved line height */
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-teal);
  color: white;
  padding: 20px 52px; /* Slightly larger button */
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(74, 139, 136, 0.3);
  font-size: 1.15rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: var(--soft-teal);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(74, 139, 136, 0.4);
}



/* Responsive adjustments */

/* Laptops & Standard Desktops (14" MacBook Pro, 1080p screens) */
@media (max-width: 1536px), (max-height: 900px) {
  .hero-parallax {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: auto; 
    height: 100vh; 
  }

  .hero-content {
    padding-top: 20px;
    margin-bottom: 0;
  }

  .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
  }

  .btn-primary {
    padding: 16px 40px;
    font-size: 1.05rem;
  }
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .hero-parallax {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 40px;
    height: auto;
    display: block;
  }

  .hero-content {
    margin-bottom: 3rem;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .stats-float {
    position: relative;
    bottom: auto;
    transform: none;
    left: auto;
    margin-top: 2rem;
    width: 100%;
    padding: 0 1rem;
  }

  .stat-item {
    flex: 1 1 100%; /* Stack vertically on very small screens */
    margin-bottom: 0.5rem;
  }
}