/* Base resets and premium defaults */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background-color: #030305;
  color: #f8fafc;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
  background: rgba(34, 211, 238, 0.25);
  color: #fff;
}

/* Header states */
#site-header {
  transform: translateY(-100%);
  background: transparent;
}

#site-header.is-visible {
  transform: translateY(0);
  background: rgba(3, 3, 5, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#site-header.is-top {
  transform: translateY(0);
  background: transparent;
}

/* Logo hover glow */
.logo-icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.4), rgba(139, 92, 246, 0.4));
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.5s ease;
  z-index: -1;
}

.logo-lockup:hover .logo-icon::before {
  opacity: 1;
}

/* Nav link underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #22d3ee;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  transform: translateX(-50%) scale(1);
}

/* Hero 3D canvas */
#hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Video placeholder animated shimmer */
.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  60% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* Service card hover lift */
.service-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5), 0 0 40px -10px rgba(34, 211, 238, 0.1);
}

/* Smooth image placeholder */
.image-placeholder svg,
.chat-placeholder button {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile menu open state */
#mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.75rem;
  }
  
  .service-card {
    margin-top: 0 !important;
  }
}
