* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Antic', sans-serif;
  background-color: #fff3f6;
  color: #111111;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #BF3853;
}

.logo {
  font-family: 'Ribeye', cursive;
  color: white;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  transition: 0.3s ease;
}

.nav-links a:hover {
  background-color: #F891A5;
  color: white;
}

/* HERO */
.hero {
  min-height: 70vh;
  background:
    linear-gradient(
      rgba(164,31,57,0.6),
      rgba(191,56,83,0.6)
    ),
    url("images/fem-in-stem-banner.jpg");

  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-text {
  color: white;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);;
}

.hero-text h2 {
  font-size: 4rem;
  color: #A41F39;
}

.hero-text p {
  font-size: 1.25rem;
  color: black;
}

.hero-btn {
  background-color: #FDB3C2;
  color: #A41F39;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  margin-top: 1rem;
  display: inline-block;
}

.hero-btn:hover {
  background-color: white;
}

/* SECTIONS */
.section {
  padding: 2.5rem 10%;
}

.section h2 {
  text-align: center;
  color: #A41F39;
  margin-bottom: 1.5rem;
}

.section p {
  margin-bottom: 1rem;
}

/* FEATURE CARDS */
.features,
.cards-container,
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  justify-content: center;
  gap: 2rem;
}

.feature-card,
.event-card,
.member-card,
.stat-card {
  background-color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover,
.event-card:hover,
.member-card:hover,
.stat-card:hover {
  transform: translateY(-10px);
}

/* STATS */
.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-card {
  min-width: 220px;
}

.stat-card h2 {
  font-size: 3rem;
  color: #BF3853;
}

/* ABOUT GALLERY */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.about-gallery img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 15px;
  transition: 0.3s ease;
}

.about-gallery img:hover {
  transform: scale(1.03);
}

/* MEMBERS */
.member-card img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 1rem;
}

/* PAGE BANNERS */
.page-banner {
  background-color: #E56D85;
  color: white;
  text-align: center;
  padding: 2.5rem 2rem;
}

.page-banner h2 {
  font-size: 2.5rem;
}

/* EVENTS CAROUSEL */
.carousel-section {
  padding: 4rem 1rem;
}

.carousel {
  position: relative;
  width: 60%;
  max-width: 500px;
  margin: auto;
}

.carousel-img {
  width: 100%;
  border-radius: 20px;
  display: none;
}

.carousel-img.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.carousel-caption {
  text-align: center;
  margin-top: 1rem;
  color: #A41F39;
  font-size: 1.5rem;
}

.carousel-description {
  text-align: center;
  max-width: 700px;
  margin: 1rem auto;
  padding: 0 1rem;
}

/* JOIN FORM */
.join-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.join-form input,
.join-form textarea {
  padding: 1rem;
  border: 2px solid #F891A5;
  border-radius: 10px;
  font-size: 1rem;
}

.join-form textarea {
  resize: vertical;
  min-height: 120px;
}

.join-form button {
  background-color: #A41F39;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.join-form button:hover {
  background-color: #BF3853;
}

.error {
  color: red;
  font-size: 0.9rem;
}

#successMessage {
  text-align: center;
  color: #A41F39;
  font-weight: bold;
}

/* FOOTER */
footer {
  background-color: #BF3853;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 1.5rem;
}

footer h3 {
  margin-bottom: 0.5rem;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px;
}

/* MOBILE */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    background-color: #BF3853;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

  .section {
    padding: 2.5rem 10%;
  }

  .carousel {
    width: 90%;
  }

  .member-card img {
    height: 250px;
  }

  .stats {
    flex-direction: column;
    align-items: center;
  }
}