/* ============================================================
   SKY QUEST — home-pro.css
   Professional redesign layer for the Home page.
   Additive override — loaded last. Remove to revert.
   ============================================================ */

/* ---------- Layout container: wider, centered, airy ---------- */
.content > .bottom-content {
  float: none;
  width: min(92%, 1120px);
  margin: 0 auto !important;
  padding-bottom: 60px;
}

/* ============================================================
   HERO
   ============================================================ */
.top-content {
  position: relative;
  float: none;
  width: 100%;
  height: 78vh;
  min-height: 460px;
  overflow: hidden;
  /* dark backdrop for the nano-bot swarm (keeps hero text readable) */
  background: radial-gradient(ellipse at 50% 32%, #15294b 0%, #0a1224 72%);
}
/* Giant gradient SKYQUEST wordmark — sits behind the bots */
.hero-wordmark {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-start;     /* anchor the word to the upper area */
  justify-content: center;
  padding-top: 8vh;
  font-size: clamp(64px, 17vw, 300px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(120deg, #2ea3f2 0%, #00c2a8 50%, #6a5fd0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0.85;
}
/* nano-bot canvas — in front of the wordmark, behind the overlay + text */
.hero-bots {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
/* soft vignette only — keeps the center clear so the bots show through */
.top-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 38%,
    rgba(10, 18, 36, 0) 42%,
    rgba(10, 18, 36, 0.5) 100%
  );
}
/* bouncing scroll cue */
.top-content::before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  transform: translateX(-50%) rotate(45deg);
  animation: hero-bounce 1.8s ease-in-out infinite;
}
@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) rotate(45deg) translate(0, 0); }
  50%      { transform: translateX(-50%) rotate(45deg) translate(6px, 6px); }
}

