/* ===================================
   MODERN NAVBAR STYLES
   =================================== */

/* Hide scrollbars in navbar */
.navbar-custom,
.navbar-custom * {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

.navbar-custom::-webkit-scrollbar,
.navbar-custom *::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari, Opera */
}

/* Force navbar visibility */
.navbar-custom {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
}

/* Force navbar collapse to be visible on desktop */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    flex-basis: auto !important;
    align-items: center !important;
    justify-content: flex-end !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
  }
  
  .navbar-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    gap: 0.25rem !important;
  }
  
  .navbar-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: 1rem !important;
    gap: 0.75rem !important;
  }
  
  .modern-toggler {
    display: none !important;
  }
}

/* Force mobile menu to be on top */
@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6rem 2rem 2rem !important;
    max-width: none !important;
    transform: translateX(-100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    display: block !important;
  }
  
  .navbar-collapse.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  .modern-toggler {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000000 !important;
  }
  
  /* Force navbar to be on top */
  .navbar-custom {
    z-index: 999998 !important;
  }
  
  /* Remove problematic animations */
  .navbar-nav .nav-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .navbar-actions {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  /* Simple fade in for menu items */
  .navbar-nav .nav-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  .navbar-collapse.show .navbar-nav .nav-item {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Stagger animation for menu items */
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(1) { transition-delay: 0.1s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(2) { transition-delay: 0.15s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(3) { transition-delay: 0.2s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(4) { transition-delay: 0.25s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(5) { transition-delay: 0.3s; }
  .navbar-collapse.show .navbar-nav .nav-item:nth-child(6) { transition-delay: 0.35s; }
  
  /* Simple fade in for actions */
  .navbar-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.4s;
  }
  
  .navbar-collapse.show .navbar-actions {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Navbar Container */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 99999;
  font-family: 'Inter', sans-serif;
  font-feature-settings: 'liga' 1, 'kern' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.navbar-custom .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  overflow-x: hidden;
  width: 100%;
}

/* Brand Styles */
.navbar-brand {
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-logo:hover {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #2d3748;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  color: #718096;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* Navigation Links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  list-style: none;
  padding: 0;
}

.nav-item {
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.modern-link {
  color: #2d3748;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

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

.modern-link:hover,
.modern-link:focus {
  color: #3498db;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.link-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modern-link i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.modern-link:hover i {
  transform: scale(1.1);
}

/* Navbar Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.navbar-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  color: white;
}

.btn-quote {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.btn-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
  color: white;
}

/* Mobile Toggle Button */
.modern-toggler {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 999999;
  overflow: hidden;
  cursor: pointer;
}

.modern-toggler::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.modern-toggler:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.modern-toggler:hover::before {
  left: 100%;
}

.modern-toggler:active {
  transform: translateY(0) scale(0.92);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  height: 20px;
  justify-content: center;
  align-items: center;
}

.hamburger .line {
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.modern-toggler[aria-expanded="true"] .hamburger .line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.modern-toggler[aria-expanded="true"] .hamburger .line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.modern-toggler[aria-expanded="true"] .hamburger .line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navbar Collapse */
.navbar-collapse {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 2rem 1rem;
  max-width: 100%;
  overflow: hidden;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop Styles */
@media (min-width: 992px) {
  .modern-toggler {
    display: none !important;
  }
  
  .navbar-collapse {
    position: static;
    display: flex !important;
    flex-basis: auto;
    align-items: center;
    justify-content: flex-end;
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    max-width: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  
  .navbar-nav {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0;
    gap: 0.25rem;
  }
  
  .navbar-actions {
    margin-left: 1rem;
    gap: 0.75rem;
  }
  
  .navbar-actions .btn {
    padding: 0.75rem 1.25rem;
  }
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .navbar-custom {
    padding: 0.5rem 0;
  }
  
  .navbar-custom .container {
    min-height: 70px;
    overflow-x: hidden;
    width: 100%;
  }
  
  .modern-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 999999;
    overflow: hidden;
  }

  .modern-toggler::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
  }

  .modern-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  }

  .modern-toggler:hover::before {
    left: 100%;
  }

  .modern-toggler:active {
    transform: translateY(0) scale(0.92);
  }

  .hamburger {
    gap: 6px;
    width: 28px;
    height: 20px;
  }

  .hamburger .line {
    height: 3px;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .modern-toggler[aria-expanded="true"] .hamburger .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .modern-toggler[aria-expanded="true"] .hamburger .line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .modern-toggler[aria-expanded="true"] .hamburger .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    box-shadow: none;
    padding: 6rem 2rem 2rem;
    max-width: none;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999998;
    overflow-y: auto;
  }

  .navbar-collapse.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-collapse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    z-index: -1;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    margin: 0;
  }

  .modern-link {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .modern-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
  }

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

  .modern-link:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
  }

  .modern-link:active {
    transform: translateX(5px) scale(0.98);
  }

  .link-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }

  .modern-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
  }

  .modern-link:hover i {
    transform: scale(1.2);
  }

  .navbar-actions {
    margin-top: 2rem;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .navbar-actions .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    justify-content: center;
  }

  .btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  }

  .btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: white;
  }

  .btn-quote {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  }

  .btn-quote:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    color: white;
  }

  .navbar-actions .btn:active {
    transform: translateY(0) scale(0.98);
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999999;
  }

  .mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }

  .mobile-menu-close::before,
  .mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #2d3748;
    transition: all 0.3s ease;
  }

  .mobile-menu-close::before {
    transform: rotate(45deg);
  }

  .mobile-menu-close::after {
    transform: rotate(-45deg);
  }

  .navbar-collapse .navbar-nav {
    margin-bottom: 2rem;
  }

  .navbar-collapse .navbar-actions {
    margin-top: auto;
  }
}

@media (max-width: 576px) {
  .navbar-custom {
    padding: 0.25rem 0;
  }

  .brand-logo {
    width: 35px;
    height: 35px;
  }

  .navbar-collapse {
    padding: 5rem 1rem 2rem;
  }

  .modern-link {
    padding: 0.875rem 1.25rem;
  }

  .navbar-actions .btn {
    padding: 0.875rem 1.25rem;
  }
}

/* Scroll Effects */
.navbar-scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.navbar-scrolled .brand-logo {
  transform: scale(0.95);
}

/* Focus Styles */
.modern-toggler:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

.modern-link:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

.navbar-actions .btn:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

.nav-link-focused {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .navbar-custom {
    background: #ffffff;
    border-bottom: 2px solid #000000;
  }

  .modern-link {
    color: #000000;
  }

  .modern-link:hover,
  .modern-link:focus {
    color: #3498db;
    background: #f0f0f0;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .navbar-custom,
  .modern-link,
  .navbar-actions .btn,
  .modern-toggler {
    transition: none;
  }

  .hamburger .line {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .navbar-custom {
    position: static;
    background: none;
    box-shadow: none;
  }

  .modern-toggler,
  .navbar-actions {
    display: none;
  }
} 