/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --bg-deep:    #060c1a;
  --bg-mid:     #0b1425;
  --bg-card:    #0f1e35;
  --bg-hover:   #142540;
  --cyan:       #00e5ff;
  --blue:       #2563eb;
  --amber:      #f59e0b;
  --indigo:     #818cf8;
  --text-hi:    #eef2ff;
  --text-mid:   #6b82a8;
  --text-lo:    #3d5278;
  --border:     rgba(255,255,255,0.06);
  --border-c:   rgba(0,229,255,0.2);
}

/* ─── Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-deep);
  color: var(--text-hi);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
}

/* ─── Utility Fonts ─────────────────────────────────────── */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
nav .mono {
  font-size: 1rem;
}

/* ─── Gradient Text ─────────────────────────────────────── */
.grad-cyan {
  background: linear-gradient(90deg, #00e5ff 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Background Patterns ───────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(0,229,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── Navigation ────────────────────────────────────────── */
.nav-glass {
  background: rgba(6,12,26,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  height: 56px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
}

@media (min-width: 768px) {
  .site-logo {
    height: 108px;
    max-width: none;
  }
}

/* ─── Social / Share link buttons ───────────────────────────── */
.social-link {
  color: var(--text-mid);
  border: 1px solid rgba(0,229,255,0.2);
  transition: all 0.2s;
}
.social-link:hover {
  color: var(--cyan);
  border-color: rgba(0,229,255,0.5);
}
.share-btn {
  color: var(--text-mid);
  border: 1px solid rgba(0,229,255,0.2);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.share-btn:hover {
  color: var(--cyan);
  border-color: rgba(0,229,255,0.5);
}

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  background: var(--bg-hover);
  border-color: rgba(0,229,255,0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,229,255,0.08);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00e5ff, #2563eb);
  color: #060c1a;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  box-shadow: 0 0 35px rgba(0,229,255,0.45);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,229,255,0.35);
  color: var(--cyan);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(0,229,255,0.08);
  border-color: var(--cyan);
  box-shadow: 0 0 25px rgba(0,229,255,0.2);
}

/* ─── Tags / Badges ─────────────────────────────────────── */
.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

.tag-cyan   { color: var(--cyan);   background: rgba(0,229,255,0.07);  border: 1px solid rgba(0,229,255,0.2);  }
.tag-amber  { color: var(--amber);  background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.2); }
.tag-indigo { color: var(--indigo); background: rgba(129,140,248,0.07);border: 1px solid rgba(129,140,248,0.2);}

/* ─── Icon Box ──────────────────────────────────────────── */
.icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--cyan);
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ─── HR Accent ─────────────────────────────────────────── */
.hr-accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  border: none;
  margin: 0;
}

/* ─── Floating Orbs ─────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ─── Scanlines ─────────────────────────────────────────── */
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,229,255,0.007) 3px,
    rgba(0,229,255,0.007) 4px
  );
}

/* ─── Pull Quote ────────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--cyan);
  background: rgba(0,229,255,0.04);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.pull-quote p {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-hi);
  margin: 0;
  line-height: 1.6;
}

/* ─── Article Body ──────────────────────────────────────── */
.article-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-hi);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--indigo);
  margin: 2rem 0 0.75rem;
}

.article-body p {
  line-height: 1.85;
  color: #b8c8e0;
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
}

.article-body ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.article-body ul li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  color: #b8c8e0;
  line-height: 1.75;
  font-size: 1.025rem;
}

.article-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
}

/* ─── Form Inputs ───────────────────────────────────────── */
.form-input {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-hi);
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: rgba(0,229,255,0.45);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.07);
}

.form-input::placeholder { color: var(--text-lo); }

/* ─── Map Placeholder ───────────────────────────────────── */
.map-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ─── Blog Filter Buttons ───────────────────────────────── */
.filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: rgba(0,229,255,0.4);
  color: var(--cyan);
  background: rgba(0,229,255,0.07);
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar         { width: 6px; }
::-webkit-scrollbar-track   { background: var(--bg-deep); }
::-webkit-scrollbar-thumb   { background: rgba(0,229,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,229,255,0.4); }

/* ─── AOS Easing Override ───────────────────────────────── */
[data-aos] { transition-timing-function: cubic-bezier(0.25,0.46,0.45,0.94) !important; }

/* ─── Mobile: break long email addresses ────────────────── */
a[href^="mailto:"] {
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ─── Forced Colours (High Contrast Mode) ───────────────── */
@media (forced-colors: active) {
  select.form-input { appearance: auto; background-image: none; }
}
