/* Modern Navigation Bar for Devota Tours */
/* Features: Compact, futuristic design with smooth animations */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* CSS Custom Properties */
:root {
  --navbar-height: 70px;
  --navbar-height-mobile: 60px;
  --primary-color: #2E86AB;
  --secondary-color: #A23B72;
  --accent-color: #F18F01;
  --text-white: #ffffff;
  --text-dark: #2C3E50;
  --bg-transparent: transparent;
  --bg-dark: rgba(15, 23, 42, 0.95);
  --bg-dark-solid: #0f172a;
  --bg-glass: rgba(255, 255, 255, 0.1);
  --bg-glass-hover: rgba(255, 255, 255, 0.15);
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(241, 143, 1, 0.3);
  --border-radius: 12px;
  --border-radius-small: 8px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --menu-width: 280px;
}

/* Base Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background: var(--bg-transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all var(--transition-smooth);
  font-family: 'Poppins', 'Roboto', sans-serif;
}

/* Scrolled State */
.navbar.scrolled {
  background: var(--bg-dark);
  box-shadow: var(--shadow-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Navbar Container */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 600;
  font-size: 1.4rem;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  z-index: 1002;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-image {
  height: 45px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text-white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
}

.nav-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Navigation Links */
.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: var(--border-radius-small);
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Navigation Icons */
.nav-icon {
  font-size: 1rem;
  opacity: 0.9;
  transition: all var(--transition-fast);
}

.nav-text {
  font-weight: 500;
}

/* Hover Effects */
.nav-link:hover {
  background: var(--bg-glass-hover);
  color: var(--text-white);
  transform: translateY(-1px);
}

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

/* Active Link Indicator */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all var(--transition-smooth);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Active Link Styles */
.nav-link.active {
  background: var(--bg-glass);
  color: var(--text-white);
}

.nav-link.active .nav-icon {
  opacity: 1;
  color: var(--accent-color);
}

/* Classic Modern Hamburger Button - Like Google, Apple, etc. */
.hamburger {
  display: none;
  position: relative;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1002;
  padding: 0;
}

.hamburger:hover {
  opacity: 0.8;
}

.hamburger:active {
  transform: scale(0.95);
}

.hamburger:focus {
  outline: none;
}

.hamburger-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px;
  box-sizing: border-box;
}

/* Classic 3 Horizontal Lines */
.hamburger-line {
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
  position: relative;
  display: block;
}

/* Classic Hamburger Animation */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Mobile Menu Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
  z-index: 999;
}

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

/* Mobile Styles */
@media (max-width: 900px) {
  .navbar {
    height: var(--navbar-height-mobile);
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  
  .nav-container {
    padding: 0 1rem;
    justify-content: space-between;
  }
  
  /* Mobile Logo */
  .logo {
    gap: 8px;
    font-size: 1.2rem;
  }
  
  .logo-image {
    height: 35px;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  /* Show Hamburger */
  .hamburger {
    display: flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
  }
  
  /* Mobile Menu */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: var(--menu-width);
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-dark-solid) 0%, rgba(15, 23, 42, 0.98) 100%);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 8px;
    padding: 80px 1.5rem 2rem;
    transition: all var(--transition-smooth);
    z-index: 1001;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  /* Mobile Navigation Links */
  .nav-link {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 500;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-small);
    text-align: left;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    min-height: 52px;
    box-sizing: border-box;
    transition: all var(--transition-fast);
  }
  
  .nav-link:hover {
    background: var(--bg-glass-hover);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .nav-link::after {
    display: none;
  }
  
  /* Mobile Active Link */
  .nav-link.active {
    background: rgba(241, 143, 1, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(241, 143, 1, 0.2);
  }
  
  .nav-link.active .nav-icon {
    color: var(--accent-color);
  }
  
  /* Mobile Navigation Icons */
  .nav-icon {
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
  }
  
  .nav-text {
    font-weight: 500;
    margin-left: 4px;
  }
  
  /* Ensure list items take full width */
  .nav-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.75rem;
  }
  
  .logo {
    gap: 6px;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .logo-image {
    height: 30px;
  }
  
  .nav-link {
    padding: 14px 16px;
    font-size: 0.95rem;
    min-height: 48px;
  }
  
  .hamburger {
    width: 32px;
    height: 32px;
  }
  
  .hamburger-inner {
    padding: 6px;
  }
  
  .hamburger-line {
    width: 20px;
    height: 2px;
    background: #ffffff;
    display: block;
  }
  
  :root {
    --menu-width: 260px;
  }
}

/* Extra Small Mobile Adjustments */
@media (max-width: 360px) {
  .nav-container {
    padding: 0 0.5rem;
  }
  
  .logo {
    gap: 4px;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .logo-image {
    height: 28px;
  }
  
  .hamburger {
    width: 28px;
    height: 28px;
  }
  
  .hamburger-inner {
    padding: 4px;
  }
  
  .hamburger-line {
    width: 16px;
    height: 2px;
    background: #ffffff;
    display: block;
  }
  
  :root {
    --menu-width: 240px;
  }
}

/* Large Screen Optimizations */
@media (min-width: 901px) {
  .nav-container {
    gap: 2.5rem;
  }
  
  .nav-menu {
    gap: 4px;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  
  .nav-icon {
    font-size: 0.9rem;
  }
}

@media (min-width: 1200px) {
  .nav-container {
    gap: 3.5rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 10px 16px;
  }
  
  .nav-icon {
    font-size: 1rem;
  }
}

@media (min-width: 1400px) {
  .nav-container {
    gap: 4rem;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .nav-link,
  .hamburger,
  .hamburger-line,
  .nav-menu,
  .mobile-overlay {
    transition: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .nav-link {
    border: 1px solid currentColor;
  }
  
  .nav-link:hover,
  .nav-link.active {
    background: rgba(255, 255, 255, 0.3);
  }
  
  .hamburger {
    border: 2px solid currentColor;
  }
}

/* Focus Styles for Keyboard Navigation */
.nav-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: var(--border-radius-small);
}

.hamburger:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Body Scroll Lock for Mobile Menu */
body.menu-open {
  overflow: hidden;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Performance Optimizations */
.navbar {
  will-change: background, backdrop-filter;
}

.nav-link {
  will-change: transform, background;
}

.hamburger {
  will-change: transform;
}

.nav-menu {
  will-change: transform;
}

/* Print Styles */
@media print {
  .navbar {
    position: static;
    background: var(--bg-dark-solid);
  }
  
  .hamburger,
  .mobile-overlay {
    display: none;
  }
  
  .nav-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    flex-direction: row;
    height: auto;
    width: auto;
    padding: 0;
  }
} 