/* ============================================
   KEPLER AEROSPACE — CLEAN REWRITE v2
   style.css
   ============================================ */

:root {
  --primary:     #FFFFFF;
  --bg:          #000000;
  --secondary:   #1B1B1B;
  --accent:      #23A5DC;
  --accent2:     #2CA199;
  --text:        #F5F5F4;
  --muted:       #a5a4a4;
  --divider:     rgba(255,255,255,0.1);
  --font:        'Plus Jakarta Sans', sans-serif;
  --header-h:    80px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
figure { margin: 0; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: var(--primary); margin: 0; }
p { margin-bottom: 1.4em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.container { width: 90%; max-width: 1400px; margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 26px;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.btn::after { content: "→"; font-size: 15px; transition: transform 0.3s ease; }
.btn:hover::after { transform: translateX(5px); }

.btn-primary { background: linear-gradient(to right, var(--accent), #389C45); color: #fff; }
.btn-primary:hover { color: #000; filter: brightness(1.1); }

.btn-ghost {
  background: rgba(35,165,220,0.12);
  color: var(--primary);
  font-size: 13px;
  padding: 10px 22px;
}
.btn-ghost:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ---- Section Title ---- */
.section-title h2 { font-size: clamp(28px, 4vw, 47px); font-weight: 300; margin-bottom: 16px; }
.section-title h2 span { font-weight: 700; color: var(--accent2); }
.section-title p { color: var(--muted); font-size: 16px; max-width: 560px; line-height: 1.75; }
.section-title.centered { text-align: center; }
.section-title.centered p { margin: 0 auto; }

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-ring {
  width: 58px; height: 58px;
  border: 1px solid transparent;
  border-color: transparent var(--accent) transparent var(--accent);
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: transform 0.35s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header.hide { transform: translateY(-100%); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 32px;
}

.logo img { height: 50px; width: auto; transition: opacity 0.2s; }
.logo:hover img { opacity: 0.82; }

.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 2px; }

.nav-list a {
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.8);
  padding: 7px 11px; border-radius: 4px;
  transition: color 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}
.nav-list a:hover { color: var(--accent); }
.nav-list a.active { color: var(--accent); background: rgba(35,165,220,0.1); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 38px; height: 38px;
  background: rgba(35,165,220,0.08);
  border: 1px solid rgba(35,165,220,0.45);
  cursor: pointer; padding: 9px; border-radius: 4px;
  transition: background 0.2s ease;
}
.hamburger:hover { background: rgba(35,165,220,0.16); }
.hamburger span { display: block; height: 1px; background: var(--primary); border-radius: 2px; transition: all 0.25s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: absolute;
  top: 100%; left: 0; right: 0;
  background: #060d10;
  padding: 6px 0 18px;
  border-top: 1px solid rgba(35,165,220,0.12);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.78); padding: 11px 24px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-nav a:hover { color: var(--accent); padding-left: 30px; }

/* ============================================
   HERO — full-screen video background
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(120px, 15vw, 220px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
  background: #000;
}

/* Video wrapper */
.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}

.hero-video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* Dark overlay — keeps text readable */
.hero-video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    170deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.42) 50%,
    rgba(0,0,0,0.65) 100%
  );
}

/* Bottom glow line */
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 8%; right: 8%; height: 1px; z-index: 2;
  background: linear-gradient(to right, transparent, rgba(35,165,220,0.55), transparent);
}

/* Decorative orbital ring */
.hero-ring {
  position: absolute; right: -100px; top: 50%;
  transform: translateY(-52%);
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(35,165,220,0.1);
  z-index: 1; pointer-events: none;
}
.hero-ring::before {
  content: ''; position: absolute; inset: 48px;
  border-radius: 50%; border: 1px solid rgba(35,165,220,0.07);
}
.hero-ring::after {
  content: ''; position: absolute; inset: 108px;
  border-radius: 50%; border: 1px solid rgba(35,165,220,0.05);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 980px; margin: 0 auto;
}
.hero-content h1 {
  font-size: clamp(30px, 5.5vw, 62px);
  font-weight: 300; line-height: 1.18; margin-bottom: 26px;
  animation: fadeUp 0.9s ease both;
}
.hero-content h1 span { font-weight: 700; color: var(--accent2); }

.hero-sub {
  font-size: clamp(15px, 1.7vw, 19px);  /* bigger description text */
  color: rgba(245,245,244,0.82);
  max-width: 740px; margin: 0 auto 28px;
  line-height: 1.78;
  animation: fadeUp 0.9s 0.15s ease both;
}

