/* ============================================================
   SKY-BLUE THEME — Light blue background + floating clouds
   ============================================================ */

/* Override body background for the homepage */
body.sky-theme {
  --bg: #87CEEB;
  --ink: #0a2a4a;
  background: linear-gradient(180deg,
    #87CEEB 0%,
    #a8dbf0 15%,
    #b8e4f7 30%,
    #c8ecfa 50%,
    #d5f0fc 70%,
    #e3f6ff 100%
  ) !important;
  color: #0a2a4a;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Clouds container */
.sky-clouds {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Individual cloud layers */
.sky-cloud {
  position: absolute;
  opacity: 0.7;
  filter: blur(1px);
}

/* Cloud SVG shapes (pure CSS clouds) */
.sky-cloud::before {
  content: '';
  display: block;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

/* Cloud type 1 — large fluffy */
.sky-cloud--1 {
  width: 300px; height: 100px;
  top: 8%;
  animation: cloudFloat1 45s linear infinite;
}
.sky-cloud--1::before {
  width: 300px; height: 90px;
  border-radius: 100px;
  box-shadow:
    -70px 10px 0 -10px rgba(255,255,255,0.9),
    70px 15px 0 -15px rgba(255,255,255,0.85),
    -30px -30px 0 10px rgba(255,255,255,0.8),
    40px -20px 0 5px rgba(255,255,255,0.85),
    0 -35px 0 15px rgba(255,255,255,0.9);
}

/* Cloud type 2 — medium */
.sky-cloud--2 {
  width: 220px; height: 70px;
  top: 20%;
  animation: cloudFloat2 55s linear infinite;
  opacity: 0.55;
}
.sky-cloud--2::before {
  width: 220px; height: 65px;
  border-radius: 80px;
  box-shadow:
    -50px 8px 0 -8px rgba(255,255,255,0.9),
    50px 10px 0 -10px rgba(255,255,255,0.85),
    -20px -25px 0 8px rgba(255,255,255,0.8),
    30px -15px 0 5px rgba(255,255,255,0.85);
}

/* Cloud type 3 — small wispy */
.sky-cloud--3 {
  width: 180px; height: 55px;
  top: 35%;
  animation: cloudFloat3 38s linear infinite;
  opacity: 0.45;
}
.sky-cloud--3::before {
  width: 180px; height: 50px;
  border-radius: 60px;
  box-shadow:
    -40px 5px 0 -5px rgba(255,255,255,0.85),
    40px 8px 0 -8px rgba(255,255,255,0.8),
    0 -20px 0 8px rgba(255,255,255,0.85);
}

/* Cloud type 4 — tiny background */
.sky-cloud--4 {
  width: 140px; height: 45px;
  top: 50%;
  animation: cloudFloat4 60s linear infinite;
  opacity: 0.35;
}
.sky-cloud--4::before {
  width: 140px; height: 40px;
  border-radius: 50px;
  box-shadow:
    -30px 5px 0 -5px rgba(255,255,255,0.8),
    30px 5px 0 -5px rgba(255,255,255,0.75);
}

/* Cloud type 5 — high altitude */
.sky-cloud--5 {
  width: 260px; height: 80px;
  top: 12%;
  animation: cloudFloat5 50s linear infinite;
  opacity: 0.5;
}
.sky-cloud--5::before {
  width: 260px; height: 75px;
  border-radius: 90px;
  box-shadow:
    -60px 8px 0 -10px rgba(255,255,255,0.85),
    60px 12px 0 -12px rgba(255,255,255,0.8),
    -25px -28px 0 10px rgba(255,255,255,0.85),
    35px -18px 0 5px rgba(255,255,255,0.8);
}

/* Cloud type 6 */
.sky-cloud--6 {
  width: 200px; height: 60px;
  top: 65%;
  animation: cloudFloat6 42s linear infinite;
  opacity: 0.3;
}
.sky-cloud--6::before {
  width: 200px; height: 55px;
  border-radius: 70px;
  box-shadow:
    -45px 6px 0 -6px rgba(255,255,255,0.8),
    45px 8px 0 -8px rgba(255,255,255,0.75),
    0 -22px 0 8px rgba(255,255,255,0.8);
}

/* Cloud animations — each layer at different speed/direction */
@keyframes cloudFloat1 {
  0%   { transform: translateX(-400px); }
  100% { transform: translateX(calc(100vw + 400px)); }
}
@keyframes cloudFloat2 {
  0%   { transform: translateX(calc(100vw + 300px)); }
  100% { transform: translateX(-350px); }
}
@keyframes cloudFloat3 {
  0%   { transform: translateX(-350px); }
  100% { transform: translateX(calc(100vw + 350px)); }
}
@keyframes cloudFloat4 {
  0%   { transform: translateX(calc(100vw + 200px)); }
  100% { transform: translateX(-250px); }
}
@keyframes cloudFloat5 {
  0%   { transform: translateX(-450px); }
  100% { transform: translateX(calc(100vw + 450px)); }
}
@keyframes cloudFloat6 {
  0%   { transform: translateX(calc(100vw + 250px)); }
  100% { transform: translateX(-300px); }
}

/* ── Hero Section — Cinematic Video Background ──────── */
.sky-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sky-hero--video-bg {
  background: #000;
}

.sky-hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.sky-hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 180%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.sky-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center 40%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg,
      rgba(0,20,50,0.3) 0%,
      rgba(0,0,0,0.1) 40%,
      rgba(0,0,0,0.15) 60%,
      rgba(0,20,50,0.6) 100%);
  pointer-events: none;
}

.sky-hero-inner--centered {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(30px, 5vw, 60px) clamp(16px, 3vw, 40px);
}

.sky-hero-text--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sky-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.sky-hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4db8ff;
  box-shadow: 0 0 12px rgba(77,184,255,0.6);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.sky-hero-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin: 0 0 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.3);
}
.sky-hero-title--glow {
  animation: titleGlow 4s ease-in-out infinite alternate;
}
@keyframes titleGlow {
  0% { text-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 0 60px rgba(77,184,255,0.08); }
  100% { text-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 0 80px rgba(77,184,255,0.18); }
}
.sky-hero-title span {
  background: linear-gradient(135deg, #60b5ff, #a8dbf0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sky-hero-sub {
  font-family: 'Heebo', sans-serif;
  font-size: clamp(16px, 2vw, 21px);
  color: #1a4a6a;
  margin: 0 0 28px;
  line-height: 1.6;
  max-width: 50ch;
}
.sky-hero-sub--light {
  color: rgba(255,255,255,0.85);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.sky-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.sky-hero-actions--centered {
  justify-content: center;
}
.sky-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #0066cc, #0088ee);
  color: #fff;
  border-radius: 999px;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.35), 0 0 0 0 rgba(77,184,255,0);
  transition: transform 0.2s, box-shadow 0.25s;
}
.sky-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 102, 204, 0.45), 0 0 20px rgba(77,184,255,0.15);
  color: #fff;
}
.sky-hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #0a3a6a;
  border-radius: 999px;
  font-family: 'Heebo', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.sky-hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}