.top-content .text-container {
  top: auto !important;
  bottom: 9% !important;       /* drop the text below the SKYQUEST wordmark */
  transform: none !important;
  z-index: 3;
  padding: 0 24px;
  box-sizing: border-box;
}
.top-content .text-container p {
  float: none !important;
  width: auto !important;
  opacity: 1 !important;            /* crisp, not dimmed */
}
.top-content .text-container p:nth-child(1) {
  font-size: clamp(64px, 11vw, 150px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

/* Per-letter roll (JS splits the headline into .hero-letter spans) */
.top-content .text-container p.hero-split {
  perspective: 900px;
  background: none !important;
  white-space: pre-wrap;                  /* keep the spaces between words */
}
.top-content .text-container p.hero-split .hero-letter {
  display: inline-block;
  transform-origin: center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  /* keep space-only spans from collapsing, so words stay separated */
  white-space: pre;
}
/* gradient only on the headline letters; paragraph letters stay clean white */
.top-content .text-container p:nth-child(1).hero-split .hero-letter {
  background: linear-gradient(135deg, #ffffff 0%, #9bd6ff 50%, #4aa8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.top-content .text-container p:nth-child(2) {
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 2.2;
  max-width: 760px;
  margin: 0 auto;
  color: #ffffff;                 /* white */
  letter-spacing: 0.06em;         /* breathing room between characters */
  word-spacing: 0.18em;           /* proper gap between words */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.65));
}
/* ensure the split letter-spans render white too */
.top-content .text-container p:nth-child(2).hero-split .hero-letter {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

/* ============================================================
   SECTION HEADINGS  (Our Business / Project)
   ============================================================ */
.bottom-content-one,
.bottom-content-four {
  float: none;
  width: 100%;
  margin: 70px 0 6px;
  text-align: center;
}
.bottom-content-one span,
.bottom-content-four span {
  float: none;
  width: 100%;
}
.bottom-content-one span:first-child,
.bottom-content-four span:first-child {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #16243f 0%, #2ea3f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bottom-content-one span:nth-child(2),
.bottom-content-four span:nth-child(2) {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #8294b4;
  opacity: 1 !important;
}
.divider {
  float: none;
  width: 64px;
  margin: 24px auto 0;
}

/* Intro paragraph */
.bottom-content-two {
  float: none;
  width: 100%;
  max-width: 720px;
  margin: 6px auto 10px !important;
}
.bottom-content-two {
  text-align: center;                  /* center the paragraph */
}
.bottom-content-two span {
  display: block;                      /* normal centered paragraph block */
  float: none;
  width: 100%;
  font-size: 15px;
  line-height: 2;
  opacity: 1 !important;
  color: #3a4a63;
  white-space: normal;
}

/* Hover glows each character individually (no lift, no layout shift). */
.bottom-content-two:hover {
  transform: none !important;
  box-shadow: none !important;
}
.bottom-content-two .char {
  display: inline-block;               /* inline-block so the letter can lift */
  width: 1.3em;                        /* fixed card-size slot per character */
  text-align: center;                  /* center the glyph in its slot */
  vertical-align: baseline;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}
.bottom-content-two .char:hover {
  color: #2ea3f2;                      /* brand blue */
  text-shadow: 0 0 12px rgba(46, 163, 242, 0.65);
  transform: translateY(-6px) scale(1.2);   /* jump up + grow */
}

/* ============================================================
   SERVICE CARDS  (alternating image / text)
   ============================================================ */
.bottom-content-three {
  display: flex;
  align-items: stretch;
  float: none;
  width: 100%;
  margin: 30px 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 48px -28px rgba(20, 40, 80, 0.4);
  border: 1px solid rgba(20, 40, 80, 0.06);
}
.bottom-content-three:nth-child(even) {
  flex-direction: row-reverse;   /* zig-zag layout */
}

/* ---- 01 / 02 / 03 staggered "windowing": smaller cards, left / right / left ---- */
.bottom-content-three {
  width: 66%;                    /* narrower than full width */
  margin-top: 26px;
  margin-bottom: 26px;
}
.theme-pixel,                    /* 01 -> left */
.theme-tomo {                    /* 03 -> left */
  margin-left: 0;
  margin-right: auto;
}
.theme-nano {                    /* 02 -> right */
  margin-left: auto;
  margin-right: 0;
}
@media (max-width: 820px) {
  .bottom-content-three {        /* full width + centered on small screens */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---- Dash-in: each card flies in from its stagger side on scroll ---- */
.bottom-content-three.sq-reveal {
  transition-duration: 1.8s;
  transition-timing-function: cubic-bezier(0.22, 1.18, 0.36, 1); /* slight overshoot = "dash" */
}
.theme-pixel.sq-reveal,           /* 01 dashes in from the left */
.theme-tomo.sq-reveal {           /* 03 dashes in from the left */
  transform: translateX(-140px) scale(0.95);
}
.theme-nano.sq-reveal {           /* 02 dashes in from the right */
  transform: translateX(140px) scale(0.95);
}
.theme-pixel.sq-reveal.sq-in,
.theme-nano.sq-reveal.sq-in,
.theme-tomo.sq-reveal.sq-in {
  transform: none;                /* settle into place */
}

.bottom-content-three-text {
  flex: 1;
  width: auto;
  padding: 44px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.bottom-content-three-text span {
  float: none !important;
  width: auto !important;
  margin: 0 0 12px !important;
  opacity: 1 !important;
}
.bottom-content-three-text span:nth-child(1) {            /* 01 / 02 / 03 */
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px !important;
  background: linear-gradient(135deg, #2ea3f2, #6a5fd0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bottom-content-three-text span:nth-child(2) {            /* JP title */
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  color: #16243f;
}
.bottom-content-three-text span:nth-child(3) {            /* EN subtitle */
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #2ea3f2;
  font-weight: 700;
}
.bottom-content-three-text span:nth-child(4) {            /* description */
  font-size: 14px;
  line-height: 1.95;
  color: #5d6b82;
  margin-bottom: 18px !important;
}
.bottom-content-three-text a {                            /* View More button */
  float: none;
  width: auto;
  align-self: flex-start;
  margin: 6px 0 0 0 !important;
  padding: 12px 28px;
  border-radius: 40px;
  background: linear-gradient(135deg, #2ea3f2, #1f7fd6);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 26px -10px rgba(46, 163, 242, 0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.bottom-content-three-text a:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 32px -10px rgba(46, 163, 242, 0.7);
}

/* ---- Per-card color themes (number, subtitle, button match each service) ---- */

/* 01 — theme: teal -> green */
.theme-pixel .bottom-content-three-text span:nth-child(1) {
  background: linear-gradient(135deg, #00c2a8, #3ddc97);
}
.theme-pixel .bottom-content-three-text span:nth-child(3) { color: #00b89c; }
.theme-pixel .bottom-content-three-text a {
  background: linear-gradient(135deg, #00c2a8, #06a07f);
  box-shadow: 0 12px 26px -10px rgba(0, 194, 168, 0.6);
}
.theme-pixel .bottom-content-three-text a:hover {
  box-shadow: 0 18px 32px -10px rgba(0, 194, 168, 0.75);
}

/* 02 — theme: blue -> violet */
.theme-nano .bottom-content-three-text span:nth-child(1) {
  background: linear-gradient(135deg, #2ea3f2, #6a5fd0);
}
.theme-nano .bottom-content-three-text span:nth-child(3) { color: #6a5fd0; }
.theme-nano .bottom-content-three-text a {
  background: linear-gradient(135deg, #2ea3f2, #6a5fd0);
  box-shadow: 0 12px 26px -10px rgba(106, 95, 208, 0.6);
}
.theme-nano .bottom-content-three-text a:hover {
  box-shadow: 0 18px 32px -10px rgba(106, 95, 208, 0.7);
}

/* 03 — theme: pink -> blue */
.theme-tomo .bottom-content-three-text span:nth-child(1) {
  background: linear-gradient(135deg, #ff5d8f, #2ea3f2);
}
.theme-tomo .bottom-content-three-text span:nth-child(3) { color: #ff5d8f; }
.theme-tomo .bottom-content-three-text a {
  background: linear-gradient(135deg, #ff5d8f, #2ea3f2);
  box-shadow: 0 12px 26px -10px rgba(255, 93, 143, 0.6);
}
.theme-tomo .bottom-content-three-text a:hover {
  box-shadow: 0 18px 32px -10px rgba(255, 93, 143, 0.75);
}

/* 01 image (logo) shown in full on its brand panel (teal -> green) */
.theme-pixel .bottom-content-three-image {
  background: linear-gradient(160deg, #00c2a8, #3ddc97);
}
.theme-pixel .bottom-content-three-image img {
  object-fit: contain;
  padding: 20px 0;
}

/* ---- Lightbox modal for project images ---- */
.bottom-content-one-carousel img {
  cursor: zoom-in;
}
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.img-modal.open {
  display: flex;
}
.img-modal-content {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: imgModalIn 0.25s ease;
}
@keyframes imgModalIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.img-modal-close {
  position: fixed;
  top: 16px;
  right: 26px;
  font-size: 44px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  z-index: 3001;
  transition: transform 0.2s ease, color 0.2s ease;
}
.img-modal-close:hover {
  color: #2ea3f2;
  transform: scale(1.15);
}

.bottom-content-three-image {
  float: none;
  width: 44%;
  height: auto;
  min-height: 320px;
  background: linear-gradient(160deg, #101a30, #0a1224);
}
.bottom-content-three-image img {
  float: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bottom-content-three-image img.contain {
  object-fit: contain;
  padding: 34px;
  box-sizing: border-box;
}

/* ============================================================
   PROJECT CAROUSEL
   ============================================================ */
.bottom-content-one-carousel {
  float: none;
  width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #101a30, #0a1224);
  box-shadow: 0 22px 48px -26px rgba(20, 40, 80, 0.35);
}
.bottom-content-one-carousel img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .bottom-content-three,
  .bottom-content-three:nth-child(even) {
    flex-direction: column;
  }
  .bottom-content-three-image {
    width: 100%;
    min-height: 220px;
    height: 240px;
  }
  .bottom-content-three-text {
    padding: 32px 28px;
  }
  .top-content { height: 62vh; }
  .bottom-content-one-carousel img { height: 240px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .top-content video { animation: none !important; }
  .top-content::before { animation: none !important; }
}
