@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* -------- Global Styles -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: #202b3c;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------- Navbar -------- */
.navbar {
  background-color: #001f3f;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.logo {
  font-weight: 800;
  font-size: 1.6rem;
  color: #f9c41e;
  letter-spacing: 2.5px;
  text-decoration: none;
  user-select: none;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #d4b70d;
}

.nav-menu {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  background: #001f3f;
  position: fixed;
  top: 60px;
  right: 0;
  width: 220px;
  padding: 1.5rem;
  box-shadow: -5px 2px 20px rgba(0, 0, 0, 0.25);
  border-bottom-left-radius: 12px;
  border-top-left-radius: 12px;
}

.nav-menu.show {
  display: flex;
}

.nav-menu li {
  list-style: none;
}

.nav-menu li a {
  color: #f9c41e;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 0.4rem 0.3rem;
  display: block;
  border-radius: 6px;
  transition: background-color 0.22s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background-color: #d4b70d;
  color: #001f3f;
  font-weight: 700;
}

.nav-toggle {
  position: absolute;
  top: 14px;
  right: 1rem;
  width: 34px;
  height: 34px;
  cursor: pointer;
  opacity: 0;
  z-index: 2000;
}

.nav-toggle-label {
  position: fixed;
  top: 14px;
  right: 1rem;
  font-size: 2.5rem;
  cursor: pointer;
  color: #f9c41e;
  user-select: none;
  z-index: 1900;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 2.2rem;
    box-shadow: none;
    background: transparent;
    width: auto;
    padding: 0;
    border-radius: 0;
  }
  .nav-menu li a {
    color: #f9c41e;
  }
  .nav-toggle,
  .nav-toggle-label {
    display: none;
  }
}

/* -------- Hero -------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 1.8rem;
  text-align: center;
  background: linear-gradient(135deg, #001f3f 10%, #003366 90%);
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1470&q=80');
  background-size: cover;
  background-position: center;
  filter: brightness(0.25);
  z-index: 0;
  animation: bgPulse 30s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0%, 100% { filter: brightness(0.25); }
  50% { filter: brightness(0.4); }
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape1 {
  fill: rgba(249, 196, 30, 0.22);
  animation: moveShape1 30s linear infinite;
}

.shape2 {
  fill: rgba(249, 196, 30, 0.16);
  animation: moveShape2 40s linear infinite;
}

@keyframes moveShape1 {
  0% { transform: translateX(0) translateY(0);}
  100% { transform: translateX(-60px) translateY(18px);}
}

@keyframes moveShape2 {
  0% { transform: translateX(0) translateY(0);}
  100% { transform: translateX(70px) translateY(-24px);}
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 640px;
  padding: 1rem;
}

.hero-content h1 {
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1.12;
  margin-bottom: 1.2rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.75);
}

.hero-content p {
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  line-height: 1.4;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  border-radius: 40px;
  font-size: 1.1rem;
  padding: 1rem 2.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(249,196,30,0.6);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #f9c41e;
  color: #001f3f;
}

.btn-primary:hover {
  background-color: #d5b60e;
  box-shadow: 0 8px 20px rgba(213,182,14,0.9);
}

.btn-secondary {
  background-color: transparent;
  border: 2.5px solid #f9c41e;
  color: #f9c41e;
}

.btn-secondary:hover {
  background-color: #f9c41e;
  color: #001f3f;
  box-shadow: 0 10px 26px rgba(249,196,30,0.9);
}

/* -------- Services Section -------- */
.services-section {
  max-width: 1024px;
  margin: 3rem auto 6rem;
  padding: 0 1.5rem;
  text-align: center;
}

.services-section h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2.8rem;
  color: #002046;
  letter-spacing: 0.04em;
}

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

.service-card {
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.07);
  padding: 2.8rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  cursor: pointer;
  will-change: transform;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-14px) rotateX(5deg);
  box-shadow: 0 26px 55px rgba(0,0,0,0.15);
}

.service-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1.5rem;
  stroke-width: 3;
}

.service-card h3 {
  font-weight: 700;
  font-size: 1.35rem;
  color: #012243;
  margin-bottom: 1rem;
}

