/* ===========================
   GLOBAL STYLES
=========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

body {
  color: #001d31;
  line-height: 1.6;
  background: url('../images/bg.png') center/cover no-repeat fixed;
  position: relative;
}

/* translucent overlay for body */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(177, 242, 255, 0.3);
  z-index: -1;
}

h1, h2, h3 {
  color: #f3f3f3; text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
}
p { margin-bottom: 1rem; }
a { text-decoration: none; color: #63e5ff; }
a:hover { color: #8aecff; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ===========================
   HEADER & NAVIGATION
=========================== */
header {
  background-color: #001d31;
  color: #b1f2ff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 99999;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

header nav a.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: #63e5ff;
}

.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #63e5ff;
  cursor: pointer;
}

/* Main menu */
.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  position: relative;
  margin-left: 2rem;
}

.nav-menu li a {
  font-weight: 500;
  color: #b1f2ff;
}
.nav-menu li a:hover { color: #63e5ff; }

/* Dropdown */
.nav-menu li .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #001d31;
  display: none;
  flex-direction: column;
  min-width: 200px;
  border-radius: 5px;
  overflow: hidden;
  z-index: 999;
}
.nav-menu li.active .dropdown { display: flex; }
.nav-menu li .dropdown li { margin: 0; }
.nav-menu li .dropdown li a { padding: 0.8rem 1rem; display: block; }

/* ===========================
   MOBILE NAVIGATION
=========================== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-menu {
    flex-direction: column;
    position: fixed;
    top: 0;
    left: -100%;       /* start hidden off-screen */
    width: 250px;        /* automatic width */
    height: auto;       /* automatic height */
    max-height: 100vh;  /* full viewport if needed */
    background-color: #001d31;
    padding-top: 3rem;
    padding-bottom: 2rem;
    padding-left: 1.5rem; 
    overflow-y: auto;
    transition: left 0.3s ease;
    z-index: 10000;
     align-items: flex-start;
  }

  .nav-menu.show {
    left: 0;           /* slide in */
  }

  .nav-menu li { margin: 0; border-bottom: 1px solid #063159; }

  .nav-menu li .dropdown {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 29, 49, 0.8);
    position: relative;
  }

  .nav-menu li.active .dropdown { display: flex; }

  .nav-menu li .dropdown li a {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }

  body.nav-open { overflow: hidden; }
}

/* Desktop dropdown hover */
@media (min-width: 769px) {
  .nav-menu li.has-dropdown:hover > .dropdown {
    display: flex;
    flex-direction: column;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;  /* bottom third */
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: #001d31;
  padding-bottom: 5%;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 49, 83, 0.3);
  z-index: 5;
}

/* Slider images */
.hero-slider {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
.hero-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero-slider .slide.active { opacity: 1; }
.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, opacity 1s ease;
}
.hero-slider .slide.active img {
  transform: scale(1.05);
  opacity: 1;
}

