/* ============================================
   Global Styles
============================================ */
body, html {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  background-color: #f9f9f9;
  color: #333;
}

/* ============================================
   Hero Slideshow
============================================ */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-image.active {
  opacity: 1;
}

.overlay {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  padding: 3rem;
  border-radius: 10px;
  color: #fff;
  text-align: center;
}

.overlay .logo {
  max-width: 180px;
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-text p a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
}

/* ============================================
   Dark Navigation
============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.dark-nav {
  background-color: #111;
  border-bottom: 2px solid #222;
}

.dark-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.dark-nav a:hover {
  color: #66ccff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

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

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0 1rem;
}

/* ============================================
   Dark Footer
============================================ */
.dark-footer {
  background-color: #111;
  color: #aaa;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ============================================
   Section Layout
============================================ */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ============================================
   Parallax Banner
============================================ */
.parallax-banner {
  position: relative;
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat; /* ✅ Prevent tiling */
  margin-bottom: 2rem;
  overflow: hidden;
}

.parallax-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  transition: background 0.3s ease-in-out;
}

.parallax-banner:hover::before {
  background: rgba(0, 0, 0, 0.5);
}

.parallax-banner * {
  position: relative;
  z-index: 2;
}

.parallax-banner {
  transition: transform 0.4s ease-in-out;
}

/* Hover zoom removed for true parallax */

@media (max-width: 768px) {
  .parallax-banner {
    transform: none !important;
    transition: none !important;
  }
  .parallax-banner:hover {
    transform: none !important;
  }
}

/* ============================================
   Grid Layout for Buttons
============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* ============================================
   Buttons
============================================ */
.btn {
  display: block;
  background-color: #005599;
  color: #fff;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0077cc;
}

/* ============================================
   Responsive Navigation
============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    background-color: #111;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    padding: 1rem 0;
    z-index: 1000;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links li {
    margin: 1rem 0;
    text-align: center;
  }
}

/* ============================================
   Responsive Text
============================================ */
@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .overlay {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .parallax-banner {
    background-attachment: scroll !important;
  }
}

/* Performance optimization for parallax banners */
.parallax-banner {
  will-change: background-position, transform;
}

.hero-image.active {
  opacity: 1;
  z-index: 1;
}