.hero-tagline {
  display: inline-block;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600; color: var(--accent);
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(35,165,220,0.35);
  padding: 9px 24px; border-radius: 2px;
  animation: fadeUp 0.9s 0.28s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TRUSTED PARTNERS
   ============================================ */
.trusted-partners {
  padding: clamp(70px, 9vw, 110px) 0;
  background: url('../images/partner-bg.jpg') center/cover no-repeat;
  overflow: hidden;
}
.trusted-partners .section-title { margin-bottom: 52px; }

.marquee-track { overflow: hidden; position: relative; }
.marquee-track::before,
.marquee-track::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-track::before { left: 0;  background: linear-gradient(to right, rgba(0,0,0,0.55), transparent); }
.marquee-track::after  { right: 0; background: linear-gradient(to left,  rgba(0,0,0,0.55), transparent); }

.marquee-inner {
  display: flex; width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee-track:hover .marquee-inner { animation-play-state: paused; }

.logo-item { flex: 0 0 auto; padding: 0 42px; display: flex; align-items: center; justify-content: center; }
.logo-item img {
  height: 90px; width: auto; opacity: 0.88;
  border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 10px 14px;
  transition: all 0.35s ease;
}
.logo-item img:hover {
  opacity: 1;
  border-color: rgba(35,165,220,0.35);
  filter: drop-shadow(0 0 10px rgba(35,165,220,0.35));
  transform: translateY(0px);
}

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

/* ============================================
   AREAS OF FOCUS
   ============================================ */
.focus-section {
  padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 90px);
  background: linear-gradient(88deg, #041E2A, #000);
}

.focus-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 52px;
}

.focus-card {
  position: relative;
  background: rgba(35,165,220,0.07);
  border: 1px solid rgba(35,165,220,0.3);
  padding: 30px 26px 24px;
  transition: border-color 0.35s, background 0.35s, transform 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.focus-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--secondary); opacity: 0.28; z-index: 0;
  transition: opacity 0.35s;
}
.focus-card:hover {
  background: rgba(35,165,220,0.13);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(35,165,220,0.14), 0 0 0 1px rgba(35,165,220,0.12);
}
.focus-card:hover::before { opacity: 0.1; }
.focus-card > * { position: relative; z-index: 1; }

/* Icon */
.focus-card-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(35,165,220,0.1);
  border: 1px solid rgba(35,165,220,0.28);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 20px; color: var(--accent);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
/*.focus-card:hover .focus-card-icon {*/
/*  background: rgba(35,165,220,0.2);*/
/*  border-color: var(--accent);*/
/*  transform: scale(1.1) rotate(-5deg);*/
/*}*/

.focus-card h3 {
  font-size: 17px; font-weight: 600;
  color: var(--accent); margin-bottom: 0; line-height: 1.4;
}
.focus-card hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 18px 0; }
.focus-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.focus-card-img img { width: 32px; opacity: 0.65; transition: opacity 0.3s; }
.focus-card:hover .focus-card-img img { opacity: 1; }

.focus-footer-note { text-align: center; margin-top: 42px; color: var(--muted); font-size: 15px; }

/* ============================================
   OUR VISION — Glowing card with orbit bg
   ============================================ */
.vision-section {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--bg);
  position: relative; overflow: hidden;
}

/* Ambient glow behind everything */
.vision-section::before {
  content: ''; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(35,165,220,0.07) 0%, transparent 68%);
  pointer-events: none; z-index: 0;
}

.vision-section > .container { position: relative; z-index: 1; }

.vision-label {
  display: block; text-align: center;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px; opacity: 0.8;
}

.vision-heading { text-align: center; margin-bottom: 60px; }
.vision-heading h2 { font-size: clamp(28px, 4.5vw, 47px); font-weight: 300; }
.vision-heading h2 span { font-weight: 700; color: var(--accent2); }

/* The glowing card */
.vision-card {
  position: relative;
  border: 1px solid rgba(35,165,220,0.22);
  border-radius: 4px; overflow: hidden;
  padding: clamp(36px, 5.5vw, 68px) clamp(24px, 5vw, 72px);
  background: linear-gradient(135deg, rgba(4,18,32,0.98) 0%, rgba(2,10,20,0.96) 100%);
}

/* Top-left glow */
.vision-card::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 260px; height: 260px;
  background: radial-gradient(ellipse at top left, rgba(35,165,220,0.2) 0%, transparent 65%);
  pointer-events: none;
}
/* Bottom-right glow */
.vision-card::after {
  content: ''; position: absolute; bottom: -1px; right: -1px;
  width: 320px; height: 220px;
  background: radial-gradient(ellipse at bottom right, rgba(44,161,153,0.16) 0%, transparent 65%);
  pointer-events: none;
}

/* Orbit ring decoration */
.vision-orbit {
  position: absolute; right: -50px; top: 50%; transform: translateY(-50%);
  width: 360px; height: 360px;
  border-radius: 50%; border: 1px solid rgba(35,165,220,0.07);
  pointer-events: none;
}
.vision-orbit::before {
  content: ''; position: absolute; inset: 52px;
  border-radius: 50%; border: 1px solid rgba(35,165,220,0.05);
}
.vision-orbit::after {
  content: ''; position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 4px rgba(35,165,220,0.55);
}

/* Inner 2-col grid */
.vision-card-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 68px); align-items: center;
}

/* Left: quote + stats */
.vision-quote {
  border-left: 2px solid var(--accent);
  padding-left: clamp(18px, 3vw, 34px);
}
.vision-quote blockquote {
  font-size: clamp(16px, 2vw, 21px); font-weight: 400;
  line-height: 1.68; color: rgba(255,255,255,0.9);
  margin-bottom: 30px; font-style: italic;
}
.vision-quote blockquote strong { color: var(--primary); font-style: normal; font-weight: 700; }

