:root {
  --dark: #051650;
  --dark-hover: #0a2470;
  --lime: #ccff00;
  --lime-dim: rgba(204, 255, 0, 0.12);
  --lime-border: rgba(204, 255, 0, 0.3);
  --white: #ffffff;
  --overlay: rgba(5, 22, 80, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: var(--dark);
  border-bottom: 3px solid var(--lime);
  padding: 10px 0;
}
.nav-seal {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-brgy {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
  display: block;
  line-height: 1.2;
}
.nav-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 6px 14px;
  transition: color 0.2s;
}
.site-nav .nav-link:hover {
  color: var(--lime);
}
.btn-nav-login {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.btn-nav-login:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.btn-nav-cta {
  background: var(--lime);
  color: var(--dark);
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-nav-cta:hover {
  background: #bbee00;
  color: var(--dark);
}

/* ── AUTH GATE MODAL ── */
.modal-gate {
  position: fixed;
  inset: 0;
  z-index: 1055;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-gate.active {
  opacity: 1;
  pointer-events: all;
}
.modal-gate-box {
  background: var(--white);
  border: 2px solid var(--lime);
  border-radius: 10px;
  padding: 40px 36px;
  max-width: 420px;
  width: 90%;
  position: relative;
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.2s;
}
.modal-gate.active .modal-gate-box {
  transform: translateY(0);
}
.modal-gate-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 18px;
  line-height: 1;
  transition: color 0.2s;
}
.modal-gate-close:hover {
  color: var(--dark);
}
.modal-gate-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 18px;
}
.modal-service-badge {
  display: inline-block;
  background: var(--lime);
  color: var(--dark);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 24px;
}
.btn-modal-primary {
  display: block;
  background: var(--dark);
  color: var(--white);
  padding: 13px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-modal-primary:hover {
  background: var(--dark-hover);
  color: var(--white);
}
.btn-modal-secondary {
  display: block;
  border: 1px solid var(--dark);
  color: var(--dark);
  padding: 13px;
  border-radius: 6px;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-modal-secondary:hover {
  background: rgba(5, 22, 80, 0.06);
}

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  position: relative;
  border-bottom: 3px solid var(--lime);
  padding-top: 80px;
  display: flex;
  align-items: center;
  background: var(--dark);
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 1;
  visibility: visible;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 22, 80, 0.72);
  z-index: 1;
}
.hero-section .container-xl {
  position: relative;
  z-index: 2;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime-dim);
  border: 1px solid var(--lime);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
}
.hero-section h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
}
.hero-section h1 span {
  color: var(--lime);
}
.hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  max-width: 460px;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--lime);
  color: var(--dark);
  padding: 14px 34px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-hero:hover {
  background: #bbee00;
  color: var(--dark);
}
.hero-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--lime-border);
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--lime-dim);
  border: 1px solid var(--lime-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 18px;
  flex-shrink: 0;
}
.hero-stat-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 4px;
}
.hero-stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.hero-stat-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* ── SECTION COMMON ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--dark);
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
}

/* ── SERVICES ── */
.services-section {
  background: var(--white);
  border-top: 1px solid rgba(5, 22, 80, 0.1);
  border-bottom: 1px solid rgba(5, 22, 80, 0.1);
}
.login-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--lime-dim);
  border: 1px solid var(--lime);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--dark);
}
.login-notice i {
  margin-top: 2px;
  flex-shrink: 0;
}
.login-notice a {
  color: var(--dark);
  font-weight: 700;
}
.services-grid-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(5, 22, 80, 0.12);
}
.service-card {
  background: var(--white);
  padding: 30px 26px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.service-card:hover {
  background: rgba(204, 255, 0, 0.06);
}
.service-lock {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--lime);
  color: var(--dark);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
}
.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--dark);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.service-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.service-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}
.service-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

