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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Header === */
header {
  background-color: #1d3557;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
}

.logo {
  height: 50px;
  max-width: 120px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #a8dadc;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

/* === Hero Section (Index) === */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: url('images/background.jpg') center center / cover no-repeat;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  height: auto;
  min-height: calc(100vh - 140px); /* adjust based on header + footer height */
}

.hero h1:hover,
.hero .tagline:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.hero .cta-button:hover {
  transform: scale(1.05);
}

.hero h1,
.hero .tagline,
.hero .cta-button {
  transition: transform 0.3s ease;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero h1,
.hero .tagline,
.hero .cta-button {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: #e63946;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #d62828;
}

/* === Services Page === */
.services-page {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.services-hero h1 {
  font-size: 2.5rem;
  color: #1d3557;
  margin-bottom: 0.5rem;
}

.services-hero p {
  color: #555;
  font-size: 1.1rem;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #fff;
  padding: 2rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.service-card h2 {
  color: #1d3557;
  margin-bottom: 1rem;
}

.service-card p {
  color: #444;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* === About Page === */
.about-page {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: white;
}

.about-page h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  text-align: center;
}

.about-page p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* === Modal (Contact) === */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #1d3557;
}

.modal-content label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #1d3557;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #457b9d;
}

.close {
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

/* === Footer === */
footer {
  background-color: #1d3557;
  color: #fff;
  text-align: center;
  padding: 1rem 2rem;
  margin-top: 0;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #1d3557;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 1rem;
  }

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

  .hamburger {
    display: block;
  }

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

  .tagline {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .services-hero h1,
  .about-page h1 {
    font-size: 2rem;
  }

  .about-page {
    padding: 1.5rem;
  }

  .about-page p {
    font-size: 1rem;
  }
}