.vision-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.vision-stat {
  display: flex; align-items: center; gap: 10px;
  background: rgba(35,165,220,0.07);
  border: 1px solid rgba(35,165,220,0.18);
  border-radius: 3px; padding: 10px 14px;
  transition: background 0.3s, border-color 0.3s;
}
.vision-stat:hover { background: rgba(35,165,220,0.14); border-color: rgba(35,165,220,0.4); }
.vision-stat-num { font-size: 22px; font-weight: 800; color: var(--accent); line-height: 1; }
.vision-stat-label { font-size: 11px; color: var(--muted); line-height: 1.4; text-transform: uppercase; letter-spacing: 0.05em; }

/* Right: pillars */
.vision-pillars { display: flex; flex-direction: column; gap: 3px; }
.vision-pillar {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.04); border-radius: 3px;
  transition: background 0.3s, border-color 0.3s; cursor: default;
}
.vision-pillar:hover { background: rgba(35,165,220,0.07); border-color: rgba(35,165,220,0.2); }
.vision-pillar-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%;
  background: rgba(35,165,220,0.1); border: 1px solid rgba(35,165,220,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--accent);
  transition: background 0.3s;
}
.vision-pillar:hover .vision-pillar-icon { background: rgba(35,165,220,0.2); }
.vision-pillar-text h4 {
  font-size: 13px; font-weight: 700; color: var(--primary);
  margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.07em;
}
.vision-pillar-text p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.55; }

/* Bottom accent line */
.vision-divider {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(35,165,220,0.45), rgba(44,161,153,0.3), transparent);
}

/* ============================================
   WHY KEPLER
   ============================================ */
.why-section {
  padding: clamp(70px, 9vw, 120px) 0;
  background: url('../images/bg-4.jpg') bottom/cover no-repeat;
  position: relative;
}
.why-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.62); z-index: 0;
}
.why-section > .container { position: relative; z-index: 1; }

.why-title { margin-bottom: 50px; }
.why-title h2 { font-size: clamp(28px, 4vw, 47px); font-weight: 300; }
.why-title h2 span { font-weight: 700; color: var(--accent2); }

.why-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.why-items { display: flex; flex-direction: column; gap: 14px; }

.why-item {
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  padding: 20px 22px; position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.why-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(35,165,220,0.1) 0%, transparent 100%);
  width: 0; transition: width 0.4s ease;
}
.why-item:hover::before, .why-item.active::before { width: 100%; }
.why-item:hover, .why-item.active {
  border-color: rgba(35,165,220,0.38);
  transform: translateX(5px);
  box-shadow: -4px 0 20px rgba(35,165,220,0.1);
}
.why-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; position: relative; z-index: 1; }
.why-item p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; position: relative; z-index: 1; }

.why-image figure { border-radius: 6px; overflow: hidden; position: relative; }
.why-image figure::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(35,165,220,0.07) 100%);
  opacity: 0; transition: opacity 0.4s ease;
}
.why-image figure:hover::after { opacity: 1; }
.why-image img {
  width: 100%; aspect-ratio: 1/0; object-fit: cover; border-radius: 6px;
  transition: transform 0.55s ease;
}
.why-image figure:hover img { transform: scale(1.04); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: #0b0b0b; border-top: 1px solid var(--divider); padding: 60px 0 0; }

.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1.4fr 1.6fr 1fr;
  gap: 40px; padding-bottom: 50px;
}

.footer-brand .footer-logo { margin-bottom: 20px; }
.footer-brand .footer-logo img { height: 44px; transition: opacity 0.2s; }
.footer-brand .footer-logo img:hover { opacity: 0.8; }

.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.55);
  transition: all 0.28s ease;
}
.footer-social a:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(35,165,220,0.1); transform: translateY(-2px);
}

.footer-col h4 { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); margin-bottom: 22px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px; color: rgba(245,245,244,0.5);
  transition: color 0.22s, padding-left 0.22s; display: inline-block;
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.35); margin: 0; }
.footer-bottom p a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom p a:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.35); text-transform: capitalize; transition: color 0.2s; }
.footer-legal a:hover { color: var(--accent); }

/* ============================================
   FADE-IN
   ============================================ */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.32s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
  :root { --header-h: 68px; }
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 86vh; }
  .hero-ring { display: none; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .vision-card-inner { grid-template-columns: 1fr; gap: 36px; }
  .vision-orbit { display: none; }
  .why-inner { grid-template-columns: 1fr; gap: 36px; }
  .why-image { order: -1; max-width: 540px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  .hero { min-height: 82vh; padding-top: 100px; padding-bottom: 60px; }
  .focus-grid { grid-template-columns: 1fr; }
  .logo-item { padding: 0 24px; }
  .logo-item img { height: 46px; }
  .vision-stats { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-legal { flex-wrap: wrap; gap: 14px; }
  .why-image img { aspect-ratio: 16/9; }
}

@media (max-width: 380px) {
  .hero-content h1 { font-size: 26px; }
  .vision-card { padding: 28px 18px; }
}