/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  line-height: 1.7;
  background: #fdfdfd;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

/* =========================
   NAVBAR
========================= */
.navbar {
  width: 100%;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: #f8f9fb;
  box-shadow: 0 3px 14px rgba(0,0,0,0.12);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.navbar .logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar .logo img:hover {
  transform: scale(1.05);
}

.navbar .logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0078d7;
  letter-spacing: 0.5px;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #0078d7;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links li a:hover {
  color: #005ea3;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Mobile Navbar */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 111111;
}

.nav-toggle span {
  width: 28px;
  height: 3px;
  background-color: #0078d7;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.toggle span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* =========================
   MOBILE NAV OVERLAY
========================= */
.nav-overlay {
  position: fixed;           /* Stay fixed */
  top: 0;                    /* Align to top */
  left: 0;                   /* Align to left edge */
  width: 100vw;              /* Full viewport width */
  height: 100vh;             /* Full viewport height */
  background-color: #ffffff; /* Overlay color */
  display: flex;             /* Flexbox for center alignment */
  flex-direction: column;    /* Stack links vertically */
  justify-content: center;   /* Center vertically */
  align-items: center;       /* Center horizontally */
  gap: 2rem;                 /* Space between links */
  transform: translateX(-100%); /* Hide initially off-screen */
  transition: transform 0.4s ease; /* Smooth slide-in */
  z-index: 999;              /* On top of everything */
}

.nav-overlay.active {
  transform: translateX(0);  /* Slide in overlay */
}

.nav-overlay a {
  font-size: 1.6rem;
  color: #0078d7;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.nav-overlay a:hover {
  color: #005ea3;
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* =========================
   HERO SECTION
========================= */
.hero {
  padding: 8rem 1rem 5rem;
  text-align: center;
  background: linear-gradient(rgba(0,120,215,0.5), rgba(0,94,163,0.5)), url('../assets/images/hero_banner.jpg') center/cover no-repeat;
  color: #fff;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 10px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 5rem 1rem;
}

.section h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #0078d7;
  margin-bottom: 2rem;
  position: relative;
}

.section h2::after {
  content: '';
  width: 70px;
  height: 4px;
  background: #005ea3;
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section p {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
  color: #444;
  line-height: 1.8;
}

/* =========================
   CARDS
========================= */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #0078d7;
}

.card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}

/* =========================
   CTA BUTTON
========================= */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #0078d7, #005ea3);
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =========================
   SOCIAL LINKS
========================= */
.social-media {
  padding: 5rem 1rem;
  text-align: center;
  background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}

.social-media h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #0078d7;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 5%;
}

.social-icons a {
  font-size: 1.8rem;
  color: #0078d7;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: #005ea3;
  transform: scale(1.2);
}

/* =========================
   FOOTER
========================= */
footer {
  background: #0078d7;
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

footer p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

footer p a {
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer p a:hover {
  color: #dbe9f9;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  .section h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .section p {
    font-size: 1rem;
  }
  .btn {
    padding: 0.8rem 2rem;
  }
  .social-icons a {
    font-size: 1.5rem;
  }
}