/* Navigation Styles */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  transition: all 0.3s ease-out;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 100px;
  height: 70px;
  object-fit: contain;
}

/* Desktop Menu */
.desktop-menu {
  display: none;
}

@media (min-width: 769px) {
  .desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .desktop-menu a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }

  .desktop-menu a:hover {
    color: #4f67a5;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .contact-btn {
    background-color: #4f67a5;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
  }

  .contact-btn:hover {
    background-color: #3d5282;
  }
}

/* Mobile Menu */
@media (max-width: 768px) {
  #main-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
  }

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #2c3e50;
    z-index: 1002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    padding: 2rem;
    z-index: 1001;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0s linear 0.3s;
    overflow-y: auto;
  }

  .mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out, visibility 0s linear 0s;
  }

  .menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
  }

  .menu-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .menu-links a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
  }

  .close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #2c3e50;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-btn {
    display: inline-block;
    background-color: #4f67a5;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
    text-align: center;
  }
}
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Fix main content positioning with fixed nav */
body {
  padding-top: 0;
}

.sticky ~ #main-content,
#main-content {
  margin-top: 0;
}

/* Ensure hero section accounts for fixed nav */
.hero {
  margin-top: 0;
  padding-top: 80px;
}

/* Fix hero picture positioning */
.hero-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure hero content is above the background image */
.hero .content-grid {
  position: relative;
  z-index: 2;
  min-height: inherit;
}

.hero-content {
  position: relative;
  z-index: 3;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding-top: 60px; /* Reduced padding for mobile nav height */
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 50px; /* Further reduced for very small screens */
  }
}
