/* =============================================
   Core Design Tokens & Theme Variables
   ============================================= */
:root {
  --color-primary:   15 23 42;     /* Deep Navy  / Slate 900  */
  --color-secondary: 20 88 135;    /* Corporate Blue / #145887 */
  --color-accent:    30 124 196;   /* Accent Blue    / #1E7CC4 */
  --color-lightbg:   248 250 252;  /* Slate 50               */
}

/* =============================================
   Custom Scrollbar
   ============================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgb(var(--color-lightbg)); }
::-webkit-scrollbar-thumb {
  background: rgba(var(--color-primary), 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--color-primary), 0.5);
}

/* =============================================
   Ken Burns Hero Image Animation
   ============================================= */
@keyframes kenburns {
  0%   { transform: scale(1)    translate(0,    0   ); }
  100% { transform: scale(1.12) translate(-1%, -1%  ); }
}
.animate-kenburns {
  animation: kenburns 12s ease-out infinite alternate;
}

/* =============================================
   Marquee / Ticker Strip
   ============================================= */
@keyframes marquee {
  0%   { transform: translateX(0);    }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: flex;
  animation: marquee 32s linear infinite;
  white-space: nowrap;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* =============================================
   Text Word-Reveal Animation
   ============================================= */
.reveal-wrapper {
  overflow: hidden;
}
.reveal-word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.215, 0.61, 0.355, 1),
              opacity   0.75s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.reveal-active .reveal-word {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger each word slightly */
.reveal-active .reveal-word:nth-child(1)  { transition-delay: 0.05s; }
.reveal-active .reveal-word:nth-child(2)  { transition-delay: 0.10s; }
.reveal-active .reveal-word:nth-child(3)  { transition-delay: 0.15s; }
.reveal-active .reveal-word:nth-child(4)  { transition-delay: 0.20s; }
.reveal-active .reveal-word:nth-child(5)  { transition-delay: 0.25s; }
.reveal-active .reveal-word:nth-child(6)  { transition-delay: 0.30s; }
.reveal-active .reveal-word:nth-child(7)  { transition-delay: 0.35s; }
.reveal-active .reveal-word:nth-child(8)  { transition-delay: 0.40s; }
.reveal-active .reveal-word:nth-child(9)  { transition-delay: 0.45s; }
.reveal-active .reveal-word:nth-child(10) { transition-delay: 0.50s; }

/* =============================================
   Parallax Container & Layers
   ============================================= */
.parallax-container {
  position: relative;
  overflow: hidden;
}
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  will-change: transform;
}

/* =============================================
   Scroll-Triggered Fade-Up
   ============================================= */
.fade-up-element {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-up-element.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Glassmorphism Utilities
   ============================================= */
.glassmorphic-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10);
}

.glassmorphic-nav {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* =============================================
   Calculator Tabs
   ============================================= */
.calculator-tab {
  transition: border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}
.calculator-tab.active {
  border-color: rgb(var(--color-secondary));
  color: rgb(var(--color-secondary));
}

/* Calculator number input – remove spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] { -moz-appearance: textfield; }

/* =============================================
   Hero Slider Dot Controls
   ============================================= */
.slide-dot {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-dot.active {
  width: 1.75rem;
  background-color: rgb(var(--color-secondary));
}

/* =============================================
   Nav Links – Scroll Spy Active State
   ============================================= */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

/* =============================================
   Service Cards – subtle gradient shimmer on hover
   ============================================= */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* =============================================
   Stat Counter Pulse on Entry
   ============================================= */
@keyframes countPulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%       { opacity: 0.75; transform: scale(0.96); }
}
.stat-counter.animating {
  animation: countPulse 0.4s ease;
}

/* =============================================
   WhatsApp CTA Button
   ============================================= */
a[href*="wa.me"] {
  transition: background-color 0.25s ease, transform 0.25s ease,
              box-shadow 0.25s ease;
}
a[href*="wa.me"]:hover {
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}

/* =============================================
   Form Focus Ring (global override for browsers
   that don't fully support focus-visible)
   ============================================= */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgb(var(--color-secondary));
  box-shadow: 0 0 0 3px rgba(var(--color-secondary), 0.15);
}

/* =============================================
   Testimonial Item Transitions
   ============================================= */
.testimonial-item {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* =============================================
   Hero Slide – opacity transition
   ============================================= */
.hero-slide {
  transition: opacity 0.9s ease-in-out;
}

/* =============================================
   Industries Grid – card hover glow
   ============================================= */
.industry-card {
  transition: border-color 0.3s ease, background 0.3s ease,
              box-shadow 0.3s ease, transform 0.3s ease;
}
.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(30, 124, 196, 0.12);
}

/* =============================================
   Team Cards – left accent border on hover
   ============================================= */
.team-card {
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  border-left-color: rgb(var(--color-accent));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.10);
}

/* =============================================
   Smooth Section Scroll Offset
   (compensate for fixed 80px nav)
   ============================================= */
section[id], div[id] {
  scroll-margin-top: 88px;
}

/* =============================================
   Responsive Typography Adjustments
   ============================================= */
@media (max-width: 640px) {
  .reveal-word {
    transition-duration: 0.6s;
  }
  .fade-up-element {
    transform: translateY(20px);
    transition-duration: 0.65s;
  }
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
  header, footer, #contact form, #calculator, .hero-slide ~ .hero-slide {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}

/* =============================================
   Floating WhatsApp Button Animation & Glow
   ============================================= */
.whatsapp-floating-btn {
  animation: whatsappPulse 2.5s infinite;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
