/* =========================================================
   POWERTECH — Premium motion & polish
   ========================================================= */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

@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; }
}

/* ---------- PAGE LOADER ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #0a1628 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}
.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}
.page-loader {
  pointer-events: auto;
}
.loader-logo {
  width: min(420px, 90vw);
  height: auto;
  max-height: 160px;
  object-fit: contain;
  animation: loaderPulse 1.8s ease-in-out infinite;
}
.loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 4px;
  animation: loaderSlide 1.2s var(--ease-smooth) infinite;
}
.loader-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------- SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 10001;
  background: linear-gradient(90deg, var(--orange), var(--orange-light), var(--blue-light));
  box-shadow: 0 0 12px rgba(241, 90, 36, 0.6);
  transition: width 0.1s linear;
}

/* ---------- HEADER ENHANCED ---------- */
.header {
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s, background 0.4s, backdrop-filter 0.4s;
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(7, 47, 87, 0.12);
}
.header.header-hidden {
  transform: translateY(-100%);
}

/* ---------- HERO CINEMATIC ---------- */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(7, 47, 87, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}
.hero-bg-layer {
  position: absolute;
  inset: -8%;
  z-index: 0;
  will-change: transform;
}
.hero-bg-inner {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(7, 47, 87, 0.82) 0%, rgba(30, 30, 30, 0.75) 100%), var(--hero-bg);
  background-size: cover;
  background-position: center;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
.hero .container { position: relative; z-index: 2; }

.hero-content > * {
  opacity: 0;
  transform: translateY(40px);
}
.hero.is-ready .hero-content > * {
  animation: heroReveal 1s var(--ease-out-expo) forwards;
}
.hero.is-ready .hero-badge { animation-delay: 0.1s; }
.hero.is-ready .hero-content h1 { animation-delay: 0.25s; }
.hero.is-ready .hero-sub { animation-delay: 0.4s; }
.hero.is-ready .hero-buttons { animation-delay: 0.55s; }
.hero.is-ready .hero-highlights { animation-delay: 0.7s; }

.hero-visual .hero-card {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
}
.hero.is-ready .hero-card-main {
  animation: heroCardIn 1.1s var(--ease-out-expo) 0.5s forwards;
}
.hero.is-ready .hero-card-stat {
  animation: heroCardIn 1.1s var(--ease-out-expo) 0.75s forwards, statFloat 4s ease-in-out 2.2s infinite;
}

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroCardIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes statFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 span {
  background: linear-gradient(120deg, var(--orange-light), #fff 50%, var(--orange-light));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 4s linear infinite;
}
@keyframes shimmerText {
  to { background-position: 200% center; }
}

.hero-highlights li {
  transition: transform 0.35s var(--ease-smooth), opacity 0.35s;
}
.hero-highlights li:hover {
  transform: translateX(8px);
}

/* ---------- PAGE BANNER ---------- */
.page-banner h1 {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: bannerTitle 1s var(--ease-out-expo) 0.2s forwards;
}
.page-banner .breadcrumb {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.5s forwards;
}
@keyframes bannerTitle {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- REVEAL VARIANTS & STAGGER ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  transform: translateX(-50px);
}
.reveal-left.visible { transform: translateX(0); }
.reveal-right {
  transform: translateX(50px);
}
.reveal-right.visible { transform: translateX(0); }
.reveal-scale {
  transform: scale(0.92);
}
.reveal-scale.visible { transform: scale(1); }

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }

/* Stagger children in grids */
.stagger-children .reveal,
.stagger-children > .feature-card,
.stagger-children > .service-card,
.stagger-children > .fleet-card,
.stagger-children > .testimonial-card,
.stagger-children > .portfolio-item,
.stagger-children > .mvv-card {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
.stagger-children.is-visible .reveal.visible,
.stagger-children.is-visible > .feature-card,
.stagger-children.is-visible > .service-card,
.stagger-children.is-visible > .fleet-card,
.stagger-children.is-visible > .testimonial-card,
.stagger-children.is-visible > .portfolio-item,
.stagger-children.is-visible > .mvv-card {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: 0.54s; }

/* ---------- CARDS PREMIUM HOVER ---------- */
.feature-card,
.service-card,
.fleet-card,
.testimonial-card {
  transition: transform 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}
.feature-card::before,
.service-card::before,
.fleet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s;
  pointer-events: none;
  z-index: 2;
}
.feature-card:hover::before,
.service-card:hover::before,
.fleet-card:hover::before {
  left: 140%;
}
.feature-card:hover,
.testimonial-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 24px 48px rgba(10, 77, 140, 0.18);
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(10, 77, 140, 0.15);
}
.fleet-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 77, 140, 0.14);
}

.service-img {
  overflow: hidden;
}
.service-img img {
  transition: transform 0.7s var(--ease-smooth);
}
.service-card:hover .service-img img {
  transform: scale(1.1);
}

.portfolio-item {
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s;
}
.portfolio-item:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.portfolio-overlay {
  transition: opacity 0.45s, transform 0.45s var(--ease-smooth);
  transform: translateY(20px);
}
.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

/* ---------- BUTTONS SHINE ---------- */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.55s;
}
.btn:hover::after {
  left: 150%;
}

/* ---------- SECTION HEAD GLOW ---------- */
.section-head .eyebrow {
  position: relative;
  animation: eyebrowGlow 3s ease-in-out infinite;
}
@keyframes eyebrowGlow {
  0%, 100% { color: var(--orange); }
  50% { color: var(--orange-light); }
}

