/* ================================================================
   AVIHEL — Sistema de Diseño Moderno
   Aviones y Helicópteros del Norte, S.A. de C.V.
   ================================================================ */

/* ----------------------------------------------------------------
   1. Design Tokens — CSS Custom Properties
   ---------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-navy:       #0d1f3c;
  --color-primary:    #2b447c;
  --color-primary-lt: #4a6fa5;
  --color-accent:     #199EB8;
  --color-accent-lt:  #22bcd8;
  --color-orange:     #E04F00;
  --color-orange-lt:  #f07030;

  /* Neutrals */
  --color-white:      #ffffff;
  --color-off-white:  #f4f7fb;
  --color-surface:    #edf2f9;
  --color-text:       #111827;
  --color-text-muted: #6b7280;
  --color-border:     rgba(43, 68, 124, 0.12);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-lt));
  --grad-dark:    linear-gradient(160deg, var(--color-navy) 0%, #1a2d52 100%);
  --grad-accent:  linear-gradient(135deg, var(--color-accent), var(--color-accent-lt));
  --grad-orange:  linear-gradient(135deg, var(--color-orange), var(--color-orange-lt));
  --grad-glass:   linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Border Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm:      0 2px 8px rgba(0,0,0,0.07);
  --sh-md:      0 6px 20px rgba(0,0,0,0.09);
  --sh-lg:      0 16px 40px rgba(0,0,0,0.12);
  --sh-xl:      0 24px 60px rgba(0,0,0,0.16);
  --sh-primary: 0 10px 28px rgba(43,68,124,0.22);
  --sh-accent:  0 8px 22px rgba(25,158,184,0.26);
  --sh-orange:  0 8px 22px rgba(224,79,0,0.26);

  /* Transitions */
  --ease:        cubic-bezier(0.2, 0, 0, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --t-fast:  180ms var(--ease);
  --t-base:  280ms var(--ease);
  --t-slow:  480ms var(--ease);

  /* Typography */
  --font-display: "Raleway", system-ui, sans-serif;
  --font-body:    "Inter", "Raleway", system-ui, sans-serif;

  /* Fluid Type Scale */
  --text-xs:   clamp(0.75rem,  1.2vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 1.5vw, 1rem);
  --text-base: clamp(0.9375rem, 1.7vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 2vw,   1.25rem);
  --text-xl:   clamp(1.25rem,  2.5vw, 1.5rem);
  --text-2xl:  clamp(1.5rem,   3vw,   2rem);
  --text-3xl:  clamp(2rem,     3.5vw, 2.75rem);
  --text-4xl:  clamp(2.5rem,   5vw,   3.5rem);
  --text-hero: clamp(2rem,     5.5vw, 4.25rem);

  /* Layout */
  --header-h: 72px;
}

/* ----------------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.65;
  background-color: var(--color-white);
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--color-accent-lt); text-decoration: none !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

ul { list-style: none; padding: 0; margin: 0; }

/* ----------------------------------------------------------------
   3. Accessibility
   ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.skip-link:focus {
  left: 12px; top: 12px;
  width: auto; height: auto;
  padding: 8px 16px;
  background: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------------
   4. Scroll Progress Bar
   ---------------------------------------------------------------- */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad-accent);
  transform-origin: left;
  z-index: 9999;
  transition: transform 80ms linear;
}

/* ----------------------------------------------------------------
   5. Layout Utilities
   ---------------------------------------------------------------- */
section {
  padding: var(--sp-20) 0;
  overflow: hidden;
}

.section-bg       { background-color: var(--color-off-white); }
.section-dark     { background: var(--grad-dark); color: var(--color-white); }
.section-surface  { background-color: var(--color-surface); }

.section-title {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.section-title .label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(25,158,184,0.10);
  padding: 6px 18px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
}
.section-title h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--sp-3);
  color: var(--color-navy);
}
.section-dark .section-title h2 { color: var(--color-white); }
.section-title p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto;
}
.section-dark .section-title p { color: rgba(255,255,255,0.65); }

