/* =========================================================
   CloudStation — Shared Stylesheet
   Dark slate gradient + glass-card aesthetic
   ========================================================= */

:root {
  --bg-1: #0f2027;
  --bg-2: #1c3b4a;
  --bg-3: #16222a;

  --glass-bg: rgba(255, 255, 255, 0.045);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.09);

  --text-primary: #ffffff;
  --text-body: #cbd5e1;
  --text-muted: #8aa0ad;

  --accent: #38bdf8;
  --accent-soft: #5fd3f3;
  --accent-dim: rgba(56, 189, 248, 0.18);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --max-width: 1140px;

  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-body);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Ambient glow signature — soft drifting cloud light behind content */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  animation: drift1 22s ease-in-out infinite;
}
body::after {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle, rgba(95, 211, 243, 0.14), transparent 70%);
  animation: drift2 26s ease-in-out infinite;
}
@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -30px); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  html { scroll-behavior: auto; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.15;
}

p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(15, 32, 39, 0.55);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { color: var(--text-primary); background: var(--glass-bg-strong); }
.nav-links a.active {
  color: var(--bg-1);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn-primary {
  background: var(--accent-soft);
  color: #07242e;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}
.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Glass card ---------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* ---------- Hero (used on every page) ---------- */
.page-hero {
  padding: 72px 0 56px;
}
.page-hero .glass-card {
  padding: 64px 48px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: var(--accent-dim);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.page-hero p.lead {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
  color: var(--text-body);
}
.page-hero .btn-row { justify-content: center; }
.logo-mark {
  margin: 0 auto 22px;
  display: flex;
  justify-content: center;
}
.logo-mark img { height: 64px; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}
.section-head p { color: var(--text-body); font-size: 1.05rem; }

/* ---------- Grids & feature cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 211, 243, 0.35);
  background: var(--glass-bg-strong);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-soft);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.feature-card p { font-size: 0.96rem; color: var(--text-body); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--accent-soft);
  display: block;
}
.stat-item .label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- Timeline / values (About) ---------- */
.value-card { padding: 28px; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.split-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* ---------- Job / career cards ---------- */
.job-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  flex-wrap: wrap;
}
.job-info h3 { font-size: 1.1rem; margin-bottom: 6px; }
.job-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.job-meta span {
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.job-card .btn { white-space: nowrap; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}
.contact-info-card { padding: 36px; }
.contact-info-card .info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.contact-info-card .info-row:last-child { margin-bottom: 0; }
.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-soft);
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; }
.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.contact-info-card p { font-size: 0.92rem; color: var(--text-body); }

.contact-form-card { padding: 36px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-body);
}
.field input,
.field textarea,
.field select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.08);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); }
.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 14px;
}
.form-success {
  display: none;
  background: var(--accent-dim);
  border: 1px solid rgba(95, 211, 243, 0.35);
  color: var(--accent-soft);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.form-success.show { display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 56px 48px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-body); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
  padding: 48px 0 28px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-muted); max-width: 280px; }
.footer-col h4 {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--text-body); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.footer-socials a:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.footer-socials svg { width: 16px; height: 16px; }

/* ---------- Page-specific helpers ---------- */
.tag-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent-soft);
  margin-bottom: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 32, 39, 0.97);
    backdrop-filter: blur(14px);
    padding: 16px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: none;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .nav-toggle { display: flex; }
  .page-hero .glass-card { padding: 44px 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .job-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .page-hero h1 { font-size: 1.8rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}
