/* Responsive Header and Hamburger Menu Styles */

/* Show the hamburger menu only on mobile */
.hamburger {
  display: none; /* Hide by default on all screens */
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
  header {
    top: 0; /* Ensure header is at top of screen */
  }

  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .logo {
    max-width: 70%;
  }

  .logo-img {
    height: 50px;
  }

  /* IMPORTANT: Make hamburger visible on mobile */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1000;
    margin-left: 20px;
    padding: 8px;
    background-color: rgba(
      255,
      255,
      255,
      0.9
    ) !important; /* White background for contrast on dark navy */
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
  }

  /* Navigation styles for mobile - enhanced styling */
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: linear-gradient(
      135deg,
      #0a1a2f 0%,
      #1a3a5f 100%
    ); /* Gradient background */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px; /* Increased padding to compensate for removed logo */
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1); /* Smoother animation */
    box-shadow: -5px 0px 25px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex; /* Always display as flex, but off-screen */
    border-left: 2px solid rgba(255, 255, 255, 0.1); /* Subtle border */
  }

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

  .nav-links li {
    margin: 15px 0;
    width: 80%;
    text-align: center;
    transition: all 0.3s ease;
    transform: translateX(50px);
    opacity: 0;
  }

  .nav-links.active li {
    transform: translateX(0);
    opacity: 1;
  }

  /* Stagger the animation of menu items */
  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.active li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links.active li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links.active li:nth-child(4) {
    transition-delay: 0.4s;
  }
  .nav-links.active li:nth-child(5) {
    transition-delay: 0.5s;
  }
  .nav-links.active li:nth-child(6) {
    transition-delay: 0.6s;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 12px 24px;
    display: block;
    position: relative;
    color: white;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  /* Hamburger Menu Styles */
  /* HAMBURGER MENU - ENHANCED DESIGN WITH GLOW EFFECT */
  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: space-around;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 1001 !important;
    padding: 10px;
    background-color: rgba(
      10,
      26,
      47,
      0.5
    ) !important; /* Semi-transparent dark blue */
    transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1) all;
    position: relative;
    right: 0;
    margin-right: 10px;
    margin-left: auto; /* Push to the right side */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hamburger:hover {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
  }

  .hamburger.active {
    background-color: rgba(10, 26, 47, 0.8) !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }

  /* Hamburger bars styling - GREEN LINES for better visibility */
  .hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #28a745 !important; /* Green bars for maximum visibility */
    border-radius: 4px;
    transition: 0.3s ease all;
    margin: 4px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }

  /* Hamburger hover effect - slightly lighter green on hover */
  .hamburger:hover .bar {
    background-color: #2ecc71 !important; /* Lighter green on hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  }

  /* Hamburger Animation */
  .hamburger.active .bar {
    background-color: #218838 !important; /* Darker green when active */
  }

  /* Make bars thicker for better visibility */
  .hamburger .bar {
    height: 4px;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    width: 100%;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 100%;
  }

  /* Make hamburger bars more visible on all backgrounds */
  .hamburger .bar {
    outline: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5); /* Green glow effect */
  }

  /* Increase size slightly for better tap target */
  @media screen and (max-width: 480px) {
    .hamburger {
      width: 42px;
      height: 42px;
    }
  }

  /* Body scrolling prevention when nav is open */
  body.no-scroll {
    overflow: hidden;
  }

  /* Overlay styles for when navigation is open - enhanced with blur effect */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1) all;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Additional responsive styles for the logo */
@media screen and (max-width: 480px) {
  .logo-img {
    height: 40px;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 0 transparent);
  }

  .footer-logo-img {
    height: 60px;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 0 transparent);
  }
}

@media screen and (max-width: 360px) {
  .logo-img {
    height: 35px;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 0 transparent);
  }

  .footer-logo-img {
    height: 50px;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 0 transparent);
  }
}