/* Divider line under section titles */
.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--grad-accent);
  border-radius: var(--r-full);
  margin: var(--sp-4) auto 0;
}
.section-title.no-line::after { display: none; }

/* ----------------------------------------------------------------
   6. Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 13px 30px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-base);
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

.btn-primary {
  background: var(--grad-primary);
  color: var(--color-white);
  box-shadow: var(--sh-primary);
}
.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(43,68,124,0.30);
  color: var(--color-white);
}

.btn-accent {
  background: var(--grad-accent);
  color: var(--color-white);
  box-shadow: var(--sh-accent);
}
.btn-accent:hover { box-shadow: 0 14px 32px rgba(25,158,184,0.35); color: var(--color-white); }

.btn-orange {
  background: var(--grad-orange);
  color: var(--color-white);
  box-shadow: var(--sh-orange);
}
.btn-orange:hover { box-shadow: 0 14px 32px rgba(224,79,0,0.35); color: var(--color-white); }

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.40);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.70);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-border);
}
.btn-outline:hover {
  background: var(--color-off-white);
  border-color: var(--color-primary-lt);
}

/* ----------------------------------------------------------------
   7. Header & Navigation
   ---------------------------------------------------------------- */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}

#header.fixed-top {
  background: rgba(27, 43, 80, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

#logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.navbar { padding: 0; }

.navbar ul {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.navbar a i { font-size: 13px; }
.navbar a:hover,
.navbar .active,
.navbar li:hover > a {
  color: var(--color-white);
  background: rgba(255,255,255,0.10);
}
.navbar .active {
  color: var(--color-white);
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  color: var(--color-white);
  font-size: 26px;
  cursor: pointer;
  line-height: 0;
  transition: color var(--t-fast);
}
.mobile-nav-toggle:focus-visible { outline: 2px solid rgba(255,255,255,0.5); border-radius: 4px; }

@media (max-width: 991px) {
  .mobile-nav-toggle { display: block; }
  .navbar ul { display: none; }
}

/* Mobile overlay menu */
.navbar-mobile {
  position: fixed;
  inset: 0;
  background: rgba(10,18,36,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  transition: opacity var(--t-base);
}
.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 28px;
  color: var(--color-white);
}
.navbar-mobile ul {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px; left: 16px; right: 16px; bottom: 16px;
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6) 0;
  overflow-y: auto;
  gap: 0;
}
.navbar-mobile a,
.navbar-mobile a:focus {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  color: var(--color-text);
  font-size: var(--text-base);
  border-radius: 0;
  background: transparent;
}
.navbar-mobile a:hover,
.navbar-mobile .active {
  color: var(--color-primary);
  background: var(--color-off-white);
}

/* ----------------------------------------------------------------
   8. Hero Section
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../img/cover.jpg);
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: var(--color-white);
  overflow: hidden;
}

/* Gradient overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13, 31, 60, 0.82) 0%,
    rgba(27, 50, 100, 0.72) 50%,
    rgba(13, 31, 60, 0.86) 100%
  );
  z-index: 1;
}

/* Subtle animated grain/noise overlay for depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-16) var(--sp-4);
}

.hero-content { max-width: 860px; margin: 0 auto; }

.hero-logo {
  width: auto;
  max-width: min(380px, 70vw);
  max-height: 200px;
  margin: 0 auto var(--sp-8);
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 8px 32px rgba(0,0,0,0.35));
  transition: transform var(--t-slow), filter var(--t-slow);
}
.hero-logo:hover {
  transform: scale(1.04);
  filter: brightness(0) invert(1) drop-shadow(0 16px 48px rgba(0,0,0,0.45));
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 900;
  color: var(--color-white);
  text-shadow: 0 4px 24px rgba(0,0,0,0.40);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin: 0 auto var(--sp-8);
  line-height: 1.6;
  font-weight: 400;
}

.experience-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(25,158,184,0.18);
  border: 1px solid rgba(25,158,184,0.40);
  color: var(--color-white);
  padding: 7px 18px;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-cta {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.55);
  font-size: var(--text-xs);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: bounceY 2s ease-in-out infinite;
}
.hero-scroll-hint i { font-size: 20px; }

@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

@media (max-width: 767px) {
  .hero { background-attachment: scroll; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* ----------------------------------------------------------------
   9. About Section
   ---------------------------------------------------------------- */
.about {
  background: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; }
}

