/* ================= GLOBAL ================= */
body {
  font-family: Poppins, sans-serif;
  margin: 0;
  background: #f9fbff;
}

html {
  scroll-behavior: smooth;
}

/* ================= HEADER ================= */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: 0.4s ease;

  /* glass effect */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

/* on scroll */
header.scrolled {
  background: #0b3d91;
  backdrop-filter: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

header h2 {
  font-size: 18px;
  white-space: nowrap;
  color: #fff;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
}

/* nav links */
nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-size: 16px;
  position: relative;
  transition: 0.3s;
}

/* underline animation */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #ffb400;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* active link */
nav a.active {
  color: #ffb400;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* slides */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1s ease-in-out, transform 6s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* dark overlay */
.slide::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 20, 60, 0.6);
  z-index: 1;
}

/* ================= HERO TEXT ================= */
.overlay {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 2;
  max-width: 650px;
}

.overlay h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.overlay span {
  color: #ffb400;
}

.overlay p {
  margin: 20px 0;
  font-size: 20px;
  color: #e0e0e0;
}

/* animation */
.overlay h1,
.overlay p,
.overlay .btn {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.slide.active .overlay h1 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.slide.active .overlay p {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

.slide.active .overlay .btn {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}

/* BUTTON */
.btn {
  background: #ffb400;
  padding: 14px 28px;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #e09e00;
  transform: translateY(-3px);
}

/* ================= ARROWS ================= */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 10px 15px;
  cursor: pointer;
  z-index: 5;
  border-radius: 50%;
  transition: 0.3s;
}

.slider-arrow:hover {
  background: #ffb400;
  color: #000;
}

.slider-arrow.left { left: 20px; }
.slider-arrow.right { right: 20px; }

/* ================= DOTS ================= */
.slider-dots {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  z-index: 5;
}

.slider-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.slider-dots .active {
  background: #fff;
  transform: scale(1.3);
}

/* ================= SECTIONS ================= */
.section {
  padding: 80px 40px;
}

/* ================= MOBILE ================= */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: #0b3d91;
    flex-direction: column;
    padding-top: 80px;
    transition: right 0.4s ease;
  }

  nav.active {
    right: 0;
  }

  nav a {
    margin: 15px 20px;
    color: #fff;
  }

  .overlay h1 {
    font-size: 28px;
  }

  .overlay p {
    font-size: 14px;
  }
}

/* ================= FOOTER ================= */
footer {
  background: #0b3d91;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* IMPORTANT FIX: ensure footer visible */
body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}