/* ═══════════════ RESET & BASE ═══════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #F5B800;
  --yellow-dim: rgba(245,184,0,0.15);
  --bg: #0d0d0d;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222;
  --border: rgba(255,255,255,0.12);
  --text: #ffffff;
  --text-muted: #888;
  --text-dim: #555;
  --radius: 12px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #080808;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════════════ PAGE AMBIENT ORB ═══════════════ */
#pageOrb {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
#pageOrb::before {
  content: '';
  position: absolute;
  width: 2200px;
  height: 2200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 100, 0, 0.52) 0%,
    rgba(245,  75, 0, 0.32) 22%,
    rgba(220,  55, 0, 0.16) 45%,
    rgba(180,  35, 0, 0.06) 65%,
    transparent 82%
  );
  will-change: transform;
  animation: pageOrbDrift 30s ease-in-out infinite alternate;
}
@keyframes pageOrbDrift {
  0%   { transform: translate( 4vw,  12vh); }
  20%  { transform: translate(52vw,  35vh); }
  40%  { transform: translate(14vw,  62vh); }
  60%  { transform: translate(60vw,  24vh); }
  80%  { transform: translate(28vw,  70vh); }
  100% { transform: translate(46vw,  48vh); }
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ═══════════════ TYPOGRAPHY ═══════════════ */
.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(245,184,0,0.55);
  border-radius: 999px;
  padding: 0.3rem 1.1rem;
  background: rgba(245,184,0,0.07);
  box-shadow: 0 0 14px rgba(245,184,0,0.25), 0 0 30px rgba(245,184,0,0.08);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2.5rem;
  line-height: 1.2;
}

.section-sub {
  color: var(--text-muted);
  max-width: 500px;
  margin: -1.5rem auto 2.5rem;
  font-size: 0.95rem;
}

/* ═══════════════ LAYOUT ═══════════════ */
.section {
  padding: 6rem 0;
  text-align: center;
  position: relative;
  z-index: 1;
  contain: layout style;
  background: rgba(8, 8, 8, 0.65); /* lets page orb glow through */
}

/* ═══════════════ TICKER STRIP ═══════════════ */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(245,184,0,0.03);
  border-top:    1px solid rgba(245,184,0,0.12);
  border-bottom: 1px solid rgba(245,184,0,0.12);
  padding: 1.2rem 0;
  position: relative;
  z-index: 5;
  transform: translateZ(0);   /* own GPU layer */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
  transform: translateZ(0);
  animation: ticker-scroll 60s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 1.3rem;
  padding: 0 3rem;
  font-size: 1rem;            /* ↑ bigger */
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  transition: color 0.2s ease, opacity 0.08s ease;
}
.ticker-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.50;
  flex-shrink: 0;
}

/* ── Flicker: item lights up briefly like a neon sign ── */
@keyframes ticker-flicker {
  0%   { opacity: 1;    color: rgba(255,255,255,0.30); }
  8%   { opacity: 0.15; }
  16%  { opacity: 1;    color: rgba(245,184,0,0.90); text-shadow: 0 0 12px rgba(245,184,0,0.7); }
  24%  { opacity: 0.10; }
  35%  { opacity: 1;    color: rgba(245,184,0,1);    text-shadow: 0 0 20px rgba(245,184,0,0.9), 0 0 40px rgba(245,184,0,0.4); }
  50%  { opacity: 0.70; color: rgba(255,200,60,0.85); }
  65%  { opacity: 1;    color: rgba(245,184,0,0.70); text-shadow: 0 0 10px rgba(245,184,0,0.5); }
  82%  { opacity: 0.90; color: rgba(255,255,255,0.50); text-shadow: none; }
  100% { opacity: 1;    color: rgba(255,255,255,0.30); text-shadow: none; }
}
.ticker-item.flicker {
  animation: ticker-flicker 0.55s ease forwards;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-yellow {
  background: var(--yellow);
  color: #000;
}
.btn-yellow:hover {
  background: #ffd64d;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(245,184,0,0.55), 0 8px 24px rgba(245,184,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 14px rgba(245,184,0,0.2);
}

/* ═══════════════ NAVIGATION ═══════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo span { color: var(--yellow); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  margin: 0 auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-cta { margin-left: auto; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1.25rem 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-link {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s ease;
}
.mobile-link:last-of-type { border-bottom: none; }
.mobile-link:hover, .mobile-link:active { color: var(--yellow); }

/* Hamburger open state — X shape */
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════ HERO ═══════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 1.5rem 5rem;
  overflow: hidden;
  z-index: 2;
  background: #080808;
  isolation: isolate;
}