#imgNosotros {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg), 0 0 0 6px rgba(43,68,124,0.08);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
}
#imgNosotros:hover {
  transform: scale(1.015);
  box-shadow: var(--sh-xl), 0 0 0 6px rgba(25,158,184,0.14);
}

.about-cards { display: flex; flex-direction: column; gap: var(--sp-6); }

.about-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--r-md);
  padding: var(--sp-6) var(--sp-8);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.about-card:hover {
  transform: translateX(4px);
  box-shadow: var(--sh-md);
  border-left-color: var(--color-orange);
}
.about-card h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.about-card h2 i {
  font-size: 1.1em;
  color: var(--color-accent);
}
.about-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* Section identity logo badge inside about */
#logoNosotros {
  height: 52px;
  width: auto;
  background: var(--color-primary);
  padding: 8px 14px;
  border-radius: var(--r-md);
  margin: 0 auto var(--sp-6);
  display: block;
  filter: brightness(0) invert(1);
}

/* ----------------------------------------------------------------
   10. Stats Section
   ---------------------------------------------------------------- */
.stats {
  background: var(--grad-dark);
  padding: var(--sp-20) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-6);
  justify-items: center;
}

.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  width: 100%;
  backdrop-filter: blur(8px);
  transition: transform var(--t-base), background var(--t-base);
}
.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.10);
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
  display: block;
}
.stat-card .stat-suffix {
  font-size: var(--text-2xl);
  color: var(--color-accent);
  font-weight: 800;
}
.stat-card p {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  margin-top: var(--sp-3);
}

/* PureCounter compatibility */
.stats .counters span {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--color-white);
  display: block;
}
.stats .counters p {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  padding: 0;
  margin: var(--sp-3) 0 0;
}
.stats .row.counters { justify-content: center; gap: var(--sp-6); }
.stats .row.counters > [class*="col-"] {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 140px;
  justify-content: center;
  backdrop-filter: blur(8px);
}

/* ----------------------------------------------------------------
   11. Services Section
   ---------------------------------------------------------------- */
.services {
  background: var(--color-off-white);
  padding: var(--sp-20) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-8);
}

.service-box {
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.service-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.service-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-lg);
}
.service-box:hover::before { transform: scaleX(1); }

.service-box i {
  font-size: 2.8rem;
  color: var(--color-primary);
  margin-bottom: var(--sp-5);
  display: block;
  transition: transform var(--t-base), color var(--t-base);
}
.service-box:hover i {
  color: var(--color-accent);
  transform: scale(1.1) rotate(-3deg);
}
.service-box h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--sp-3);
}
.service-box p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------------
   12. Team Section
   ---------------------------------------------------------------- */
.team {
  background: var(--color-white);
  padding: var(--sp-20) 0;
}

.team .member {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-base), box-shadow var(--t-base);
  height: 100%;
}
.team .member:hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-lg);
}

.team .member .member-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-off-white);
  padding: var(--sp-10) var(--sp-6);
  border-bottom: 1px solid var(--color-border);
}
.team .member .member-img i {
  font-size: 4rem;
  color: var(--color-primary);
  transition: transform var(--t-base), color var(--t-base);
}
.team .member:hover .member-img i {
  transform: scale(1.12);
  color: var(--color-accent);
}

