/* ============================================================
   Majd Rezik — DevOps Command Center
   Deep-space cyber aesthetic with terminal accents
   ============================================================ */

:root {
  --bg-void: #05070a;
  --bg-obsidian: #0a0e14;
  --bg-panel: #0d1219;
  --bg-elevated: #121820;
  --bg-hover: #1a222d;
  --border-dim: rgba(0, 255, 157, 0.08);
  --border-mid: rgba(0, 255, 157, 0.18);
  --border-hot: rgba(0, 255, 157, 0.45);
  --neon-green: #00ff9d;
  --neon-cyan: #00d4ff;
  --neon-amber: #f5a623;
  --neon-red: #ff4d6a;
  --text-primary: #e6edf3;
  --text-secondary: #8b9cb3;
  --text-muted: #5a6a7e;
  --glow-green: 0 0 20px rgba(0, 255, 157, 0.25), 0 0 40px rgba(0, 255, 157, 0.1);
  --glow-cyan: 0 0 20px rgba(0, 212, 255, 0.25);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --nav-h: 56px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-green) var(--bg-obsidian);
}

body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(0, 255, 157, 0.25);
  color: var(--neon-green);
}

/* ---- Noise / atmosphere ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography helpers ---- */
.font-mono {
  font-family: var(--font-mono);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-green);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: "//";
  opacity: 0.5;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.section-lead {
  color: var(--text-secondary);
  max-width: 42rem;
  font-size: 1.05rem;
  margin: 0 0 2.5rem;
}

/* ============================================================
   NAV — Status bar
   ============================================================ */
.cc-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
}

.cc-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
}

.cc-nav__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.cc-nav__links {
  display: none;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .cc-nav__links {
    display: flex;
  }
}

.cc-nav__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.cc-nav__links a:hover,
.cc-nav__links a.active {
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.06);
}

.cc-nav__links a.active {
  box-shadow: inset 0 -2px 0 var(--neon-green);
}

.cc-nav__meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1100px) {
  .cc-nav__meta {
    display: flex;
  }
}

.cc-nav__meta .uptime {
  color: var(--neon-cyan);
}

.cc-nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
}

@media (min-width: 900px) {
  .cc-nav__burger {
    display: none;
  }
}

.cc-nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--neon-green);
}

.cc-nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--bg-obsidian);
  border-bottom: 1px solid var(--border-mid);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
}

.cc-nav__mobile.open {
  display: flex;
}

.cc-nav__mobile a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.cc-nav__mobile a:hover {
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.06);
}

/* ============================================================
   HERO — Boot Sequence
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

#topology-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.78;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 65% at 50% 42%, transparent 0%, transparent 46%, rgba(5, 7, 10, 0.5) 82%, rgba(5, 7, 10, 0.88) 100%),
    linear-gradient(180deg, transparent 78%, var(--bg-void) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1100px) {
  .hero-content {
    max-width: 600px;
  }
}

.boot-log {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  min-height: 5.5rem;
  line-height: 1.8;
}

.boot-log .line {
  opacity: 0;
  transform: translateY(4px);
  animation: boot-line 0.35s var(--ease-out) forwards;
}

.boot-log .line.ok {
  color: var(--neon-green);
}

.boot-log .line.info {
  color: var(--neon-cyan);
}

.boot-log .line.warn {
  color: var(--neon-amber);
}

.boot-log .tag {
  opacity: 0.7;
  margin-right: 0.5rem;
}

@keyframes boot-line {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-name {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--neon-green) 50%, var(--neon-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-roles {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: var(--neon-cyan);
  margin: 0 0 1.5rem;
  min-height: 1.5em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.hero-roles .sep {
  color: var(--text-muted);
  opacity: 0.5;
}

.hero-roles .cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  background: var(--neon-green);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: rgba(0, 255, 157, 0.12);
  border: 1px solid var(--border-hot);
  color: var(--neon-green);
  box-shadow: var(--glow-green);
}

.btn-primary:hover {
  background: rgba(0, 255, 157, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 157, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

.hero-social {
  display: flex;
  gap: 0.65rem;
  margin-top: 2.5rem;
}

.hero-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hero-social a:hover {
  color: var(--neon-green);
  border-color: var(--border-hot);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float-hint 2.5s ease-in-out infinite;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--neon-green), transparent);
}

@keyframes float-hint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   SECTIONS — Shared panel chrome
   ============================================================ */
