* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
  background: #ebed9f;
  background: linear-gradient(
    125deg,
    rgba(235, 237, 159, 1) 0%,
    rgba(227, 79, 114, 1) 100%
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

body::-webkit-scrollbar {
  display: none;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  background: #ff7979;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.navbar a:hover {
  color: #ffe0d7;
}

.navbar img {
  width: 25px;
  margin: 0 2rem;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  min-width: 0;
  padding: 2rem 3rem;
}

.hero-text h1 {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 4rem;
}

.hero-text p {
  font-size: large;
  font-weight: 400;
  margin-bottom: 4rem;
}

.cta-btn {
  background: #ff3e3e;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
}

.cta-btn:hover {
  background: #e64a19;
}

.hero-image {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
}

.hero-image img {
  height: 80vh;
  width: 100%;
}

/* Page 2 Grid Section */
.grid-section {
  display: flex;
  padding: 3rem 2rem;
  gap: 5rem;
  align-items: center;
  justify-content: space-between;
}

.grid-text {
  flex: 1;
  flex-shrink: none;
  order: 2;
  border: 1px solid #555;
  padding: 2rem;
  border-radius: 1rem;
  background-color: hsl(14, 100%, 80%);
}

.grid-text h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.grid-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #555;
}

.grid-text p {
  margin-bottom: 1.5rem;
}

.grid-images {
  order: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "img1 img3"
    "img2 img3";
  gap: 1rem;
}

.grid-images .box {
  border-radius: 10px;
  overflow: hidden;
  min-height: 300px;
}

.img1 {
  grid-area: img1;
  background: url("assets/pexels-eva-bronzini-6141651.jpg") no-repeat
    center/cover;
}
.img2 {
  grid-area: img2;
  background: url("assets/pexels-mister-mister-3434523.jpg") no-repeat
    center/cover;
}
.img3 {
  grid-area: img3;
  background: url("assets/pexels-rachel-claire-6752433.jpg") no-repeat
    center/cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .navbar ul {
    font-size: small;
    gap: 1rem;
  }

  .navbar img {
    display: none;
  }

  /* Hero: stack text and image vertically */
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    padding: 1.5rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-image img {
    height: auto;
    max-height: 300px;
    width: 100%;
    object-fit: cover;
  }

  .grid-section {
    flex-direction: column;
    align-items: normal;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .grid-images {
    order: 2;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "img1"
      "img2"
      "img3";
  }

  .grid-images .box {
    min-height: 200px;
  }

  .grid-text {
    font-size: small;
    padding: 1.5rem;
  }

  .grid-text h2 {
    font-size: 1.8rem;
  }

  .grid-text h3 {
    font-size: 1.2rem;
  }
}
