/* Hero Section Background Styling with Light and Dark Theme Support */

/* Base hero section styling */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  transition: background 0.5s ease;
  padding: 120px 0 140px; /* Adjusted to work with the wave divider */
  min-height: 100vh; /* Ensure the hero section takes at least the full viewport height */
  box-shadow: none; /* Removed box shadow as we have the wave divider now */
}

/* Light Theme */
:root {
  /* Hero section gradient background for light theme */
  --hero-bg-light: linear-gradient(
    135deg,
    #f0f4ff 0%,
    #e6eeff 50%,
    #dde6ff 100%
  );
  --hero-bg: var(--hero-bg-light);
}

/* Dark Theme */
body.dark-mode .hero {
  --hero-bg-dark: linear-gradient(
    135deg,
    #0f1129 0%,
    #171a36 50%,
    #1e2043 100%
  );
  background: var(--hero-bg-dark);
}

/* Add subtle pattern overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234361ee' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  z-index: 0;
  background-size: 70px 70px;
}

body.dark-mode .hero::before {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234361ee' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 70px 70px;
}

/* Ensure hero content is above the background */
.hero .container {
  position: relative;
  z-index: 2;
}

/* Hero background shapes */
.hero-bg-shape {
  position: absolute;
  z-index: 1;
  opacity: 0.3;
  filter: blur(30px);
  border-radius: 50%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: -150px;
  right: -150px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary-color);
  bottom: -100px;
  left: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

/* Animation for background shapes */
@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(2deg);
  }
  50% {
    transform: translate(0, -20px) rotate(0deg);
  }
  75% {
    transform: translate(-10px, -10px) rotate(-2deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Removed the line transition effect in favor of the wave divider */

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-bg-shape {
    opacity: 0.15; /* Reduce opacity on mobile for better readability */
  }

  .shape-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
  }

  .shape-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
  }
  .hero {
    padding: 80px 0 100px; /* Increased bottom padding for the wave divider */
  }
}