.cc-section {
  position: relative;
  padding: 5rem 1.5rem;
}

.cc-section--alt {
  background: linear-gradient(180deg, var(--bg-obsidian) 0%, var(--bg-panel) 50%, var(--bg-obsidian) 100%);
}

.cc-container {
  max-width: 1100px;
  margin: 0 auto;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
  opacity: 0.4;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border-mid);
}

.panel-dots span:nth-child(1) { background: #ff5f56; border-color: transparent; }
.panel-dots span:nth-child(2) { background: #ffbd2e; border-color: transparent; }
.panel-dots span:nth-child(3) { background: #27c93f; border-color: transparent; }

.panel-body {
  padding: 1.5rem;
}

/* ============================================================
   ABOUT — System Profile
   ============================================================ */
.about-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.about-photo {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-mid);
  aspect-ratio: 3 / 4;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.05);
  transition: filter 0.4s, transform 0.5s var(--ease-out);
}

.about-photo:hover img {
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.03);
}

.about-photo__badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.4rem 0.6rem;
  background: rgba(5, 7, 10, 0.85);
  border: 1px solid var(--border-mid);
  color: var(--neon-green);
  backdrop-filter: blur(8px);
}

.about-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin: 0 0 1rem;
}

.about-bio {
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  font-size: 0.98rem;
}

.profile-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}

@media (max-width: 500px) {
  .profile-kv {
    grid-template-columns: 1fr;
  }
}

.profile-kv li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-kv li:hover {
  border-color: var(--border-mid);
  box-shadow: inset 0 0 20px rgba(0, 255, 157, 0.03);
}

.profile-kv .key {
  display: block;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.profile-kv .val {
  color: var(--text-primary);
}

.profile-kv .val a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.profile-kv .val a:hover {
  text-decoration: underline;
}

/* ============================================================
   METRICS — CloudWatch / Grafana cards
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 800px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.metric-card:hover {
  border-color: var(--border-hot);
  transform: translateY(-4px);
  box-shadow: var(--glow-green);
}

.metric-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.metric-card__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.metric-card__status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--neon-green);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.metric-card__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
}

.metric-card__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-card__unit {
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-left: 0.15rem;
}

.metric-card__spark {
  margin-top: 1rem;
  height: 36px;
  width: 100%;
}

.metric-card__spark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.metric-card__spark path {
  fill: none;
  stroke: var(--neon-green);
  stroke-width: 1.5;
  opacity: 0.7;
}

.metric-card__spark .area {
  fill: rgba(0, 255, 157, 0.12);
  stroke: none;
}

/* ============================================================
   SKILLS — Architecture layers / topology
   ============================================================ */
.skill-layers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-layer {
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  background: var(--bg-panel);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.skill-layer.active,
.skill-layer:hover {
  border-color: var(--border-mid);
}

.skill-layer.active {
  box-shadow: var(--glow-cyan);
  border-color: rgba(0, 212, 255, 0.35);
}

.skill-layer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(0, 0, 0, 0.2);
  cursor: default;
}

.skill-layer__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-weight: 500;
}

.skill-layer__title .layer-id {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.skill-layer__meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.skill-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.15rem;
}

.skill-node {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: default;
  transition: all 0.25s var(--ease-out);
  position: relative;
}

