/* ═══════════════════════════════════════════════
   MRZEROTRUST — Murad Orujov
   Cybersecurity Portfolio
   ═══════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --bg:           #050810;
  --bg2:          #080c14;
  --panel:        rgba(10, 18, 28, 0.82);
  --panel-strong: rgba(8, 15, 26, 0.94);
  --text:         #e8f4ff;
  --muted:        #7a9bb5;
  --muted2:       #4a6882;
  --line:         rgba(78, 240, 255, 0.14);
  --line2:        rgba(103, 255, 154, 0.12);
  --cyan:         #4ef0ff;
  --green:        #67ff9a;
  --pink:         #ff4fd8;
  --amber:        #f5b84b;
  --red:          #ff5c5c;
  --white-soft:   #f0f8ff;
  --shadow:       0 24px 80px rgba(0, 0, 0, 0.5);
  --shadow-cyan:  0 0 40px rgba(78, 240, 255, 0.18);
  --shadow-green: 0 0 40px rgba(103, 255, 154, 0.18);
  --radius:       10px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); overflow-x: hidden; }
h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; }

/* ─── Global background grid ─── */
body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(rgba(78, 240, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 255, 154, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 20% 10%, rgba(255, 79, 216, 0.13) 0%, transparent 35%),
    radial-gradient(ellipse at 82% 8%,  rgba(78, 240, 255, 0.11) 0%, transparent 30%),
    radial-gradient(ellipse at 50% 80%, rgba(103, 255, 154, 0.07) 0%, transparent 40%),
    #050810;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

/* ─── Canvas + scanlines ─── */
#signal-canvas {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%; opacity: 0.55;
}

.scanlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.88);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
}

.brand-logo {
  width: 40px; height: 40px;
  object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(103, 255, 154, 0.5);
  box-shadow: 0 0 20px rgba(103, 255, 154, 0.25);
}

.brand-name {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.brand-prefix, .prompt {
  color: var(--green);
  font-family: "Cascadia Mono", "Consolas", monospace;
}

.prompt-sm {
  color: var(--cyan);
  font-family: "Cascadia Mono", "Consolas", monospace;
  margin-right: 6px;
  font-size: 0.9em;
}

.nav-links {
  display: flex; align-items: center;
  gap: clamp(10px, 2.2vw, 26px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 220ms ease;
}

.nav-links a:hover { color: var(--white-soft); }
.nav-links a:hover::after { width: 100%; }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  min-height: calc(100svh - 65px);
  padding: clamp(56px, 9vw, 100px) clamp(20px, 5vw, 64px) clamp(52px, 8vw, 90px);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  width: 100%;
  max-width: 780px;
}

/* ─── Avatar ─── */
.avatar-wrap {
  position: relative;
  width: 180px; height: 180px;
  margin-bottom: 32px;
}

.avatar-ring-outer,
.avatar-ring-mid {
  position: absolute;
  border-radius: 50%;
  inset: 0;
}

.avatar-ring-outer {
  inset: -12px;
  border: 1px solid rgba(78, 240, 255, 0.25);
  animation: ring-spin 12s linear infinite;
  background: conic-gradient(
    from 0deg,
    rgba(78, 240, 255, 0.4) 0%,
    transparent 25%,
    rgba(103, 255, 154, 0.3) 50%,
    transparent 75%,
    rgba(78, 240, 255, 0.4) 100%
  );
  -webkit-mask: radial-gradient(transparent 88%, black 89%);
  mask: radial-gradient(transparent 88%, black 89%);
}

.avatar-ring-mid {
  inset: -5px;
  border: 1px solid rgba(103, 255, 154, 0.35);
  box-shadow: 0 0 20px rgba(103, 255, 154, 0.2), inset 0 0 20px rgba(103, 255, 154, 0.05);
}

@keyframes ring-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.avatar-img {
  width: 180px; height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(103, 255, 154, 0.5);
  box-shadow:
    0 0 0 4px rgba(78, 240, 255, 0.08),
    0 0 50px rgba(103, 255, 154, 0.25),
    0 0 100px rgba(78, 240, 255, 0.1),
    var(--shadow);
}

.avatar-badge {
  position: absolute;
  bottom: 4px; right: 4px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border: 1px solid rgba(103, 255, 154, 0.4);
  border-radius: 999px;
  background: rgba(5, 8, 16, 0.92);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "Cascadia Mono", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
}

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

.pulse-dot.small { width: 6px; height: 6px; }

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

/* ─── Hero identity ─── */
.hero-identity {
  margin-bottom: 18px;
}

.real-name {
  margin: 0 0 8px;
  color: var(--white-soft);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 30px rgba(78, 240, 255, 0.3),
    0 0 60px rgba(255, 79, 216, 0.15);
}

.brand-handle {
  margin: 0;
  color: var(--cyan);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: clamp(1.1rem, 2.8vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cursor-blink {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--green);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-tagline {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  font-style: italic;
  letter-spacing: 0.04em;
}

.hero-text {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.72;
}

/* ─── Stats ─── */
.hero-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 28px;
}

.hero-stats span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
}

.hero-stats strong { color: var(--cyan); }

/* ─── Buttons ─── */
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button.primary {
  border-color: rgba(78, 240, 255, 0.6);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #040b10;
  box-shadow: 0 0 24px rgba(78, 240, 255, 0.3);
}

.button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(78, 240, 255, 0.45);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white-soft);
  border-color: rgba(255, 255, 255, 0.1);
}

