/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
}

/* SECTION HEADING */
.section-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #003366;
  margin-bottom: 1.5rem;
  position: relative;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}
.section-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: gold;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.4rem;
  color: #d8e917;
}
.logo {
  height: 80px;
  margin-right: 0.75rem;
  border-radius: 50%;
  object-fit: cover;
  background: #fff; /* optional: adds a white background behind the logo */
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  position: relative;
}
.nav-links a {
  position: relative;
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  transition: color 0.3s, transform 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: gold;
  transform: translateY(-2px);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: gold;
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.close-menu {
  display: none;
}
.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #0a1733 70%, #1a2a4f 100%);
  color: #fff;
  padding: 0 1rem;
  position: relative;
  overflow: hidden;
}

/* Subtle animated circles for hero background */
.hero-bg-anim {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero > *:not(.hero-bg-anim) {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeInDown 1s ease-out forwards;
}
.gold {
  color: gold;
  font-weight: bold;
}
.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
}
.btn-primary {
  opacity: 0;
  padding: 0.75rem 1.5rem;
  background-color: #e6edef; /* richer gold */
  color: #0812cf;            /* dark navy text for contrast */
  border-radius: 0.5rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
  display: inline-block;
  text-align: center;
  animation: popIn 0.8s ease-out 1s forwards;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10); /* subtle shadow for pop */
  border: 2px solid #fff; /* white border for visibility */
}
.btn-primary:hover {
  background-color: #003366;
  color: gold;
}
.btn-primary:active {
  transform: scale(0.95);
}

/* FEATURES GRID */
.features {
  padding: 4rem 2rem;
  background: #f9f9f9;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: #fff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Present Services vertical tiles */
.vertical-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}
.service-tile {
  text-align: left;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}
.sub-sub-heading {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.service-list li {
  margin-bottom: 1.2rem;
  font-size: 1.08rem;
}
.service-desc {
  color: #444;
  font-size: 0.98rem;
  display: block;
  margin-top: 0.2rem;
  line-height: 1.5;
}

/* Certification section */
.certification {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.5s forwards;
}
.cert-content {
  max-width: 600px;
  margin: auto;
  text-align: left;
}
.certificate-img {
  max-width: 300px;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* ABOUT */
.about {
  padding: 4rem 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.3s forwards;
}
.about-content {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 2.5rem 2rem;
  text-align: left;
  animation: fadeIn 1s ease;
}
.about-title {
  font-size: 1.7rem;
  color: #003366;
  font-weight: bold;
  margin-bottom: 1.2rem;
  text-align: center;
}
.about-intro {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 1.2rem;
  line-height: 1.7;
  text-align: left;
}
.about-desc {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: left;
}
.about-section {
  margin-bottom: 1.5rem;
}
.about-subheading {
  font-size: 1.15rem;
  color: #1a2a4f;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.about-location {
  color: #2910a5;
  font-weight: bold;
}

/* LOCATION */
.location {
  padding: 4rem 2rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.4s forwards;
}
.location-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.location iframe {
  flex: 1 1 300px;
  height: 250px;
  border: 0;
  border-radius: 0.5rem;
}
.location-details {
  flex: 1 1 200px;
}

/* CONTACT */
.contact {
  padding: 4rem 2rem;
  background: #f9f9f9;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.5s forwards;
}
#contactForm {
  max-width: 500px;
  margin: auto;
  display: grid;
  gap: 1rem;
}
#contactForm input,
#contactForm textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}
#contactForm button {
  border: none;
}

/* FOOTER */
.footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.6s forwards;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 200px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    transition: right 0.3s;
  }
  .nav-links.show {
    right: 0;
  }
  .close-menu {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  .hamburger {
    display: flex;
  }
}

/* KEYFRAME ANIMATIONS */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}




.service-group {
  margin: 3rem 0; /* increased vertical gap */
}
.sub-heading {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

/* Present vertical grid remains */
.vertical-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem; /* increased gap between tiles */
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Upcoming grid spacing */
.upcoming-grid {
  gap: 3rem; /* larger gap */
}

/* Certification image enlargement */
.certificate-img {
  max-width: 300px;
  cursor: pointer;
}

/* Fullscreen overlay */
.img-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 200;
}
.img-overlay.show {
  display: flex;
}
.overlay-img {
  max-width: 90%; max-height: 90%;
  border: 5px solid #fff;
  border-radius: 0.5rem;
}
.overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}


@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.align-left {
  text-align: left !important;
}
