/* ============================================================
   INFOYA PREMIUM UI SYSTEM v2.0
   All premium design features centralized here.
   Loaded after app.css to override and extend Tailwind base.
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES (DESIGN TOKENS) ─────────────── */
:root {
  /* Brand Colors */
  --brand-red:       #E71A4B;
  --brand-red-hover: #FF4F6D;
  --brand-blue:      #4A86B8;
  --brand-navy:      #0F1F3D;
  --brand-bg:        #F6F9FC;

  /* Text */
  --text-primary:    #0B1320;
  --text-secondary:  #5F6C7B;

  /* UI */
  --border-ui:       #E4E9F0;

  /* Gradients */
  --grad-primary:    linear-gradient(135deg, #4A86B8 0%, #0F1F3D 100%);
  --grad-accent:     linear-gradient(135deg, #E71A4B 0%, #FF4F6D 100%);
  --grad-hero:       linear-gradient(135deg, #0F1F3D 0%, #1b3560 50%, #0F1F3D 100%);

  /* Shadows */
  --shadow-sm:   0 5px 15px rgba(0,0,0,0.05);
  --shadow-md:   0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg:   0 20px 40px rgba(0,0,0,0.12);
  --shadow-red:  0 10px 30px rgba(231,26,75,0.3);
  --shadow-blue: 0 10px 30px rgba(74,134,184,0.25);

  /* Typography System */
  --font-heading:    'Poppins', 'Outfit', sans-serif;
  --font-body:       'Inter', sans-serif;
  --lh-body:         1.65;

  /* Motion */
  --ease-out:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --dur-fast:   0.25s;
  --dur-normal: 0.35s;
  --dur-slow:   0.6s;
}

/* ── 1.1 DARK MODE OVERRIDES ──────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --brand-bg:       #0A1320;
    --text-primary:   #F6F9FC;
    --text-secondary: #94A3B8;
    --border-ui:      rgba(255, 255, 255, 0.12);
    --shadow-sm:      0 5px 15px rgba(0,0,0,0.3);
    --shadow-md:      0 10px 30px rgba(0,0,0,0.4);
    --shadow-lg:      0 20px 40px rgba(0,0,0,0.5);
  }
  
  body {
    background-color: #0A1320;
    color: var(--text-primary);
  }

  .infoya-card, .testimonial-card {
    background: #0F1F3D;
  }
  
  .bg-white {
    background-color: #0A1320 !important;
  }
  
  .bg-gray-50, .bg-slate-50 {
    background-color: #0F1F3D !important;
  }
}

/* ── 2. GLOBAL BASE OVERRIDES ──────────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: #fff;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
}

p { line-height: var(--lh-body); }

a { transition: color var(--dur-fast) ease; }

img {
  border-radius: 12px;
  transition: transform var(--dur-normal) var(--ease-out);
}

img:hover { transform: scale(1.02); }

/* Typography Scale */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.5rem; }

/* ── 3. SCROLL PROGRESS BAR ────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--grad-accent);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── 4. PAGE LOADER ────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--brand-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader .loader-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  animation: loader-pulse 1s ease infinite alternate;
}

#page-loader .loader-logo span { color: var(--brand-red); }

#page-loader .loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--brand-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loader-pulse {
  from { opacity: 0.7; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── 5. PAGE TRANSITION OVERLAY ───────────────────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  background: var(--brand-navy);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* ── 6. FLOATING CTA BUTTON ────────────────────────────────── */
#floating-cta {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  animation: float-cta 3s ease-in-out infinite;
}

#floating-cta a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--grad-accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(231,26,75,0.4);
  transition: all var(--dur-fast) ease;
  border-radius: 50px;
  white-space: nowrap;
}

#floating-cta a:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 35px rgba(231,26,75,0.5);
}

#floating-cta a::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid rgba(231,26,75,0.4);
  animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.25); opacity: 0; }
}

@keyframes float-cta {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* ── 7. STICKY NAVBAR ──────────────────────────────────────── */
nav#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  transition: all 0.3s ease;
}

/* ── 8. NAVIGATION LINKS ───────────────────────────────────── */
.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  transition: width var(--dur-normal) var(--ease-out);
  border-radius: 2px;
}

.nav-link:hover { color: var(--brand-red); }
.nav-link:hover::after { width: 100%; }

.nav-link.active {
  color: var(--brand-red);
  font-weight: 600;
}

.nav-link.active::after { width: 100%; }

/* ── 9. BUTTON SYSTEM ──────────────────────────────────────── */

/* Primary Brand Button */
.btn-brand-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--brand-red);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-brand-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-brand-primary:hover {
  background: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
  color: #fff;
}

.btn-brand-primary:hover::before { left: 100%; }