.team .member-info {
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  text-align: center;
}
.team .member-info h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
}
.team .member-info span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.team .member-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------------
   13. Portfolio / Instalaciones
   ---------------------------------------------------------------- */
.portfolio {
  background: var(--color-surface);
  padding: var(--sp-20) 0 0;
}
.portfolio h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: var(--sp-12);
}

.portfolio-grid { margin-top: 0; }
.portfolio-grid .row { margin: 0; }
.portfolio-grid .row > div { padding: 0; }

.portfolio-grid .card {
  position: relative;
  border: 0;
  border-radius: 0;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
}
.portfolio-grid .card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.portfolio-grid .card:hover img { transform: scale(1.08); }

.portfolio-over {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,60,0.90) 0%, rgba(13,31,60,0.40) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-6);
  opacity: 0;
  transition: opacity var(--t-base);
}
.portfolio-grid .card:hover .portfolio-over { opacity: 1; }

.portfolio-over .card-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ----------------------------------------------------------------
   14. Promotional Gallery
   ---------------------------------------------------------------- */
.promotional-gallery {
  background: var(--color-white);
  padding: var(--sp-20) 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-4);
}

.gallery-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,60,0.88) 0%, rgba(13,31,60,0.30) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  transform: translateY(10px);
  opacity: 0;
  transition: opacity var(--t-base), transform var(--t-base);
}
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }

.gallery-overlay h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-white) !important;
  margin-bottom: var(--sp-2);
}
.gallery-overlay p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.80) !important;
  line-height: 1.5;
  margin: 0;
}

/* ----------------------------------------------------------------
   15. Testimonials
   ---------------------------------------------------------------- */
.testimonials {
  background: var(--color-off-white);
  padding: var(--sp-20) 0;
}

.testimonial-item {
  background: var(--color-white);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform var(--t-base), box-shadow var(--t-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
}

.testimonial-icon {
  width: 64px; height: 64px;
  background: rgba(43,68,124,0.08);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}
.testimonial-icon i { font-size: 1.6rem; color: var(--color-primary); }

.testimonial-item h3 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--sp-1);
}
.testimonial-item h4 {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-5);
  font-family: var(--font-body);
}

.testimonial-item p {
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.75;
  flex-grow: 1;
  position: relative;
  padding: var(--sp-5) var(--sp-5) var(--sp-10);
  background: var(--color-off-white);
  border-radius: var(--r-md);
  margin: 0;
}
.testimonial-item p::after {
  content: '';
  position: absolute;
  bottom: -14px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid var(--color-off-white);
}

.quote-icon-left,
.quote-icon-right {
  color: var(--color-accent);
  font-size: 1.5em;
  vertical-align: middle;
}
.quote-icon-left { margin-right: 4px; }
.quote-icon-right { margin-left: 4px; }

/* ----------------------------------------------------------------
   16. FAQ
   ---------------------------------------------------------------- */
.faq {
  background: var(--color-white);
  padding: var(--sp-20) 0;
}

.faq .accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--r-md) !important;
  margin-bottom: var(--sp-4);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.faq .accordion-item:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.faq .accordion-button {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-white);
  padding: var(--sp-6) var(--sp-8);
  border-radius: var(--r-md) !important;
  gap: var(--sp-4);
  line-height: 1.45;
  transition: color var(--t-fast), background var(--t-fast);
}
.faq .accordion-button:not(.collapsed) {
  background: var(--grad-primary);
  color: var(--color-white);
  box-shadow: none;
}
.faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(43,68,124,0.18); }
.faq .accordion-button i { color: var(--color-accent); flex-shrink: 0; font-size: 1.1em; }
.faq .accordion-button:not(.collapsed) i { color: rgba(255,255,255,0.8); }
.faq .accordion-body {
  padding: var(--sp-4) var(--sp-8) var(--sp-8);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.85;
}
.faq .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232b447c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.faq .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ----------------------------------------------------------------
   17. Contact Section
   ---------------------------------------------------------------- */
