/* Custom Configurations & Utilities for Escale Nord Business Hub */

/* Smooth scrolling for anchor links is handled by Tailwind's scroll-smooth on html tag, 
   but we add padding for the fixed header */
html {
  scroll-padding-top: 80px;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
.font-heading {
  letter-spacing: 0.05em;
}

/* Glassmorphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-dark {
  background: rgba(17, 24, 39, 0.7); /* gray-900 with opacity */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.1);
  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);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Navigation Scroll States */
nav.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

nav.scrolled .nav-link {
  color: #4b5563; /* text-gray-600 */
}

nav.scrolled .nav-link:hover {
  color: #1c75bc; /* primary */
}

/* Depending on the logo image (if it's white originally, invert it on scroll) */
/* Assuming the logo has white parts that need to be dark when nav is white */
nav.scrolled .logo-img.invert-on-scroll {
  filter: invert(1) brightness(0.5) sepia(1) hue-rotate(180deg) saturate(3); /* Example filter to change color, adjust based on actual asset */
  /* Alternatively, if logo is colorful, just leave it as is or remove brightness(0) invert(1) from the unscrolled state if it started as white */
}

/* Mobile Icon Colors */
nav.scrolled #mobile-menu-btn {
  color: #4b5563;
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f4f6f8;
}

::-webkit-scrollbar-thumb {
  background: #1c75bc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #27aae1;
}

/* Selection */
::selection {
  background-color: rgba(28, 117, 188, 0.2);
  color: #1c75bc;
}
