/* ==========================================================================
   GaganAPPS v2 — Swiss / Engineered-studio
   Sharp edges, tight grids, mono accents, three-color punch (red/blue/lime)
   ========================================================================== */

:root {
  --paper: #fafafa;
  --jet:   #0a0a0a;
  --red:   #ff0800;
  --blue:  #2b4dff;
  --lime:  #c8ff1e;
}

html { -webkit-text-size-adjust: 100%; }
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'ss01','ss02','cv11';
}

/* Selection */
::selection { background: var(--red); color: var(--paper); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(10,10,10,.2); }
.dark ::-webkit-scrollbar-thumb { background: rgba(250,250,250,.2); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* Focus */
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* Reveal animation ---------------------------------------------------------*/
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s cubic-bezier(0.22,1,0.36,1), transform .8s cubic-bezier(0.22,1,0.36,1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Marquee -------------------------------------------------------------------*/
.marquee {
  animation: marquee 40s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Service cards — diagonal hover stripe -------------------------------------*/
.svc-card { transition: background .3s ease; }
.svc-card::before {
  content: '';
  position: absolute;
  inset: auto -50% -50% auto;
  width: 200%; height: 200%;
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(10,10,10,.04) 12px 13px);
  transform: translate(20%, 20%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.dark .svc-card::before {
  background: repeating-linear-gradient(45deg, transparent 0 12px, rgba(250,250,250,.04) 12px 13px);
}
.svc-card:hover::before { opacity: 1; }

/* Status bar — pulse accent -------------------------------------------------*/
.statusbar { font-feature-settings: 'tnum','zero'; }

/* Form — hide select arrow, use mono caret ----------------------------------*/
select {
  background-image: none;
  padding-right: 1rem;
}

/* Input autofill fix */
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color: currentColor !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Mobile type scaling -------------------------------------------------------*/
@media (max-width: 640px) {
  .tracking-swiss { letter-spacing: -0.035em; }
}

/* Reduced motion ------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .marquee { animation: none !important; }
}

/* Grid-line helper (optional, for pages that want visible baselines) --------*/
.baseline-grid {
  background-image:
    linear-gradient(to right, rgba(10,10,10,.04) 1px, transparent 1px);
  background-size: 8.333% 100%;
}
.dark .baseline-grid {
  background-image:
    linear-gradient(to right, rgba(250,250,250,.04) 1px, transparent 1px);
}

/* Sharp corners override for any Tailwind rounded elements inside v2 --------*/
.rounded-sm { border-radius: 2px; }
