@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-main: #000000;
  --text-main: #ffffff;
  --text-muted: #8e8e8e;
  --text-dim: #555555;
  --text-faded: #1a1a1a;
  --border-subtle: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000000;
}

/* Floating Glass Navbar Capsule */
.floating-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90000;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  max-width: 95vw;
}

@media (min-width: 640px) {
  .floating-nav {
    top: 20px;
    gap: 6px;
    padding: 6px 8px;
  }
}

.nav-link-item {
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 9999px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .nav-link-item {
    font-size: 13px;
    padding: 6px 14px;
  }
}

.nav-link-item:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link-item.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Hero Media Wrapper & Smooth Zoom on Hover/Touch */
.hero-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #527ca3;
  cursor: pointer;
  touch-action: manipulation;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

@media (max-width: 768px) {
  .hero-media-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #527ca3;
  }
  .hero-image {
    object-fit: contain;
    max-height: 82vh;
  }
}

.hero-media-wrapper:hover .hero-image,
.hero-media-wrapper:active .hero-image {
  transform: scale(1.035);
}

/* Floating Profile Cursor Follower Card (Desktop Only) */
.hero-cursor-card {
  position: fixed;
  top: 0;
  left: 0;
  width: 335px;
  max-width: 85vw;
  padding: 20px 22px;
  background: rgba(20, 22, 26, 0.78);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.3);
  pointer-events: none !important;
  z-index: 999999 !important;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-500px, -500px, 0);
  transition: opacity 0.25s ease, visibility 0.25s ease;
  will-change: transform;
}

.cursor-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cursor-card.visible {
  opacity: 1;
  visibility: visible;
}

/* PERMANENT MOBILE KILLSWITCH: Never display cursor follower on mobile/tablets under 1024px or touch screens */
@media (max-width: 1024px) {
  #heroCursorCard,
  .hero-cursor-card {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (hover: none) or (pointer: coarse) {
  #heroCursorCard,
  .hero-cursor-card {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Curtain Scroll / Sticky Stacking Cards */
.curtain-card {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  will-change: transform;
  transform-origin: center top;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.9);
}

/* Hardware accelerated video container */
video {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* On mobile, multi-content sections (About & Contact) scroll naturally through full height */
@media (max-width: 768px) {
  .curtain-card-scrollable {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    box-shadow: none !important;
    transform: none !important;
  }
}

/* Pulse Green Dot */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #00ff40;
  box-shadow: 0 0 0 0 rgba(0, 255, 64, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 64, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(0, 255, 64, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 64, 0);
  }
}

/* Marquee / Clients Infinite Ticker */
.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-around;
  gap: 3rem;
  min-width: 100%;
  animation: marquee-scroll 24s linear infinite;
}

@media (min-width: 640px) {
  .marquee-content {
    gap: 4rem;
  }
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Big Pill "Book a Call" */
.book-call-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 780px;
  background-color: #ffffff;
  color: #000000;
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 3rem);
  padding: 1.25rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

@media (min-width: 640px) {
  .book-call-pill {
    padding: 1.75rem 2rem;
  }
}

.book-call-pill:hover {
  background-color: #eaeaea;
  transform: scale(1.015);
  box-shadow: 0 14px 50px rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333333;
}
