* {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #c0392b;
  color: #fff;
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

header .logo {
  height: 50px;
}

/* Navigation styles */
header nav {
  margin-left: auto;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #ffd8d5;
}

/* Hero Section */
#hero {
  margin-top: 70px;
  height: 75vh;
  background: url('images/banner.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  text-align: center;
  color: black;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-out;
  padding: 0 1rem;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  font-size: 2.5em;
  margin: 0 0 0.3em;
}

.hero-content p {
  font-size: 1.1em;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #hero {
    height: 40vh;
    background-position: center top;
    background-size: cover;
  }

  .hero-content h1 {
    font-size: 1.8em;
  }

  .hero-content p {
    font-size: 1em;
  }

  header {
    flex-direction: row;
    align-items: center;
  }

  header .logo {
    margin-bottom: 0;
  }

  header nav {
    margin-left: auto;
  }

  header nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    background: #c0392b;
    padding: 10px 0;
    width: auto;
  }

  header nav ul li {
    margin: 0;
  }
}

@media (max-width: 480px) {
  #hero {
    height: 35vh;
  }

  .hero-content h1 {
    font-size: 1.5em;
  }

  .hero-content p {
    font-size: 0.95em;
  }
}

/* Services Section */
#services {
  padding: 60px 20px;
  background-color: #f7f7f7;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
  color: #c0392b;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

.learn-more {
  display: inline-block;
  margin-top: 12px;
  color: #c0392b;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.learn-more:hover {
  color: #e74c3c;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  border-radius: 8px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
#about {
  padding: 60px 20px;
}

#about h2 {
  text-align: center;
  margin-bottom: 20px;
}

#about p {
  max-width: 800px;
  margin: 0 auto;
}

/* Contact Section */
#contact {
  padding: 60px 20px;
  background: #f1f1f1;
}

#contact h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto 20px auto;
}

.contact-info p {
  margin: 5px 0;
}

#contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#contact label {
  margin-bottom: 5px;
  font-weight: bold;
}

#contact input,
#contact textarea {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

#contact button {
  padding: 10px;
  border: none;
  background: #c0392b;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  border-radius: 4px;
}

#contact button:hover {
  background: #e74c3c;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
}