/* Dissolve fade into next section */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38vh;
  background: linear-gradient(
    to bottom,
    transparent          0%,
    rgba(13,13,13,0.15) 20%,
    rgba(13,13,13,0.50) 50%,
    rgba(13,13,13,0.85) 78%,
    #0d0d0d             100%
  );
  pointer-events: none;
  z-index: 1;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Two-column: text left | carousel right */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
  width: 100%;
  margin-bottom: 3rem;
}

.hero-text {
  text-align: left;
}

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
  color: var(--text);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--yellow);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ═══════════════ HERO COSMIC ORB ═══════════════ */
.hero-orb {
  position: absolute;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;

  /* Golden-orange atmosphere */
  background:
    radial-gradient(ellipse at 40% 38%,
      rgba(245, 184,   0, 0.30) 0%,
      rgba(255, 140,  20, 0.18) 28%,
      rgba(200,  90,   0, 0.09) 52%,
      rgba(120,  50,   0, 0.03) 70%,
      transparent 82%
    );

  /* Outer glow rings */
  box-shadow:
    0 0  80px 16px rgba(245, 184,   0, 0.18),
    0 0 180px 60px rgba(255, 130,  20, 0.10),
    0 0 340px 120px rgba(180,  80,   0, 0.05);

  /* Soft blur — makes it atmospheric, not sharp */
  filter: blur(55px);
}

/* Rim light */
.hero-orb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 200, 80, 0.15);
  box-shadow:
    inset 0 0 70px rgba(245, 184, 0, 0.10),
    inset -40px -40px 90px rgba(255, 120, 0, 0.06);
}

/* Specular highlight */
.hero-orb::after {
  content: '';
  position: absolute;
  width: 40%;
  height: 40%;
  top: 12%;
  left: 16%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 150, 0.09) 0%,
    rgba(245, 184,   0, 0.05) 45%,
    transparent 70%
  );
}

@media (max-width: 768px) {
  .hero-orb { width: 320px; height: 320px; }
}

/* ═══════════════ PROJECTS ═══════════════ */
/* ═══════════════ RESULTS / PROOF ═══════════════ */
.results-section { background: rgba(6,6,6,0.68); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid rgba(245,184,0,0.15);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,184,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.result-card:hover { transform: translateY(-4px); border-color: rgba(245,184,0,0.35); }
.result-metric {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 30px rgba(245,184,0,0.4);
}
.result-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.8rem;
}
.result-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════ TESTIMONIALS ═══════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  transition: var(--transition);
  will-change: transform;
}
.testimonial-card:hover { transform: translateY(-3px); border-color: rgba(245,184,0,0.25); }
.tm-quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: var(--yellow);
  opacity: 0.35;
  font-family: Georgia, serif;
  margin-bottom: -0.5rem;
}
.tm-quote {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.4rem;
}
.tm-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.tm-avatar { flex-shrink: 0; }
.tm-avatar-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(245,184,0,0.3);
}
.tm-avatar-init {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,184,0,0.25), rgba(245,184,0,0.08));
  border: 1.5px solid rgba(245,184,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--yellow);
}
.tm-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.tm-name { font-size: 0.88rem; font-weight: 700; color: #fff; }
.tm-role { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════ PROJECTS GRID (3-col) ═══════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: left;
}

/* "Виж повече" 9th card */
.project-card--more {
  background: var(--bg-card);
  border: 1px solid rgba(245,184,0,0.22);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.project-card--more::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(245,184,0,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.project-card--more:hover {
  border-color: rgba(245,184,0,0.55);
  background: rgba(245,184,0,0.04);
  transform: translateY(-6px);
  box-shadow:
    0 0  0  1.5px rgba(245,184,0,0.35),
    0 0 22px      rgba(245,184,0,0.28),
    0 24px 55px   rgba(0,0,0,0.55);
}
.pcm-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  width: 100%;
  text-align: center;
}
.pcm-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245,184,0,0.10);
  border: 1.5px solid rgba(245,184,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  transition: var(--transition);
}
.project-card--more:hover .pcm-icon {
  background: rgba(245,184,0,0.18);
  border-color: var(--yellow);
  transform: scale(1.08);
}
.pcm-label {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.80);
  letter-spacing: 0.01em;
}
.pcm-count {
  font-size: 0.72rem;
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 0.10em;
  opacity: 0.75;
}
.pcm-arrow {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--yellow);
  opacity: 0.6;
  letter-spacing: 0.06em;
  transition: opacity 0.2s, gap 0.2s;
}
.project-card--more:hover .pcm-arrow {
  opacity: 1;
  gap: 0.65rem;
}