#contact {
  background: var(--color-surface);
  padding: var(--sp-20) 0;
}

#contact h2.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: var(--sp-12);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-10);
  align-items: start;
}
@media (max-width: 991px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}

.contact-info { display: flex; flex-direction: column; gap: var(--sp-5); }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.contact-info-item:hover { transform: translateX(4px); box-shadow: var(--sh-md); }

.contact-info-item i {
  font-size: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}
.contact-info-item a { color: var(--color-primary); font-weight: 500; }
.contact-info-item a:hover { color: var(--color-accent); }

/* Legacy .info support */
#contact .info { display: flex; flex-direction: column; gap: var(--sp-5); }
#contact .info > div {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-8);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-fast);
}
#contact .info > div:hover { transform: translateX(4px); }
#contact .info i {
  font-size: 1.6rem;
  margin-top: 2px;
}

/* Center contact row vertically when only address + form */
#contact .row.justify-content-center {
  align-items: start;
}
#contact .info i {
  font-size: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
  float: none;
  line-height: 1.4;
}
#contact .info p {
  padding: 0;
  line-height: 1.85;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin: 0;
}

/* Contact Form */
.form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  box-shadow: var(--sh-md);
}

.php-email-form .form-group { margin-bottom: 0; }
.php-email-form .form-control {
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-off-white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  box-shadow: none;
}
.php-email-form .form-control:focus {
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(25,158,184,0.14);
  outline: none;
}

.php-email-form .validate { display: none; color: var(--color-orange); font-size: var(--text-xs); margin-top: 4px; }
.php-email-form .error-message {
  display: none;
  background: #fee2e2;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid #fca5a5;
}
.php-email-form .sent-message {
  display: none;
  background: #dcfce7;
  color: #166534;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  border: 1px solid #86efac;
}
.php-email-form .loading {
  display: none;
  text-align: center;
  padding: 12px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.php-email-form .loading::before {
  content: '';
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--color-accent);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

.php-email-form button[type="submit"] {
  background: var(--grad-primary);
  color: var(--color-white);
  border: none;
  padding: 13px 36px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--sh-primary);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.php-email-form button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(43,68,124,0.30);
}

/* ----------------------------------------------------------------
   18. Footer CTA
   ---------------------------------------------------------------- */
.footer-cta {
  background: var(--grad-dark);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
}
.footer-cta span {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: var(--sp-6);
}
.footer-cta-buttons {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .footer-cta-buttons { flex-direction: column; align-items: center; }
  .footer-cta-buttons .btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* ----------------------------------------------------------------
   19. Footer
   ---------------------------------------------------------------- */
.site-footer {
  background: #0a0f1e;
  padding: 0;
}
.site-footer .bottom {
  background: #060911;
  padding: var(--sp-5) 0;
}
.site-footer .bottom p {
  margin: 0;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.40);
  text-align: center;
}
.site-footer .bottom strong { color: rgba(255,255,255,0.65); }

/* ----------------------------------------------------------------
   20. Back to Top
   ---------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--sp-5);
  right: var(--sp-5);
  width: 48px; height: 48px;
  background: var(--grad-primary);
  color: var(--color-white);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-primary);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base), transform var(--t-base);
  z-index: 997;
}
.back-to-top i { font-size: 1.4rem; }
.back-to-top:hover { transform: translateY(-4px) scale(1.06); color: var(--color-white); }
.back-to-top.active { opacity: 1; visibility: visible; }

/* ----------------------------------------------------------------
   21. Mobile Action Bar
   ---------------------------------------------------------------- */
.mobile-action {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--grad-dark);
  padding: 12px var(--sp-4);
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
}
.mobile-action .btn {
  border-radius: var(--r-full);
  padding: 12px 32px;
  width: 100%;
  max-width: 380px;
  justify-content: center;
}