.button.secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(78, 240, 255, 0.35);
  background: rgba(78, 240, 255, 0.06);
}

.btn-icon { font-style: normal; }

/* ─── Identity card (hero bottom) ─── */
.identity-card {
  display: flex; align-items: center; gap: 18px;
  width: 100%; max-width: 720px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(78, 240, 255, 0.07), rgba(255, 79, 216, 0.05));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.identity-logo {
  flex-shrink: 0;
  width: 62px; height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(103, 255, 154, 0.4);
  box-shadow: 0 0 16px rgba(103, 255, 154, 0.2);
}

.identity-card-text { flex: 1; }

.identity-quote {
  margin: 4px 0 6px;
  color: var(--white-soft);
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
}

.identity-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Scroll hint ─── */
.scroll-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--muted2);
  font-size: 0.7rem;
  font-family: "Cascadia Mono", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: scroll-fade 2.5s ease-in-out infinite;
}

.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(var(--cyan), transparent);
}

@keyframes scroll-fade {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

/* ═══════════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════════ */
.section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 16, 0.55);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 40px;
}

.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--green);
  font: 700 0.75rem/1.4 "Cascadia Mono", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h2 {
  margin: 0;
  color: var(--white-soft);
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-shadow: 0 0 40px rgba(78, 240, 255, 0.15);
}

h3 {
  margin-bottom: 12px;
  color: var(--white-soft);
  font-size: 1.25rem;
  letter-spacing: 0;
}

/* ─── About grid ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.about-text-col {
  display: grid;
  gap: 16px;
}

.about-text-col p {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.74;
}

.about-text-col p:first-child { border-color: rgba(78, 240, 255, 0.22); }
.about-text-col p:nth-child(2) { border-color: rgba(103, 255, 154, 0.18); }
.about-text-col p:last-child   { border-color: rgba(255, 79, 216, 0.18); }

.about-photo-col {
  position: sticky;
  top: 88px;
}

.expo-photo-wrap {
  position: relative;
  border: 1px solid rgba(103, 255, 154, 0.3);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(103, 255, 154, 0.1),
    var(--shadow);
}

.expo-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 60%, rgba(5, 8, 16, 0.88)),
    repeating-linear-gradient(
      0deg,
      rgba(78, 240, 255, 0.04),
      rgba(78, 240, 255, 0.04) 1px,
      transparent 1px,
      transparent 4px
    );
  pointer-events: none;
}

.expo-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 400ms ease;
}

.expo-photo-wrap:hover .expo-photo { transform: scale(1.03); }

.expo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--green);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Timeline ─── */
.timeline {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(var(--cyan), var(--green) 60%, transparent);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding: 0 0 36px 28px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -7px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--bg);
  box-shadow: 0 0 12px rgba(78, 240, 255, 0.5);
}

.timeline-item.current .timeline-dot {
  border-color: var(--green);
  background: rgba(103, 255, 154, 0.15);
  box-shadow: 0 0 16px rgba(103, 255, 154, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 16px rgba(103, 255, 154, 0.6); }
  50%       { box-shadow: 0 0 28px rgba(103, 255, 154, 0.9); }
}

.timeline-content {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, transform 180ms ease;
}