/* ═══════════════ FOOTER SOCIAL ═══════════════ */
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
  text-decoration: none;
}
.footer-social a:hover {
  background: rgba(245,184,0,0.12);
  border-color: rgba(245,184,0,0.35);
  color: var(--yellow);
  transform: translateY(-2px);
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(245,184,0,0.22);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  will-change: transform;
}

/* ── Corner brackets (orange, appear on hover) ── */
.project-card::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--radius) - 2px);
  border: 3px solid var(--yellow);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s ease;

  /* Only show the 4 corner areas */
  -webkit-mask:
    linear-gradient(#000 0 0) top    left  / 22px 22px no-repeat,
    linear-gradient(#000 0 0) top    right / 22px 22px no-repeat,
    linear-gradient(#000 0 0) bottom left  / 22px 22px no-repeat,
    linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat;
  mask:
    linear-gradient(#000 0 0) top    left  / 22px 22px no-repeat,
    linear-gradient(#000 0 0) top    right / 22px 22px no-repeat,
    linear-gradient(#000 0 0) bottom left  / 22px 22px no-repeat,
    linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat;
}

/* ── Orange light sweep ── */
.project-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -80%;
  width: 55%;
  height: 200%;
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(245, 145, 0, 0.22) 50%,
    transparent 65%
  );
  transform: skewX(-12deg);
  pointer-events: none;
  z-index: 2;
}

.project-card:hover {
  border-color: rgba(245,184,0,0.5);
  transform: translateY(-6px);
  box-shadow:
    0 0  0  1.5px rgba(245,184,0,0.45),  /* thin outer ring */
    0 0 22px      rgba(245,184,0,0.40),  /* glow */
    0 0 55px      rgba(245,184,0,0.14),  /* wide outer halo */
    0 24px 55px   rgba(0,0,0,0.70);      /* drop shadow */
}

.project-card:hover::before { opacity: 1; }

.project-card:hover::after {
  animation: cardSweep 0.65s ease forwards;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #1a1a1a 0%, #222 50%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245,184,0,0.05) 0%, transparent 70%);
}

.play-icon {
  width: 48px;
  height: 48px;
  background: rgba(245,184,0,0.15);
  border: 2px solid rgba(245,184,0,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--yellow);
  transition: var(--transition);
  padding-left: 3px;
}
.project-card:hover .play-icon {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

/* ── Recording indicator dot ── */
.rec-dot {
  position: absolute;
  top: 14px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffe566 0%, #F5B800 48%, #d06a00 100%);
  box-shadow:
    0 0 0 2.5px rgba(245, 130, 0, 0.22),
    0 0 9px  rgba(245, 150, 0, 0.70),
    0 0 18px rgba(245, 100, 0, 0.30);
  z-index: 4;
  pointer-events: none;
  animation: recPulse 2.6s ease-in-out infinite;
}

@keyframes recPulse {
  0%, 100% {
    box-shadow:
      0 0 0 2.5px rgba(245, 130, 0, 0.22),
      0 0 9px  rgba(245, 150, 0, 0.70),
      0 0 18px rgba(245, 100, 0, 0.30);
    opacity: 1;
  }
  50% {
    box-shadow:
      0 0 0 4px   rgba(245, 130, 0, 0.10),
      0 0 15px rgba(245, 150, 0, 0.45),
      0 0 28px rgba(245, 100, 0, 0.18);
    opacity: 0.70;
  }
}

.project-info {
  padding: 0.85rem 1rem;
}

.project-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--yellow);
}

.project-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.2rem;
}

/* ═══════════════ SERVICES ═══════════════ */
#services { background: rgba(6,6,6,0.68); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  will-change: transform;
}
.service-card:hover {
  border-color: rgba(245,184,0,0.5);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(245,184,0,0.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--yellow-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════ SOFTWARE ═══════════════ */
.software-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.software-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  will-change: transform;
  flex-direction: column;
  gap: 0;
  transition: var(--transition);
  overflow: hidden;
}
.software-card:hover {
  border-color: rgba(245,184,0,0.35);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(245,184,0,0.1);
}

.software-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  font-style: italic;
}

