/* ===== ROOT & RESET ===== */
:root {
  --bg-primary: #020818;
  --bg-secondary: #0a1628;
  --bg-card: #0d1f3c;
  --bg-glass: rgba(13, 31, 60, 0.6);
  --ember: #FF6B35;
  --ember-dark: #cc4a1a;
  --cyan: #00E5FF;
  --purple: #8B5CF6;
  --pink: #FF3A6E;
  --green: #10B981;
  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #475569;
  --border: rgba(0, 229, 255, 0.1);
  --border-hover: rgba(0, 229, 255, 0.3);
  --glow-ember: 0 0 20px rgba(255, 107, 53, 0.4);
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.3);
  --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== BACKGROUND GRID ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { line-height: 1.2; }
a { color: inherit; text-decoration: none; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title span { color: var(--ember); }

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; position: relative; z-index: 1; }

/* ===== NAVBAR ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 8, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

nav.scrolled { background: rgba(2, 8, 24, 0.97); }

.nav-logo img { height: 40px; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.nav-links a:hover, .nav-links a.active { color: var(--cyan); }

.nav-cta {
  background: linear-gradient(135deg, var(--ember), var(--pink));
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s !important;
  box-shadow: var(--glow-ember);
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,107,53,0.6) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--cyan); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow-1 { background: rgba(255,107,53,0.15); top: -100px; right: -100px; }
.hero-glow-2 { background: rgba(0,229,255,0.1); bottom: -200px; left: -100px; }

.hero-content { position: relative; z-index: 2; max-width: 750px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.hero-badge::before { content: '▶'; font-size: 0.6rem; }

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero h1 .ember { color: var(--ember); }
.hero h1 .cyan { color: var(--cyan); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--pink));
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--glow-ember);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(255,107,53,0.5); }

.btn-outline {
  background: transparent;
  color: var(--cyan);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(0,229,255,0.3);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover { background: rgba(0,229,255,0.08); border-color: var(--cyan); transform: translateY(-3px); }

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.stat-num span { color: var(--ember); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 0.2rem; }

/* ===== TICKER ===== */
.ticker-wrap {
  overflow: hidden;
  background: rgba(0,229,255,0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  position: relative;
  z-index: 1;
}

.ticker {
  display: flex;
  gap: 4rem;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.ticker-item .dot { color: var(--ember); margin-right: 0.5rem; }

@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ===== CARDS ===== */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--glow-cyan); }
.card:hover::before { opacity: 1; }

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.service-card { cursor: default; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid;
  letter-spacing: 0.5px;
}

/* ===== SECTION ALT ===== */
.section-alt { background: rgba(10, 22, 40, 0.6); }

/* ===== PORTFOLIO ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.portfolio-card { overflow: hidden; }

.portfolio-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.app-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.portfolio-card h3 { font-size: 1.15rem; font-weight: 700; }
.portfolio-card .app-desc { font-size: 0.82rem; color: var(--text-muted); }
.portfolio-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1rem; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.3);
  color: var(--ember);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== CANDIDATES ===== */
.candidates-section { position: relative; }

.candidates-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}

.candidate-card {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.candidate-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.candidate-name { font-weight: 600; font-size: 0.95rem; }
.candidate-role { font-size: 0.78rem; color: var(--cyan); font-family: var(--font-mono); }
.candidate-city { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

.avail-badge {
  margin-left: auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
}

/* ===== PROCESS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  margin-top: 4rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), var(--ember), transparent);
  opacity: 0.3;
}

.step { text-align: center; padding: 0 1rem; position: relative; }

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 auto 1.2rem;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  margin-top: 4rem;
  align-items: start;
}

.contact-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; }

.contact-items { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.contact-item:hover { border-color: var(--border-hover); }
.contact-item-icon { font-size: 1.3rem; }
.contact-item-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.contact-item-value { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

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

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; color: var(--text-secondary); letter-spacing: 0.5px; }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(0,229,255,0.4);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}

.form-group select option { background: var(--bg-secondary); }
.form-group textarea { min-height: 120px; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; margin-top: 1rem; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--cyan); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 8rem 0 4rem;
  background: radial-gradient(ellipse at top, rgba(0,229,255,0.05) 0%, transparent 60%);
  position: relative;
  z-index: 1;
}

/* ===== GLOW DIVIDER ===== */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember), var(--cyan), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-ember { color: var(--ember); }
.text-cyan { color: var(--cyan); }
.mb-0 { margin-bottom: 0; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-stats { gap: 2rem; }
  .candidates-intro { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
}

@media (max-width: 600px) {
  section { padding: 4rem 0; }
  .hero h1 { font-size: 2.4rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