/* ── OFFICIALS ── */
.officials-section {
  background: var(--dark);
}
.officials-section .section-label {
  background: var(--lime);
  color: var(--dark);
}
.officials-section .section-title {
  color: var(--white);
}
.official-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--lime-border);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  height: 100%;
}
.official-card.is-captain {
  background: rgba(204, 255, 0, 0.1);
  border-color: var(--lime);
}
.official-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.is-captain .official-avatar {
  background: var(--lime);
  color: var(--dark);
  border-color: var(--lime);
}
.official-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.is-captain .official-name {
  color: var(--lime);
}
.official-role {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.is-captain .official-role {
  color: rgba(204, 255, 0, 0.65);
}

/* ── FOOTER ── */
.site-footer {
  background: #030e38;
  border-top: 3px solid var(--lime);
  padding: 56px 0 0;
}
.footer-brand-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin: 10px 0 10px;
}
.footer-brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}
.footer-col-title {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.footer-col-list a:hover {
  color: var(--lime);
}
.footer-col-list a i {
  font-size: 12px;
  width: 14px;
}
.footer-bottom {
  background: #020b2e;
  padding: 14px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .services-grid-wrap {
    grid-template-columns: 1fr;
  }
  .hero-section {
    padding-top: 90px;
  }
}
@media (max-width: 576px) {
  .btn-nav-login {
    display: none;
  }
}
/* =========================
   ANIMATIONS ONLY
========================= */

/* Smooth page entrance */
body {
  animation: pageFadeIn 0.6s ease-in-out;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Navbar entrance */
.site-nav {
  animation: navSlideDown 0.7s ease both;
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo subtle hover */
.nav-seal {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-seal:hover {
  transform: scale(1.06) rotate(-2deg);
}

/* Nav links hover animation */
.nav-link {
  position: relative;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 20px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Button hover animations */
.btn-nav-login,
.btn-nav-cta,
.btn-hero,
.btn-modal-primary,
.btn-modal-secondary {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.btn-nav-login:hover,
.btn-nav-cta:hover,
.btn-hero:hover,
.btn-modal-primary:hover,
.btn-modal-secondary:hover {
  transform: translateY(-3px);
  filter: brightness(1.03);
}

.btn-nav-login:active,
.btn-nav-cta:active,
.btn-hero:active,
.btn-modal-primary:active,
.btn-modal-secondary:active {
  transform: translateY(0) scale(0.97);
}

/* Hero content entrance */
.hero-tag {
  animation: fadeUp 0.7s ease 0.1s both;
}

.hero-section h1 {
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-sub {
  animation: fadeUp 0.7s ease 0.3s both;
}

.btn-hero {
  animation: fadeUp 0.7s ease 0.4s both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero stat cards staggered entrance */
.hero-stat-card {
  animation: fadeLeft 0.75s ease both;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.hero-stat-card:nth-child(1) {
  animation-delay: 0.25s;
}

.hero-stat-card:nth-child(2) {
  animation-delay: 0.38s;
}

.hero-stat-card:nth-child(3) {
  animation-delay: 0.51s;
}

.hero-stat-card:hover {
  transform: translateY(-6px);
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(35px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Service cards hover animation */
.service-card {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon-wrap {
  transition: transform 0.28s ease;
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.08) rotate(-4deg);
}

.service-arrow {
  transition: transform 0.25s ease;
}

.service-card:hover .service-arrow {
  transform: translateX(4px);
}

/* Officials card animation */
.official-card {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.official-card:hover {
  transform: translateY(-7px);
}

.official-avatar {
  transition: transform 0.25s ease;
}

.official-card:hover .official-avatar {
  transform: scale(1.07) rotate(-3deg);
}

/* Footer links animation */
.footer-col-list a {
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.footer-col-list a:hover {
  transform: translateX(5px);
}

/* Modal entrance animation */
.modal-gate.active {
  animation: modalFadeIn 0.25s ease both;
}

.modal-gate.active .modal-gate-box {
  animation: modalPop 0.32s ease both;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal close button animation */
.modal-gate-close {
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.modal-gate-close:hover {
  transform: rotate(90deg) scale(1.05);
}

/* Section reveal animation */
.section-label,
.section-title,
.login-notice,
.service-card,
.official-card {
  animation: softReveal linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 25%;
}

@keyframes softReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle icon pulse */
.modal-gate-icon,
.hero-stat-icon {
  animation: iconPulse 2.4s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

/* Better accessibility for users who disable motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================
   INTERMEDIATE ANIMATIONS
   Add this at the bottom of home.css
========================= */

/* 1. Smooth floating effect for hero cards */
.hero-stat-card {
  animation:
    heroCardEnter 0.8s ease both,
    softFloat 4s ease-in-out infinite;
}

.hero-stat-card:nth-child(1) {
  animation-delay: 0.15s, 1s;
}

.hero-stat-card:nth-child(2) {
  animation-delay: 0.3s, 1.4s;
}

.hero-stat-card:nth-child(3) {
  animation-delay: 0.45s, 1.8s;
}

@keyframes heroCardEnter {
  from {
    opacity: 0;
    transform: translateX(45px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes softFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -6px;
  }
}

/* 2. Button shine animation */
.btn-nav-login,
.btn-nav-cta,
.btn-hero,
.btn-modal-primary,
.btn-modal-secondary {
  position: relative;
  overflow: hidden;
}

.btn-nav-login::before,
.btn-nav-cta::before,
.btn-hero::before,
.btn-modal-primary::before,
.btn-modal-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
  transition: left 0.65s ease;
}

.btn-nav-login:hover::before,
.btn-nav-cta:hover::before,
.btn-hero:hover::before,
.btn-modal-primary:hover::before,
.btn-modal-secondary:hover::before {
  left: 130%;
}

/* 3. Service card glow sweep */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(204, 255, 0, 0.18),
    transparent 35%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

/* 4. Service icon bounce on hover */
.service-card:hover .service-icon-wrap {
  animation: iconBounce 0.45s ease;
}

@keyframes iconBounce {
  0% {
    transform: scale(1) rotate(0deg);
  }

  40% {
    transform: scale(1.15) rotate(-5deg);
  }

  70% {
    transform: scale(0.96) rotate(2deg);
  }

  100% {
    transform: scale(1.08) rotate(-4deg);
  }
}

/* 5. Staggered service card entrance */
.service-card {
  animation: cardReveal 0.75s ease both;
}

.service-card:nth-child(1) {
  animation-delay: 0.08s;
}

.service-card:nth-child(2) {
  animation-delay: 0.16s;
}

.service-card:nth-child(3) {
  animation-delay: 0.24s;
}

.service-card:nth-child(4) {
  animation-delay: 0.32s;
}

.service-card:nth-child(5) {
  animation-delay: 0.4s;
}

.service-card:nth-child(6) {
  animation-delay: 0.48s;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 6. Official card lift with avatar reaction */
.official-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.official-card:hover {
  transform: translateY(-8px) scale(1.015);
}

.official-card:hover .official-avatar {
  animation: avatarPop 0.45s ease;
}

@keyframes avatarPop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.16) rotate(-4deg);
  }

  75% {
    transform: scale(0.96) rotate(2deg);
  }

  100% {
    transform: scale(1.05);
  }
}

/* 7. Modal smoother pop animation */
.modal-gate.active {
  animation: modalBackdrop 0.3s ease both;
}

.modal-gate.active .modal-gate-box {
  animation: modalSpring 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modalBackdrop {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(12px);
  }
}

@keyframes modalSpring {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.9);
  }

  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 8. Footer links slide animation */
.footer-col-list a {
  position: relative;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.footer-col-list a:hover {
  transform: translateX(6px);
}

/* 9. Hero text cinematic entrance */
.hero-tag,
.hero-section h1,
.hero-sub,
.btn-hero {
  animation: cinematicFade 0.8s ease both;
}

.hero-tag {
  animation-delay: 0.1s;
}

.hero-section h1 {
  animation-delay: 0.22s;
}

.hero-sub {
  animation-delay: 0.34s;
}

.btn-hero {
  animation-delay: 0.46s;
}

@keyframes cinematicFade {
  from {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* 10. Respect reduced motion setting */
@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;
  }
}
/* =========================
   SCROLL CINEMATIC ANIMATION
   Barangay Services Only
========================= */

.services-section {
  position: relative;
  overflow: hidden;
}

/* Default hidden state before scrolling to services */
.services-section.services-cinematic-ready .section-label,
.services-section.services-cinematic-ready .section-title,
.services-section.services-cinematic-ready .text-muted,
.services-section.services-cinematic-ready .login-notice,
.services-section.services-cinematic-ready .service-card {
  opacity: 0;
  filter: blur(8px);
}

/* Header text starting positions */
.services-section.services-cinematic-ready .section-label {
  transform: translateY(20px) scale(0.96);
}

.services-section.services-cinematic-ready .section-title {
  transform: translateY(34px);
}

.services-section.services-cinematic-ready .text-muted {
  transform: translateX(28px);
}

.services-section.services-cinematic-ready .login-notice {
  transform: translateY(28px) scale(0.97);
}

/* Service card starting position */
.services-section.services-cinematic-ready .service-card {
  transform: translateY(48px) scale(0.94);
}

/* Animate when section becomes visible */
.services-section.services-cinematic-show .section-label {
  animation: serviceLabelIn 0.65s ease both;
}

.services-section.services-cinematic-show .section-title {
  animation: serviceTitleIn 0.75s ease 0.08s both;
}

.services-section.services-cinematic-show .text-muted {
  animation: serviceTextIn 0.75s ease 0.16s both;
}

.services-section.services-cinematic-show .login-notice {
  animation: serviceNoticeIn 0.75s ease 0.24s both;
}

/* Staggered cards */
.services-section.services-cinematic-show .service-card {
  animation: serviceCardIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.services-section.services-cinematic-show .service-card:nth-child(1) {
  animation-delay: 0.32s;
}

.services-section.services-cinematic-show .service-card:nth-child(2) {
  animation-delay: 0.42s;
}

.services-section.services-cinematic-show .service-card:nth-child(3) {
  animation-delay: 0.52s;
}

.services-section.services-cinematic-show .service-card:nth-child(4) {
  animation-delay: 0.62s;
}

.services-section.services-cinematic-show .service-card:nth-child(5) {
  animation-delay: 0.72s;
}

.services-section.services-cinematic-show .service-card:nth-child(6) {
  animation-delay: 0.82s;
}

/* Keyframes */
@keyframes serviceLabelIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes serviceTitleIn {
  from {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes serviceTextIn {
  from {
    opacity: 0;
    transform: translateX(28px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes serviceNoticeIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes serviceCardIn {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.94);
    filter: blur(10px);
  }

  70% {
    opacity: 1;
    transform: translateY(-5px) scale(1.01);
    filter: blur(0);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Hover animation after reveal */
.service-card {
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.service-card:hover {
  transform: translateY(-9px) scale(1.015);
}

.service-card:hover .service-icon-wrap {
  animation: serviceIconPop 0.45s ease both;
}

@keyframes serviceIconPop {
  0% {
    transform: scale(1) rotate(0deg);
  }

  45% {
    transform: scale(1.16) rotate(-5deg);
  }

  75% {
    transform: scale(0.96) rotate(2deg);
  }

  100% {
    transform: scale(1.07) rotate(-3deg);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .services-section,
  .services-section *,
  .services-section *::before,
  .services-section *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================
   SOFT NAV CLICK ANIMATION
   Services + Officials
========================= */

#services,
#officials {
  scroll-margin-top: 95px;
}

.section-click-animate {
  animation: sectionSoftFade 0.45s ease both;
}

@keyframes sectionSoftFade {
  from {
    opacity: 0.96;
  }

  to {
    opacity: 1;
  }
}

/* Soft header animation */
.section-click-animate .section-label,
.section-click-animate .section-title,
.section-click-animate .text-muted {
  animation: softTextIn 0.45s ease both;
}

.section-click-animate .section-title {
  animation-delay: 0.05s;
}

.section-click-animate .text-muted {
  animation-delay: 0.08s;
}

@keyframes softTextIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services softer reveal */
#services.section-click-animate .login-notice {
  animation: softItemIn 0.45s ease 0.08s both;
}

#services.section-click-animate .service-card {
  animation: softItemIn 0.5s ease both;
}

#services.section-click-animate .service-card:nth-child(1) {
  animation-delay: 0.1s;
}

#services.section-click-animate .service-card:nth-child(2) {
  animation-delay: 0.15s;
}

#services.section-click-animate .service-card:nth-child(3) {
  animation-delay: 0.2s;
}

#services.section-click-animate .service-card:nth-child(4) {
  animation-delay: 0.25s;
}

#services.section-click-animate .service-card:nth-child(5) {
  animation-delay: 0.3s;
}

#services.section-click-animate .service-card:nth-child(6) {
  animation-delay: 0.35s;
}

/* Officials softer reveal */
#officials.section-click-animate .official-card {
  animation: softItemIn 0.5s ease both;
}

#officials.section-click-animate .official-card:nth-child(1) {
  animation-delay: 0.1s;
}

#officials.section-click-animate .official-card:nth-child(2) {
  animation-delay: 0.14s;
}

#officials.section-click-animate .official-card:nth-child(3) {
  animation-delay: 0.18s;
}

#officials.section-click-animate .official-card:nth-child(4) {
  animation-delay: 0.22s;
}

#officials.section-click-animate .official-card:nth-child(5) {
  animation-delay: 0.26s;
}

#officials.section-click-animate .official-card:nth-child(6) {
  animation-delay: 0.3s;
}

#officials.section-click-animate .official-card:nth-child(7) {
  animation-delay: 0.34s;
}

#officials.section-click-animate .official-card:nth-child(8) {
  animation-delay: 0.38s;
}

#officials.section-click-animate .official-card:nth-child(9) {
  animation-delay: 0.42s;
}

#officials.section-click-animate .official-card:nth-child(10) {
  animation-delay: 0.46s;
}

#officials.section-click-animate .official-card:nth-child(11) {
  animation-delay: 0.5s;
}

@keyframes softItemIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Softer hover only */
.service-card,
.official-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.service-card:hover,
.official-card:hover {
  transform: translateY(-4px);
}

/* Remove strong blur/line effects */
.section-click-animate .section-title::after {
  display: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .section-click-animate,
  .section-click-animate *,
  .section-click-animate *::before,
  .section-click-animate *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
