/* Navbar Scroll Effects */
.header-scrolled {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(20, 20, 20, 0.92) 50%,
    rgba(255, 108, 8, 0.08) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-scrolled #nav-container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.header-scrolled #logo {
  transform: scale(0.75);
}

/* Hamburger Animation */
#hamburger.active #line1 {
  transform: rotate(45deg) translate(8px, 8px);
  width: 7px;
  margin-top: 0;
}

#hamburger.active #line2 {
  opacity: 0;
  transform: translateX(-10px);
}

#hamburger.active #line3 {
  transform: rotate(-45deg) translate(8px, -8px);
  width: 7px;
  margin-top: 0;
}

/* Menu Overlay Animations */
#menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#menu-overlay.active #menu-content {
  transform: translateX(0);
}

#menu-backdrop {
  opacity: 0;
  transition: opacity 0.5s ease;
}

#menu-overlay.active #menu-backdrop {
  opacity: 1;
}

/* Smooth entry animation for navbar */
#main-header {
  transform: translateY(-100%);
  animation: slideDown 0.8s ease-out 0.5s forwards;
}

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

/* Footer Styles */
footer * {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

footer input:focus {
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 0 2px rgba(255, 108, 8, 0.1);
}

footer button {
  backdrop-filter: blur(10px);
}

footer a:hover {
  transform: translateY(-1px);
}

.group:hover .group-hover\:shadow-xl {
  box-shadow: 0 25px 50px -12px rgba(255, 108, 8, 0.25);
}

footer a.group:hover span {
  transform: translateX(0.5rem);
  border-left-color: #ff6c08;
}

/* Mobile overflow prevention */
body {
  overflow-x: hidden;
}

@media (max-width: 640px) {
  #menu-content {
    border-top-left-radius: 1.5rem;
    border-bottom-left-radius: 1.5rem;
  }

  footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.footer-dynamic-menu li {
  list-style-type: none !important;
}

/* START CSS FOR PAGES */

/* Body Background */
.bytnexo-home-body {
  font-family: "Montserrat", sans-serif;
  background: radial-gradient(
      100% 150% at 70% 10%,
      rgba(255, 108, 8, 0.12),
      transparent 60%
    ),
    radial-gradient(
      90% 200% at 10% 80%,
      rgba(255, 255, 255, 0.05),
      transparent 70%
    ),
    #000;
  color: #fff;
}

/* Floating Glow Elements */
.glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 108, 8, 0.15), transparent 70%);
  filter: blur(90px);
  pointer-events: none;
}

.float-slow {
  animation: bytnexo-float 14s ease-in-out infinite;
}

.float-delayed {
  animation: bytnexo-float 18s ease-in-out infinite 3s;
}

@keyframes bytnexo-float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(15px);
  }
}

/* Animated gradient text */
.shine {
  background: linear-gradient(90deg, #fff, #ff6b08, #d9d9d9);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: bytnexo-shine 6s linear infinite;
}

@keyframes bytnexo-shine {
  to {
    background-position: -200% center;
  }
}

/* Divider line */
.divider {
  height: 1px;
  width: 85%;
  margin: 3rem auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

/* Fade + slide animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover effects */
.bytnexo-card-hover {
  transition: all 0.3s ease;
}

.bytnexo-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px -8px rgba(255, 108, 8, 0.2);
  border-color: rgba(255, 108, 8, 0.25);
}

/* Service item hover */
.bytnexo-service-hover {
  transition: all 0.3s ease;
}

.bytnexo-service-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 108, 8, 0.4);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .shine,
  .float-slow,
  .float-delayed,
  .fade-up,
  .bytnexo-card-hover,
  .bytnexo-service-hover {
    animation: none !important;
    transition: none !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .divider {
    width: 90%;
    margin: 2rem auto;
  }
}
