/* Style.css */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #2b2b2b;
  background: url('Backroung.pnm') no-repeat center fixed;
  background-size: cover;
  overflow-x: hidden;
}

/* Prevent background scroll when mobile menu is open */
body.nav-open {
  overflow: hidden;
}

/* ==================== NAVIGATION ==================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #1f2933;
  padding: 14px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

nav .logo {
  height: 42px;
  flex-shrink: 0;
  position: relative;
  z-index: 1001;
}

.nav-links {
  display: flex;
  align-items: center;
}

nav a {
  color: #fff;
  margin-left: 24px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s ease;
}

nav a:hover,
nav a:focus-visible {
  color: #ffcc00;
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Dark overlay behind the mobile menu panel */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 999;
}
.nav-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==================== HEADER ==================== */

header {
  background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)), url('Banner.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 160px 60px 120px;
}

header h1 {
  font-size: 52px;
  margin-bottom: 12px;
}

header p {
  font-size: 20px;
  max-width: 800px;
}

/* ==================== SECTIONS / CARDS ==================== */

section {
  padding: 90px 60px;
}

.section-title {
  font-size: 36px;
  margin-bottom: 28px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #5a6475;
  color: #ffffff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card h3 {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.card p,
.card li,
.card strong,
.card span,
.card a {
  color: #ffffff;
  line-height: 1.7;
  font-size: 15px;
}

.highlight {
  background: rgba(255,255,255,0.92);
  color: #1f2933;
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.highlight p {
  color: #374151;
  line-height: 1.8;
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

/* ==================== VISION CARD ==================== */

.vision-section {
  display: flex;
  justify-content: center;
  padding: 50px 20px;
  font-family: 'Poppins', sans-serif;
}

.vision-card {
  width: 100%;
  max-width: 800px;
  height: 400px;
  border-radius: 15px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                    url('https://unsplash.com');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.vision-content {
  padding: 40px;
}

.vision-content span {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffcc00;
  margin-bottom: 15px;
  display: block;
}

.vision-content h2 {
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 400;
}

.image-card {
  padding: 0;
  overflow: hidden;
}

/* ==================== FOOTER ==================== */

footer {
  background: #1f2933;
  color: #fff;
  padding: 50px 60px;
}

footer p {
  margin: 6px 0;
}

/* ==================== RESPONSIVE / MOBILE ==================== */

@media (max-width: 900px) {

  nav {
    padding: 12px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(78%, 320px);
    background: #1f2933;
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px 30px;
    transition: right .3s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,.35);
  }

  .nav-links.open {
    right: 0;
  }

  nav a {
    margin: 0 0 26px 0;
    font-size: 18px;
  }

  header {
    padding: 120px 24px 70px;
  }

  header h1 {
    font-size: 34px;
  }

  header p {
    font-size: 16px;
  }

  section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 26px;
  }

  .grid {
    gap: 20px;
  }

  .card {
    padding: 20px;
  }

  .highlight {
    padding: 30px;
  }

  footer {
    padding: 36px 24px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 28px;
  }

  header p {
    font-size: 15px;
  }

  .vision-content h2 {
    font-size: 1.4rem;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .nav-toggle span,
  .nav-overlay,
  nav a {
    transition: none !important;
  }
}
