/* Elite Navigation System - Professional & Creative */

/* Header & Navigation Container */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  position: relative;
}

/* Logo Enhancement */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1001;
  transition: transform 0.3s ease;
}

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

.logo img {
  height: 85px;
  width: auto;
  max-width: 220px;
  transition: opacity 0.3s ease;
  object-fit: contain;
}

/* Desktop Navigation */
.nav-menu {
  display: none;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    align-items: center;
  }
}

.nav-menu > li {
  position: relative;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a:hover {
  color: #60a5fa;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
  transition: width 0.3s ease;
}

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

.nav-menu a.active {
  color: #60a5fa;
  font-weight: 700;
}

/* CTA Button */
.nav-cta {
  display: inline-block !important;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: white !important;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 768px) {
  .nav-cta {
    display: none !important;
  }
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle:hover {
  background: rgba(14, 165, 233, 0.1);
  border-radius: 8px;
}

/* Hamburger Lines */
.hamburger-line {
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

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

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

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

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

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

/* Mobile Navigation Menu */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 999;
  overflow-y: auto;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-nav-menu.active {
  right: 0;
}

/* Mobile Menu Header */
.mobile-nav-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  position: relative;
}

.mobile-nav-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://i.imgur.com/PDb7pDT.png') no-repeat center left;
  background-size: 40px auto;
  opacity: 0.1;
  pointer-events: none;
}

.mobile-nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.mobile-nav-tagline {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Mobile Menu Items */
.mobile-nav-items {
  padding: 1.5rem 0;
  min-height: auto;
}

/* Ensure mobile nav items are always visible when menu is open */
.mobile-nav-menu.active .mobile-nav-item {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: translateX(0) !important;
}

.mobile-nav-item {
  margin: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  opacity: 1;
  visibility: visible;
  display: block;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  color: #1f2937;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-nav-link:hover {
  background: rgba(30, 41, 59, 0.08);
  color: #1e293b;
  transform: translateX(5px);
}

.mobile-nav-link.active {
  background: rgba(30, 41, 59, 0.1);
  color: #1e293b;
  font-weight: 700;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(135deg, #1e293b, #334155);
  transition: width 0.3s ease;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
  width: 4px;
}

.mobile-nav-icon {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

/* Mobile Dropdown */
.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid currentColor;
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.mobile-dropdown.active .mobile-dropdown-toggle::after {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(248, 250, 252, 0.95);
  transition: all 0.3s ease;
  border-left: 3px solid #0ea5e9;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 400px;
}

.mobile-dropdown-item {
  padding-left: 3rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.mobile-dropdown-item:last-child {
  border-bottom: none;
}

.mobile-dropdown-link {
  padding: 1rem 2rem 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

.mobile-dropdown-link:hover {
  color: #0ea5e9;
  transform: translateX(10px);
}

/* Mobile CTA Section */
.mobile-nav-cta {
  padding: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(248, 250, 252, 0.5);
}

.mobile-cta-button {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
  margin-bottom: 1rem;
}

.mobile-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.3);
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.mobile-contact-info {
  text-align: center;
  margin-top: 1.5rem;
}

.mobile-contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  color: #64748b;
  font-size: 0.9rem;
  text-decoration: none;
}

.mobile-contact-item:hover {
  color: #0ea5e9;
}

/* Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Body scroll lock when menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Hide logo when mobile menu is open */
body.mobile-menu-open .logo img {
  opacity: 0;
}

/* Enhanced Dropdown for Desktop */
.nav-dropdown {
  position: relative;
}

/* Hover bridge to prevent dropdown from closing */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
  z-index: 9998;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: white;
  min-width: 250px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9999;
  padding: 1rem 0;
  display: block;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  margin: 0;
  display: block;
  visibility: visible;
  opacity: 1;
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-radius: 0;
  visibility: visible;
  opacity: 1;
}

.dropdown-menu a:hover {
  background: rgba(14, 165, 233, 0.08);
  color: #0ea5e9;
  transform: translateX(5px);
}

.dropdown-arrow {
  width: 12px;
  height: 12px;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Responsive Enhancements */
@media (max-width: 480px) {
  .mobile-nav-menu {
    width: 100%;
    max-width: 100%;
  }

  .mobile-nav-header {
    padding: 1.5rem;
  }

  .mobile-nav-brand {
    font-size: 1.25rem;
  }

  .logo {
    display: none;
  }
}

/* Add body padding to account for fixed header */
body {
  padding-top: 120px;
}

@media (max-width: 1024px) {
  body {
    padding-top: 120px;
  }
}

/* Loading state and animations - DISABLED to fix button visibility */
/* body:not(.loaded) .nav-menu li,
body:not(.loaded) .nav-cta {
  opacity: 0;
  transform: translateY(-10px);
} */

/* Enhanced mobile experience */
@media (max-width: 768px) {
  .header {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .nav {
    height: 70px;
    justify-content: flex-end;
  }

  body {
    padding-top: 70px;
  }

  .logo {
    display: none;
  }
}

/* Very small screens */
@media (max-width: 375px) {
  .mobile-nav-header {
    padding: 1.25rem;
  }

  .mobile-nav-brand {
    font-size: 1.1rem;
  }

  .mobile-nav-tagline {
    font-size: 0.8rem;
  }

  .mobile-nav-link {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .mobile-cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .logo {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .mobile-nav-menu {
    background: #ffffff;
    border: 2px solid #000000;
  }
  
  .mobile-nav-header {
    background: #000000;
    color: #ffffff;
  }
  
  .mobile-nav-link {
    color: #000000;
  }
  
  .mobile-nav-link:hover {
    background: #000000;
    color: #ffffff;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support - keeping consistent with our design */
@media (prefers-color-scheme: dark) {
  .header {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .header.scrolled {
    background: rgba(15, 23, 42, 0.98);
  }
  
  .nav-menu a {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .nav-menu a:hover {
    color: #60a5fa;
  }
  
  .dropdown-menu {
    background: #1e293b;
    border: 1px solid rgba(71, 85, 105, 0.3);
  }
  
  .dropdown-menu a {
    color: #cbd5e1;
  }
  
  .dropdown-menu a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
  }
}

/* Print styles */
@media print {
  .header,
  .mobile-nav-overlay,
  .mobile-nav-menu {
    display: none !important;
  }
  
  body {
    padding-top: 0 !important;
  }
}

/* Focus visible enhancements */
.mobile-menu-toggle:focus-visible,
.mobile-nav-link:focus-visible,
.mobile-cta-button:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

/* Enhanced touch targets for mobile */
@media (pointer: coarse) {
  .mobile-nav-link {
    min-height: 48px;
  }
  
  .mobile-menu-toggle {
    min-width: 48px;
    min-height: 48px;
  }
}

/* Professional polish and creative enhancements */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(30, 41, 59, 0.1) 10%, rgba(30, 41, 59, 0.3) 50%, rgba(30, 41, 59, 0.1) 90%, transparent 100%);
}

/* Logo breathing animation */
@keyframes logoBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.logo:not(:hover) img {
  animation: logoBreath 4s ease-in-out infinite;
}

/* Nav menu item entrance animations */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu li {
  animation: slideInFromTop 0.6s ease-out forwards;
}

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

/* CTA button pulse effect */
@keyframes ctaPulse {
  0% { box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); }
  50% { box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4); }
  100% { box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3); }
}

.nav-cta {
  animation: ctaPulse 3s ease-in-out infinite;
}

/* Mobile menu entrance effects */
.mobile-nav-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #475569 100%);
}

/* Footer logo styling */
.footer-logo img {
  height: 85px;
  width: auto;
  max-width: 220px;
  opacity: 0.8;
  transition: all 0.3s ease;
  object-fit: contain;
}

.footer-logo:hover img {
  opacity: 1;
  transform: scale(1.05);
}