/* ═══════════════ EQUIPMENT ═══════════════ */
#equipment { background: rgba(6,6,6,0.68); }

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.equipment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.equipment-card:hover {
  border-color: rgba(245,184,0,0.3);
  transform: translateY(-3px);
}

.equip-brand {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.equip-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;          /* clips the zoom so it stays inside rounded box */
  position: relative;
}

/* Real image — whole product visible, slight zoom on hover */
.equip-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;       /* shows full product, no cropping */
  object-position: center;
  padding: 10px;             /* small breathing room around the product */
  display: block;
  box-sizing: border-box;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.equipment-card:hover .equip-img {
  transform: scale(1.07);
}

/* Hide emoji placeholder when real image is present */
.equip-thumb.has-img::after { display: none; }

/* Stylized placeholders */
.camera-thumb { background: radial-gradient(circle at 40% 50%, #1e2a3a 0%, #111 80%); }
.lens-thumb   { background: radial-gradient(circle at 50% 50%, #2a1e3a 0%, #111 80%); }
.mic-thumb    { background: radial-gradient(circle at 50% 30%, #1a2e1a 0%, #111 80%); }
.gimbal-thumb { background: radial-gradient(circle at 50% 60%, #2e2a1a 0%, #111 80%); }

.equip-thumb::after {
  content: '📷';
  font-size: 2.5rem;
  opacity: 0.2;
}
.lens-thumb::after   { content: '🔭'; }
.mic-thumb::after    { content: '🎙️'; }
.gimbal-thumb::after { content: '🎬'; }

.equipment-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.equipment-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══════════════ LOCATION ═══════════════ */
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  max-width: 640px;
  margin: 0 auto;
}

.location-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.location-card h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.location-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.location-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  padding: 0.5rem 1rem;
  background: var(--yellow-dim);
  border: 1px solid rgba(245,184,0,0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--yellow);
  font-weight: 500;
}

/* ═══════════════ FAQ ═══════════════ */
.faq-list {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.faq-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.07);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
}

.faq-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.28);
  min-width: 24px;
  flex-shrink: 0;
}

.faq-question {
  flex: 1;
  font-size: 1.08rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  transition: color 0.2s;
  text-align: left;
  line-height: 1.4;
}
.faq-trigger:hover .faq-question { color: #fff; }
.faq-item.open .faq-question      { color: #fff; }

.faq-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,0.45);
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.35s ease;
}
.faq-trigger:hover .faq-icon {
  border-color: rgba(245,184,0,0.45);
  color: var(--yellow);
}
.faq-item.open .faq-icon {
  border-color: var(--yellow);
  background: rgba(245,184,0,0.12);
  color: var(--yellow);
  transform: rotate(45deg);
}

.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.42s ease, padding-bottom 0.42s ease;
  padding-left: calc(24px + 1.25rem);
  padding-bottom: 0;
}
.faq-item.open .faq-body {
  max-height: 400px;
  padding-bottom: 1.75rem;
}

.faq-body p {
  font-size: 0.96rem;
  line-height: 1.80;
  color: rgba(255,255,255,0.50);
}

/* ═══════════════ CONTACT ═══════════════ */
/* ═══════════════ CONTACT / QUIZ INTRO ═══════════════ */
#contact { background: #0a0a0a; }

.quiz-intro-section { text-align: center; }

.quiz-intro-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.quiz-intro-heading {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 1rem 0 1.2rem;
  color: #fff;
}

.quiz-intro-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

.quiz-intro-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-open-btn {
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
}

/* ═══════════════ QUIZ OVERLAY ═══════════════ */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #080808;   /* same black as hero */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.quiz-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* stars canvas — same as hero */
.quiz-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* golden orb — exact copy of .hero-orb */
.quiz-orb {
  position: absolute;
  width: 660px;
  height: 660px;
  border-radius: 50%;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 40% 38%,
      rgba(245, 184,   0, 0.28) 0%,
      rgba(255, 140,  20, 0.16) 28%,
      rgba(200,  90,   0, 0.08) 52%,
      rgba(120,  50,   0, 0.03) 70%,
      transparent 82%
    );
  box-shadow:
    0 0  80px 16px rgba(245, 184,   0, 0.16),
    0 0 180px 60px rgba(255, 130,  20, 0.09),
    0 0 340px 120px rgba(180,  80,   0, 0.04);
  filter: blur(55px);
}

/* top bar */
.quiz-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.quiz-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
}
.quiz-progress-fill {
  height: 100%;
  background: var(--yellow);
  transition: width 0.45s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}
