/* ====== CLEAN NAVIGATION SYSTEM ====== */
/* This file contains ONLY navigation styles to prevent conflicts */

/* ====== GLOBAL MOBILE FIXES ====== */
/* Force proper viewport and prevent horizontal overflow */
* {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
  }
  
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
  }
  
  .card-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
  }
  
  .card {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
  }
  
  /* Force all sections to fit within viewport */
  section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
  }
  
  /* Ensure all content fits */
  .hero-content,
  .section-content,
  .contact-container,
  .about-container {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0 15px;
  }
}

/* ====== BASE NAVIGATION STYLES ====== */
/* Hide all navigation by default */
.landing-nav,
.mobile-nav,
.desktop-nav {
  display: none;
}

/* ====== MOBILE NAVIGATION STYLES ====== */
@media (max-width: 768px) {
  /* Show mobile nav, hide others */
  .mobile-nav {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border-radius: 15px 15px 0 0;
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    min-height: 50px;
    height: auto;
  }
  
  .desktop-nav,
  .landing-nav {
    display: none !important;
  }

  /* Language Switcher - Left Side */
  .mobile-nav .language-switcher {
    display: flex;
    gap: 15px;
    align-items: center;
  }

  .mobile-nav .language-switcher span {
    color: #123458;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 5px;
  }

  .mobile-nav .language-switcher span:hover {
    background: #f8f9fa;
    transform: scale(1.1);
  }

  /* Hamburger Menu - Right Side */
  .mobile-nav .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 5px;
  }

  .mobile-nav .hamburger div {
    width: 25px;
    height: 3px;
    background: #123458;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  /* Mobile Navigation Links - Hidden by default */
  .mobile-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .mobile-nav .nav-links.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .mobile-nav .nav-links a {
    color: #123458;
    text-decoration: none;
    font-weight: 500;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
  }

  .mobile-nav .nav-links a:hover {
    background: #f8f9fa;
    color: #FF0000;
  }

  .mobile-nav .nav-links a:last-child {
    border-bottom: none;
  }
}

/* ====== DESKTOP NAVIGATION STYLES ====== */
@media (min-width: 769px) {
  /* Show desktop nav, hide others */
  .desktop-nav {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 60px;
    height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .mobile-nav,
  .landing-nav {
    display: none !important;
  }

  .desktop-nav .language-switcher {
    display: flex;
    gap: 15px;
  }

  .desktop-nav .language-switcher span {
    color: #123458;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 5px;
  }

  .desktop-nav .language-switcher span:hover {
    background: #f8f9fa;
    transform: scale(1.1);
  }

  .desktop-nav .nav-group {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .desktop-nav .nav-links {
    display: flex;
    gap: 30px;
  }

  .desktop-nav .nav-links a {
    color: #123458;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 5px;
  }

  .desktop-nav .nav-links a:hover {
    background: #f8f9fa;
    color: #FF0000;
  }

  .desktop-nav .hamburger {
    display: none;
  }
}