/* ----------------------------------------------------------------
   22. Scroll Progress
   ---------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--grad-accent);
  transform-origin: left;
  z-index: 9999;
}

/* ----------------------------------------------------------------
   23. Animations
   ---------------------------------------------------------------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradientFlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(25,158,184,0.35); }
  70%  { box-shadow: 0 0 0 12px rgba(25,158,184,0); }
  100% { box-shadow: 0 0 0 0 rgba(25,158,184,0); }
}

.pulse-ring { animation: pulse-ring 2.4s ease-in-out infinite; }

/* Reveal on scroll (JS-driven) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.reveal-active {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------
   24. Ripple Effect
   ---------------------------------------------------------------- */
.ripple { position: relative; overflow: hidden; }
.ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,0.38);
  animation: ripple-anim 550ms linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ----------------------------------------------------------------
   25. Highlight Contact Pulse (JS-driven)
   ---------------------------------------------------------------- */
@keyframes contactPulse {
  0%   { box-shadow: 0 0 0 0 rgba(25,158,184,0.20); }
  40%  { box-shadow: 0 0 0 10px rgba(25,158,184,0); }
  100% { box-shadow: 0 0 0 0 rgba(25,158,184,0); }
}
.highlight-contact {
  animation: contactPulse 1.8s ease-in-out;
  border-radius: var(--r-lg);
}

/* ----------------------------------------------------------------
   26. Responsive Breakpoints
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  section { padding: var(--sp-12) 0; }
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 220px; }
  .form { padding: var(--sp-8) var(--sp-6); }
}

@media (max-width: 575px) {
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .services-grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   27. Scrolled Offset
   ---------------------------------------------------------------- */
.scrolled-offset { margin-top: var(--header-h); }

/* ================================================================
   28. ADVANCED ANIMATIONS
   ================================================================ */

/* ── Hero Particles ─────────────────────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero-particles span {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  opacity: 0;
  animation: particleRise var(--dur, 8s) ease-in var(--delay, 0s) infinite;
  background: radial-gradient(circle, rgba(25,158,184,0.55), rgba(43,68,124,0.15));
}
.hero-particles span:nth-child(1)  { left:5%;   width:10px; height:10px; --dur:9s;  --delay:0s;   }
.hero-particles span:nth-child(2)  { left:12%;  width:18px; height:18px; --dur:11s; --delay:1.5s; }
.hero-particles span:nth-child(3)  { left:22%;  width:8px;  height:8px;  --dur:7s;  --delay:3s;   }
.hero-particles span:nth-child(4)  { left:35%;  width:22px; height:22px; --dur:13s; --delay:0.8s; }
.hero-particles span:nth-child(5)  { left:47%;  width:12px; height:12px; --dur:10s; --delay:2.2s; }
.hero-particles span:nth-child(6)  { left:58%;  width:6px;  height:6px;  --dur:8s;  --delay:4s;   }
.hero-particles span:nth-child(7)  { left:68%;  width:20px; height:20px; --dur:12s; --delay:1s;   }
.hero-particles span:nth-child(8)  { left:75%;  width:9px;  height:9px;  --dur:9s;  --delay:3.5s; }
.hero-particles span:nth-child(9)  { left:82%;  width:14px; height:14px; --dur:11s; --delay:0.5s; }
.hero-particles span:nth-child(10) { left:90%;  width:7px;  height:7px;  --dur:8s;  --delay:2.8s; }
.hero-particles span:nth-child(11) { left:96%;  width:16px; height:16px; --dur:14s; --delay:1.2s; }
.hero-particles span:nth-child(12) { left:28%;  width:5px;  height:5px;  --dur:7s;  --delay:5s;   }

@keyframes particleRise {
  0%   { transform: translateY(0)   translateX(0)    scale(1);   opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-110vh) translateX(30px) scale(0.4); opacity: 0; }
}

/* ── Hero Orbs ───────────────────────────────────────────────── */
.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  animation: orbDrift var(--od, 18s) ease-in-out infinite alternate;
}
.orb-1 {
  width: 420px; height: 420px;
  background: var(--color-primary-lt);
  top: -120px; left: -80px;
  --od: 20s;
}
.orb-2 {
  width: 320px; height: 320px;
  background: var(--color-accent);
  bottom: -60px; right: -60px;
  --od: 16s;
  animation-delay: -6s;
}
.orb-3 {
  width: 240px; height: 240px;
  background: var(--color-orange);
  top: 40%; left: 55%;
  --od: 14s;
  animation-delay: -10s;
  opacity: 0.12;
}

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-20px, 20px) scale(0.96); }
  100% { transform: translate(30px, 40px) scale(1.05); }
}