.quiz-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 1rem 1.2rem;
  transition: color 0.2s;
  z-index: 3;
}
.quiz-close-btn:hover { color: #fff; }

/* body / steps */
.quiz-body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  padding: 0 2rem;
}

/* single step */
.quiz-step {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  animation: quizSlideUp 0.38s cubic-bezier(0.22,1,0.36,1) both;
}
.quiz-step.active { display: flex; }

@keyframes quizSlideUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-step-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.quiz-step-num svg { width: 14px; height: 14px; }

.quiz-q {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  text-shadow:
    0 0 40px rgba(245, 184, 0, 0.22),
    0 0 80px rgba(255, 140, 20, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.6);
}
.quiz-q .quiz-req { color: var(--yellow); margin-left: 0.3rem; }

.quiz-hint {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.4rem;
}

/* underline input */
.quiz-input {
  background: none;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-family: inherit;
  padding: 0.6rem 0;
  outline: none;
  width: 100%;
  transition: border-color 0.25s;
}
.quiz-input::placeholder { color: rgba(255,255,255,0.22); }
.quiz-input:focus { border-color: var(--yellow); }

/* textarea variant */
.quiz-input.quiz-textarea {
  resize: none;
  min-height: 100px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-top: 0.4rem;
}
.quiz-input.quiz-textarea:focus { border-color: var(--yellow); }

/* OK button row */
.quiz-btn-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.quiz-ok-btn {
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.quiz-ok-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,184,0,0.35); }

.quiz-enter-hint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.32);
}
.quiz-enter-hint kbd {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-family: inherit;
  background: rgba(255,255,255,0.06);
}

/* thank-you screen */
.quiz-thankyou {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  animation: quizSlideUp 0.4s cubic-bezier(0.22,1,0.36,1) both;
}
.quiz-ty-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.quiz-thankyou h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
}
.quiz-thankyou p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ── Choice option rows (radio & multi) ── */
.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.12s ease;
  user-select: none;
}
.quiz-option:hover {
  border-color: rgba(245,184,0,0.38);
  background:   rgba(245,184,0,0.05);
  transform: translateX(3px);
}
.quiz-option.selected {
  border-color: var(--yellow);
  background:   rgba(245,184,0,0.10);
}

.quiz-opt-letter {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: rgba(255,255,255,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255,255,255,0.55);
  flex-shrink: 0;
  letter-spacing: 0;
  transition: background 0.18s, color 0.18s;
}
.quiz-option.selected .quiz-opt-letter {
  background: var(--yellow);
  color: #000;
}
.quiz-opt-text {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}

