/* Improved Responsive & Modern CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  color: #222;
  background-color: #fff;
  overflow-x: hidden;
  font-size: 18px;
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #111;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
  font-size: 1rem;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s, transform 0.2s;
}

.navbar a:hover {
  color: crimson;
  transform: scale(1.05);
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px;
  background: linear-gradient(to right, #1a1a1a 40%, #222);
  color: #fff;
  flex-wrap: wrap;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
  color: crimson;
  margin-bottom: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-text p {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-img img {
  width: 100%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background-color: crimson;
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #ff3355;
  transform: scale(1.07);
}

/* ===== Sections ===== */
.section {
  padding: 80px 40px;
  text-align: center;
}

.section h2 {
  font-size: 2.2rem;
  color: crimson;
  margin-bottom: 50px;
}

/* Cards */
.cards {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  padding: 30px;
  width: 100%;
  max-width: 320px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
}

.dark {
  background-color: #111;
  color: white;
}

.dark-card {
  background-color: #222;
  color: white;
  border: 2px solid crimson;
}

/* ===== Contact ===== */
.contact {
  background-color: #f8f8f8;
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.email {
  color: crimson;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.email:hover {
  text-decoration: underline;
}

/* ===== Footer ===== */
footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 30px;
  font-size: 1rem;
}

/* ===== Media Queries ===== */

/* Larger screens (Laptops & Desktops) */
@media (min-width: 1200px) {
  body {
    font-size: 24px;
  }

  .navbar {
    padding: 40px 120px;
  }

  .navbar .logo {
    font-size: 3rem;
  }

  .navbar ul {
    gap: 70px;
  }

  .navbar a {
    font-size: 1.6rem;
  }

  .hero {
    padding: 160px 140px;
  }

  .hero-text h1 {
    font-size: 4.2rem;
  }

  .hero-text p {
    font-size: 1.6rem;
  }

  .hero-img img {
    max-width: 550px;
  }

  .btn {
    font-size: 1.5rem;
    padding: 22px 44px;
  }

  .section h2 {
    font-size: 3rem;
  }

  .card {
    max-width: 400px;
    padding: 40px;
  }

  .card h3 {
    font-size: 2rem;
  }

  .card p {
    font-size: 1.25rem;
  }
}

  .navbar {
    padding: 30px 80px;
  }

  .navbar .logo {
    font-size: 2.4rem;
  }

  .navbar ul {
    gap: 50px;
  }

  .navbar a {
    font-size: 1.3rem;
  }

  .hero {
    padding: 120px 100px;
  }

  .hero-text h1 {
    font-size: 3.6rem;
  }

  .hero-text p {
    font-size: 1.4rem;
  }

  .btn {
    font-size: 1.3rem;
    padding: 18px 36px;
  }

  .section h2 {
    font-size: 2.6rem;
  }

  .card h3 {
    font-size: 1.8rem;
  }

  .card p {
    font-size: 1.1rem;
  }

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.4rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
  }
}