.sky-hero-cta-secondary--light {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sky-hero-cta-secondary--light:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ── Smart Search ─────────────────────────────────────── */
.sky-search {
  position: relative;
  z-index: 10;
  max-width: 700px;
  margin: -30px auto 30px;
  padding: 0 clamp(16px, 3vw, 40px);
}
.sky-search-box {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 60, 120, 0.12), 0 0 0 0 rgba(0, 102, 204, 0);
  transition: box-shadow 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sky-search-box:focus-within {
  border-color: #4db8ff;
  box-shadow: 0 12px 40px rgba(0, 60, 120, 0.15), 0 0 0 4px rgba(77, 184, 255, 0.15);
}
.sky-search-icon {
  padding: 0 0 0 18px;
  color: #4db8ff;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sky-search-icon svg {
  width: 22px; height: 22px;
}
.sky-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px 14px;
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  color: #0a2a4a;
  outline: none;
  direction: rtl;
}
.sky-search-input::placeholder {
  color: rgba(10, 42, 74, 0.4);
}
.sky-search-btn {
  padding: 10px 22px;
  margin: 5px;
  background: linear-gradient(135deg, #0066cc, #0088ee);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.sky-search-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Search Results Dropdown */
.sky-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0; left: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(135, 206, 250, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 60, 120, 0.15);
  padding: 12px;
  display: none;
  max-height: 400px;
  overflow-y: auto;
  z-index: 999;
}
.sky-search-results.is-visible {
  display: block;
  animation: searchDropIn 0.2s ease-out;
}
@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.sky-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #0a2a4a;
  transition: background 0.15s;
}
.sky-search-result:hover {
  background: rgba(135, 206, 250, 0.12);
}
.sky-search-result-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.sky-search-result-info {
  flex: 1;
}
.sky-search-result-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}
.sky-search-result-desc {
  font-size: 12px;
  color: rgba(10, 42, 74, 0.5);
  line-height: 1.3;
}
.sky-search-empty {
  text-align: center;
  padding: 20px;
  color: rgba(10, 42, 74, 0.4);
  font-size: 14px;
}

/* ── Override section titles and cubes for sky theme ── */
body.sky-theme .hp-shell {
  position: relative;
  z-index: 1;
}
body.sky-theme .hp-section-title {
  color: #0a3a6a;
}
body.sky-theme .hp-section-title::before {
  background: linear-gradient(180deg, #0066cc, rgba(0, 102, 204, 0.3));
}
body.sky-theme .hp-cube {
  border-color: rgba(0, 100, 200, 0.15);
  box-shadow: 0 8px 24px rgba(0, 60, 120, 0.08);
}
body.sky-theme .hp-cube:hover {
  box-shadow: 0 24px 48px rgba(0, 60, 120, 0.2);
}
body.sky-theme .hp-action {
  border-color: rgba(0, 100, 200, 0.2);
  box-shadow: 0 6px 20px rgba(0, 60, 120, 0.1);
}

/* Footer override */
body.sky-theme .hp-footer {
  background: linear-gradient(180deg, rgba(8, 45, 80, 0.95), rgba(5, 30, 55, 0.98));
  border-top: 1px solid rgba(135, 206, 250, 0.2);
}
body.sky-theme .hp-footer-brand {
  color: #87CEEB;
}
body.sky-theme .hp-footer-copy {
  color: rgba(135, 206, 250, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .sky-hero {
    min-height: 100vh;
  }
  .sky-hero-video-iframe {
    width: 300%;
    height: 300%;
  }
  .sky-hero-title {
    font-size: clamp(34px, 9vw, 52px);
  }
  .sky-search {
    margin-top: -15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky-cloud,
  .sky-hero-badge-dot {
    animation: none !important;
  }
}
