/* === CUSTOM STYLES === */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060e1a;
}
::-webkit-scrollbar-thumb {
  background: #1e4a7e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2d5f9f;
}

/* Selection */
::selection {
  background: rgba(16, 185, 129, 0.3);
  color: #e8f0f8;
}

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Animated state - only applied by JS for progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .scroll-reveal.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Navbar glass effect */
#navbar.scrolled {
  background: rgba(3, 9, 16, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 74, 126, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold shimmer on hover for special elements */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Subtle pulse for the hero CTA */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.2), 0 0 60px rgba(16, 185, 129, 0.1); }
  50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.3), 0 0 80px rgba(16, 185, 129, 0.15); }
}

#hero a[href="#services"] {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating card animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Apply float to the floating card on about section */
@media (prefers-reduced-motion: no-preference) {
  #about .absolute.-bottom-6.-right-6 {
    animation: float 4s ease-in-out infinite;
  }
}

/* Image hover zoom */
.group img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.group:hover img {
  transform: scale(1.05);
}

/* Gradient text fallback */
.text-transparent.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}
