/* ============ Quanta Technology — Global Styles (Light/Dark) ============ */
:root {
  --brand-blue: #3aa9ff;
  --brand-blue-2: #1e7fd6;
  --brand-gold: #fbd658;

  /* Light theme */
  --bg: #ffffff;
  --surface: #f7f9fc;
  --ink: #222222;
  --ink-muted: #667085;
  --border: #e6e9ef;
  --shadow: 0 10px 25px rgba(0, 0, 0, .06);
}

:root[data-theme="dark"] {
  /* Soft gray-blue dark theme */
  --bg: #0f1720;
  /* charcoal with blue tint */
  --surface: #141c27;
  /* card background */
  --ink: #e5eef7;
  /* main text */
  --ink-muted: #a9b7c7;
  /* muted */
  --border: #233142;
  --shadow: 0 16px 30px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 22px
}

.section {
  padding: 64px 0
}

.grid {
  display: grid;
  gap: 28px
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: background .25s ease, border-color .25s ease;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(58, 169, 255, .12);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease;
}

:root[data-theme="dark"] header {
  background: rgba(20, 28, 39, .78)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0
}

.nav a.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
}

.nav img {
  height: 34px;
  width: auto;
  vertical-align: middle;
}

.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav ul a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
}

.nav ul a:hover {
  border-bottom-color: var(--brand-blue)
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px
}

/* Toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow)
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-2));
  color: #fff
}

.btn-outline {
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  background: transparent
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow)
}

/* Hero */
.hero {
  padding: 80px 0 56px
}

/* SIDE-BY-SIDE on desktop */
.hero .wrap {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: 220px 1fr;
  /* logo | text */
}

/* Logo sizing (use width, not fixed height) */
.hero img.logo-large {
  width: 200px;
  /* adjust to taste: 160–220px works well */
  height: auto;
  margin-right: 0;
  vertical-align: middle;
}


/* Content helpers */
.lead {
  font-size: 18px;
  color: var(--ink-muted)
}

.kicker {
  color: var(--brand-blue-2);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 800;
  font-size: 12px
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 56px
}

footer .foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0
}

footer a {
  color: var(--ink-muted);
  text-decoration: none
}

footer a:hover {
  color: var(--brand-blue)
}

/* Forms */
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: var(--bg);
  color: var(--ink)
}

label {
  font-weight: 700
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr
}

.form-grid textarea {
  grid-column: 1/-1;
  min-height: 120px
}

/* ==========================================================
   Hamburger Icon — Animated (☰ → ✕)
   ========================================================== */
.hamburger {
  display: none;
  position: relative;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

/* ✕ animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}


/* Responsive */
@media (max-width:900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr
  }

  .grid-2 {
    grid-template-columns: 1fr
  }

  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px
  }
}

@media (max-width:640px) {
  .grid-3 {
    grid-template-columns: 1fr
  }

  .nav ul {
    gap: 12px
  }

  .hero img.logo-large {
    width: 140px;
    margin: 0 auto;
    display: block;
  }

  @media (max-width: 768px) {
    .hamburger {
      display: block;
    }

    .nav ul {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      right: 16px;
      width: 230px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: var(--shadow);
      padding: 10px 0;
      animation: fadeSlideIn 0.35s ease forwards;
      z-index: 99;
      backdrop-filter: saturate(120%) blur(10px);
    }

    .nav ul.show {
      display: flex;
    }
  }