/* 24/7 Support Badge */
.hero-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #ff6b00;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  z-index: 15;
  opacity: 0;
  transform: translateY(-20px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.6s ease-out;
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 1rem;
  color: #fff;
  text-align: center;
  opacity: 0;             /* hidden initially */
  transform: translateY(30px); /* start slightly lower */
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Show class: triggers staggered fade-in */
.hero-content.show { opacity: 1; transform: translateY(0); }

/* Individual elements stagger */
.hero-content .badge,
.hero-content .hero-title,
.hero-content .hero-lead,
.hero-content .hero-ctas a {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.hero-content.show .badge { transition-delay: 0.2s; opacity:1; transform:translateY(0);}
.hero-content.show .hero-title { transition-delay: 0.4s; opacity:1; transform:translateY(0);}
.hero-content.show .hero-lead { transition-delay: 0.6s; opacity:1; transform:translateY(0);}
.hero-content.show .hero-ctas a { transition-delay: 0.8s; opacity:1; transform:translateY(0); }

/* PARALLAX EFFECT */
.hero-content.parallax {
  transform: translateY(var(--parallaxY, 0px));
  transition: transform 0.2s ease-out;
}

/* HEADER MOBILE SCROLL EFFECT */
header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled {
  background-color: #001d31; /* solid dark */
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
  .hero { min-height: 60vh; padding-bottom: 10%; }
  .hero-content .hero-title { font-size: 2rem; }
  .hero-content .hero-lead { font-size: 1rem; }
  .hero-badge { top: 15px; right: 15px; font-size: 0.85rem; padding: 0.5rem 0.9rem; }
}


/* ===========================
   BUTTONS
=========================== */
.btn { display: inline-block; padding: 0.6rem 1.2rem; border-radius: 5px; border: none; cursor: pointer; font-weight: 600; transition: 0.3s; }
.btn.primary { background-color: #003153; color: #b1f2ff; }
.btn.primary:hover { background-color: #001d31; }
.btn.outline { border: 2px solid #63e5ff; color: #63e5ff; background: transparent; }
.btn.outline:hover { background-color: #63e5ff; color: #001d31; }
.btn.small { padding: 0.4rem 0.8rem; font-size: 0.9rem; }

/* ===========================
   SERVICES SECTION
=========================== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem; }
.service-card {
  background: rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); }
.service-card h3 { color: #003153; margin-bottom: 0.5rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 1rem; }

/* ===========================
   STATISTICS / COUNTERS
=========================== */
.stats-section { background-color: rgba(138, 236, 255, 0.5); padding: 3rem 1rem; text-align: center; }
.stats-section h2 { margin-bottom: 2rem; font-size: 2rem; color: #001d31; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.stat-card { background: rgba(25, 48, 80, 0.8); color: #ffffff; padding: 2rem; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.stat-card h3 { font-size: 2rem; color: #001d31; margin-bottom: 0.5rem; }
.stat-card p { font-weight: 600; }

/* ===========================
   ABOUT & PROJECTS
=========================== */
#about-intro, #mission-vision, #milestones, #projects, #certifications {
  padding: 3rem 1rem;
  position: relative;
  z-index: 1;
}
#about-intro::before, #mission-vision::before, #milestones::before, #projects::before, #certifications::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 29, 49, 0.6);
  z-index: 0;
  border-radius: 10px;
}
#about-intro h1, #mission-vision h2, #milestones h2, #projects h2, #certifications h2 {
  color: #63e5ff; margin-bottom: 1.2rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
#about-intro p, #mission-vision .card p, #mission-vision .card ul li, #milestones li, #projects .project-card p, #certifications li {
  color: #ffffff; line-height: 1.8; margin-bottom: 1rem;
}
.mission-vision-grid .card {
  background-color: rgba(0,29,49,0.7);
  border-radius: 10px; padding: 2rem;
}
.mission-vision-grid .card h3 { color: #b1f2ff; margin-bottom: 0.5rem; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 2rem; }
.project-card {
  background: rgba(0,29,49,0.7);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
}
.project-card img {
  max-width: 100%; height: auto; border-radius: 8px;
  margin-bottom: 1rem; object-fit: cover; max-height: 180px;
}
#about-intro *, #mission-vision *, #milestones *, #projects * { position: relative; z-index: 2; }

/* ===========================
   CONTACT SECTION
=========================== */
#contact-cta { background-color: #001d31; color: #b1f2ff; padding: 2rem 1rem; text-align: center; margin-top: 2rem; }
#contact-cta a { color: #63e5ff; text-decoration: underline; }

.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
  background: rgba(0,29,49,0.7); padding: 2rem; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.contact-form label { display: flex; flex-direction: column; font-weight: 500; color: #b1f2ff; }
.contact-form input, .contact-form textarea {
  padding: 0.8rem; border: 1px solid #63e5ff; border-radius: 5px;
  margin-top: 0.3rem; font-size: 1rem;
  background-color: rgba(255,255,255,0); color: #b1f2ff; outline: none;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(177,242,255,0.7); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.form-actions { display: flex; justify-content: flex-start; }

#contact-intro h1, #map h2, 
#contact-info h2 { color: #ffffff; text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5); }
#contact-intro p, #contact-info ul li, #contact-info ul li strong { color: #06198a; }
#contact-info ul li a { color: #63e5ff; text-decoration: underline; }

/* ===========================
   FOOTER
=========================== */
footer {
  background-color: #001d31; color: #b1f2ff; padding: 3rem 1rem; text-align: left; font-size: 0.95rem;
}
footer a { color: #63e5ff; text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: #8aecff; text-decoration: underline; }
footer h3 { color: #8aecff; margin-bottom: 0.8rem; font-size: 1.1rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 0.5rem; }
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; max-width: 1200px; margin: 0 auto; }
.footer-section { flex: 1; min-width: 200px; }
footer .footer-bottom { text-align: center; margin-top: 2rem; font-size: 0.85rem; color: #b1f2ff; }

@media (max-width: 768px) {
  .footer-container { flex-direction: column; text-align: center; }
  .footer-section { min-width: 100%; }
}

/* ===========================
   SECTIONS SPACING
=========================== */
section:not(.hero) { margin-top: 20px; }
/* Ensure nav menu is always on top */
.nav-menu {
  z-index: 100000 !important; /* higher than section overlays */
}
.nav-toggle {
  z-index: 100001 !important; /* above everything else */
}
@media (max-width: 768px) {
  header {
    background-color: transparent; /* fully transparent */
    box-shadow: none;              /* remove shadow */
  }

  /* Optional: make nav-menu slightly overlay with a subtle dark so text is readable */
  .nav-menu {
    background-color: rgba(0, 29, 49, 0.6); /* semi-transparent overlay */
  }
}
/* Hero Slider Image Animation */
.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, opacity 1s ease;
  transform: scale(1); /* start normal */
  opacity: 0.8;        /* slightly faded when not active */
}

.hero-slider .slide.active img {
  transform: scale(1.05); /* zoom slightly when active */
  opacity: 1;              /* fully visible */
}
.hero-slider .slide img {
  transform: translateX(-20px) scale(1);
  opacity: 0;
}

.hero-slider .slide.active img {
  transform: translateX(0) scale(1.05);
  opacity: 1;
  transition: transform 1s ease, opacity 1s ease;
}
