/* Reset margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: #0f1d42; /* dark theme base */
  color: #e5e7eb; /* default text color for dark theme */
  font-family: 'Jost', sans-serif;
}

/* Core hero section styling */
.hero-section {
  position: relative;
  background-image: url('../assets/bigstock.jpg'); /* background image */
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0f1d42; /* dark fallback */
  width: 100%;
  max-width: 100vw;
  min-height: 600px;
  padding: 7rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 0;
}

/* Overlay for contrast */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0; /* behind content */
}

/* Content above overlay */
.hero-section > * {
  position: relative;
  z-index: 1;
}

/* Hero headline */
.hero-section h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  max-width: 900px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0; /* fade-in controlled by JS */
}

/* Hero subtext */
.hero-section p {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0; /* fade-in controlled by JS */
}

/* Hero Team Section */
.hero-team {
  position: relative;
  background-image: url('../assets/team.jpeg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 700px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
  overflow: hidden;
  z-index: 0;
  color: #fff;
}

/* Overlay for team hero */
.hero-team::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 66, 0.65);
  z-index: 0; /* behind content */
}

/* Content above overlay */
.hero-team > div {
  position: relative;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section, .hero-team {
    min-height: 500px;
    padding: 3rem 1rem;
    background-position: top;
  }
  .hero-section h1, .hero-team h2 {
    font-size: 2rem;
  }
  .hero-section p, .hero-team p {
    font-size: 1rem;
  }
}
