@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Playfair+Display:wght@600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === HERO SECTION === */
.hero {
  position: relative;
  height: 100vh;
  background: url('images/image.png') center center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* === STICKY NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-links a {
  color: #000;
}

.navbar.scrolled .nav-links a.active {
  color: #f97316;
  border-bottom: 2px solid #f97316;
}

.logo img {
  height: 60px;
}

.nav-links a {
  margin-left: 1.2rem;
  font-weight: 600;
  color: white;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #f97316;
}

.nav-links a.active {
  color: #f97316;
  border-bottom: 2px solid #f97316;
}

/* MOBILE */
/* --- NAV TOGGLE (hidden on desktop) --- */
.nav-toggle {
  display: none;              /* visible only in media query below */
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 6px;
  align-items: center;
  justify-content: center;
}

/* simple 3-line hamburger */
.nav-toggle .hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  position: relative;
  transition: transform .25s ease, background .25s ease;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: inherit;
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after  { top: 7px; }

/* hamburger -> X when open */
.nav-toggle.open .hamburger { background: transparent; }
.nav-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* --- MOBILE DROPDOWN --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  /* hide desktop horizontal links */
  .nav-links {
    display: none;            /* hidden until opened */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1rem 1.25rem;
    /* visible background so links are readable over hero */
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  /* when opened */
  .nav-links.open {
    display: flex;
  }

  /* stack links, remove left margin used for desktop */
  .nav-links a {
    margin-left: 0;
    padding: 0.5rem 0;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-bottom: none;
  }

  .nav-links a:hover {
    color: #f97316;
  }

  /* If navbar switches to .scrolled (white bg) keep dropdown readable */
  .navbar.scrolled .nav-links {
    background: white;
  }
  .navbar.scrolled .nav-links a {
    color: #000;
  }
}
/* ensure toggle hidden on desktop (keep) */
.nav-toggle { display: none; }

/* MOBILE LAYOUT FIXES */
@media (max-width: 768px) {
  /* Keep toggle visible */
  .nav-toggle {
    display: flex;
    position: absolute;      /* place it top-right of the fixed navbar */
    right: 1rem;
    top: .8rem;              /* tweak as needed to align with logo */
    z-index: 30;             /* above hero & nav links */
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    padding: 6px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  /* If you prefer it aligned by flex rather than absolute, uncomment:
  .nav-toggle { margin-left: auto; position: static; }
  */

  /* make sure hamburger lines are on top visually and clickable */
  .nav-toggle .hamburger,
  .nav-toggle .hamburger::before,
  .nav-toggle .hamburger::after {
    pointer-events: none; /* clicks handled by button */
  }

  /* same dropdown from before, keep it below header */
  .nav-links {
    display: none;            /* hidden until opened */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 25;
    flex-direction: column;
    gap: 10px;
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    margin-left: 0;
    padding: 0.5rem 0;
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-bottom: none;
  }

  .navbar.scrolled .nav-links {
    background: white;
  }
  .navbar.scrolled .nav-links a {
    color: #000;
  }

  /* ensure hamburger color switches when header becomes white */
  .navbar.scrolled .nav-toggle .hamburger,
  .navbar.scrolled .nav-toggle .hamburger::before,
  .navbar.scrolled .nav-toggle .hamburger::after {
    background: #000;
  }
}

/* END of mobile */

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
  color: white;
  text-align: center;
  max-width: 600px;
}

.overlay.wide-overlay {
  max-width: 80%;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-top: 1.2rem;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  background-color: #f97316;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: #fb923c;
}

/* === MISSION === */
.mission {
  text-align: center;
  padding: 4rem 1rem;
  background-color: #e0f0ff;
}

.mission h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #0a3d62;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.mission h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: #0a3d62;
  bottom: -8px;
  left: 25%;
}

.mission p {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

/* === WHAT WE DO === */
.what-we-do {
  text-align: center;
  padding: 4rem 1rem;
  background-color: #ffffff;
}

.what-we-do h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #0a3d62;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.what-we-do h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: #0a3d62;
  bottom: -8px;
  left: 25%;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background-color: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  width: 300px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0a3d62;
}

.card p {
  font-size: 1rem;
  color: #444;
}

/* === COMPETITIONS SECTION === */
.competitions {
  padding: 4rem 1rem;
  text-align: center;
  background-color: #e0f0ff;
}

.competitions h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: #0a3d62;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.competitions h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: #0a3d62;
  bottom: -8px;
  left: 25%;
}

.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: #e0f0ff;
}

.carousel-wrapper {
  position: relative;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  scroll-behavior: smooth;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  padding: 1rem;
  min-width: 100%;
  scroll-behavior: smooth;
  transition: transform 0.3s ease;
}

.carousel-track-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  display: flex;
  justify-content: center;
}

.carousel-track-wrapper::-webkit-scrollbar {
  display: none;
}

.comp-card {
  flex: 0 0 auto;
  width: 300px;
  background-color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: 0.3s ease;
}

.comp-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.comp-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #0a3d62;
}

.comp-card .date {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.btn-secondary {
  margin-top: 1rem;
  display: inline-block;
  background-color: #0077b6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-secondary:hover {
  background-color: #0096c7;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #0077b6;
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.carousel-button:hover {
  background-color: #005f8e;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

/* === FOOTER === */
.site-footer {
  background-color: #16212c;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 240px;
}

.footer-center {
  display: flex;
  justify-content: center;
  gap: 2rem; 
  flex-wrap: wrap;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logos img {
  height: 40px;
  max-width: 100%;
  object-fit: contain;
}

.footer-left p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #dcdcdc;
  margin: 0;
  text-align: left;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a.active {
  color: #ffa44f;
}

.footer-right h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.social-icons img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  background-color: transparent;
  padding: 0;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.1);
}

.footer-line {
  border: none;
  height: 2px;
  background-color: #ffa44f;
  margin: 2rem auto 1rem;
  max-width: 90%;
}

.footer-bottom {
  text-align: center;
  padding: 0 1rem 1rem;
  font-size: 0.95rem;
  color: #ccc;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .cards,
  .carousel-track {
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    display: none;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .overlay.wide-overlay {
    max-width: 95%;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .logo img {
    height: 50px;
  }

  .carousel-button.prev,
  .carousel-button.next {
    display: block;
    padding: 0.4rem 0.8rem;
    font-size: 1.2rem;
  }

  .comp-card {
    width: 90%;
    max-width: 350px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    min-width: 100%;
  }

  .footer-center {
    flex-direction: column;
    align-items: center;
  }

  .footer-logos {
    justify-content: center;
  }

  .footer-left p {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
  .mobile-nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #f97316;
    margin-left: auto;
    cursor: pointer;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }

}
.mobile-nav-toggle {
  display: none; /* hidden on desktop */
}