.timeline-content:hover {
  border-color: rgba(78, 240, 255, 0.35);
  transform: translateX(4px);
}

.timeline-item.current .timeline-content {
  border-color: rgba(103, 255, 154, 0.25);
}

.timeline-content p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.project-points {
  display: grid; gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.project-points li {
  padding-left: 16px;
  border-left: 2px solid var(--green);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ─── Skills ─── */
.skill-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.skill-group {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease;
}

.skill-group:hover { border-color: rgba(78, 240, 255, 0.3); }

.skill-group-title {
  margin-bottom: 18px;
  color: var(--white-soft);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-list span {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white-soft);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 180ms ease, background 180ms ease;
}

.skill-list span:hover { background: rgba(78, 240, 255, 0.08); }

.skill-group:nth-child(1) .skill-list span { border-color: rgba(78, 240, 255, 0.28); }
.skill-group:nth-child(2) .skill-list span { border-color: rgba(255, 79, 216, 0.28); }
.skill-group:nth-child(3) .skill-list span { border-color: rgba(103, 255, 154, 0.28); }

/* ─── Projects ─── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.project-card:hover {
  border-color: rgba(78, 240, 255, 0.38);
  transform: translateY(-4px);
  box-shadow: var(--shadow-cyan);
}

.card-header-img {
  position: relative;
  overflow: hidden;
}

.project-image {
  width: 100%; height: 260px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  transition: transform 400ms ease;
}

.project-card:hover .project-image { transform: scale(1.03); }

.card-img-overlay {
  position: absolute;
  top: 12px; right: 12px;
}

.card-tag {
  padding: 4px 10px;
  border: 1px solid rgba(78, 240, 255, 0.4);
  border-radius: 999px;
  background: rgba(5, 8, 16, 0.85);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Cascadia Mono", "Consolas", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: clamp(20px, 3vw, 30px);
  flex: 1;
}

.card-body p { color: var(--muted); font-size: 0.97rem; line-height: 1.7; margin-bottom: 0; }

/* ─── Contact ─── */
.contact-section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: linear-gradient(
    135deg,
    rgba(78, 240, 255, 0.06),
    rgba(255, 79, 216, 0.05)
  ), rgba(5, 8, 16, 0.7);
}

.contact-text { max-width: 680px; margin-bottom: 36px; }
.contact-sub  { margin: 12px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.contact-text h2 { margin-top: 8px; }

.contact-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* ─── Footer ─── */
.site-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  padding: 22px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted2);
  font-size: 0.88rem;
}

.footer-brand {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-status {
  display: flex; align-items: center; gap: 7px;
  color: var(--green);
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.78rem;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .about-grid,
  .skill-columns,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-col { position: static; }

  .expo-photo { aspect-ratio: 16 / 9; object-position: center 20%; }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }

  .nav-links a {
    flex: 0 0 auto;
    padding: 7px 12px;
    border: 1px solid rgba(78, 240, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
  }
  .nav-links a::after { display: none; }

  .hero { gap: 32px; padding: 48px 20px 60px; }

  .avatar-wrap  { width: 150px; height: 150px; }
  .avatar-img   { width: 150px; height: 150px; }

  .identity-card { flex-direction: column; text-align: center; }

  .about-layout { grid-template-columns: 1fr; }

  .timeline { padding-left: 20px; }

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

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

  .project-image { height: 220px; }

  .contact-section { padding: 56px 20px; }

  .site-footer { justify-content: center; text-align: center; flex-direction: column; }
}

/* ─── Lightbox ─── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 8, 0.92);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(78, 240, 255, 0.3);
  border-radius: var(--radius);
  box-shadow:
    0 0 60px rgba(78, 240, 255, 0.2),
    0 0 120px rgba(103, 255, 154, 0.1),
    var(--shadow);
  transform: scale(0.92);
  transition: transform 280ms ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(78, 240, 255, 0.3);
  border-radius: 50%;
  background: rgba(5, 8, 16, 0.85);
  color: var(--cyan);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
  backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  border-color: var(--cyan);
  background: rgba(78, 240, 255, 0.12);
}

.card-header-img { cursor: zoom-in; }

@media (max-width: 520px) {
  .button { min-width: 200px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .contact-actions { flex-direction: column; }
  .contact-actions .button { width: 100%; text-align: center; }
}