/* Secondary Brand Button */
.btn-brand-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: var(--brand-blue);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid var(--brand-blue);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
}

.btn-brand-secondary:hover {
  background: var(--brand-blue);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

/* Ghost Button */
.btn-brand-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-primary);
  border-radius: 10px;
  border: 1px solid var(--border-ui);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: all var(--dur-fast) ease;
}

.btn-brand-ghost:hover {
  background: var(--brand-bg);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* Override existing btn-primary class */
.btn-primary {
  background: var(--brand-red) !important;
  border-radius: 10px !important;
  padding: 12px 24px !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  transition: all var(--dur-fast) var(--ease-out) !important;
}

.btn-primary:hover {
  background: var(--brand-red-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-red) !important;
}

/* ── 10. CARD SYSTEM ───────────────────────────────────────── */
.infoya-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border-ui);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.infoya-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-normal) ease;
}

.infoya-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.infoya-card:hover::before { transform: scaleX(1); }

/* Glass Card Enhancement */
.glass-card {
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  background: rgba(255,255,255,0.85) !important;
  box-shadow: var(--shadow-md) !important;
  transition: all var(--dur-normal) var(--ease-out) !important;
}

.glass-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* ── 11. ICON SYSTEM ───────────────────────────────────────── */
.icon-container {
  width: 56px;
  height: 56px;
  background: var(--brand-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  transition: all var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}

.icon-container:hover,
.group:hover .icon-container {
  background: var(--brand-blue);
  color: #fff;
  transform: scale(1.1);
}

svg.icon {
  transition: transform var(--dur-fast) var(--ease-spring);
}

.icon-hover:hover svg.icon { transform: scale(1.1); }

/* ── 12. SECTION HEADER COMPONENT ─────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
}

/* ── 13. HERO ANIMATED GRADIENT ────────────────────────────── */
.hero-gradient-bg {
  background: linear-gradient(135deg, #0F1F3D 0%, #1b3a6b 25%, #0F1F3D 50%, #162d55 75%, #0F1F3D 100%);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── 14. PAGE HEADER (All Inner Pages) ─────────────────────── */
.page-hero {
  padding: 96px 0 64px;
  background: var(--brand-navy);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,134,184,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-blue), transparent);
}

.page-hero h1 {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* Decorative glows on page hero */
.page-hero .glow-1 {
  position: absolute;
  top: -100px; left: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(231,26,75,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero .glow-2 {
  position: absolute;
  bottom: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(74,134,184,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── 15. SCROLL REVEAL ANIMATIONS ─────────────────────────── */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.reveal           { transform: translateY(30px); }
.reveal-left      { transform: translateX(-40px); }
.reveal-right     { transform: translateX(40px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered children */
.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-group.visible > *:nth-child(1) { transition-delay: 0s;    opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.1s;  opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.2s;  opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.3s;  opacity: 1; transform: none; }

/* ── 16. HERO FADE-IN ANIMATION ────────────────────────────── */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(24px); }
  to   { opacity:1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }

/* ── 17. STATISTICS COUNTER ────────────────────────────────── */
.stat-counter {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 6px;
}

/* ── 18. FORM SYSTEM ───────────────────────────────────────── */
.form-group {
  position: relative;
  margin-bottom: 24px;
}

/* Floating Label */
.form-floating {
  position: relative;
}

.form-floating input,
.form-floating textarea {
  width: 100%;
  padding: 20px 16px 8px;
  border: 1px solid var(--border-ui);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
}

.form-floating select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.2em;
}

.form-floating label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
  transition: all var(--dur-fast) var(--ease-out);
  background: #fff;
  padding: 0 4px;
}

.form-floating input:focus,
.form-floating textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(74,134,184,0.18);
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label,
.form-floating select:focus + label,
.form-floating select:not([value=""]) + label,
.form-floating select + label,
.form-floating select.form-input + label {
  top: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue);
}

/* Ensure select looks correct with floating label */
.form-floating select.form-input {
    padding-top: 20px !important;
    padding-bottom: 8px !important;
}

/* Standard form-input override */
.form-input {
  width: 100% !important;
  border: 1px solid var(--border-ui) !important;
  border-radius: 10px !important;
  padding: 14px 16px !important;
  font-size: 1rem !important;
  color: var(--text-primary) !important;
  background: #fff !important;
  outline: none !important;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease !important;
}

.form-input:focus {
  border-color: var(--brand-blue) !important;
  box-shadow: 0 0 0 3px rgba(74,134,184,0.18) !important;
}

/* ── 19. TESTIMONIAL CARD ──────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border-ui);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-normal) ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-blue);
  transform: translateY(-4px);
}

/* Resume Viewer Modal Override */
#resumeViewer {
    left: 280px !important; /* Move past admin sidebar */
    width: calc(100vw - 280px) !important;
    padding: 2rem !important;
}

#resumeViewer > div {
    border-radius: 1.5rem !important;
}

/* ── 20. BACKGROUND PATTERNS ───────────────────────────────── */
.bg-texture-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

.bg-grid-subtle::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(228,233,240,0.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(228,233,240,0.5) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.4;
}

/* ── 21. IMAGE SYSTEM ──────────────────────────────────────── */
img.premium-img {
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) ease;
}

img.premium-img:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}