/* shake on entire list when no option selected */
.quiz-options-list.shake { animation: quizShake 0.35s ease; }

/* error shake */
@keyframes quizShake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-8px); }
  40%,80%  { transform: translateX(8px); }
}
.quiz-input.shake { animation: quizShake 0.35s ease; border-color: #e53e3e !important; }

/* ═══════════════ FOOTER ═══════════════ */
footer {
  border-top: 1px solid var(--border);
  background: rgba(6,6,6,0.88);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 220px;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ═══════════════ HERO CAROUSEL ═══════════════ */
.hero-text {
  position: relative;
  z-index: 3; /* keep text above overflowing orbit cards */
}

.hero-carousel-wrap {
  position: relative;
  height: 380px;
  perspective: 950px;
  perspective-origin: 50% 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible; /* cards orbit outside column bounds */
  z-index: 2;
}

.hc-scene {
  position: relative;
  width: 155px;
  height: 276px; /* exact 9:16 → 155 × (16/9) = 275.6 ≈ 276px */
  transform-style: preserve-3d;
}

.hc-card {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 14px rgba(245,184,0,0.25), 0 0 36px rgba(245,184,0,0.08);
  cursor: pointer;
  transition: box-shadow 0.5s ease;
  will-change: transform, opacity;
  background: #111;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hc-card.hc-active {
  box-shadow: 0 0 30px rgba(245,184,0,0.60),
              0 0 70px rgba(245,184,0,0.22),
              0 18px 45px rgba(0,0,0,0.65);
}

.hc-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}

.hc-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hc-card:hover .hc-play { opacity: 1; }

/* Autoplay iframe — wider than card so video fills height (no black bars) */
.hc-thumb iframe {
  position: absolute;
  /* Card is exact 9:16 → 155×276. Video is 16:9 landscape.
     To fill height without letterbox: width = 276*(16/9) ≈ 491px = ~316% of 155px */
  width: 316%;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  border: none;
  pointer-events: none;
}

/* 🔇 muted badge — bottom-right corner */
.hc-sound-hint {
  position: absolute;
  bottom: 9px;
  right: 9px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(8,8,8,0.72);
  border: 1px solid rgba(245,184,0,0.30);
  border-radius: 20px;
  padding: 3px 8px 3px 6px;
  pointer-events: none;
  z-index: 3;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.hc-sound-hint svg {
  color: var(--yellow);
  flex-shrink: 0;
}
.hc-sound-hint span {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--yellow);
  line-height: 1;
}

/* On hover show sound icon prominently */
.hc-card:hover .hc-play {
  opacity: 1;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.hc-card:hover .hc-play::after {
  content: ' ЗВУК';
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  vertical-align: middle;
}

/* ═══════════════ SOFTWARE SKILL CARDS ═══════════════ */
.sw-card-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.sw-icon-wrap { flex-shrink: 0; }

.sw-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #1a1a1a;
}

.sw-card-meta h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }

.sw-level-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.05em;
}

.sw-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sw-skill { margin-bottom: 0.85rem; }

.sw-skill-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.sw-skill-name { color: var(--yellow); }

.sw-skill-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.sw-skill-fill {
  height: 100%;
  background: var(--yellow);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(245,184,0,0.6);
  transition: width 1s cubic-bezier(.4,0,.2,1);
}

/* ═══════════════ LIGHTBOX ═══════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox-box {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  background: #000;
  border-radius: 16px;
  border: 2px solid var(--yellow);
  overflow: hidden;
  animation: lbIn 0.22s ease;
  box-shadow:
    0 0 0 1px rgba(245,184,0,0.2),
    0 0 32px rgba(245,184,0,0.35),
    0 0 80px rgba(245,184,0,0.15),
    0 40px 80px rgba(0,0,0,0.85);
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem 0.65rem 1.25rem;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.lightbox-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-close {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.lightbox-close:hover { background: var(--yellow); color: #000; }

.lightbox-iframe-wrap {
  position: relative;
  padding-bottom: 177.78%; /* 9:16 vertical */
  height: 0;
  background: #000;
}
.lightbox-iframe-wrap > div,
.lightbox-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* ── Thumbnail: shows YouTube image when ID is set ── */
.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  transition: transform 0.35s ease;
}
.project-card:hover .thumb-img { transform: scale(1.05); }

