/* Base & Typography */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A1A1A;
}
::-webkit-scrollbar-thumb {
  background: #E85D4A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D14535;
}

/* Navigation */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E85D4A;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Navbar scroll state */
.nav-scrolled {
  background: rgba(17, 17, 17, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled .nav-logo-text {
  color: #fff !important;
}

/* Mobile Menu */
.mobile-nav-link {
  position: relative;
}
.mobile-nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #E85D4A;
  margin: 4px auto 0;
  transition: width 0.3s ease;
}
.mobile-nav-link:hover::after {
  width: 60%;
}

/* Service Cards */
.service-card {
  position: relative;
}

/* Gallery Items */
.gallery-item {
  height: 240px;
}
@media (min-width: 1024px) {
  .gallery-item {
    height: 100%;
  }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger delays for service cards */
.service-card:nth-child(1) { transition-delay: 0ms; }
.service-card:nth-child(2) { transition-delay: 80ms; }
.service-card:nth-child(3) { transition-delay: 160ms; }
.service-card:nth-child(4) { transition-delay: 240ms; }
.service-card:nth-child(5) { transition-delay: 320ms; }
.service-card:nth-child(6) { transition-delay: 400ms; }

/* Float animation for hero cards */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-card-1 {
  animation: float 6s ease-in-out infinite;
}
.float-card-2 {
  animation: float 5s ease-in-out infinite 1s;
}
.float-card-3 {
  animation: float 7s ease-in-out infinite 0.5s;
}

/* Pulse dot */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.animate-pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Hero text gradient */
.hero-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #ffd4cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
