/* =========================================================
   KABURU CAMPAIGN SITE — styles.css
   Theme: dark navy, electric cyan, glassmorphism
   ========================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #060b18;
  --bg-alt:    #090f1f;
  --glass:     rgba(255,255,255,0.035);
  --border:    rgba(0,212,255,0.18);
  --accent:    #00d4ff;
  --blue:      #0077ff;
  --gradient:  linear-gradient(135deg, #0077ff, #00d4ff);
  --text:      #deeefa;
  --muted:     #6a90ab;
  --radius:    14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.1rem 0;
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(6,11,24,0.88);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 3px;
}
.nav-logo span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 0.5rem 1.3rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  box-shadow: 0 4px 20px rgba(0,119,255,0.4);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 300;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile nav overlay */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6,11,24,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  line-height: 1;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,119,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,119,255,0.5);
}
.btn-outline {
  color: var(--accent);
  border: 1.5px solid var(--border);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(0,212,255,0.06);
}
.btn-block { width: 100%; text-align: center; }

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

/* subtle dot-grid background */
.hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,212,255,0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  animation: dot-drift 12s linear infinite;
}

/* radial glow blobs */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: glow-pulse 5s ease-in-out infinite;
}
.hero-glow--left {
  background: rgba(0,119,255,0.16);
  bottom: -100px;
  left: -150px;
}
.hero-glow--right {
  background: rgba(0,212,255,0.1);
  top: -100px;
  right: -100px;
  animation-delay: 2.5s;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 2rem 4rem;
  width: min(58%, 640px);
  margin-left: max(2rem, calc(50% - 600px));
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  animation: fade-up 0.7s cubic-bezier(0.22,1,0.36,1) both 0.4s;
}

.hero-title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
  animation: fade-up 0.7s cubic-bezier(0.22,1,0.36,1) both 0.6s;
}
.hero-name-gradient {
  background: linear-gradient(270deg, #00d4ff, #007bff, #00b8ff, #0055ff, #00d4ff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shimmer 5s linear infinite;
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: lowercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  animation: fade-up 0.7s cubic-bezier(0.22,1,0.36,1) both 0.85s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fade-up 0.7s cubic-bezier(0.22,1,0.36,1) both 1.05s;
}

/* Photo */
.hero-photo-wrap {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  width: 48%;
  pointer-events: none;
  z-index: 1;
  animation: fade-right 1.2s cubic-bezier(0.22,1,0.36,1) both 0.3s;
}

/* Top fade — hides the nav overlap zone */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(to bottom, var(--bg) 20%, rgba(6,11,24,0.6) 65%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Bottom fade — hides the poster's own "VOTE" text */
.hero-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  /* Left edge fade — blends into the text area */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 16%, black 36%);
  mask-image:         linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 16%, black 36%);
  animation: hero-float 8s ease-in-out infinite 1.5s;
}

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  justify-content: center;
}
.scroll-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(10px); opacity: 0.3; }
}

/* ── SHARED SECTION LAYOUT ───────────────────────────────── */
section { padding: 6rem 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.35rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(0,212,255,0.06);
  margin-bottom: 0.9rem;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.section-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ── VISION ──────────────────────────────────────────────── */
#vision {
  background: var(--bg-alt);
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.pillar {
  padding: 0.35rem 1.1rem;
  border-radius: 50px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

blockquote {
  max-width: 740px;
  margin: 0 auto;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  padding: 2rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(8px);
  position: relative;
}
blockquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1px;
}

/* ── AGENDA ──────────────────────────────────────────────── */
#agenda { background: var(--bg); }

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.4rem;
}

.agenda-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.agenda-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 35px rgba(0,212,255,0.12);
}

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 100%; height: 100%; }

.agenda-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.agenda-card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── DIGNITY / EVENTS ────────────────────────────────────── */
#dignity {
  background: var(--bg-alt);
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dignity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}

.dignity-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s;
}
.dignity-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.dignity-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--accent);
}
.dignity-icon svg { width: 100%; height: 100%; }
.dignity-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.dignity-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── COMMITMENT ──────────────────────────────────────────── */
#commitment { background: var(--bg); }

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}
.commitment-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.4rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.93rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.commitment-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,212,255,0.1);
}
.check-icon {
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

/* ── INTERACT / FORM ─────────────────────────────────────── */
#interact {
  background: var(--bg-alt);
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-form {
  max-width: 680px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.optional {
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  font-size: 0.78rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.82rem 1rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
.form-group textarea { resize: vertical; }

/* WhatsApp direct button */
.wa-direct {
  text-align: center;
  margin-bottom: 1.5rem;
}
.wa-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 2rem;
  background: #25d366;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.wa-direct-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.45);
}
.wa-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Form divider */
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* WhatsApp submit button */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.25);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}
.wa-icon-sm {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  text-align: center;
  color: var(--accent);
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
  text-align: center;
}
.footer-cta { margin-bottom: 3rem; }

.footer-votes {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.footer-name {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.footer-position {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}
.footer-btn { min-width: 200px; }

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}
.footer-legal {
  color: var(--muted);
  font-size: 0.78rem;
}

/* ── KEYFRAMES ───────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-right {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
@keyframes gradient-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}
@keyframes dot-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 38px 38px; }
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
/* stagger agenda cards */
.agenda-card[data-reveal] {
  transition-delay: calc(var(--stagger, 0) * 80ms);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-photo-wrap { width: 46%; }
  .hero-content { width: 60%; }
}

@media (max-width: 680px) {
  .hero-content {
    width: 100%;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 62vw;
    margin-left: 0;
  }
  .hero-actions { justify-content: center; }

  .hero-photo-wrap {
    width: 100%;
    top: auto;
    height: 60vw;
  }
  /* On mobile override the pseudo-elements for top/bottom only */
  .hero-photo-wrap::before {
    height: 30%;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  }
  .hero-photo-wrap::after {
    height: 30%;
  }
  .hero-photo {
    height: 100%;
    object-fit: cover;
    object-position: center center;
    -webkit-mask-image: none;
    mask-image: none;
    animation: none;
  }

  .form-row { grid-template-columns: 1fr; }

  .commitment-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
  .commitment-grid { grid-template-columns: 1fr; }
  .agenda-grid     { grid-template-columns: 1fr; }
}