/* fallback gradient when no thumbnail */
.thumb-img:not([style]) {
  background: linear-gradient(135deg, #1a1a1a 0%, #222 50%, #1a1a1a 100%);
}
.thumb-img:not([style])::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245,184,0,0.05) 0%, transparent 70%);
}

/* ═══════════════ SCROLL REVEAL ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════ RESPONSIVE ═══════════════ */

/* ── Tablet ≤ 1024px ── */
@media (max-width: 1024px) {
  .hero-layout        { grid-template-columns: 1fr 260px; gap: 2.5rem; }
  .software-grid      { grid-template-columns: repeat(2, 1fr); }
  .equipment-grid     { grid-template-columns: repeat(2, 1fr); }
  .projects-grid      { grid-template-columns: repeat(2, 1fr); }
  .results-grid       { grid-template-columns: repeat(3, 1fr); }
  .footer-inner       { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand       { grid-column: 1 / -1; }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger            { display: flex; }

  /* Sections */
  .section { padding: 3.5rem 0; }

  /* Hero */
  #hero { padding: 90px 1.25rem 3rem; min-height: auto; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 0;
    text-align: center;
  }
  .hero-carousel-wrap { display: none; }   /* скрий карусела — фокус върху CTA */
  .hero-text          { text-align: center; }
  .hero-text h1       { font-size: clamp(1.7rem, 6vw, 2.5rem); }
  .hero-sub           { margin: 0 auto 1.75rem; font-size: 0.95rem; }
  .hero-buttons       { justify-content: center; gap: 0.75rem; }
  .hero-stats         { gap: 1.5rem; margin-top: 2rem; }
  .stat-divider       { display: none; }
  .hero-orb           { width: 280px; height: 280px; }

  /* Grids */
  .projects-grid      { grid-template-columns: repeat(2, 1fr); }
  .services-grid      { grid-template-columns: 1fr; }
  .software-grid      { grid-template-columns: 1fr; }
  .equipment-grid     { grid-template-columns: repeat(2, 1fr); }
  .results-grid       { grid-template-columns: 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }

  /* Contact */
  .form-row     { grid-template-columns: 1fr; }
  .form-buttons { flex-direction: column; }
  .form-buttons .btn { width: 100%; justify-content: center; }

  /* Location */
  .location-card { padding: 2.25rem 1.25rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }

  /* Lightbox */
  .lightbox-box { width: 96vw; max-height: 90vh; }
}

/* ── Small phones ≤ 480px ── */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section   { padding: 2.75rem 0; }
  #hero      { padding: 84px 1rem 2.5rem; }

  /* Hero text */
  .hero-text h1   { font-size: 1.6rem; line-height: 1.15; }
  .hero-sub       { font-size: 0.9rem; }
  .hero-buttons   { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .stat-num       { font-size: 1.45rem; }
  .stat-label     { font-size: 0.72rem; }

  /* Grids → single column */
  .projects-grid      { grid-template-columns: 1fr; gap: 1rem; }
  .services-grid      { grid-template-columns: 1fr; gap: 1rem; }
  .software-grid      { grid-template-columns: 1fr; gap: 1rem; }
  .equipment-grid     { grid-template-columns: 1fr; gap: 1rem; }
  .results-grid       { grid-template-columns: 1fr; gap: 1rem; }
  .testimonials-grid  { grid-template-columns: 1fr; gap: 1rem; }

  /* Footer → single column */
  .footer-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .footer-brand { grid-column: auto; }

  /* Location */
  .location-card  { padding: 2rem 1rem; }
  .location-badges { gap: 0.5rem; }
  .badge          { font-size: 0.75rem; padding: 0.4rem 0.85rem; }

  /* Section typography */
  .section-title { font-size: 1.6rem; margin-bottom: 1.25rem; }
  .section-sub   { font-size: 0.85rem; }

  /* Service cards */
  .service-card  { padding: 1.5rem 1.25rem; }
  .service-icon  { width: 48px; height: 48px; margin-bottom: 1rem; }

  /* Software cards */
  .software-card { padding: 1.25rem; }

  /* Equipment */
  .equipment-card { padding: 1.25rem; }

  /* Nav logo */
  .logo { font-size: 1.1rem; }

  /* Mobile menu links — bigger tap target */
  .mobile-link    { padding: 0.5rem 0; font-size: 1.05rem; }

  /* Buttons */
  .btn { padding: 0.7rem 1.3rem; font-size: 0.85rem; }
}

