/* Responsive Navigation CSS */
/* This file contains all responsive navigation styles for consistent behavior across all pages */

/* CSS Variables */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --dark-gray: #64748b;
}

/* Base Navigation Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 20px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  backdrop-filter: blur(15px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 40px;
  transition: all 0.3s ease;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  transition: all 0.3s ease;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 18px;
  color: var(--dark);
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--dark);
  z-index: 1001;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
  background-color: transparent;
}

.menu-toggle:hover {
  color: var(--primary);
  background-color: rgba(37, 99, 235, 0.1);
  transform: scale(1.1);
}

.menu-toggle:active {
  transform: scale(0.95);
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .nav-links {
    gap: 25px;
  }
  
  .nav-links a {
    font-size: 16px;
  }
  
  .nav-buttons {
    gap: 10px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 80px 20px 20px;
  }

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

  .nav-links a {
    font-size: 24px;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
  }

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

  .nav-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  }

  .nav-links a.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
  }

  .nav-buttons {
    display: none;
  }

  /* Mobile menu overlay */
  .nav-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
    z-index: -1;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 0;
  }
  
  .logo img {
    height: 35px;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .nav-links a {
    font-size: 20px;
    padding: 12px 25px;
  }
  
  .menu-toggle {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 10px 0;
  }
  
  .logo img {
    height: 30px;
  }
  
  .logo-text {
    font-size: 18px;
  }
  
  .nav-links {
    gap: 30px;
    padding: 60px 20px 20px;
  }
  
  .nav-links a {
    font-size: 18px;
    padding: 10px 20px;
  }
  
  .menu-toggle {
    font-size: 18px;
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

/* Animation for menu toggle icon */
.menu-toggle i {
  transition: transform 0.3s ease;
}

/* Enhanced mobile menu animations */
@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

.nav-links.active {
  animation: slideInFromLeft 0.4s ease-out;
}

/* Focus styles for accessibility */
.menu-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-links a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 50px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .nav-links {
    background-color: white;
    border: 2px solid var(--dark);
  }
  
  .nav-links a {
    border: 1px solid var(--dark);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .nav-links,
  .menu-toggle,
  .nav-links a {
    transition: none;
  }
  
  .nav-links a::before {
    display: none;
  }
}
