html {
  font-size: 90%; /* Scales the base font size to 90% of default 16px (14.4px) */
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

nav {
  display: flex;
  align-items: center;
  background-color: #FFC107;
  padding: 0.5rem; /* Reduced padding for mobile */
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

nav:hover {
  background-color: #FFCA28; /* Slightly darker yellow for hover effect */
}

.logo img {
  height: 30px; /* Further reduced for mobile */
  max-width: 100%; /* Ensures it scales properly */
  vertical-align: middle;
  transition: transform 0.3s ease;
  margin-right: 0.5rem; /* Space after logo */
}

.logo img:hover {
  transform: scale(1.1); /* Keep the zoom-in effect */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.15rem; /* Tighter spacing for mobile */
  margin: 0;
  padding: 0;
  flex-wrap: nowrap; /* Prevent wrapping */
  overflow-x: hidden; /* Remove horizontal scroller */
  overflow-y: hidden; /* Remove vertical scroller */
}

nav ul li .nav-link {
  color: #000000;
  text-decoration: none;
  font-size: 0.8rem; /* Smaller for mobile */
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping */
  padding: 0 0.2rem; /* Reduced padding for touch targets */
  display: inline-block; /* Ensure proper positioning */
}

nav ul li .nav-link:hover {
  color: #FFFFFF;
}

nav ul li .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 100%; /* Cover the entire word height */
  bottom: 0;
  left: 0;
  background-color: #FFFFFF;
  transition: width 0.4s ease-in-out; /* Smooth slide effect */
  z-index: -1; /* Behind text */
}

nav ul li .nav-link:hover::after {
  width: 100%; /* Expand to full width on hover */
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 54px;
  width: 100%;
  min-height: 100vh; /* Ensure full viewport height on mobile */
}

.hero-content h1 {
  font-size: 2.5rem; /* Reduced for mobile */
  margin-bottom: 0.8rem;
}

.hero-content p {
  font-size: 1rem; /* Reduced for mobile */
  margin-bottom: 1.5rem;
}

.section {
  padding: 3rem 1rem; /* Reduced padding for mobile */
  text-align: center;
  border-top: 2px solid #FFC107;
  width: 100%;
  box-sizing: border-box;
  min-height: 56vh; /* Reduced by ~20% from 70vh to minimize empty space */
}

.section h2 {
  font-size: 1.8rem; /* Reduced for mobile */
  margin-bottom: 0.8rem;
}

.section p {
  max-width: 90%; /* Adjusted for mobile */
  margin: 0 auto 0.8rem; /* Reduced bottom margin by ~20% */
}

.video-container {
  max-width: 100%; /* Full width on mobile */
  margin: 1rem auto;
}

.video-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9; /* Maintain video aspect ratio */
}

.placeholder-image {
  background-color: #FFFFFF;
  color: #000000;
  padding: 1.5rem; /* Reduced for mobile */
  margin: 1.5rem auto;
  max-width: 90%; /* Adjusted for mobile */
  text-align: center;
}

.cta-button {
  display: inline-block;
  padding: 0.6rem 1.2rem; /* Reduced for mobile */
  background-color: #FFC107;
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  background-color: #FFFFFF;
  color: #000000;
}

.fade-scroll {
  opacity: 0;
  transition: opacity 1.5s ease;
}

.fade-scroll.visible {
  opacity: 1;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

footer {
  text-align: center;
  padding: 0.7rem; /* Reduced for mobile */
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  nav {
    justify-content: flex-start; /* Align all to left */
    padding: 0.3rem; /* Further reduced padding */
  }

  nav ul {
    flex-direction: row; /* Keep horizontal */
    gap: 0.1rem; /* Even tighter spacing */
    padding-bottom: 0.3rem; /* Reduced space */
  }

  nav ul li .nav-link {
    font-size: 0.7rem; /* Smaller for mobile */
    padding: 0 0.1rem; /* Reduced padding */
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .video-container iframe {
    width: 100%;
    height: auto;
  }
}

@media (min-width: 769px) {
  .section {
    padding: 4.5rem 2rem; /* Restore original padding for PC */
    min-height: 64vh; /* Reduced by ~20% from 80vh to minimize empty space */
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .section h2 {
    font-size: 2.25rem;
  }

  .section p {
    max-width: 600px;
    margin: 0 auto 1.2rem; /* Reduced bottom margin by ~20% */
  }

  .video-container {
    max-width: 504px;
  }

  .placeholder-image {
    max-width: 270px;
  }

  .cta-button {
    padding: 0.72rem 1.35rem;
  }

  footer {
    padding: 0.9rem;
  }

  .logo img {
    height: 54px; /* Restore original size for PC */
  }

  nav {
    padding: 1rem; /* Restore original padding */
  }

  nav ul {
    gap: 0.15rem; /* Reduced from 0.2rem for PC */
  }

  nav ul li .nav-link {
    font-size: 1rem;
    padding: 0 0.3rem;
  }
}