.service-card p {
  font-weight: 500;
  font-size: 1.02rem;
  color: #525252;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.call-now-btn-small {
  background-color: #f9c41e;
  color: #001f3f;
  font-weight: 700;
  padding: 0.6rem 1.6rem;
  border-radius: 30px;
  font-size: 1rem;
  width: fit-content;
  box-shadow: 0 6px 14px rgba(249,196,30,0.6);
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.call-now-btn-small:hover,
.call-now-btn-small:focus {
  background-color: #d5b60e;
  box-shadow: 0 10px 20px rgba(213,182,14,0.8);
  outline: none;
}

/* -------- Testimonials Section -------- */
.trust-section {
  background-color: #001f3f;
  color: #f9c41e;
  padding: 3.5rem 1.5rem 4.5rem;
  max-width: 800px;
  margin: 0 auto 6rem;
  border-radius: 20px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.17);
  text-align: center;
}

.trust-section h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.testimonials-slider {
  max-width: 650px;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.65;
  min-height: 140px;
  margin: 0 auto;
}

.testimonial {
  display: none;
  margin-bottom: 2rem;
}

.testimonial strong {
  display: block;
  color: #f9c41e;
  font-weight: 900;
  margin-top: 1.2rem;
  font-size: 1.1rem;
}

.testimonial:first-child {
  display: block;
}

/* -------- SEO Content Section -------- */
.seo-content {
  max-width: 840px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #323232;
  text-align: left;
}

.seo-content h2 {
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1.6rem;
  color: #002046;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.seo-content h3 {
  font-weight: 700;
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #003366;
}

.seo-content ul {
  margin-left: 1.25rem;
  margin-bottom: 1.5rem;
  list-style: disc;
}

.seo-content ul li {
  margin-bottom: 0.7rem;
  font-weight: 500;
}

/* -------- Contact Section -------- */
.contact-section {
  max-width: 600px;
  margin: 0 auto 7rem;
  background-color: #fff;
  padding: 3rem 2rem 4rem;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.13);
  text-align: left;
}

.contact-section h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #001f3f;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

label {
  font-weight: 700;
  color: #002750;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

input,
textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  border: 1.8px solid #ccd1d9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline-color: #f9c41e;
  width: 100%;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: #f9c41e;
  box-shadow: 0 0 13px #f9c41eaa;
}

textarea {
  min-height: 150px;
  max-height: 400px;
}

.btn-primary {
  background-color: #f9c41e;
  color: #001f3f;
  font-weight: 800;
  padding: 1.45rem 0;
  border-radius: 50px;
  font-size: 1.35rem;
  border: none;
  cursor: pointer;
  margin-top: 0.8rem;
  box-shadow: 0 14px 40px rgba(249,196,30,0.75);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  text-align: center;
}

.btn-primary:hover {
  background-color: #d4b70d;
  box-shadow: 0 20px 50px rgba(212,183,13,0.95);
}

.btn-secondary {
  background: transparent;
  border: 2.5px solid #f9c41e;
  color: #f9c41e;
  font-weight: 700;
  padding: 1.25rem 2.8rem;
  border-radius: 50px;
  margin-top: 1.3rem;
  display: block;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 28px rgba(249,196,30,0.6);
}

.btn-secondary:hover {
  background-color: #f9c41e;
  color: #001f3f;
  box-shadow: 0 14px 42px rgba(249,196,30,0.9);
}

/* -------- Contact Info -------- */
.contact-info {
  margin-top: 2.5rem;
  font-weight: 700;
  color: #002046;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.01em;
}

.contact-info a {
  color: #004080;
  text-decoration: none;
  font-weight: 700;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* -------- Reveal Animations -------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: transform, opacity;
}

.visible {
  opacity: 1;
  transform: none;
}

/* -------- Responsive -------- */
@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    padding: 0;
    background: none;
    box-shadow: none;
    width: auto;
  }
  .nav-toggle,
  .nav-toggle-label {
    display: none;
  }
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.8rem;
  }
  .hero-content p {
    font-size: 1.4rem;
  }
  .btn-primary,
  .btn-secondary {
    font-size: 1.3rem;
    padding: 1.25rem 3.25rem;
  }
  .services-section {
    padding: 0 3rem;
  }
  .seo-content {
    padding: 0 3rem;
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 479px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-content p,
  .seo-content {
    font-size: 0.95rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 1rem;
    padding: 1rem 2rem;
  }
}