/* ---------- STATS SECTION ---------- */
.stats {
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(241, 90, 36, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: statsOrb 8s ease-in-out infinite;
}
@keyframes statsOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 20px); }
}
.stat-item {
  transition: transform 0.4s var(--ease-smooth);
}
.stat-item:hover {
  transform: translateY(-8px) scale(1.02);
}
.stat-item i {
  transition: transform 0.5s var(--ease-spring);
}
.stat-item:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
  animation: ctaSweep 5s ease-in-out infinite;
}
@keyframes ctaSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ---------- WHATSAPP & BACK TO TOP ---------- */
.whatsapp-float {
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}
.whatsapp-float:hover {
  transform: scale(1.12) rotate(8deg);
}
.back-to-top {
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s var(--ease-spring);
}
.back-to-top.visible:hover {
  transform: translateY(-6px) scale(1.05);
}

/* ---------- FEATURE ICON POP ---------- */
.feature-icon {
  transition: transform 0.5s var(--ease-spring), box-shadow 0.4s;
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 28px rgba(241, 90, 36, 0.4);
}

/* ---------- MOBILE MENU SLIDE ---------- */
@media (max-width: 768px) {
  .nav-menu {
    transition: left 0.45s var(--ease-out-expo), box-shadow 0.45s;
  }
  .nav-menu.active {
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.2);
  }
}

/* Tilt helper class */
.tilt-active {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- NAV LINK UNDERLINE ---------- */
.nav-menu a:not(.nav-cta) {
  position: relative;
}
.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transition: width 0.4s var(--ease-out-expo);
}
.nav-menu a:not(.nav-cta):hover::after,
.nav-menu a:not(.nav-cta).active::after {
  width: 100%;
}
.nav-cta {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(241, 90, 36, 0.35);
}
.logo-image {
  transition: transform 0.5s var(--ease-smooth), filter 0.5s;
}
.header.scrolled .logo-image:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 12px rgba(10, 77, 140, 0.25));
}

/* ---------- FLEET / ABOUT IMAGE REVEAL ---------- */
.fleet-card img,
.fleet-photo img,
.about-image img,
.equipment-feature img {
  transition: transform 0.8s var(--ease-smooth);
}
.fleet-card:hover img,
.fleet-photo:hover img,
.about-image:hover img {
  transform: scale(1.06);
}
.fleet-card.image-reveal,
.image-reveal {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.image-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-dark);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1s var(--ease-out-expo);
  z-index: 2;
  pointer-events: none;
}
.image-reveal.is-visible::after {
  transform: scaleX(0);
}

/* ---------- COUNTER GLOW ---------- */
.stat-number.counting {
  color: var(--orange);
  text-shadow: 0 0 24px rgba(241, 90, 36, 0.45);
  transition: color 0.3s, text-shadow 0.3s;
}

/* ---------- TOPBAR FADE IN ---------- */
body.loaded .topbar {
  animation: fadeInDown 0.8s var(--ease-smooth) 0.1s both;
}
body.loaded .header {
  animation: fadeInDown 0.8s var(--ease-smooth) 0.2s both;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ---------- MARQUEE TRUST STRIP ---------- */
.trust-marquee {
  overflow: hidden;
  background: var(--grey-bg);
  padding: 14px 0;
  border-block: 1px solid rgba(10, 77, 140, 0.08);
}
.trust-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.trust-marquee:hover .trust-marquee-track {
  animation-play-state: paused;
}
.trust-marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-dark);
}
.trust-marquee-item i {
  color: var(--orange);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- ABOUT SECTION MOTION ---------- */
.about-images .about-img-1 {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}
.about-images .about-img-2 {
  opacity: 0;
  transform: translateX(30px) translateY(20px);
  transition: opacity 1s var(--ease-out-expo) 0.15s, transform 1s var(--ease-out-expo) 0.15s;
}
.about-images.is-visible .about-img-1,
.about-images.visible .about-img-1 {
  opacity: 1;
  transform: translateX(0);
}
.about-images.is-visible .about-img-2,
.about-images.visible .about-img-2 {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.about-badge {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s var(--ease-spring), transform 0.7s var(--ease-spring);
}
.about-images.is-visible .about-badge,
.about-images.visible .about-badge {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.35s;
}
.about-features li {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.about-content.visible .about-features li:nth-child(1) { transition-delay: 0.15s; }
.about-content.visible .about-features li:nth-child(2) { transition-delay: 0.25s; }
.about-content.visible .about-features li:nth-child(3) { transition-delay: 0.35s; }
.about-content.visible .about-features li:nth-child(4) { transition-delay: 0.45s; }
.about-content.visible .about-features li {
  opacity: 1;
  transform: translateY(0);
}

/* About section: always show photos & badge on small screens */
@media (max-width: 992px) {
  .about-images .about-img-1,
  .about-images .about-img-2,
  .about-images .about-badge {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
  .about-images.reveal,
  .about-content.reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .about-content.visible .about-features li,
  .about-features li {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- FOOTER LINK HOVER ---------- */
.footer-links a {
  transition: color 0.3s, padding-left 0.35s var(--ease-smooth);
}
.footer-links a:hover {
  padding-left: 6px;
  color: var(--orange-light);
}

/* ---------- CONTACT FORM FOCUS ---------- */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.2);
  border-color: var(--orange);
  transition: box-shadow 0.35s, border-color 0.35s;
}