/* Lazy loading blur-up */
img[loading="lazy"] {
  filter: blur(0);
  transition: filter 0.3s ease;
}

/* ── 22. MICRO-INTERACTIONS ────────────────────────────────── */

/* Link hover underline animation */
a.animated-link {
  position: relative;
  text-decoration: none;
}

a.animated-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--brand-red);
  transition: width var(--dur-normal) ease;
}

a.animated-link:hover::after { width: 100%; }

/* Icon bounce on hover */
.hover-icon {
  transition: transform var(--dur-fast) var(--ease-spring);
}

.hover-icon:hover { transform: scale(1.15) rotate(-5deg); }

/* Button shimmer sweep */
@keyframes shimmer-sweep {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* ── 23. CURSOR GLOW (Desktop only) ────────────────────────── */
#cursor-glow {
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, rgba(231,26,75,0.35) 0%, transparent 70%);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease, opacity 0.3s ease;
  opacity: 0;
}

/* ── 24. SECTION BACKGROUNDS ───────────────────────────────── */
.section-white  { background: #fff; }
.section-soft   { background: var(--brand-bg); }
.section-navy   { background: var(--brand-navy); }
.section-gradient {
  background: var(--grad-primary);
  color: #fff;
}

/* ── 25. FOOTER BRAND OVERRIDES ────────────────────────────── */
footer.brand-footer {
  background: var(--brand-navy) !important;
}

footer.brand-footer a:hover {
  color: var(--brand-red) !important;
}

/* ── 26. ACCESSIBILITY ─────────────────────────────────────── */
*:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 27. REDUCED MOTION ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #page-loader { display: none !important; }
  .hero-gradient-bg { animation: none !important; }
}

/* ── 28. MOBILE ADAPTATIONS ────────────────────────────────── */
@media (max-width: 768px) {
  .hero-gradient-bg { animation-duration: 20s; }

  .infoya-card:hover,
  .glass-card:hover {
    transform: translateY(-4px);
  }

  #floating-cta a {
    padding: 12px 18px;
    font-size: 0.8125rem;
  }

  .stat-counter { font-size: 2.25rem; }

  #cursor-glow { display: none !important; }
}

/* ── 29. PRIMARY COLOR OVERRIDES (ENSURE BRAND RED) ─────────── */
.bg-primary-600  { background-color: var(--brand-red)       !important; }
.bg-primary-700  { background-color: var(--brand-red-hover) !important; }
.bg-primary-500  { background-color: var(--brand-red)       !important; }
.text-primary-600 { color: var(--brand-red) !important; }
.text-primary-500 { color: var(--brand-red) !important; }
.border-primary-500 { border-color: var(--brand-red) !important; }
.border-primary-600 { border-color: var(--brand-red) !important; }
.hover\:bg-primary-700:hover { background-color: var(--brand-red-hover) !important; }
.hover\:text-primary-600:hover { color: var(--brand-red) !important; }
.hover\:text-primary-400:hover { color: var(--brand-red-hover) !important; }
.text-primary-400 { color: var(--brand-red-hover) !important; }
.ring-primary-500 { --tw-ring-color: var(--brand-red) !important; }
.focus\:ring-primary-500:focus { --tw-ring-color: rgba(231,26,75,0.3) !important; }
.focus\:border-primary-500:focus { border-color: var(--brand-red) !important; }
.hover\:border-primary-500:hover { border-color: var(--brand-red) !important; }
.shadow-primary-900\/50 { --tw-shadow-color: rgba(231,26,75,0.3) !important; }
.group-hover\:bg-primary-600 { background-color: var(--brand-red) !important; }
.group:hover .group-hover\:bg-primary-600 { background-color: var(--brand-red) !important; }
.group:hover .group-hover\:text-primary-600 { color: var(--brand-red) !important; }
.group:hover .group-hover\:text-primary-700 { color: var(--brand-red-hover) !important; }

/* Brand blue utility overrides */
.text-brandblue-500 { color: var(--brand-blue) !important; }
.bg-brandblue-500   { background-color: var(--brand-blue) !important; }

/* ── 30. ANIMATION UTILITIES ───────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.5s ease both; }

/* Marquee (testimonials) pause on hover */
.hover\:pause:hover { animation-play-state: paused; }

