/* Global styles for Template 1: dark theme with neon accents */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  /* Brighten the overall background and text for a lighter feel */
  background: #f5f7fa;
  color: #05192b;
  scroll-behavior: smooth;
}

/* Header styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Use a light header with a subtle border */
  background: #ffffff;
  border-bottom: 1px solid #e5e8ee;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  /* Use a dark logo color on light backgrounds */
  color: #0a192f;
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #05192b;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #64ffda;
}

/* Hero section */
.hero {
  height: 100vh;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Lighten the overlay so that more of the image shows through */
  background: rgba(10, 25, 47, 0.4);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1rem;
}

.hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-overlay p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #a8b2d1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #64ffda;
  color: #64ffda;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background: #64ffda;
  color: #0a192f;
}

/* Section spacing */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* About, Services, Contact backgrounds */
/* Lighten the section backgrounds and add a subtle shadow */
.about, .services, .contact {
  background: #ffffff;
  margin-top: 4rem;
  border-radius: 8px;
  padding-top: 4rem;
  padding-bottom: 4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Use dark headings with an accent border */
.about h2, .services h2, .contact h2 {
  color: #0a192f;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  text-align: center;
  border-bottom: 2px solid #64ffda;
  display: inline-block;
  padding-bottom: 0.5rem;
}

/* Lighten paragraph text */
.about p {
  color: #4d4d4d;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

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

.service-card {
  background: #f7f9fc;
  padding: 2rem;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

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

.service-card h3 {
  color: #0a192f;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card p {
  color: #4d4d4d;
  line-height: 1.5;
}

/* Contact form */
.contact p {
  color: #4d4d4d;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}


.contact input {
  padding: 0.75rem;
  border: 1px solid #e5e8ee;
  border-radius: 4px;
  background: #ffffff;
  color: #05192b;
  font-size: 1rem;
}

.contact textarea {
  padding: 0.75rem;
  border: 1px solid #e5e8ee;
  border-radius: 4px;
  background: #ffffff;
  color: #05192b;
  font-size: 1rem;
  resize: vertical;
}

.contact button {
  align-self: flex-start;
}

/* Footer */
footer {
  background: #ffffff;
  color: #6c7a89;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.8rem;
  margin-top: 2rem;
  border-top: 1px solid #e5e8ee;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2.5rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
}

/* Mobile-friendly navigation and layout adjustments */
@media (max-width: 600px) {
  /* Stack header content vertically on smaller screens */
  header .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }
  /* Add spacing below the logo */
  .logo {
    margin-bottom: 0.5rem;
  }
  /* Stack navigation items vertically and stretch full width */
  nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 0.5rem;
  }
  nav li {
    width: 100%;
  }
  nav a {
    display: block;
    padding: 0.5rem 0;
  }
  /* Reduce section padding for smaller screens */
  .section {
    padding: 3rem 1rem;
  }
  /* Adjust hero height for mobile */
  .hero {
    height: 60vh;
  }
  .hero-overlay h1 {
    font-size: 2rem;
  }
  .hero-overlay p {
    font-size: 0.9rem;
  }
  /* Full-width service cards on mobile */
  .services-cards {
    grid-template-columns: 1fr;
  }
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  .about h2, .services h2, .contact h2 {
    font-size: 2rem;
  }
}