/* ── Wave divider between sections ──────────────────────────── */
.wave-divider {
  line-height: 0;
  overflow: hidden;
  margin-bottom: -2px;
}
.wave-divider svg { display: block; width: 100%; height: 70px; }

/* ── Floating icon on service cards ─────────────────────────── */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-10px) rotate(3deg); }
}
.service-box:hover i {
  animation: floatIcon 1.6s ease-in-out infinite;
  color: var(--color-accent);
}

/* ── Stat number shimmer ─────────────────────────────────────── */
@keyframes shimmerText {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.stat-card .stat-number {
  background: linear-gradient(90deg,
    #fff 0%, #fff 35%,
    var(--color-accent-lt) 50%,
    #fff 65%, #fff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s linear infinite;
}
.stat-card .stat-suffix {
  -webkit-text-fill-color: var(--color-accent);
  background: none;
}

/* ── About card animated left border ────────────────────────── */
@keyframes borderPulse {
  0%, 100% { border-left-color: var(--color-accent); }
  50%       { border-left-color: var(--color-orange); }
}
.about-card:hover { animation: borderPulse 1.8s ease-in-out infinite; }

/* ── Card 3D tilt (perspective wrapper) ─────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0) rotateY(0);
  transition: transform 0.12s linear, box-shadow var(--t-base);
  will-change: transform;
}

/* ── Glowing hover border on service/team cards ─────────────── */
.service-box {
  --glow-opacity: 0;
  box-shadow: var(--sh-sm), 0 0 0 1px transparent;
}
.service-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary-lt));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--t-base);
  filter: blur(8px);
}
.service-box:hover::after { opacity: 0.35; }

/* ── Stats section animated gradient background ──────────────── */
.stats {
  background-size: 200% 200%;
  animation: bgGradient 12s ease infinite;
}
@keyframes bgGradient {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ── Portfolio card: tilt + shine on hover ───────────────────── */
.portfolio-grid .card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.12) 50%,
    transparent 60%
  );
  background-size: 200% 200%;
  background-position: -100% 0;
  transition: background-position 0.6s ease;
  z-index: 2;
  pointer-events: none;
}
.portfolio-grid .card:hover::after { background-position: 200% 0; }

/* ── Typewriter cursor ───────────────────────────────────────── */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-accent);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Magnetic button wrapper ─────────────────────────────────── */
.btn { will-change: transform; }

/* ── Section entrance: slide-in divider line ─────────────────── */
.section-title::after {
  transition: width 0.6s var(--ease-spring);
}
[data-aos].aos-animate .section-title::after,
.section-title.aos-animate::after {
  width: 48px;
}

/* ── Animated gradient on experience-badge ───────────────────── */
.experience-badge {
  background-size: 200% 200%;
  animation: bgGradient 6s ease infinite;
  background-image: linear-gradient(135deg,
    rgba(25,158,184,0.22) 0%,
    rgba(43,68,124,0.30) 50%,
    rgba(25,158,184,0.22) 100%
  );
}

/* ── Scroll hint bounce ──────────────────────────────────────── */
.hero-scroll-hint {
  cursor: pointer;
  transition: opacity var(--t-base);
}
.hero-scroll-hint:hover { opacity: 0.8; }