/* ══════════════════════════════════════════════════════
   ANIMATIONS & ENTRANCE EFFECTS
══════════════════════════════════════════════════════ */

/* ── Keyframes ── */

@keyframes rippleOut {
  0%   { transform: scale(1);    opacity: 0.65; }
  100% { transform: scale(2.5);  opacity: 0;    }
}

@keyframes labelGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(245,184,0,0.25), 0 0 30px rgba(245,184,0,0.08); }
  50%      { box-shadow: 0 0 24px rgba(245,184,0,0.55), 0 0 55px rgba(245,184,0,0.20); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes heroSlideRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0);    }
}

@keyframes navDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0);     }
}

@keyframes shimmer {
  from { left: -75%; }
  to   { left: 130%; }
}

@keyframes cardSweep {
  from { left: -80%; }
  to   { left: 135%; }
}

@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0   0   rgba(245,184,0,0.55); }
  60%      { box-shadow: 0 0 0  14px rgba(245,184,0,0);    }
}

@keyframes orbBreath {
  0%, 100% {
    opacity: 0.82;
    transform: translate(-50%, -50%) scale(1.00);
  }
  50% {
    opacity: 1.00;
    transform: translate(-50%, -50%) scale(1.07);
  }
}

@keyframes statGlow {
  0%, 100% { text-shadow: 0 0  8px rgba(245,184,0,0.20); }
  50%      { text-shadow: 0 0 24px rgba(245,184,0,0.70), 0 0 48px rgba(245,184,0,0.25); }
}

/* ── Section label: water-drop ripple + breathing glow ── */
.section-label {
  position: relative;
  animation: labelGlow 3.5s ease-in-out infinite;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 184, 0, 0.50);
  pointer-events: none;
  animation: rippleOut 4s ease-out infinite;
}
.section-label::after { animation-delay: 2s; }

/* ── Navbar entrance ── */
#navbar {
  animation: navDown 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── Hero elements entrance ── */
#heroLabel               { animation: heroFadeUp     0.70s ease both; animation-delay: 0.15s; }
#heroHeading             { animation: heroFadeUp     0.80s ease both; animation-delay: 0.35s; }
#heroSub                 { animation: heroFadeUp     0.70s ease both; animation-delay: 0.55s; }
.hero-text .hero-buttons { animation: heroFadeUp     0.70s ease both; animation-delay: 0.72s; }
#heroStats               { animation: heroFadeUp     0.70s ease both; animation-delay: 0.95s; }
#heroCarousel            { animation: heroSlideRight 0.90s cubic-bezier(0.22,1,0.36,1) both;
                           animation-delay: 0.45s; }

/* ── Hero orb breathing ── */
.hero-orb {
  animation: orbBreath 5s ease-in-out infinite;
}

/* ── Stat numbers golden glow ── */
.stat-num {
  animation: statGlow 3s ease-in-out infinite;
}

/* ── Play icon sonar pulse ── */
.play-icon {
  animation: playPulse 2.6s ease-out infinite;
}

/* ── Button yellow shimmer on hover ── */
.btn-yellow {
  position: relative;
  overflow: hidden;
}
.btn-yellow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    108deg,
    transparent 38%,
    rgba(255, 255, 255, 0.30) 50%,
    transparent 62%
  );
  transform: skewX(-15deg);
  pointer-events: none;
}
.btn-yellow:hover::after {
  animation: shimmer 0.55s ease forwards;
}
