/* ===================================
   Modern Mobile Navigation Styles
   =================================== */

/* Mobile Navigation Variables */
:root {
  --mobile-nav-bg: #222353;
  --mobile-nav-overlay: rgba(0, 0, 0, 0.8);
  --mobile-nav-item-bg: rgba(255, 255, 255, 0.1);
  --mobile-nav-item-hover: rgba(34, 35, 83, 0.2);
  --mobile-nav-text: #ffffff;
  --mobile-nav-text-hover: #222353;
  --mobile-nav-border: rgba(255, 255, 255, 0.1);
  --mobile-nav-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --mobile-nav-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --mobile-nav-blur: blur(20px);
}

/* Mobile Navigation Container */
.mobile-nav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--mobile-nav-overlay);
  backdrop-filter: var(--mobile-nav-blur);
  -webkit-backdrop-filter: var(--mobile-nav-blur);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--mobile-nav-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Mobile Navigation Menu */
.mobile-nav-menu {
  background: var(--mobile-nav-bg);
  backdrop-filter: var(--mobile-nav-blur);
  -webkit-backdrop-filter: var(--mobile-nav-blur);
  border-radius: 20px;
  padding: 2rem;
  margin: 1rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--mobile-nav-shadow);
  border: 1px solid var(--mobile-nav-border);
  transform: translateY(30px) scale(0.95);
  transition: var(--mobile-nav-transition);
  position: relative;
  overflow: hidden;
}

.mobile-nav-container.active .mobile-nav-menu {
  transform: translateY(0) scale(1);
}

/* Mobile Navigation Header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mobile-nav-border);
}

.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-logo img {
  width: auto;
  height: 60px;
  border-radius: 0;
  object-fit: contain;
}

.mobile-nav-logo h3 {
  color: var(--mobile-nav-text);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--mobile-nav-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--mobile-nav-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.mobile-nav-close:hover {
  background: var(--mobile-nav-item-hover);
  color: var(--mobile-nav-text-hover);
  transform: rotate(90deg);
}

/* Mobile Navigation List */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  position: relative;
  overflow: hidden;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  color: var(--mobile-nav-text);
  text-decoration: none;
  border-radius: 12px;
  transition: var(--mobile-nav-transition);
  position: relative;
  font-weight: 500;
  font-size: 1rem;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

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

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--mobile-nav-item-hover);
  color: var(--mobile-nav-text-hover);
  transform: translateX(5px);
}

.mobile-nav-link.active {
  background: linear-gradient(135deg, rgba(71, 178, 228, 0.2), rgba(71, 178, 228, 0.1));
  border-left: 3px solid var(--mobile-nav-text-hover);
}

/* Mobile Navigation Icons */
.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 0.75rem;
  font-size: 1.1rem;
  opacity: 0.8;
  transition: var(--mobile-nav-transition);
}

.mobile-nav-link:hover .mobile-nav-icon,
.mobile-nav-link.active .mobile-nav-icon {
  opacity: 1;
  transform: scale(1.1);
}

.mobile-nav-arrow {
  font-size: 0.875rem;
  opacity: 0.6;
  transition: var(--mobile-nav-transition);
}

.mobile-nav-link:hover .mobile-nav-arrow,
.mobile-nav-link.active .mobile-nav-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--nav-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: var(--mobile-nav-transition);
  position: relative;
  z-index: 9999;
}

.mobile-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-hover-color);
  transform: scale(1.1);
}

.mobile-nav-toggle.active {
  color: var(--nav-hover-color);
  transform: rotate(180deg);
}

/* Mobile Navigation Toggle Animation */
.mobile-nav-toggle .hamburger-line {
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: var(--mobile-nav-transition);
  border-radius: 1px;
}

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

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

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

/* Mobile Navigation Footer */
.mobile-nav-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mobile-nav-border);
  text-align: center;
}

.mobile-nav-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mobile-nav-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--mobile-nav-text);
  font-size: 0.875rem;
  opacity: 0.8;
}

.mobile-nav-contact-item i {
  font-size: 1rem;
  color: var(--mobile-nav-text-hover);
}

/* Mobile Navigation Social Links */
.mobile-nav-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.mobile-nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--mobile-nav-item-bg);
  color: var(--mobile-nav-text);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--mobile-nav-transition);
  font-size: 1.1rem;
}

.mobile-nav-social-link:hover {
  background: var(--mobile-nav-item-hover);
  color: var(--mobile-nav-text-hover);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .navmenu {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-nav-menu {
    margin: 0.5rem;
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .mobile-nav-header {
    margin-bottom: 1.5rem;
  }
  
  .mobile-nav-logo img {
    width: auto;
    height: 50px;
  }
  
  .mobile-nav-logo h3 {
    font-size: 1.1rem;
  }
  
  .mobile-nav-link {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
  
  .mobile-nav-icon {
    width: 20px;
    height: 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .mobile-nav-menu {
    margin: 0.25rem;
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .mobile-nav-logo img {
    width: auto;
    height: 45px;
  }
  
  .mobile-nav-logo h3 {
    font-size: 1rem;
  }
  
  .mobile-nav-link {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }
  
  .mobile-nav-icon {
    width: 18px;
    height: 18px;
    font-size: 0.9rem;
  }
  
  .mobile-nav-social-link {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Animation Keyframes */
@keyframes mobileNavSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

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

/* Staggered Animation for Menu Items */
.mobile-nav-item {
  animation: mobileNavItemFadeIn 0.3s ease-out forwards;
  opacity: 0;
}

.mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.2s; }
.mobile-nav-item:nth-child(3) { animation-delay: 0.3s; }
.mobile-nav-item:nth-child(4) { animation-delay: 0.4s; }
.mobile-nav-item:nth-child(5) { animation-delay: 0.5s; }
.mobile-nav-item:nth-child(6) { animation-delay: 0.6s; }

/* Body Scroll Lock */
body.mobile-nav-active {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Accessibility */
.mobile-nav-link:focus {
  outline: 2px solid var(--mobile-nav-text-hover);
  outline-offset: 2px;
}

.mobile-nav-close:focus {
  outline: 2px solid var(--mobile-nav-text-hover);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --mobile-nav-bg: rgba(0, 0, 0, 0.95);
    --mobile-nav-border: rgba(255, 255, 255, 0.3);
    --mobile-nav-item-hover: rgba(255, 255, 255, 0.2);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-container,
  .mobile-nav-menu,
  .mobile-nav-link,
  .mobile-nav-toggle,
  .mobile-nav-item {
    transition: none;
    animation: none;
  }
}

/* Mobile Language Toggle Button */
.mobile-lang-toggle {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--mobile-nav-item-bg);
  border: 1px solid var(--mobile-nav-border);
  border-radius: 12px;
  color: var(--mobile-nav-text);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--mobile-nav-transition);
  text-align: center;
  width: 100%;
}

.mobile-lang-toggle:hover {
  background: var(--mobile-nav-text);
  color: var(--mobile-nav-text-hover);
  transform: translateY(-2px);
  box-shadow: var(--mobile-nav-shadow);
}

/* Hide desktop language toggle in mobile */
@media (max-width: 991px) {
  #lang-toggle {
    display: none !important;
  }
  
  .mobile-lang-toggle {
    display: block;
  }
}

/* Show desktop language toggle and hide mobile one on desktop */
@media (min-width: 992px) {
  .mobile-lang-toggle {
    display: none !important;
  }
  
  #lang-toggle {
    display: inline-block !important;
  }
} 