/* Color Variables */
:root {
  --primary: #031d3a; /* Dark navy blue */
  --primary-dark: #021429; /* Darker shade for hover */
  --primary-light: #1e3a5f; /* Lighter shade for accents */
  --secondary: #f3f4f6; /* Light gray for backgrounds */
  --text-light: #ffffff; /* White for text and links on dark backgrounds */
  --text-dark: #1f2937; /* Dark gray for text on light backgrounds */
}

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--secondary);
  color: var(--text-dark);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Navigation */
header {
  background-color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo .logo {
  height: 40px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle .menu-icon {
  width: 24px;
  height: 24px;
  stroke: var(--text-light);
}

.menu-toggle:hover .menu-icon {
  stroke: var(--primary-light);
}

.mobile-menu {
  display: none;
  background-color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  width: 100%;
}

.mobile-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--primary-light);
}

/* Hero Section (for index.html) */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  padding: 32px;
  overflow: hidden;
  background: linear-gradient(to bottom right, var(--primary), var(--primary-dark)); /* Fallback background */
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 32px;
  border-radius: 8px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  animation: fadeIn 1s ease-in-out;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-light); /* White text for hero-content paragraph */
  margin-bottom: 24px;
}

/* Sections */
.section {
  padding: 80px 16px;
}

.alternate-bg {
  background-color: var(--secondary);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 32px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

p {
  font-size: 18px;
  color: var(--text-dark);
  margin-bottom: 32px;
}

/* Services Grid (for index.html and services.html) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.service-card {
  background-color: var(--secondary);
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 16px;
}

.services-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: text-decoration 0.3s ease;
}

.services-link a:hover {
  text-decoration: underline;
}

/* CTA (for portfolio.html and thank-you.html) */
.cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto 32px;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid var(--text-dark);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
}

.contact-info p {
  font-size: 16px;
  margin: 8px 0;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: var(--primary-dark);
}

.btn {
  display: inline-block;
  background-color: var(--text-light);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

/* Footer */
footer {
  background-color: var(--primary);
  padding: 32px 16px;
  width: 100%;
}

.footer-content {
  text-align: center; /* Center footer text */
}

.footer-content p {
  margin: 8px 0;
  font-size: 16px;
  color: #ffffff;
}

.footer-content a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: var(--primary-light);
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu.hidden {
    display: none;
  }

  .mobile-menu {
    display: block;
    width: 100%;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-content {
    padding: 16px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 14px;
  }
}

@media (min-width: 769px) {
  .mobile-menu {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}