/* ═══════════════════════════════════════════════════════════
   ContactEra — Shared Styles
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --bg: #050a12;
  --bg2: #0a1424;
  --surface: #0f1d35;
  --surface2: #162844;
  --border: rgba(56, 130, 246, 0.12);
  --border-hover: rgba(56, 130, 246, 0.28);
  --text: #e8edf5;
  --text-secondary: #94a3b8;
  --muted: #5a6f8e;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --cyan: #22d3ee;
  --green: #34d399;
  --emerald: #10b981;
  --orange: #f59e0b;
  --red: #ef4444;
  --gradient: linear-gradient(135deg, #3b82f6 0%, #22d3ee 50%, #34d399 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(34,211,238,0.08));
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* Noise + grid overlays */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-size: 256px;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
}

section, nav, footer, main, header { position: relative; z-index: 1; }

/* ═══════════════════ NAVIGATION ═══════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 48px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,10,18,0.75);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
nav.scrolled {
  background: rgba(5,10,18,0.92);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 800; letter-spacing: -0.5px;
}
.nav-logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(59,130,246,0.3);
}
.nav-logo span {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-center {
  display: flex; gap: 8px; padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.nav-center a {
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  padding: 8px 18px; border-radius: 8px; transition: all 0.2s;
}
.nav-center a:hover, .nav-center a.active {
  color: var(--text); background: rgba(255,255,255,0.06);
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.btn-ghost {
  padding: 9px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  background: none; border: none; cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.btn-ghost:hover { color: var(--text); }

.btn-cta {
  padding: 9px 22px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--accent); border: none; cursor: pointer;
  transition: all 0.25s; font-family: inherit;
  box-shadow: 0 2px 12px rgba(59,130,246,0.3);
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(59,130,246,0.4);
  background: #4b8df8;
}

/* ═══════════════════ SHARED BUTTONS ═══════════════════ */
.btn-primary {
  padding: 15px 34px; border-radius: 14px; font-size: 15px; font-weight: 700;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  text-decoration: none; transition: all 0.3s; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 24px rgba(59,130,246,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(59,130,246,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  background: #4b8df8;
}

.btn-secondary {
  padding: 15px 34px; border-radius: 14px; font-size: 15px; font-weight: 600;
  background: rgba(255,255,255,0.04); color: var(--text);
  border: 1px solid var(--border); cursor: pointer;
  text-decoration: none; transition: all 0.3s; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-gradient {
  padding: 16px 48px; border-radius: 14px;
  background: var(--gradient); color: #fff;
  font-size: 16px; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.3s; font-family: inherit;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 24px rgba(59,130,246,0.3);
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(59,130,246,0.45);
}

/* ═══════════════════ SECTION HEADINGS ═══════════════════ */
.section-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 4px;
  color: var(--cyan); font-weight: 700; text-align: center; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; text-align: center;
  letter-spacing: -1.5px; margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px; color: var(--text-secondary); text-align: center;
  max-width: 520px; margin: 0 auto 64px; font-weight: 400;
}

/* ═══════════════════ CARDS ═══════════════════ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 30px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient); opacity: 0; transition: opacity 0.35s;
}
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 40px rgba(59,130,246,0.04);
}
.card:hover::before { opacity: 1; }

/* ═══════════════════ FOOTER ═══════════════════ */
footer {
  padding: 64px 24px 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand p { color: var(--text-secondary); font-size: 14px; margin-top: 12px; line-height: 1.6; }
.footer-col h4 {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--text); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--text-secondary);
  padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--cyan); }

/* ═══════════════════ ANIMATIONS ═══════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pingDot {
  75%, 100% { transform: scale(2.5); opacity: 0; }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-center { display: none; }
  .btn-ghost { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
