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

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --bg-main: #121418;
  --bg-secondary: #1A1D24;
  --bg-card: rgba(30, 34, 42, 0.85);
  --text-primary: #FFFFFF;
  --text-secondary: #D1D5DB;
  --text-muted: #9CA3AF;
  --accent-primary: #FFB300;
  --accent-secondary: #F59E0B;
  --accent-text: #111827;
  --border-color: rgba(255, 179, 0, 0.18);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  width: 100%;
  max-width: 100%;
  overflow-x: clip !important;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main) !important;
  color: var(--text-primary) !important;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow-x: clip !important;
  transition: background-color 0.35s ease, color 0.35s ease;
}

section, footer {
  max-width: 100vw;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Mobile-First Touch & iOS Auto-Zoom Prevention */
@media (max-width: 640px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .ambient-glow-cyan,
  .ambient-glow-solar {
    width: 260px !important;
    height: 260px !important;
    filter: blur(40px) !important;
  }
}

.mobile-safe-bottom {
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
}

/* Hide scrollbar for horizontal pill strips on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Dynamic Theme Overrides for Tailwind Classes */
body .bg-slate-950,
body .bg-slate-950\/98,
body .bg-slate-950\/95,
body .bg-slate-950\/90,
body .bg-slate-950\/85,
body .bg-slate-950\/80,
body .bg-slate-950\/70,
body .bg-slate-950\/60 {
  background-color: var(--bg-main) !important;
}

body .bg-slate-900,
body .bg-slate-900\/95,
body .bg-slate-900\/90,
body .bg-slate-900\/80,
body .bg-slate-900\/70,
body .bg-slate-900\/60,
body .bg-slate-900\/50,
body .bg-slate-900\/40 {
  background-color: var(--bg-secondary) !important;
}

body .text-white {
  color: var(--text-primary) !important;
}

body .text-slate-200,
body .text-slate-300 {
  color: var(--text-secondary) !important;
}

body .text-slate-400,
body .text-slate-500 {
  color: var(--text-muted) !important;
}

body .border-slate-800,
body .border-slate-800\/80,
body .border-slate-900,
body .border-slate-700,
body .border-slate-700\/80,
body .border-slate-700\/70 {
  border-color: var(--border-color) !important;
}

/* Dynamic Brand Accent Mapping */
body .text-cyan-400,
body .hover\:text-cyan-400:hover,
body .group:hover .group-hover\:text-cyan-400 {
  color: var(--accent-primary) !important;
}

body .bg-cyan-500,
body .hover\:bg-cyan-400:hover,
body .bg-gradient-to-r.from-cyan-500 {
  background: var(--accent-primary) !important;
  color: var(--accent-text) !important;
}

body .bg-cyan-950,
body .bg-cyan-950\/60,
body .bg-cyan-500\/15,
body .bg-cyan-500\/10 {
  background-color: color-mix(in srgb, var(--accent-primary) 14%, transparent) !important;
}

body .border-cyan-500,
body .border-cyan-500\/30,
body .border-cyan-500\/40,
body .border-cyan-800,
body .hover\:border-cyan-500:hover {
  border-color: color-mix(in srgb, var(--accent-primary) 45%, transparent) !important;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
}

.glass-nav {
  background: color-mix(in srgb, var(--bg-secondary) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
  .glass-card:hover {
    border-color: var(--accent-primary) !important;
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px color-mix(in srgb, var(--accent-primary) 22%, transparent);
  }
}

/* Light Mode Specific Refinements */
body.theme-mode-light .glass-card {
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
}

body.theme-mode-light .bg-slate-800,
body.theme-mode-light .bg-slate-800\/80 {
  background-color: #E2E8F0 !important;
  color: #1E293B !important;
}

body.theme-mode-light input,
body.theme-mode-light select,
body.theme-mode-light textarea {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

body.theme-mode-light .map-iframe {
  filter: none !important;
}

body.theme-mode-dark .map-iframe {
  filter: invert(90%) hue-rotate(180deg);
}

/* Gradients */
.text-gradient-cyan {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-solar {
  background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-tech {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

/* Background Cyber Grid */
.bg-grid-pattern {
  background-size: 50px 50px;
  background-image: 
    linear-gradient(to right, color-mix(in srgb, var(--text-primary) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text-primary) 4%, transparent) 1px, transparent 1px);
}

/* Ambient Radial Glows */
.ambient-glow-cyan {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-primary) 15%, transparent) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

.ambient-glow-solar {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-secondary) 12%, transparent) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(50px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Floating WhatsApp Button (Desktop) */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.7);
}

/* Brand Marquee Slider */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 32s linear infinite;
}

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