/* ══════════════════════════════════════
   FORCE LIGHT MODE — ALWAYS
   Prevents system dark mode from
   overriding the website theme
   ══════════════════════════════════════ */

:root {
  color-scheme: light only;
}

html {
  color-scheme: light only;
  background-color: #FFFFFF;
}

body {
  background-color: #FFFFFF;
  color: #1D1D1D;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Block ALL dark mode overrides from browser */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only;
    background-color: #FFFFFF !important;
    color: #1D1D1D !important;
  }

  html, body {
    background-color: #FFFFFF !important;
    color: #1D1D1D !important;
  }

  /* Force all elements back to light theme */
  * {
    background-color: unset;
    color: unset;
    border-color: unset;
  }

  /* Restore your specific backgrounds explicitly */
  body { background-color: #FFFFFF !important; color: #1D1D1D !important; }
  #hero { background: #f2fced !important; }
  #statement { background: #F5F5F7 !important; }
  #services-wrapper { background: #FFFFFF !important; }
  #logos { background: #FFFFFF !important; }
  #stats { background: #FFFFFF !important; }
  #testimonials { background: #F5F5F7 !important; }
  #tools-marquee { background: #FFFFFF !important; }
  #contact { background: #FFFFFF !important; }
  #footer { background: #0F0F0F !important; }
  #page-loader { background: #FFFFFF !important; }

  /* Restore navbar */
  #navbar { background: transparent !important; }
  #navbar.scrolled { background: rgba(255,255,255,0.85) !important; }

  /* Restore cards */
  .tcard { background: #FFFFFF !important; color: #1D1D1D !important; }
  .service-slide { background: #FFFFFF !important; }
  .stat-card { background: #FFFFFF !important; }
  .mpill { background: #FFFFFF !important; color: #54595F !important; }

  /* Restore text colors */
  .section-title { color: #1D1D1D !important; }
  .section-tag { color: #4B9B44 !important; }
  h1, h2, h3, h4, h5, h6 { color: #1D1D1D !important; }
  p { color: #54595F !important; }
  .hero-headline, #hero-headline { color: #1D1D1D !important; }
  #hero-sub { color: #54595F !important; }

  /* Restore navbar text */
  .nav-links a { color: #54595F !important; }
  .logo-word-a { color: #1D1D1D !important; }
  .logo-word-b { color: #4B9B44 !important; }

  /* Restore service text */
  .slide-title { color: #1D1D1D !important; }
  .slide-desc { color: #54595F !important; }
  .slide-bullets li { color: #54595F !important; }

  /* Restore testimonials */
  .tquote { color: #54595F !important; }
  .tname { color: #1D1D1D !important; }
  .trole { color: #9AA0A6 !important; }
  .tplatform { color: #9AA0A6 !important; }

  /* Restore stats */
  .rnum { color: #1D1D1D !important; }
  .ring-label { color: #9AA0A6 !important; }

  /* Tools marquee */
  .tm-word { -webkit-text-stroke-color: #1D1D1D !important; }
  .tm-item { color: #1D1D1D !important; }
  .tm-label { color: #9AA0A6 !important; }

  /* Footer stays dark — it should always be dark */
  #footer, #footer * { background-color: unset; }
  #footer { background: #0F0F0F !important; }
  .footer-col h4 { color: #FFFFFF !important; }
  .footer-col a { color: rgba(255,255,255,0.5) !important; }
  .footer-desc { color: rgba(255,255,255,0.4) !important; }
  .footer-bottom p { color: rgba(255,255,255,0.2) !important; }
  .footer-bg-word { color: rgba(255,255,255,0.03) !important; }
  .logo-word-a.footer-logo { color: #FFFFFF !important; }
}

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

:root {
  /* Backgrounds — HexaClicks light theme */
  --bg:              #FFFFFF;
  --bg-2:            #F5F5F7;
  --bg-card:         #FFFFFF;
  --bg-card-hover:   #F8FAF6;

  /* Brand Accents — HexaClicks Green + Lime */
  --accent:          #4B9B44;
  --accent-2:        #8DC63F;
  --accent-lime:     #A4DE02;
  --accent-glow:     #8DC63F;
  --accent-muted:    rgba(75,155,68,0.12);
  --highlight:       #F5C542;

  /* Legacy aliases (keep old component rules working) */
  --accent-v:        #8DC63F;
  --accent-c:        #8DC63F;

  /* Gradient — HexaClicks signature lime → green */
  --gradient:        linear-gradient(197deg, #A4DE02 0%, #4B9B44 70%);
  --gradient-glow:   linear-gradient(197deg, #A4DE02 0%, #4B9B44 70%);

  /* Text */
  --text:            #1D1D1D;
  --text-2:          #54595F;
  --text-3:          #9AA0A6;

  /* Borders */
  --border:          rgba(29,29,29,0.08);
  --border-hover:    rgba(75,155,68,0.45);

  /* Glass effect */
  --glass-bg:        rgba(255,255,255,0.85);
  --glass-border:    rgba(29,29,29,0.06);

  /* Footer */
  --footer-bg:       #0F0F0F;

  /* Shadows */
  --shadow-sm:       0 4px 20px rgba(0,0,0,0.06);
  --shadow-md:       0 8px 32px rgba(75,155,68,0.22);
  --shadow-lg:       0 16px 60px rgba(75,155,68,0.32);
  --shadow-glow:     0 0 40px rgba(75,155,68,0.15);

  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.33, 1, 0.68, 1);
}

html { scroll-behavior: auto; } /* Lenis handles scroll */

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none; /* Hide default — custom cursor takes over */
  line-height: 1.5;
}

/* Respect users who can't use a custom cursor */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

img, svg { display: block; max-width: 100%; }

button, input {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

section {
  position: relative;
  width: 100%;
}

::selection {
  background: var(--accent);
  color: #FFFFFF;
}

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #4B9B44, #A4DE02);
  z-index: 9997;
  box-shadow: 0 0 8px rgba(75,155,68,0.6);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-tag.light { color: rgba(255,255,255,0.6); }

.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text);
}

/* Buttons */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem;
  background: var(--gradient);
  color: white;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-standard), box-shadow 0.3s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  z-index: -1;
}

.btn-primary:hover .btn-shimmer {
  animation: shimmer 1.1s ease forwards;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.5rem;
  color: var(--accent);
  border: 1.5px solid rgba(75,155,68,0.35);
  border-radius: 100px;
  background: rgba(75,155,68,0.05);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(75,155,68,0.6);
  background: rgba(75,155,68,0.1);
}

.btn-arrow { transition: transform 0.3s var(--ease-standard); }
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }

/* ── GLOBAL PARTICLES CANVAS ── */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* clicks pass through to page */
  display: block;
}

/* Ensure ALL sections, nav, footer sit above the particle canvas */
#navbar,
#dot-nav,
#mobile-nav,
#page-loader,
#cursor-dot,
#cursor-ring,
#scroll-progress,
#hero,
#statement,
#services-wrapper,
#logos,
#stats,
#testimonials,
#contact,
#footer,
main,
section {
  position: relative;
  z-index: 1;
}

/* Fixed/overlay elements need their original stacking back
   (the blanket rule above would flatten them to z-index 1) */
#navbar { position: fixed; z-index: 900; }
#dot-nav { position: fixed; z-index: 800; }
#mobile-nav { position: fixed; z-index: 1000; }
#page-loader { position: fixed; z-index: 9999; }
#cursor-dot, #cursor-ring { position: fixed; z-index: 9998; }
#scroll-progress { position: fixed; z-index: 9997; }

/* Hero canvas (Three.js scene) must stay above particle canvas */
#hero-canvas {
  z-index: 1;
}
