@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Syne:wght@600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  --color-primary: #cbee00;
  --color-primary-glow: rgba(203, 238, 0, 0.35);
  --color-accent: #38bdf8;
  --color-bg-dark: #06080d;
  --color-card-bg: rgba(14, 18, 28, 0.7);
  --color-card-border: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: #e2e8f0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  min-width: 320px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.font-heading {
  font-family: var(--font-heading);
}

.font-mono-tech {
  font-family: var(--font-mono);
}

/* Fluid Typography Helpers */
.hero-title-clamp {
  font-size: clamp(1.85rem, 6vw + 0.5rem, 4.5rem);
  line-height: 1.12;
  word-break: normal;
  overflow-wrap: break-word;
}

.section-title-clamp {
  font-size: clamp(1.6rem, 4vw + 0.5rem, 3rem);
  line-height: 1.2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #080b12;
}
::-webkit-scrollbar-thumb {
  background: #202738;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(13, 17, 27, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .glass-panel-hover:hover {
    border-color: rgba(203, 238, 0, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.7), 0 0 24px -4px var(--color-primary-glow);
  }
}

/* Gradient Text matching Logo Chartreuse */
.text-gradient-lime {
  background: linear-gradient(135deg, #ffffff 0%, #dcf836 45%, #cbee00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Hero Video Background */
.hero-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: brightness(0.55) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 8, 13, 0.45) 0%, rgba(6, 8, 13, 0.88) 75%, #06080d 100%),
              linear-gradient(180deg, rgba(6, 8, 13, 0.35) 0%, rgba(6, 8, 13, 0.95) 90%, #06080d 100%);
  z-index: 1;
}

/* Logo Marquee Animation */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
  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: 3.5rem;
  min-width: 100%;
  animation: marquee 26s linear infinite;
  will-change: transform;
}

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

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

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

.pulse-glow-effect {
  animation: pulse-glow 6s infinite ease-in-out;
}

/* Badge styles */
.badge-lime {
  background: rgba(203, 238, 0, 0.12);
  border: 1px solid rgba(203, 238, 0, 0.4);
  color: #cbee00;
}

/* Mobile Navigation overlay */
.mobile-nav-backdrop {
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overscroll-behavior: contain;
}

.mobile-nav-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding-top: max(1.5rem, env(safe-area-inset-top));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

/* Service Card Image Hover Effect */
.service-icon-wrapper {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .glass-panel:hover .service-icon-wrapper {
    transform: scale(1.12) rotate(3deg);
    background: linear-gradient(135deg, rgba(203, 238, 0, 0.25), rgba(56, 189, 248, 0.25));
  }
}

/* Prevent auto-zoom on iOS inputs */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Mobile Specific Optimizations */
@media (max-width: 640px) {
  .marquee-content {
    gap: 2rem;
    animation-duration: 20s;
  }

  /* Ensure touch elements meet 44px touch target guidelines */
  button, a.btn-touch, .mobile-nav-link {
    min-height: 44px;
  }

  /* Safe area padding for bottom floating WhatsApp button */
  .floating-wa-btn {
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    right: 1.25rem;
  }
}