/* ── Member img icon spin on section enter ───────────────────── */
@keyframes iconDrop {
  0%   { transform: translateY(-20px) scale(0.8); opacity: 0; }
  60%  { transform: translateY(4px)   scale(1.05); opacity: 1; }
  100% { transform: translateY(0)     scale(1);    opacity: 1; }
}
[data-aos="zoom-in"].aos-animate .member-img i {
  animation: iconDrop 0.55s var(--ease-spring) both;
}

/* ── Gallery item stagger ────────────────────────────────────── */
.gallery-item:nth-child(even) { transform: translateY(16px); }
.gallery-item:nth-child(even):hover { transform: translateY(8px); }

/* ── Smooth hero logo parallax target ───────────────────────── */
.hero-logo { transition: transform 0.08s linear, filter var(--t-slow); }

/* ── Reduce motion overrides (already set, keep clean) ──────── */
@media (prefers-reduced-motion: reduce) {
  .hero-particles span,
  .orb,
  .stat-card .stat-number,
  .about-card:hover,
  .service-box:hover i {
    animation: none !important;
  }
}

/* ================================================================
   29. CUSTOM CURSOR
   ================================================================ */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transition: opacity 0.3s;
}
@media (hover: none) {
  #cursor-dot { display: none !important; }
}

/* ================================================================
   30. LOADING SCREEN
   ================================================================ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
#loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  text-align: center;
}
.loader-inner img {
  width: 130px;
  filter: brightness(0) invert(1);
  animation: loaderPulse 1.6s ease-in-out infinite;
}
.loader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  overflow: hidden;
}
.loader-fill {
  height: 100%;
  background: var(--grad-accent);
  border-radius: var(--r-full);
  animation: loaderFill 1s cubic-bezier(0.4,0,0.2,1) forwards;
}
.loader-text {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.65; transform: scale(0.95); }
}
@keyframes loaderFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* ================================================================
   31. SCROLL ANIMATIONS — sistema propio sin dependencia CDN
   ================================================================ */
[data-aos] {
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.2,0,0,1),
              transform 600ms cubic-bezier(0.2,0,0,1);
}
[data-aos-delay="100"] { transition-delay: 100ms; }
[data-aos-delay="200"] { transition-delay: 200ms; }
[data-aos-delay="300"] { transition-delay: 300ms; }
[data-aos-delay="400"] { transition-delay: 400ms; }
[data-aos-delay="500"] { transition-delay: 500ms; }
[data-aos-delay="700"] { transition-delay: 700ms; }

[data-aos="fade-up"]    { transform: translate3d(0,  28px, 0); }
[data-aos="fade-down"]  { transform: translate3d(0, -28px, 0); }
[data-aos="fade-left"]  { transform: translate3d( 28px, 0, 0); }
[data-aos="fade-right"] { transform: translate3d(-28px, 0, 0); }
[data-aos="zoom-in"]    { transform: scale(0.88); }
[data-aos="fade"]       { transform: none; }

[data-aos].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   32. EXPANDED FOOTER
   ================================================================ */
.footer-main {
  background: #0a1628;
  padding: var(--sp-16) 0 var(--sp-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: var(--sp-10);
}
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}

.footer-brand img {
  height: 42px;
  filter: brightness(0) invert(1);
  margin-bottom: var(--sp-5);
}
.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.50);
  line-height: 1.75;
  max-width: 290px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-5);
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col ul li a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.50);
  transition: color var(--t-fast), padding-left var(--t-fast);
  display: inline-block;
}
.footer-col ul li a:hover {
  color: var(--color-white);
  padding-left: 6px;
}

.footer-address {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.footer-address i {
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-address span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.50);
  line-height: 1.85;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 0;
}

.site-footer .bottom {
  background: #060d1a;
  padding: var(--sp-5) 0;
}
.site-footer .bottom .copyright-text {
  margin: 0;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  text-align: center;
}
.site-footer .bottom strong { color: rgba(255,255,255,0.60); }