/* ── 31. CONTAINER + LAYOUT ────────────────────────────────── */
.infoya-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 1440px) {
  .infoya-container { max-width: 1440px; }
}

.section-padding    { padding-top: 96px; padding-bottom: 96px; }
.section-padding-sm { padding-top: 64px; padding-bottom: 64px; }

/* ── 32. SCROLLBAR SYSTEM ──────────────────────────────────── */
.scrollbar-premium::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-premium::-webkit-scrollbar-track {
  background: transparent;
}

.scrollbar-premium::-webkit-scrollbar-thumb {
  background: rgba(15, 31, 61, 0.1);
  border-radius: 10px;
}

.scrollbar-premium::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 31, 61, 0.2);
}

/* ── 33. DOSSIER SPECIFIC LAYOUT ────────────────────────────── */
.dossier-modal-content {
  display: flex;
  flex-direction: column;
  height: 96vh;
  width: calc(100vw - 320px);
  max-width: 1400px;
  margin-left: auto;
  margin-right: 20px;
  overflow: hidden;
  position: relative;
  z-index: 1000;
  background: white !important;
  border-radius: 2rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.dossier-solid-bg {
  background-color: #ffffff !important;
  opacity: 1 !important;
}

@media (prefers-color-scheme: dark) {
  .dossier-solid-bg {
    background-color: #0f172a !important; 
  }
}

.dossier-scroll-body {
  flex: 1;
  overflow-y: auto !important;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.dossier-header, .dossier-footer {
  flex-shrink: 0;
  z-index: 20;
}

.dossier-modal-content .px-10 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.dossier-modal-content .py-10 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.dossier-modal-content .space-y-12 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.dossier-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 4px;
  display: block;
}

.dossier-value {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  display: block;
}
/* ── 23. LOGO STRIP SECTION ───────────────────────────────── */
.logo-strip-section {
    padding: 80px 0;
    background: #fff; /* Aligns with current theme white bg below hero */
    position: relative;
    overflow: hidden;
}

.logo-strip-label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    color: #4A86B8;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
}

.logo-strip-heading {
    font-size: 32px;
    font-weight: 600;
    color: #0B1320;
    text-align: center;
    margin-bottom: 40px;
    font-family: var(--font-heading);
}

.logo-strip-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

/* Edge Fades */
.logo-strip-container::before,
.logo-strip-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-strip-container::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, transparent 100%);
}

.logo-strip-container::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, transparent 100%);
}

.logo-strip-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 30px;
    animation: logo-scroll 25s linear infinite;
    padding: 20px 0;
}

.logo-strip-track:hover {
    animation-play-state: paused;
}

.logo-item {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(231, 26, 75, 0.12);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 20px;
    transform: scale(0.92);
    opacity: 0.9;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.logo-content {
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.logo-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
}

.company-name {
    position: absolute;
    bottom: 15px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(231, 26, 75, 0.5);
    transform: translateY(-8px) scale(1.08);
    opacity: 1;
    box-shadow: var(--shadow-red);
}

.logo-item:hover .logo-content {
    transform: translateY(-12px);
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.logo-item:hover .company-name {
    opacity: 1;
    transform: translateY(0);
}

@keyframes logo-scroll {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-strip-section { padding: 60px 0; }
    .logo-strip-heading { font-size: 24px; padding: 0 20px; }
    .logo-item { 
        width: 100px; 
        height: 100px; 
        padding: 12px;
        border-radius: 12px;
        transform: scale(0.85);
    }
    .logo-content { height: 45px; }
    .company-name { font-size: 9px; bottom: 10px; }
    .logo-strip-track { 
        gap: 15px; 
        animation-duration: 35s; 
    }
    .logo-strip-container::before,
    .logo-strip-container::after {
        width: 60px;
    }
}

/* ── 23. PREMIUM MOBILE MENU ───────────────────────────────── */
.mobile-menu-glass {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-ui);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
    .mobile-menu-glass {
        background: rgba(15, 31, 61, 0.98); /* var(--brand-navy) */
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
}

/* Staggered Animations for Mobile Menu Links */
.mobile-nav-item {
    opacity: 0;
    transform: translateY(-8px);
    animation: slideDownFade 0.4s var(--ease-out) forwards;
}

@keyframes slideDownFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays manually using nth-child */
.mobile-nav-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.10s; }
.mobile-nav-item:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav-item:nth-child(4) { animation-delay: 0.20s; }
.mobile-nav-item:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav-item:nth-child(6) { animation-delay: 0.30s; }
.mobile-nav-item:nth-child(7) { animation-delay: 0.35s; }
.mobile-nav-item:nth-child(8) { animation-delay: 0.40s; }
.mobile-nav-item:nth-child(9) { animation-delay: 0.45s; }
