/* ============================================================
   Spatial Flytech - Main Theme Stylesheet
   ============================================================ */

html {
  scroll-behavior: smooth;
}

/* ======= KEYFRAME ANIMATIONS ======= */
@keyframes blob-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

@keyframes blob-pulse-rev {

  0%,
  100% {
    transform: scale(1.2);
    opacity: 0.5;
  }

  50% {
    transform: scale(1);
    opacity: 0.3;
  }
}

@keyframes float-xy {

  0%,
  100% {
    transform: translate(0, 0);
  }

  33% {
    transform: translate(50px, 30px);
  }

  66% {
    transform: translate(100px, 0);
  }
}

@keyframes bounce-y {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes nav-drop {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-left {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-right {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-x {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes marquee-ltr {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0%);
  }
}

@keyframes marquee-rtl {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Hero entrance */
.hero-title {
  animation: scale-pop 0.8s ease 0.3s both;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.hero-subtitle {
  animation: fade-up 0.8s ease 0.6s both;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.hero-buttons {
  animation: fade-up 0.8s ease 0.9s both;
}

/* Nav */
nav {
  animation: nav-drop 0.5s ease both;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  animation: bounce-y 2s ease-in-out infinite;
}

/* Blobs */
.blob-a {
  animation: blob-pulse 8s ease-in-out infinite;
}

.blob-b {
  animation: blob-pulse-rev 8s ease-in-out infinite;
}

.blob-f {
  animation: float-xy 10s ease-in-out infinite;
}

.blob-f2 {
  animation: float-xy 10s ease-in-out infinite;
  animation-delay: -5s;
}

/* Marquees */
.mq-ltr {
  animation: marquee-ltr 40s linear infinite;
}

.mq-rtl {
  animation: marquee-rtl 40s linear infinite;
}

/* ======= SCROLL REVEAL ======= */
.reveal {
  opacity: 0;
}

.reveal-left {
  opacity: 0;
}

.reveal-right {
  opacity: 0;
}

.reveal-scale-x {
  transform: scaleX(0);
  transform-origin: left;
}

.reveal.visible {
  animation: fade-up 0.8s ease forwards;
}

.reveal-left.visible {
  animation: slide-left 0.8s ease forwards;
}

.reveal-right.visible {
  animation: slide-right 0.8s ease forwards;
}

.reveal-scale-x.visible {
  animation: scale-x 1.5s ease forwards;
}

.d1 {
  animation-delay: 0.1s !important;
}

.d2 {
  animation-delay: 0.2s !important;
}

.d3 {
  animation-delay: 0.3s !important;
}

.d4 {
  animation-delay: 0.4s !important;
}

.d5 {
  animation-delay: 0.5s !important;
}

.d6 {
  animation-delay: 0.6s !important;
}

.d7 {
  animation-delay: 0.7s !important;
}

.d8 {
  animation-delay: 0.8s !important;
}

.d9 {
  animation-delay: 0.9s !important;
}

.d10 {
  animation-delay: 1.0s !important;
}

/* ======= MOBILE MENU ======= */
#mobile-menu {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}

/* ======= SERVICE CARDS ======= */
.svc-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.svc-card:hover .svc-desc {
  max-height: 10rem;
  opacity: 1;
}

/* ======= NAVBAR ======= */
.navbar,
#navbar {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0 !important;
}

.navbar a,
#navbar a {
  background: transparent !important;
  color: #0f172a !important;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
}

.navbar a:hover,
#navbar a:hover {
  background: #f0f9ff !important;
  color: #2563eb !important;
}

.navbar .active,
#navbar .active {
  color: #2563eb !important;
  font-weight: 600;
}

#desktop-nav button,
#mobile-nav button {
  background: transparent !important;
  color: #0f172a !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 8px 14px !important;
}

#desktop-nav button:hover,
#mobile-nav button:hover {
  background: #f0f9ff !important;
  color: #2563eb !important;
}

.logo-text {
  color: #0f172a !important;
  font-weight: 700;
  font-size: 18px;
}

/* ======= HERO ======= */
.hero,
#hero {
  position: relative;
}

.hero::before,
#hero::before {
  content: none;
  background: transparent;
}

.hero img,
#hero img {
  filter: none;
  opacity: 1 !important;
}

.hero h1,
.hero p,
#hero h1,
#hero p {
  position: relative;
  z-index: 2;
  color: #ffffff !important;
}

/* ======= CASE CARDS ======= */
.case-card {
  position: relative;
  overflow: hidden;
}

.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-card .content {
  padding: 16px;
  background: #ffffff !important;
  color: #0f172a !important;
}

.case-card h3,
.case-card h4 {
  color: #0f172a !important;
}

.case-card p {
  color: #475569 !important;
}

/* ======= FORM INPUTS ======= */
input::placeholder,
textarea::placeholder {
  color: #64748b !important;
  opacity: 1;
}

input,
textarea {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

.contact-card {
  background: #ffffff !important;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* ======= TRAINING CARDS ======= */
.training-feature-card {
  background: linear-gradient(135deg, #1a476a, #2563eb) !important;
  border: 1px solid rgba(37, 99, 235, 0.35) !important;
  box-shadow: 0 10px 24px rgba(26, 71, 106, 0.28);
}

.training-feature-card h3 {
  color: #ffffff !important;
}

.training-feature-card p {
  color: #e2e8f0 !important;
}

.training-feature-card .feature-cta {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.training-rd-card {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe) !important;
  border: 1px solid #bae6fd !important;
}

.training-rd-card h3 {
  color: #0c4a6e !important;
}

.training-rd-card p {
  color: #475569 !important;
}

.training-career-card {
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe) !important;
  border: 1px solid #a7f3d0 !important;
}

.training-career-card h3 {
  color: #0f172a !important;
}

.training-career-card p {
  color: #475569 !important;
}

/* ======= CHILD PAGE NAV (nav-frost) ======= */
.nav-frost {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.link-arrow svg {
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translate(2px, -2px);
}

/* Slide animations for hero slider */
.slide {
  transition: opacity 1s ease;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* WordPress Admin Bar offset */
.admin-bar #navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #navbar {
    top: 46px;
  }
}

