/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #333;
}

/* Header */
header {
  background: linear-gradient(to right, #072e4a, #098d8d, #0face0);
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* New: Limit header height and padding on small screens */
@media (max-width: 480px) {
  header {
    padding: 0.5rem 1rem;
    max-height: 60px;
    overflow: hidden;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo img {
  height: 60px;
}

/* Nav Bar */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #e0f0ff;
}

/* Language Toggle */
.language-toggle {
  position: relative;
}

.language-toggle input[type="checkbox"] {
  display: none;
}

.language-toggle label {
  cursor: pointer;
  display: inline-block;
  width: 60px;
  height: 30px;
  background: #ccc;
  border-radius: 15px;
  position: relative;
}

.language-toggle label::before {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
  top: 1px;
  left: 1px;
  transition: transform 0.3s ease;
}

.language-toggle input[type="checkbox"]:checked + label::before {
  transform: translateX(30px);
}

.language-toggle .lang-en,
.language-toggle .lang-fr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: bold;
  pointer-events: none;
  user-select: none;
  color: #444;
}

.language-toggle .lang-en {
  left: 8px;
}

.language-toggle .lang-fr {
  right: 8px;
}

/* Hero Section */
.hero {
  background-image: url('BACK.jpg'); /* Or 'images/BACK.jpg' */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-top-logo {
  max-width: 80%;
  height: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2rem; /* reduce font-size */
  padding: 0 1rem; /* prevent overflow */
  word-wrap: break-word;
  max-width: 100%;
}

.hero p {
  font-size: 1rem;
  padding: 0 1rem;
  max-width: 100%;
}

/* Form Placeholder Section */
.form-placeholder {
  text-align: center;
  background-color: #f4f4f4;
  padding: 4rem 2rem;
}

.form-placeholder h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.form-placeholder p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.form-placeholder a {
  background: linear-gradient(to right, #ff69b4, #9a48e6, #0face0);
  color: white;
  padding: 15px 30px;
  font-size: 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.form-placeholder a:hover {
  opacity: 0.9;
}

footer {
  background: #ffffff;
  color: #ccc;
  padding: 1.5rem 2rem;
  font-size: 1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  max-height: 100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  background: #ffffff;
  color: #000000;
}

.footer-logo img {
  height: 50px; /* adjust as needed */
}

.footer-contact {
  display: flex;
  gap: 2rem;
  font-size: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links img {
  height: 30px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(36%) sepia(65%) saturate(4640%) hue-rotate(270deg) brightness(94%) contrast(102%);
}

.footer-copy {
  flex-basis: 100%;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #aaa;
}

/* ==============================
   MOBILE RESPONSIVE STYLES
   ============================== */
@media (max-width: 991px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  .header-container,
  .main-nav ul,
  .about-container,
  .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

   .main-nav ul {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .main-nav ul li {
    width: auto;
  }
  .main-nav ul li a {
    display: inline-block;
    padding: 0.5rem;
    font-size: 1rem;
  }

  .hero {
    padding: 8rem 1rem 3rem 1rem;
  }

  .language-toggle {
    top: auto;
    bottom: 15px;
    right: 15px;
  }

  .hero-top-logo {
    max-width: 90%;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    text-align: center;
    padding: 0;
  }

  .about-labels {
    justify-content: center;
  }

  .event-description {
    padding: 1.5rem 1rem;
  }

  .contact-form .form-row {
    flex-direction: column;
  }

  .footer-container {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    max-height: none !important;      /* Remove max-height limit */
    overflow: visible !important;     /* Prevent clipping */
    padding: 1rem 1rem;               /* Add some padding */
    box-sizing: border-box;
  }

  .footer-contact,
  .footer-links {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.75rem 1rem; /* slightly bigger padding */
    max-height: none; /* remove max-height so nav can expand */
    overflow: visible; /* allow children to be visible */
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start; /* keep nav left-aligned */
    gap: 0.5rem;
  }

   .main-nav ul {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

   .main-nav a {
    font-size: 1rem;
    display: inline-block;
    padding: 0.3rem 0.5rem;
  }

  /* Footer fixes for extra small */
  footer {
    padding: 1rem 1rem !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .footer-container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem !important;
    text-align: center !important;
    width: 100% !important;
  }

  .footer-contact,
  .footer-links {
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: center !important;
    width: 100% !important;
  }

  .footer-contact > *,
  .footer-links > * {
    width: 100% !important;
  }

  .footer-copy {
    font-size: 0.9rem !important;
    margin-top: 1rem !important;
    color: #666 !important;
  }

  .footer-logo img {
    height: 40px !important;
  }

  .footer-links img {
    height: 20px !important;
  }
}

