:root {
  --color-primary: #0d2c54; /* Navy Blue */
  --color-accent: #f9b500; /* Golden Yellow */
  --color-text: #212529; /* Dark Grey */
  --color-text-light: #f8f9fa; /* Off-white */
  --color-background: #ffffff;
  --color-background-alt: #f8f9fa; /* Light grey */
  --section-padding: clamp(4rem, 8vw, 6rem) 0;
  --card-shadow: 0 8px 24px rgba(13, 44, 84, 0.1);
  --font-primary: "Poppins", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.7;
}

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #eee;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo img {
  height: 45px;
  width: auto;
  display: block;
}

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

.nav-menu a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--color-accent);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
  transform: scaleX(1);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--color-text-light);
  overflow: hidden; 
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0.8;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
}
.btn-primary:hover {
  transform: translateY(-3px);
  background-color: #ffc107;
}

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

.btn-secondary:hover {
  transform: translateY(-3px);
  background-color: #1a4a8a;
}

/* General Section Styling */
.section {
  padding: var(--section-padding);
  scroll-margin-top: 5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Clients Section */
.clients {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background-color: var(--color-background-alt);
}

.clients-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 2.5rem;
}

.logo-scroller {
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.logo-scroller-inner {
  display: flex;
  flex-wrap: nowrap;
  gap: 4rem;
  width: max-content;
  animation: scroll 90s linear infinite;
}

.logo-scroller-inner img {
  height: 75px;
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-scroller:hover .logo-scroller-inner {
  animation-play-state: paused;
}

.logo-scroller-inner img:hover {
  opacity: 1;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

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

.service-card {
  background: var(--color-background-alt);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  border-top: 4px solid var(--color-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow);
}

.service-card h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* About Section */
.about {
    background-color: var(--color-background-alt);
}
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}
.about-content p {
    margin-bottom: 2rem;
}
.about-item {
    margin-bottom: 1.5rem;
}
.about-item h3, .about-values h3 {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}
.about-values {
    background: var(--color-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}
.about-values ul {
    list-style: none;
    padding-left: 0;
}
.about-values li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 0.75rem;
}
.about-values li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

/* Team Section */
.team-subheader {
  text-align: center;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-top: 3rem;
  margin-bottom: 2rem;
}

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

.team-card {
  text-align: center;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 4px solid var(--color-background);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-name {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.team-title {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-bio {
  font-size: 0.95rem;
  color: #555;
  max-width: 250px;
  margin: 0 auto;
}

/* Contact Section */
.contact {
  background-color: var(--color-background-alt);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 44, 84, 0.1);
}

.contact-form button {
  justify-self: center;
  width: auto;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-content {
  text-align: center;
}

.footer-info {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-address, .footer-contact {
  flex: 1;
  min-width: 280px;
  padding: 0 1rem;
}

.footer-info strong {
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 5%;
    width: 90%;
    max-width: 300px;
    background: var(--color-background);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1rem;
    align-items: stretch;
    text-align: center;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-menu[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0.5rem);
  }
  .nav-menu li {
    padding: 0.5rem 0;
  }
  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }
  .footer-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-info > div {
    text-align: center;
  }

  /* Robust Hamburger Icon CSS */
  .nav-toggle {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
  }

  .nav-toggle-bar {
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-toggle-bar::before {
    top: -10px;
  }

  .nav-toggle-bar::after {
    top: 10px;
  }

  /* Animation to 'X' */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    transform: translateY(10px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    transform: translateY(-10px) rotate(-45deg);
  }
}