/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  /* background: rgba(0, 123, 191, 0.95); */
  background: linear-gradient(
    135deg,
    #e8f4f875 0%,
    #ffffff81 50%,
    #fff8e17d 100%
  );
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo::before {
  margin-right: 0.5rem;
  font-size: 2rem;
}

.logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin-left: 0.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-right: 0.5rem;
}

.nav-links li {
  margin-left: 1rem;
}

.nav-links a {
  color: #00578d;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: white;
  background: rgb(222, 190, 9);
}

/* Recruitment Button */
.recruit-btn {
  color: #00578d;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  margin-left: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.recruit-btn:hover {
  color: white;
  background: rgb(222, 190, 9);
}

/* Mobile Recruitment Button */
.mobile-recruit-btn {
  display: block;
  text-align: center;
  margin: 1.5rem auto 1rem;
  padding: 0.9rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  max-width: 250px;
  animation: fadeInScale 0.5s ease-out 0.35s both;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
}

.mobile-recruit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
  transition: left 0.5s ease;
}

.mobile-recruit-btn:hover::before {
  left: 100%;
}

.mobile-recruit-btn:hover,
.mobile-recruit-btn:active {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.lang-btn.active {
  background: #ffd700;
  color: #003366;
  border-color: #ffd700;
}

.lang-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}

.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.715);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgb(2, 2, 115);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 60px;
}

.lang-toggle-btn.active {
  background: #ffd700;
  color: #003366;
  border-color: #ffd700;
}

.lang-toggle-btn:hover {
  /* background: rgba(0, 21, 255, 0.2); */
  border-color: gold;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #00578d;
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Mobile Menu Animation */
.mobile-menu-toggle.active .hamburger-line {
  background: white;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay - UPDATED UI */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    rgba(0, 87, 141, 0.97) 0%,
    rgba(0, 123, 191, 0.97) 50%,
    rgba(0, 87, 141, 0.97) 100%
  );
  backdrop-filter: blur(15px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 1.5rem;
  padding-top: 5rem;
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 350px;
}

.mobile-nav-links li {
  margin: 0.8rem 0;
  opacity: 0;
  animation: slideIn 0.4s ease-out forwards;
}

.mobile-nav-links li:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-nav-links li:nth-child(2) {
  animation-delay: 0.15s;
}
.mobile-nav-links li:nth-child(3) {
  animation-delay: 0.2s;
}
.mobile-nav-links li:nth-child(4) {
  animation-delay: 0.25s;
}
.mobile-nav-links li:nth-child(5) {
  animation-delay: 0.3s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.9rem 2rem;
  border-radius: 50px;
  display: block;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.mobile-nav-links a:hover::before {
  left: 100%;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

/* Mobile Language Switcher - UPDATED UI */
.mobile-menu-content .language-switcher {
  margin-left: 0;
  margin-top: 0.8rem;
  animation: fadeInScale 0.5s ease-out 0.35s both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mobile-menu-content .lang-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 90px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mobile-menu-content .lang-toggle-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.mobile-menu-content .lang-toggle-btn:hover::before {
  width: 300px;
  height: 300px;
}

.mobile-menu-content .lang-toggle-btn:hover,
.mobile-menu-content .lang-toggle-btn:active {
  background: rgba(255, 215, 0, 0.25);
  border-color: #ffd700;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.mobile-menu-content .lang-toggle-btn.active {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #003366;
  border-color: #ffd700;
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
}

.mobile-menu-content .lang-toggle-btn.active:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.5);
}

.mobile-language-switcher {
  display: flex;
  gap: 1rem;
}

.mobile-language-switcher .lang-btn {
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
}

/* Tablet Styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .nav-container {
    padding: 0 1.5rem;
  }

  .nav-links li {
    margin-left: 1.5rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  .logo::before {
    font-size: 1.8rem;
  }
}

/* Mobile Styles (max-width: 768px) */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 0.75rem 0;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .logo::before {
    font-size: 1.6rem;
    margin-right: 0.3rem;
  }

  .logo-img {
    height: 60px;
  }

  /* Hide desktop navigation */
  .nav-right {
    display: none;
  }

  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Mobile recruitment button */
  .recruit-btn {
    margin-left: 0;
  }

  .mobile-recruit-btn {
    margin: 1.2rem auto 0.8rem;
    padding: 0.9rem 1.8rem;
    font-size: 1.1rem;
    max-width: 180px;
  }

  /* Show mobile menu overlay */
  .mobile-menu-overlay {
    display: block;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-section {
    padding: 2rem;
    margin: 1rem;
  }
}

/* Small Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
  .nav-container {
    padding: 0 0.75rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .logo::before {
    font-size: 1.4rem;
  }

  .logo-img {
    height: 52px;
  }

  .mobile-menu-content {
    padding: 1.2rem;
    padding-top: 4.5rem;
  }

  .mobile-nav-links {
    margin-bottom: 1.2rem;
    max-width: 320px;
  }

  .mobile-nav-links li {
    margin: 0.7rem 0;
  }

  .mobile-nav-links a {
    font-size: 1.3rem;
    padding: 0.8rem 1.8rem;
  }

  .mobile-menu-content .language-switcher {
    margin-top: 0.6rem;
  }

  .mobile-menu-content .lang-toggle-btn {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    min-width: 80px;
  }

  .hero-section {
    padding: 1.5rem;
  }
}

/* Extra Small Devices (max-width: 320px) */
@media screen and (max-width: 320px) {
  .logo {
    font-size: 1rem;
  }

  .logo::before {
    font-size: 1.2rem;
  }

  .logo-img {
    height: 45px;
  }

  .hamburger-line {
    width: 20px;
    height: 2px;
  }

  .mobile-menu-content {
    padding: 1rem;
    padding-top: 4rem;
  }

  .mobile-nav-links {
    margin-bottom: 1rem;
    max-width: 280px;
  }

  .mobile-nav-links li {
    margin: 0.6rem 0;
  }

  .mobile-nav-links a {
    font-size: 1.15rem;
    padding: 0.7rem 1.5rem;
  }

  .mobile-menu-content .language-switcher {
    margin-top: 0.5rem;
  }

  .mobile-menu-content .lang-toggle-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    min-width: 70px;
  }
}

/* Large Desktop Styles (min-width: 1400px) */
@media screen and (min-width: 1400px) {
  .nav-container {
    max-width: 1400px;
    padding: 0 3rem;
  }

  .logo {
    font-size: 2rem;
  }

  .logo::before {
    font-size: 2.2rem;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Landscape Mobile Styles */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .mobile-menu-content {
    padding: 0.8rem;
    padding-top: 3.5rem;
  }

  .mobile-nav-links {
    margin-bottom: 0.8rem;
  }

  .mobile-nav-links li {
    margin: 0.5rem 0;
  }

  .mobile-nav-links a {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
  }

  .mobile-menu-content .language-switcher {
    margin-top: 0.5rem;
  }

  .mobile-menu-content .lang-toggle-btn {
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
  }
}