.skill-node:hover,
.skill-node.lit {
  color: var(--neon-green);
  border-color: var(--border-hot);
  background: rgba(0, 255, 157, 0.08);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

.skill-node.dimmed {
  opacity: 0.35;
}

.skill-node .pct {
  margin-left: 0.4rem;
  color: var(--neon-cyan);
  opacity: 0.8;
}

.topology-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* ============================================================
   RECOMMENDATIONS — PR / System log reviews
   ============================================================ */
.reviews-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 0;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: scale(1.02);
  border-color: var(--border-hot);
  box-shadow: var(--glow-green), 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.review-card__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.review-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid var(--border-mid);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

.review-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-card__author {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}

.review-card__role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.review-card__quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-card:hover .review-card__quote {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.review-card__quote::before {
  content: "> ";
  color: var(--neon-green);
  font-family: var(--font-mono);
}

.reviews-more {
  text-align: center;
  margin-top: 1.5rem;
}

/* ============================================================
   RADIO — Broadcast logs
   ============================================================ */
.broadcast-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .broadcast-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.broadcast-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.broadcast-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

.broadcast-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dim);
}

.broadcast-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.broadcast-card:hover .broadcast-card__img img {
  transform: scale(1.04);
}

.broadcast-card__content {
  padding: 1.15rem 1.25rem 1.35rem;
}

.broadcast-card__freq {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--neon-amber);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.broadcast-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.broadcast-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.75rem 0 0;
  line-height: 1.55;
}

.broadcast-card audio {
  width: 100%;
  height: 36px;
  margin-top: 0.5rem;
  border-radius: var(--radius);
  filter: invert(0.9) hue-rotate(80deg);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  border-top: 1px solid var(--border-dim);
  padding: 3.5rem 1.5rem 2rem;
  background: var(--bg-obsidian);
  text-align: center;
}

#footer h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--neon-green);
  margin: 0 0 0.75rem;
}

#footer > .cc-container > p {
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.footer-social a:hover {
  color: var(--neon-green);
  border-color: var(--border-hot);
  box-shadow: var(--glow-green);
}

.copyright {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================================
   MAJD-BOT TERMINAL WIDGET
   ============================================================ */
.bot-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-hot);
  background: var(--bg-obsidian);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--glow-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.bot-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 0 35px rgba(0, 255, 157, 0.4);
}

.bot-fab .bot-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.bot-terminal {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 1100;
  width: min(420px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 8rem));
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hot);
  border-radius: 8px;
  box-shadow: var(--glow-green), 0 20px 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  overflow: hidden;
}

.bot-terminal.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.bot-terminal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-green);
  flex-shrink: 0;
}

.bot-terminal__header .ver {
  color: var(--text-muted);
  font-size: 0.65rem;
}

.bot-terminal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  transition: color 0.15s;
}

.bot-terminal__close:hover {
  color: var(--neon-red);
}

.bot-terminal__output {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--text-secondary);
  scrollbar-width: thin;
  scrollbar-color: var(--neon-green) transparent;
}

.bot-terminal__output .log-line {
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.bot-terminal__output .log-line.sys {
  color: var(--text-muted);
}

.bot-terminal__output .log-line.ok {
  color: var(--neon-green);
}

.bot-terminal__output .log-line.cyan {
  color: var(--neon-cyan);
}

.bot-terminal__output .log-line.warn {
  color: var(--neon-amber);
}

.bot-terminal__output .log-line.user {
  color: var(--text-primary);
}

.bot-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--border-dim);
  background: rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.bot-prompt-btn {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.35rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all 0.2s;
}

.bot-prompt-btn:hover {
  border-color: var(--border-hot);
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.08);
}

.bot-terminal__input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--border-dim);
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.bot-terminal__input-row .prompt-char {
  font-family: var(--font-mono);
  color: var(--neon-green);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.bot-terminal__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  caret-color: var(--neon-green);
}

.bot-terminal__input::placeholder {
  color: var(--text-muted);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1000;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--neon-green);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s, transform 0.2s, box-shadow 0.2s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
