/* =======================
   SCROLL NAVBAR & CHEVRON
   ======================= */

/* Hidden navbar that slides in on scroll */
.header.header-2 {
  position: fixed;
  top: -100px; /* Hidden initially */
  left: 0;
  right: 0;
  z-index: 99999;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  visibility: hidden;
  width: 100%;
}

/* Navbar visible state when scrolled */
.header.header-2.navbar-visible {
  top: 0;
  opacity: 1;
  visibility: visible;
}

/* Original navbar area styling when visible */
.header.header-2.navbar-visible .navbar-area {
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

/* Keep original navbar styling - no overrides needed */

/* =======================
   SCROLL DOWN CHEVRON
   ======================= */

/* Scroll down chevron */
.scroll-chevron {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hidden state */
.scroll-chevron.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(20px);
}

/* Chevron arrow styling */
.scroll-chevron .chevron-arrow {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
  display: inline-block;
  cursor: pointer;
}

/* Legacy support for i element if still exists */
.scroll-chevron i {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-family: "LineIcons" !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  speak: none !important;
}

/* Hover effect for new arrow */
.scroll-chevron:hover .chevron-arrow {
  color: #3b82f6;
  transform: scale(1.2);
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

/* Hover effect for legacy icon */
.scroll-chevron:hover i {
  color: #3b82f6;
  transform: scale(1.2);
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-logo {
    height: 40px;
  }
  
  .scroll-chevron {
    bottom: 40px;
  }
  
  .scroll-chevron i {
    font-size: 2rem;
  }
  
  .scroll-chevron .chevron-arrow {
    font-size: 2rem;
  }
  
  .navbar-nav .nav-item .nav-link,
  .navbar-nav .nav-item .page-scroll {
    padding: 0.5rem;
    margin: 0.25rem 0;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 35px;
  }
  
  .scroll-chevron i {
    font-size: 1.8rem;
  }
  
  .scroll-chevron .chevron-arrow {
    font-size: 1.8rem;
  }
}

/* Ensure hero section has proper positioning context */
.header_slider {
  position: relative;
}

/* Override any existing header positioning */
.hero-section-wrapper-2 {
  position: static;
}

/* Chevron container specific fixes */
.header_slider .slider-section {
  position: relative;
  overflow: hidden;
}

/* Hide chevron when it might conflict */
@media (max-height: 600px) {
  .scroll-chevron {
    display: none !important;
  }
}

/* When chevron is hidden by JavaScript */
.scroll-chevron[style*="opacity: 0"] {
  pointer-events: none !important;
  z-index: -1 !important;
}
