@charset "utf-8";

/* ============================================
   HERO SECTION
   ============================================ */
.index .hero-box,
.about .hero-box,
.works .hero-box,
.publications .hero-box,
.news .hero-box,
.ourgallery .hero-box {
  background-image: none;
}

.hero-box {
  position: relative;
  width: 100%;
  max-width: min(100%, var(--container-wide));
  height: clamp(400px, 100svh, 900px);
  min-height: 400px;
  margin: 0 auto var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--color-primary-900);
  isolation: isolate;
  z-index: var(--z-base);
}
.hero-box picture,
.hero-box img.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: var(--z-negative);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 0; /* Jobs: снимката е продуктът — без опаковка */
}

.hero-content {
  position: relative;
  z-index: var(--z-elevated);
  color: var(--color-text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: var(--gutter-base);
  max-width: 48rem; /* 768px */
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: clamp(var(--text-base), 2.5vw, var(--text-xl));
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-8);
  max-width: 40rem; /* 640px */
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   LIQUID GLASS BUTTON
   ============================================ */
.button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  position: relative;
  z-index: var(--z-elevated);
}

.ripple-link {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  width: 100%;
  max-width: 22.5rem; /* 360px */
  border-radius: 6px; /* Jobs: бутонът е инструмент, не бонбон */
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.3));
  transition: filter var(--transition-base);
  will-change: filter;
  -webkit-tap-highlight-color: transparent;
  transform: var(--gpu-transform);
}

.ripple-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 8px;
}

.liquid-glass-button {
  width: 100%;
  display: block;
  border-radius: 6px; /* Jobs: consistent с ripple-link */
  transition: transform var(--transition-smooth);
  transform: var(--gpu-transform);
  pointer-events: none;
  will-change: transform;
  overflow: visible;
}

.liquid-glass-button text {
  font-weight: 600;
  font-family: var(--font-system);
  font-size: clamp(var(--text-lg), 3vw, var(--text-xl));
  fill: var(--color-text-light);
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    var(--btn-liquid-glow);
  pointer-events: none;
  user-select: none;
  transition: all var(--transition-smooth);
  dominant-baseline: middle;
  text-anchor: middle;
}

/* Enhanced Glow Effect */
.ripple-link.glow-plus:hover,
.ripple-link.glow-plus:focus {
  filter: var(--btn-liquid-glow-strong);
  animation: neonPulse 1.5s infinite alternate;
  will-change: filter, transform;
}

.ripple-link:hover .liquid-glass-button,
.ripple-link:focus .liquid-glass-button {
  transform: var(--gpu-transform) translateY(-2px);
}

.ripple-link:hover .liquid-glass-button rect,
.ripple-link:focus .liquid-glass-button rect {
  stroke: rgba(0, 255, 255, 0.8);
  stroke-width: 3;
  filter: 
    drop-shadow(0 0 10px rgba(0, 255, 255, 0.5))
    drop-shadow(0 0 20px rgba(0, 153, 255, 0.3))
    drop-shadow(0 0 15px rgba(255, 140, 0, 0.6));
  animation: dualGlow 2s infinite alternate;
}

.ripple-link:hover .liquid-glass-button text,
.ripple-link:focus .liquid-glass-button text {
  fill: var(--color-text-light);
  text-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.9),
    var(--btn-liquid-glow-hover);
  font-weight: 700;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 600ms linear;
  background-color: rgba(255, 140, 0, 0.2);
  pointer-events: none;
  will-change: transform, opacity;
}

@keyframes ripple-animation {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes neonPulse {
  0% {
    filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.4))
           drop-shadow(0 0 16px rgba(0, 120, 255, 0.2));
  }
  100% {
    filter: drop-shadow(0 0 16px rgba(0, 200, 255, 0.7))
           drop-shadow(0 0 32px rgba(0, 120, 255, 0.4));
  }
}

@keyframes dualGlow {
  0% {
    filter: 
      drop-shadow(0 0 6px rgba(0, 200, 255, 0.4))
      drop-shadow(0 0 12px rgba(255, 100, 0, 0.3));
  }
  100% {
    filter: 
      drop-shadow(0 0 10px rgba(0, 200, 255, 0.7))
      drop-shadow(0 0 20px rgba(255, 100, 0, 0.5));
  }
}
/* ============================================
   SCROLL INDICATOR — Apple-style Mouse + Wheel
   2026 Liquid Glass Edition (Final Clean Version)
   ============================================ */
/* ── Scroll Indicator — Neon Mouse ── */
.scroll-indicator {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 10px;
  cursor: pointer;
  opacity: 0.9;
  z-index: var(--z-elevated);
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-top: var(--space-6);
}

.scrolled .scroll-indicator {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.scroll-indicator .scroll-text {
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 0.85),
    0 0 14px rgba(0, 220, 255, 0.9),
    0 0 28px rgba(0, 180, 255, 0.6);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 4px; /* Jobs: label, не пилула */
  transition: text-shadow 0.3s ease;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border-radius: 6px; /* Jobs: геометрична форма, не таблетка */
  position: relative;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(120, 180, 255, 0.08) 50%,
    rgba(55, 100, 220, 0.15) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1.5px rgba(0, 210, 255, 0.75),
    0 0 10px rgba(0, 200, 255, 0.45),
    0 0 24px rgba(0, 160, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}

/* Specular highlight — светлинен отблясък горе */
.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    transparent 100%
  );
  pointer-events: none;
}

.scroll-indicator:hover .mouse {
  box-shadow:
    0 0 0 1.5px rgba(0, 230, 255, 1),
    0 0 16px rgba(0, 210, 255, 0.7),
    0 0 32px rgba(0, 160, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Колелцето — неоново жълто */
.scroll-indicator .wheel {
  width: 2px;
  height: 7px;
  background: #ffe600;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow:
    0 0 6px #ffe600,
    0 0 12px rgba(255, 230, 0, 0.7),
    0 0 20px rgba(255, 200, 0, 0.4);
  animation: scrollWheel 2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes scrollWheel {
  0%   { opacity: 0; transform: translateX(-50%) translateY(0); }
  15%  { opacity: 1; }
  80%  { opacity: 0; transform: translateX(-50%) translateY(16px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}
/* ============================================
   ACCENT SCROLL INDICATOR — Цветна версия за News & други
   Без конфликт с основния .scroll-indicator
   ============================================ */

/* Акцентен контейнер — наследява позиционирането */
.accent-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  z-index: 100;
  opacity: 0.85;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Скриване при скрол — същото поведение */
.scrolled .accent-scroll {
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
}

/* Текст — по-светъл, с неоново сияние */
.accent-scroll .scroll-text {
  color: #ffffff;
  font-size: 9px;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
   text-shadow: 0 0 12px rgba(0, 255, 255, 0.8), 0 0 25px rgba(0, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.accent-scroll:hover .scroll-text {
  letter-spacing: 5px;
  text-shadow: 0 0 15px rgba(55, 64, 255, 0.8);
  opacity: 1;
}

/* Цветна мишка — градиентен борд синьо → лайм */
.apple-mouse-colorful {
  width: 22px;
  height: 36px;
  border: 1.5px solid transparent;
  background: linear-gradient(#1a1a1a, #1a1a1a) padding-box,
              linear-gradient(135deg, #3740ff, #a8ff00, #3740ff) border-box;
  border-radius: 5px; /* Jobs: прецизна геометрия */
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(55, 64, 255, 0.3);
  transition: all 0.3s ease;
}

.accent-scroll:hover .apple-mouse-colorful {
  box-shadow: 0 0 25px rgba(55, 64, 255, 0.5), 0 0 10px rgba(168, 255, 0, 0.3);
  transform: translateY(-2px);
}

/* Колелцето — светещ лайм за контраст */
.accent-scroll .apple-wheel {
  width: 2px;
  height: 7px;
  background: #a8ff00; /* Лайм цвят */
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 8px #a8ff00, 0 0 4px rgba(168, 255, 0, 0.5);
  animation: apple-scroll-wheel 2.2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

/* Анимация на колелцето — специфична за цветната версия */
@keyframes apple-scroll-wheel {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  15% {
    opacity: 1;
  }
  75% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px);
  }
}

/* Hover ефект за цялата група */
.accent-scroll:hover .apple-wheel {
  box-shadow: 0 0 12px #a8ff00, 0 0 6px rgba(168, 255, 0, 0.8);
  animation-duration: 1.8s;
}

/* Мобилна адаптация */
@media (max-width: 600px) {
  .accent-scroll {
    bottom: 20px;
    gap: 8px;
  }
  .apple-mouse-colorful {
    width: 18px;
    height: 30px;
  }
  .accent-scroll .scroll-text {
    font-size: 8px;
    letter-spacing: 3px;
  }
  .accent-scroll .apple-wheel {
    height: 6px;
    top: 6px;
  }
}

/* Скриване при намалено движение */
@media (prefers-reduced-motion: reduce) {
  .accent-scroll .apple-wheel {
    animation: none;
    opacity: 1;
    top: 12px;
  }
  .accent-scroll:hover .apple-wheel {
    animation: none;
  }
}

/* Принтиране */
@media print {
  .accent-scroll {
    display: none !important;
  }
}



/* ============================================
   Publication-Page - Gallery Layout
   ============================================ */
 /* ===== PUBLICATION PAGE LAYOUT ===== */
    body.publication-page { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
    body.publication-page .container,
    body.publication-page .rt-container,
    body.publication-page .Scriptcontent { display: contents; }
    body.publication-page #main-content { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 60px 0 76px; box-sizing: border-box; }
    body.publication-page .hero { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 12px; box-sizing: border-box; }
    body.publication-page .hero h1,
    body.publication-page .hero p { display: none; }
    body.publication-page .hero picture { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
    body.publication-page .hero picture img { max-width: 100%; max-height: 100%; width: auto !important; height: auto; object-fit: contain; cursor: zoom-in; display: block; }

    /* ===== LIQUID GLASS FOOTER ===== */
    body.publication-page .footer { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 860px; height: 52px; z-index: 1000; border-radius: 6px; overflow: hidden; padding: 0 20px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(10px) saturate(300%); -webkit-backdrop-filter: blur(25px) saturate(350%); border-top: 1px solid rgba(255, 255, 255, 0.6); border-bottom: 1px solid rgba(255, 255, 255, 0.25); border-left: 1px solid rgba(255, 255, 255, 0.45); border-right: 1px solid rgba(255, 255, 255, 0.45); box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.1); transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    body.publication-page .footer::before { content: ''; position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.4) 100%); opacity: 0.6; pointer-events: none; mix-blend-mode: overlay; filter: brightness(1.1) contrast(1.2); }
    body.publication-page .footer-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 12px; }
    body.publication-page .footer-section { display: flex; align-items: center; }
    body.publication-page .social-icons { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
    body.publication-page .social-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 4px; color: #000; font-size: 14px; text-decoration: none; transition: all 0.3s ease; }
    body.publication-page .social-icon:hover { background: rgba(255, 140, 0, 0.25); backdrop-filter: blur(10px) saturate(300%); -webkit-backdrop-filter: blur(10px) saturate(300%); border: 1px solid rgba(255, 140, 0, 0.5); box-shadow: 0 0 20px rgba(255, 140, 0, 0.5), inset 0 0 30px rgba(255, 140, 0, 0.3); color: #ff8c00; transform: translateY(-1px); text-decoration: none; }
    body.publication-page .contact-info,
    body.publication-page .contact-details { display: flex; align-items: center; gap: 14px; }
    body.publication-page .contact-details p { font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 11px; font-weight: 500; color: #000; letter-spacing: 0.3px; margin: 0; white-space: nowrap; }
    body.publication-page .contact-details a { color: #000; text-decoration: none; transition: color 0.2s ease; }
    body.publication-page .contact-details a:hover { color: #ff8c00; text-decoration: none; }
    body.publication-page .copyright { font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 10px; font-weight: 400; color: rgba(0, 0, 0, 0.5); letter-spacing: 0.3px; margin: 0; white-space: nowrap; }

    /* ===== FULLSCREEN OVERLAY ===== */
    body.publication-page .pub-overlay { position: fixed; inset: 0; z-index: 99999; background: #000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; opacity: 0; transition: opacity 0.3s ease; }
    body.publication-page .pub-overlay.active { opacity: 1; }
    body.publication-page .pub-overlay img { max-width: 100vw; max-height: 100vh; object-fit: contain; user-select: none; }
    body.publication-page .pub-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; background: rgba(255, 255, 255, 0.15); border: none; border-radius: 4px; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
    body.publication-page .pub-close:hover { background: rgba(255, 255, 255, 0.3); }

/* =====  SCROLL INDICATOR ===== */
    body.publication-page .scroll-indicator { 
        position: absolute; 
        bottom: 110px;
        left: 50%; 
        transform: translateX(-50%); 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        gap: 12px; 
        z-index: 9999;
        /* Ореол около бутона за контраст върху шарено */
        padding: 20px;
        border-radius: 8px; /* Jobs: контейнер, не балон */
        background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, transparent 70%);
    }

  .scroll-text {
    font-size: 10px;
    font-weight: 600;      /* Елегантно, но четимо */
    letter-spacing: 5px;
    color: #ffffff;
    text-transform: uppercase;

    /* Вместо черна сянка — леко сияние около буквите */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);

    /* "Светещо стъкло" — пропуска цветовете отдолу, но ги прави живи */
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);

    /* Hairline Border — тайната на Apple за дефиниция */
    border: 0.5px solid rgba(255, 255, 255, 0.25);

    /* Мека, невидима дълбочина */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);

    padding: 7px 16px 7px 21px;
    border-radius: 4px; /* Jobs: текстов label, не пилула */
    display: inline-block;
    white-space: nowrap;
}
/* Ефект при ховър - "Оживяване" */
.scroll-wrapper:hover .scroll-text {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}
          
      .mouse { 
        width: 30px; 
        height: 48px; 
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 2px solid #ffffff;
        border-radius: 6px; /* Jobs: геометрична форма */
        position: relative; 
        box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }
.wheel { 
        width: 4px; 
        height: 10px; 
        background: #ffffff; 
        position: absolute; 
        top: 8px; 
        left: 50%; 
        transform: translateX(-50%); 
        border-radius: 4px; 
        animation: scroll-wheel-jobs 2s ease-in-out infinite;
        box-shadow: 0 0 10px #ffffff; /* Светещ ефект */
    }
    @keyframes scroll-wheel-jobs { 
        0% { opacity: 0; transform: translateX(-50%) translateY(0); } 
        20% { opacity: 1; }
        80% { opacity: 0; transform: translateX(-50%) translateY(20px); }
        100% { opacity: 0; } 
    }

    /* Скриване при скрол */
    body.publication-page.scrolled .scroll-indicator { 
        opacity: 0; 
        transform: translateX(-50%) translateY(20px); 
        pointer-events: none; 
    }
    /* Content/gallery hidden by default */
    body.publication-page .content { display: none; }

    /* ===== HAS-GALLERY ===== */
    body.publication-page.has-gallery { height: auto; overflow: auto; display: block; background: #fff; }
    body.publication-page.has-gallery .container,
    body.publication-page.has-gallery .rt-container,
    body.publication-page.has-gallery .Scriptcontent { display: block; }
    body.publication-page.has-gallery #main-content { overflow: visible; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; flex: none; padding: 60px 0 80px; background: #fff; }
    
    /* Важно: Добавихме relative тук, за да може индикаторът да се позиционира спрямо hero секцията */
    /* Показваме hero-content текста (h1 + p са скрити от publication-page правилото) */
    body.publication-page.has-gallery .hero h1,
    body.publication-page.has-gallery .hero p { display: block; }

    body.publication-page.has-gallery .hero { 
        height: auto; 
        max-height: 92vh; 
        min-height: 0; 
        overflow: hidden; 
        padding: 12px 12px 0; 
        box-sizing: border-box; 
        position: relative; 
        background: #fff; 
        /* Grid за overlay на hero-content върху снимката */
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    /* Снимката и hero-content заемат едно и също grid-клетка — overlay */
    body.publication-page.has-gallery .hero picture,
    body.publication-page.has-gallery .hero .hero-content {
        grid-column: 1;
        grid-row: 1;
    }

    /* hero-content центриран върху снимката */
    body.publication-page.has-gallery .hero .hero-content {
        align-self: center;
        justify-self: center;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 1.5rem;
    }

    /* Scroll-indicator обратно в нормален поток — под h1 и p */
    body.publication-page.has-gallery .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1.5rem;
    }
    /* При скрол — само translateY, без translateX */
    body.publication-page.has-gallery.scrolled .scroll-indicator {
        transform: translateY(20px);
    }
    
    body.publication-page.has-gallery .hero picture { position: static !important; inset: auto !important; width: 100% !important; height: auto !important; display: block !important; }
    body.publication-page.has-gallery .hero picture img { width: 100% !important; height: auto !important; max-height: 90vh; object-fit: contain !important; cursor: default; display: block; }
    body.publication-page.has-gallery .content { display: block !important; padding: 8px 12px 0; max-width: 900px; margin: 0 auto; }
    body.publication-page.has-gallery .image-gallery-v { margin: 0 auto 12px; cursor: zoom-in; display: block; text-align: center; }
    body.publication-page.has-gallery .image-gallery { display: block; width: 100%; margin: 0 auto 12px; cursor: zoom-in; }
    body.publication-page.has-gallery .image-gallery-v img { width: 100% !important; max-width: 100% !important; height: auto !important; display: block; max-height: 80vh; object-fit: contain; }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 600px) {
      body.publication-page #main-content { padding: 50px 0 72px !important; }
      body.publication-page .footer { bottom: 8px; width: calc(100% - 20px); height: 46px; border-radius: 6px; padding: 0 14px; }
      body.publication-page .contact-info { display: none; }
      body.publication-page .copyright { display: none; }
      body.publication-page .footer-content { justify-content: center; }
      body.publication-page .social-icons { gap: 4px; }
      body.publication-page .social-icon { width: 30px; height: 30px; font-size: 13px; }
      body.publication-page.has-gallery #main-content { padding: 50px 0 72px !important; }
      body.publication-page.has-gallery .hero { max-height: 60vh; padding: 8px 8px 0; }
      body.publication-page.has-gallery .content { padding: 8px 8px 0; }
    }
/* ===== THE LIQUID BLUE BACK BUTTON (MATCHING HEADER) ===== */
/* ===== BACK BUTTON — Контрастен и детайлен (DeepSeek Mod) ===== */
body.publication-page .back-button .back-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 18px 8px 14px !important;
    border-radius: 6px !important; /* Jobs: бутонът е действие, не пилула */
    text-decoration: none !important;
    font-family: "SF Pro Text", "SF Pro Display", -apple-system, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    position: relative;
    overflow: hidden;
    
    /* Начално състояние (върху Hero секцията) */
    color: rgba(255, 255, 255, 0.95) !important;
    background: rgba(55, 64, 255, 0.5) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Слоеве за отблясък (Glass effects) */
body.publication-page .back-button .back-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 40%;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 100%);
    pointer-events: none;
}

/* Долен отблясък (Refraction) */
body.publication-page .back-button .back-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 25%;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(0deg, rgba(80, 160, 255, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

/* Chevron SVG */
body.publication-page .back-button .back-link svg {
    width: 7px;
    height: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    color: inherit;
}

body.publication-page .back-button .back-link span {
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* ===== КОГАТО ХЕДЪРЪТ Е В .glass (Скрол върху бяло) ===== */
.header.glass ~ .back-button .back-link,
.header.glass .back-button .back-link {
    /* Инвертираме: Тъмен бутон със светъл текст за макс. контраст */
    background: rgba(55, 64, 255, 0.9) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

/* Hover състояние в .glass режим */
.header.glass ~ .back-button .back-link:hover,
.header.glass .back-button .back-link:hover {
    background: rgba(55, 64, 255, 1) !important;
    transform: translateY(-1px) scale(1.03) !important;
}

/* Hover в нормален режим */
@media (hover: hover) and (pointer: fine) {
    body.publication-page .back-button .back-link:hover {
        background: rgba(55, 64, 255, 0.7) !important;
        transform: translateY(-1px) scale(1.02) !important;
    }
}

/* Active / Tap */
body.publication-page .back-button .back-link:active {
    transform: scale(0.96) !important;
    transition-duration: 0.08s !important;
}

/* Mobile tweak */
@media (max-width: 600px) {
    body.publication-page .back-button .back-link {
        padding: 6px 14px !important;
        font-size: 14px !important;
        gap: 4px !important;
    }
    body.publication-page .back-button .back-link svg {
        width: 6px;
        height: 10px;
    }
}

/* ============================================
   GRID SYSTEM - Gallery Layout
   ============================================ */

/* WRAPPER STYLES */
.wrapper {
  display: block;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
  height: auto;
}

.section-titel {
  box-shadow: 0 8px 6px -6px gray;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.wrapper .section-titel h2, 
.section-titel h2 {
  display: inline-block;
  font-size: 18px;
  color: #1d1d1f;
}

.wrapper .section-titel span, 
.section-titel span {
  color: #0066cc;
  background-position: center;
  justify-content: center;
}

/* MAIN CONTENT & SECTION WRAPPER */
#main-content {
  width: auto;
  min-height: 100%;
  position: relative;
  padding-bottom: calc(var(--footer-height, 80px));
  padding-top: 15px;
  display: flex;
  flex-direction: column;
}

/* SECTION WRAPPER GRID CONTAINER */
.section-wrapper {
  padding: 20px 0 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: var(--container-max, 1200px);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
	 justify-items: center;
}

/* Grid System - Mobile First */
.section-wrapper[role="list"] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 0;
  width: 100%;
  margin: 0 auto;
	 justify-items: center;
}
.section-wrapper h2 {
  display: inline-block;
  font-size: 1rem;
  font-weight: lighter;
  vertical-align: middle;
  position: relative;
  line-height: normal;
  padding-top: 15px;
  font-family: var(--font-system);
  color: var(--color-text-primary);
}

/* ============================================
   RESPONSIVE ITEM — Liquid Glass Card
   ============================================ */
.responsive,
.responsive[role="listitem"] {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0;
  overflow: visible;

  /* Liquid Glass container shimmer */
  border-radius: 4px; /* Jobs: контейнерът следва съдържанието, не го опакова */
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  transition: border-color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.responsive:hover,
.responsive[role="listitem"]:hover {
  border-color: rgba(255, 255, 255, 0.55);
}

/* GALLERY STYLES - OPTIMIZED */
.gallery {
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid transparent; /* transparent → плавен преход без видим контур */
  border-radius: 4px; /* Jobs: снимката не е карта — рамката не трябва да крещи */
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  width: 100%;
  max-width: 400px; /* Фиксирана максимална ширина */
  height: auto;
  display: flex;
  flex-direction: column;
  float: none;
	-webkit-tap-highlight-color: transparent; /* Премахва синьото "highlight" на iOS при натискане */
  margin: 0 auto; 
}
.gallery:hover {
  transform: translateY(-6px) scale(1.015);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-color: transparent; /* Без видим борд — само сянка дава дълбочина */

  /* Apple-grade shadow: три слоя за реалистична дълбочина */
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.10),
    0 30px 60px -10px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 4px 4px 0 0; /* Jobs: изображението покрива картата чисто */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(0.95) contrast(1.05);
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.gallery:hover img {
  filter: brightness(1.08) contrast(1.08) saturate(1.1);
  transform: scale(1.02);
}

.gallery picture {
  display: block;
  width: 100%;
  height: auto;
}

.gallery a {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  flex-grow: 1;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.gallery a:focus-visible {
  outline: 2px solid rgba(0, 102, 255, 0.5);
  outline-offset: 3px;
  border-radius: 4px 4px 0 0;
}

/* Gallery Title - Overlay Style - FIXED */
.gallery h2,
.gallery-title {
  font-family: var(--font-system);
  color: var(--color-text-primary);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding: 10px 12px;
  margin: 0;
  width: 100%;
  font-size: clamp(0.875rem, 2vw, 1rem);
  text-align: center;
  font-weight: 600;
  letter-spacing: -0.1px;
  border-radius: 0 0 4px 4px; /* Jobs: заглавието затваря картата — без пилула */
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  z-index: 2;
  box-sizing: border-box;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 3.6em;
}

.gallery:hover h2,
.gallery:hover .gallery-title {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: #0066ff;
  text-shadow: 0 0 20px rgba(0, 102, 255, 0.25);
}

/* DESCRIPTION */
.desc {
  width: 100%;
  display: block;
  box-sizing: border-box;
  padding: 15px;
  text-align: center;
  flex-grow: 1;
}
.desc p {
  white-space: normal;
  position: relative;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-family: var(--font-system);
  font-weight: 600;
  line-height: 1.6;
  min-height: 110px;
  max-height: 620px;
  color: var(--color-text-secondary);
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.desc a {
  color: var(--color-link);
  font-weight: 700;
  line-height: 1.6;
}

.desc a:hover {
  color: var(--color-danger);
}

.desc p strong {
  color: #0F0F0F;
  font-weight: bolder;
}

.desc-word {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ADDITIONAL GALLERY STYLES  */

.content {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: ghostwhite;
  box-sizing: border-box;
  overflow: visible;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  
  /* Grid - запазва точния ред на изображенията */
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
/* ============================================
   SINGLE IMAGE CONTAINER - СЪЩИТЕ РАЗМЕРИ КАТО IMAGE-GALLERY
   ============================================ */
.single-image-container {
  width: 100%;
  max-width: 1000px; /* Същата max-width като .image-gallery */
  justify-self: center;
  box-sizing: border-box;
  text-align: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px; /* Jobs: контейнерът е рамка, не играчка */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  padding: 10px;
  transition: all 0.3s ease;
  grid-column: 1 / -1; /* Заема всички колони */
}

.single-image-container:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.single-image-container img {
  border-radius: 2px; /* Jobs: снимката е чиста — минимален hint за ръб */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  object-fit: cover;
}

.single-image-container:hover img {
  transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 799px) {
  .single-image-container {
    max-width: 95%;
    padding: 8px;
  }
}

@media (min-width: 800px) and (max-width: 1199px) {
  .single-image-container {
    max-width: 850px;
  }
}

@media (min-width: 1200px) {
  .single-image-container {
    max-width: 1000px;
  }
}
/* ============================================
   ХОРИЗОНТАЛНИ ИЗОБРАЖЕНИЯ - ГОЛЕМИ
   ============================================ */
.image-gallery {
  width: 100%;
  max-width: 1000px;
  justify-self: center;
  box-sizing: border-box;
  text-align: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.05);

  border-radius: 4px; /* Jobs: хоризонталните изображения са пейзажи, не карти */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  margin: 0 auto;
  padding: 10px;
  transition: all 0.3s ease;
  
  /* ТОВА Е КЛЮЧОВО - заема всички колони */
  grid-column: 1 / -1;
  cursor: zoom-in;
}

.image-gallery:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.image-gallery img {
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  object-fit: cover;
}

.image-gallery:hover img {
  transform: scale(1.02);
}

/* ============================================
   ВЕРТИКАЛНИ ИЗОБРАЖЕНИЯ - БАЗОВИ СТИЛОВЕ
   ============================================ */
.image-gallery-v {
  box-sizing: border-box;
  text-align: center;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px; /* Jobs: вертикалните снимки са портрети — правите ъгли им дават достойнство */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  margin: 0;
  padding: 10px;
  transition: all 0.3s ease;
  width: 100%;
  justify-self: center;
  cursor: zoom-in;
}

.image-gallery-v:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.image-gallery-v img {
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: cover;
}

.image-gallery-v:hover img {
  transform: scale(1.02);
}
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 60px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--color-primary-900);
  margin: 0;
  padding: 0;
  padding-top: 60px;
}

.hero picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: clamp(0.85rem, 2.2vw, 1.3rem);
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.9);
}

@media (max-width: 600px) {
  .hero {
    min-height: calc(100vh - 50px);
    padding-top: 50px;
  }
}

/* Scroll indicator — центриран на мобилен */
@media (max-width: 799px) {
  .scroll-indicator {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.wrapper-about {
  padding: var(--space-12) var(--gutter-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--color-surface);
  border-radius: 4px; /* Jobs: секцията е съдържание, не картичка */
  margin: 0 auto;
  width: 100%;
  max-width: var(--container-max);
  box-shadow: var(--shadow-sm);
  align-self: center;
  box-sizing: border-box;
}

.gallery-about {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  align-self: center;
  box-sizing: border-box;
}

.gallery-about h1 {
  font-size: clamp(0.95rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: var(--space-6) 0 var(--space-2);
  text-align: center;
}

.desc-about {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.desc-about p {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
  padding: 0 var(--space-4);
  margin-bottom: var(--space-4);
  text-align: center;
  max-width: 100%;
}
/* ============================================
   FULL-WIDTH IMAGE PAGE 
   ============================================ */

#full-width-image-page {
    margin-top: 80px;     
    margin-bottom: 50px;   
    display: flex;
    justify-content: center;
    align-items: center;  
    width: 100%;
    min-height: 60vh;     
    padding: 0 20px;      
    box-sizing: border-box;
}


#full-width-image-page picture,
#full-width-image-page img {
    max-width: 90%;     
    width: auto;          
    max-height: 80vh;     
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 2px;    /* Jobs: full-width изображение — почти без рамка */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* ============================================
   LIQUID GLASS FOOTER — Floating Pill
   ============================================ */

/* Base footer styles */
.footer {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 860px;
  height: 52px;
  z-index: 1000;
  border-radius: 6px; /* Jobs: footer е лента — не таблетка */
  overflow: hidden;
  padding: 0 20px;

  /* Identical to .header.glass */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(300%);
  -webkit-backdrop-filter: blur(25px) saturate(350%);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Specular highlight (identical to .header.glass.over-colorful-content::before) */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4)  0%,
    rgba(255, 255, 255, 0.3)  50%,
    rgba(255, 255, 255, 0.4)  100%
  );
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: overlay;
  filter: brightness(1.1) contrast(1.2);
}

/* Footer content layout */
.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.footer-section {
  display: flex;
  align-items: center;
}

/* Social icons container */
.social-icons {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Icons — dark like .header.glass spinner/text */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px; /* Jobs: иконите са инструменти, не таблетки */
  color: #000;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 6px;
    color: rgba(0, 0, 0, 0.4); /* Дискретно сиво в покой */
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.05); /* Едва доловима рамка */
    border-radius: 8px; /* Леко заоблени ъгли за изчистен вид */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

/* 2. Кристален Hover ефект в жълто */
.social-icons a:hover {
    background: rgba(255, 215, 0, 0.1); /* Меко жълто/златисто */
    border: 1px solid rgba(255, 215, 0, 0.4); /* Светлинен контур */
    color: #DAA520; /* Златисто-кехлибарен цвят за иконата */
    transform: translateY(-2px); /* Минимално повдигане */
    box-shadow: 0 4px 12px rgba(218, 165, 32, 0.2); /* Фина сянка */
}

/* Специфични НЕОНОВИ нюанси за всяка икона */

/* Instagram - Neon Lime (По-жълтеникаво зелено) */
.social-icons a[href*="instagram"]:hover {
    background-color: rgba(204, 255, 0, 0.15);
    color: #CCFF00;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

/* Facebook - Cyber Green (Чисто ярко зелено) */
.social-icons a[href*="facebook"]:hover {
    background-color: rgba(57, 255, 20, 0.15);
    color: #39FF14;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

/* X (Twitter) - Matrix Green (По-тъмно, технологично зелено) */
.social-icons a[href*="x.com"]:hover, 
.social-icons a[href*="twitter"]:hover {
    background-color: rgba(0, 255, 65, 0.12);
    color: #00FF41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

/* LinkedIn - Electric Mint (Студено, леко синкаво зелено) */
.social-icons a[href*="linkedin"]:hover {
    background-color: rgba(0, 255, 170, 0.15);
    color: #00FFAA;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.4);
}

/* Pinterest - Bright Chartreuse (Топло, наситено зелено) */
.social-icons a[href*="pinterest"]:hover {
    background-color: rgba(127, 255, 0, 0.15);
    color: #7FFF00;
    box-shadow: 0 0 20px rgba(127, 255, 0, 0.4);
}

/* Contact info layout */
.contact-info,
.contact-details {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Text — identical to .header.glass .menu-text */
.contact-details p {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #000;
  letter-spacing: 0.3px;
  margin: 0;
  white-space: nowrap;
}

.contact-details a {
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-details a:hover {
  color: #ff8c00;
  text-decoration: none;
}

/* Copyright text */
.copyright {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
  margin: 0;
  white-space: nowrap;
}

/* Push content above floating footer */
#main-content {
  padding-bottom: 76px !important;
}

/* Това си остава - базови цветове */
.social-icons .fa-linkedin { color: #09923F; }
.social-icons .fa-x-twitter { color: #18902A; }
.social-icons .fa-facebook { color: #66A200; }
.social-icons .fa-instagram { color: #305F0B; }
.social-icons .fa-pinterest { color: #016C0D; }

/* Това си остава - hover цветове */
.social-icons a:hover .fa-linkedin { color: #C40736; }
.social-icons a:hover .fa-x-twitter { color: #A115B9; }
.social-icons a:hover .fa-facebook { color: deeppink; }
.social-icons a:hover .fa-instagram { color: darkorange; }
.social-icons a:hover .fa-pinterest { color: red; }

/* Новият glass hover ефект (добавя се отгоре) */
/* Hover — identical to .sidebarMenuInner li:hover */
.social-icon:hover {
  background: rgba(255, 140, 0, 0.25);
  backdrop-filter: blur(10px) saturate(300%);
  -webkit-backdrop-filter: blur(10px) saturate(300%);
  border: 1px solid rgba(255, 140, 0, 0.5);
  box-shadow:
    0 0 20px rgba(255, 140, 0, 0.5),
    inset 0 0 30px rgba(255, 140, 0, 0.3);
  color: #ff8c00;
  transform: translateY(-1px);
  text-decoration: none;
}
/* ============================================
   FOOTER RESPONSIVE STYLES - Mobile два реда
   ============================================ */

/* Tablet (до 799px) */
@media (max-width: 799px) {
  .footer {
    max-width: 720px;
  }
  
  .footer-content {
    justify-content: center;
  }
  
  .social-icons {
    gap: 4px;
  }
}

/* Mobile - два реда с имейл икона */
@media (max-width: 600px) {
  .footer {
    height: auto;
    min-height: 68px;
    padding: 8px 14px;
    bottom: 8px;
    width: calc(100% - 20px);
    border-radius: 6px; /* Jobs: мобилен footer — ясен, не заоблен */
  }
  
  .footer-content {
    flex-direction: column;
    gap: 6px;
  }
  
  /* Първи ред - социални икони */
  .footer-section:first-child {
    order: 1;
    width: 100%;
    justify-content: center;
  }
  
  /* Втори ред - контакти */
  .footer-section.contact-info {
    order: 2;
    display: flex !important;
    width: 100%;
    justify-content: center;
  }
  
  .contact-details {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  /* Скрий текста за локация */
  .location {
    display: none;
  }
  
  /* Имейл с иконка */
  .email {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  
  .email::before {
  
    font-size: 14px;
    margin-right: 2px;
  }
  
  .email a {
    font-size: 11px;
    color: #000;
    text-decoration: none;
  }
  
  .email a:hover {
    color: #ff8c00;
  }
  
  /* Скрий copyright-а */
  .copyright {
    display: none;
  }
  
  /* Социални икони */
  .social-icons {
    gap: 8px;
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

/* Много малки екрани */
@media (max-width: 375px) {
  .footer {
    min-height: 64px;
    height: auto;
    padding: 6px 10px;
    border-radius: 6px;
  }
  
  .contact-details {
    gap: 8px;
  }
  
  .email a {
    font-size: 10px;
  }
  
  .email::before {
    font-size: 12px;
  }
  
  .social-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}
@media (prefers-color-scheme: dark) {
  .footer {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
  }
  
  .contact-details p,
  .contact-details a,
  .copyright {
    color: rgba(255, 255, 255, 0.9);
  }
  
  .social-icon {
    color: #fff;
  }
}
/* ============================================
   FALLBACK for older browsers (no backdrop-filter)
   ============================================ */
@supports not (backdrop-filter: blur(1px)) {
  .footer {
    background: rgba(55, 64, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
}
/* ============================================
   RESPONSIVE GRID SYSTEM - Gallery Layout
   ============================================ */

/* MOBILE FIRST: 1 column for screens below 800px */
@media (max-width: 799px) {
  .section-wrapper,
  .section-wrapper[role="list"] {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    padding: 10px;
    justify-items: center;
  }
  
  .responsive,
  .responsive[role="listitem"],
  .gallery {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
  }
  
  .gallery h2,
  .gallery-title {
    font-size: 0.875rem;
    padding: 8px 10px;
    -webkit-line-clamp: 2;
    max-height: 3.2em;
  }
  
  .desc p {
    font-size: 0.875rem;
    min-height: 90px;
  }
}

/* MEDIUM SCREENS: 2 columns (800px - 1199px) */
@media (min-width: 800px) and (max-width: 1199px) {
  .section-wrapper,
  .section-wrapper[role="list"] {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
    padding: 20px;
    justify-items: center;
  }
  
  .responsive,
  .responsive[role="listitem"],
  .gallery {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }
}

/* LARGE SCREENS: 3 columns (1200px and up) */
@media (min-width: 1200px) {
  .section-wrapper,
  .section-wrapper[role="list"] {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--container-wide, 1400px);
    margin: 0 auto;
    padding: 20px 0;
    justify-items: center;
  }
  
  .responsive,
  .responsive[role="listitem"],
  .gallery {
    max-width: 380px; /* По-малко за 3 колони */
    width: 100%;
    margin: 0 auto;
  }
}

/* EXTRA LARGE SCREENS (1400px+) */
@media (min-width: 1400px) {
  .section-wrapper,
  .section-wrapper[role="list"] {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: var(--container-wide, 1600px);
    justify-items: center;
  }
  
  .responsive,
  .responsive[role="listitem"],
  .gallery {
    max-width: 420px; /* По-големи за големи екрани */
    margin: 0 auto;
  }
}

/* TABLET LANDSCAPE MODE - 1 per row */
@media (min-width: 1024px) and (max-width: 1199px) and (orientation: landscape) {
  .section-wrapper,
  .section-wrapper[role="list"] {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .responsive,
  .responsive[role="listitem"],
  .gallery {
    max-width: 600px;
    margin: 0 auto;
  }
}


/* ============================================
   OTHER ELEMENTS - MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 799px) {
  .hero-box {
    min-height: 300px;
    margin-bottom: 1rem;
  }
  
  .hero-content {
    padding: 0.75rem;
  }
  
  .ripple-link {
    max-width: 280px;
  }
  
  .wrapper-about h1 {
    font-size: 1rem;
    padding: 0.5rem;
  }
}

/* Very small screens - hero */
@media (max-width: 375px) {
  .hero-box {
    min-height: 280px;
  }
  
  .hero-content {
    padding: 0.5rem;
  }
  
  .ripple-link {
    max-width: 260px;
  }
}

/* ============================================
   PREFERENCE MEDIA QUERIES
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .gallery,
  .gallery img,
  .ripple-link,
  .scroll-down-dark,
  .social-icons a {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  
  .ripple {
    display: none;
  }
}
a[href^="http"]:not(.social-icon):not(.ripple-link) {
    color: #0047ff;               
    font-weight: 700;              
    text-decoration: underline;     
    text-decoration-thickness: 2px; 
    text-underline-offset: 2px;    
}

a[href^="http"]:not(.social-icon):not(.ripple-link):hover,
a[href^="http"]:not(.social-icon):not(.ripple-link):focus {
    color: #ff4500;                
    text-decoration: underline;
    text-decoration-thickness: 3px;
}


@media (max-width: 768px) {

/* Добави още място около линковете в текста */
.desc p {
    line-height: 1.8;
}

.desc p a {
    margin: 0 2px;
    padding: 2px 4px;
}
}
/* ============================================
   МЕДИЙНИ ЗАЯВКИ ЗА НОВАТА ГАЛЕРИЯ
   ============================================ */

/* Под 800px - 1 колона за всичко */
/* ============================================
   МЕДИЙНИ ЗАЯВКИ — .content / image-gallery-v
   Чисти, неприпокриващи се breakpoints
   Консистентни с .section-wrapper логиката
   ============================================ */

/* Малки телефони: ≤480px — 1 колона, full width */
@media (max-width: 480px) {
  .content {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 10px;
    max-width: 100%;
  }
  .image-gallery-v {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
  .image-gallery {
    max-width: 100%;
    grid-column: 1 / -1;
  }
}

/* Телефони: 481–599px — 1 колона */
@media (min-width: 481px) and (max-width: 599px) {
  .content {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px;
    max-width: 560px;
  }
  .image-gallery-v {
    max-width: 100%;
    margin: 0 auto;
  }
  .image-gallery {
    max-width: 100%;
    grid-column: 1 / -1;
  }
}

/* Малки таблети: 600–767px — 2 колони */
@media (min-width: 600px) and (max-width: 767px) {
  .content {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 14px;
    max-width: 740px;
  }
  .image-gallery-v {
    max-width: 100%;
  }
  .image-gallery {
    grid-column: 1 / -1;
    max-width: 700px;
  }
}

/* Таблети portrait: 768–1023px — 2 колони */
@media (min-width: 768px) and (max-width: 1023px) {
  .content {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 18px 20px;
    max-width: 980px;
  }
  .image-gallery-v {
    max-width: 100%;
  }
  .image-gallery {
    grid-column: 1 / -1;
    max-width: 850px;
  }
}

/* iPad landscape + малки лаптопи: 1024–1199px — 2 колони */
@media (min-width: 1024px) and (max-width: 1199px) {
  .content {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 24px;
    max-width: 980px;
  }
  .image-gallery-v {
    max-width: 100%;
    margin: 0 auto;
  }
  .image-gallery {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}

/* Десктоп: 1200–1599px — 2 колони за вертикални */
@media (min-width: 1200px) and (max-width: 1599px) {
  .content {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1100px;
  }
  .image-gallery {
    grid-column: 1 / -1;
    max-width: 1000px;
  }
  .image-gallery-v {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Широк екран: ≥1600px — 3 колони за вертикални */
@media (min-width: 1600px) {
  .content {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1400px;
  }
  .image-gallery {
    grid-column: 1 / -1;
    max-width: 1100px;
  }
  .image-gallery-v {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* ============================================
   ИЗКЛЮЧЕНИЕ - АКО НЯКОЙ СЛОЖИ ДВА КЛАСА
   ============================================ */
.image-gallery-v.image-gallery {
  width: 100% !important;
  grid-column: 1 / -1 !important;
  max-width: 800px !important;
}

/* ============================================================
   FULLSCREEN IMAGE OVERLAY
   ============================================================ */
.img-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 16px) env(safe-area-inset-right, 16px)
           env(safe-area-inset-bottom, 16px) env(safe-area-inset-left, 16px);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: zoom-out;
}
.img-fullscreen-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.img-fullscreen-overlay img {
  display: block;
  max-width: min(100%, calc(100vw - 32px));
  max-height: min(100%, calc(100dvh - 32px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px; /* Jobs: fullscreen снимката трябва да диша */
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 32px 80px rgba(0, 0, 0, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.img-fullscreen-overlay.is-open img {
  transform: scale(1);
}
.img-fullscreen-overlay::after {
  content: "Tap to close";
  position: absolute;
  bottom: max(24px, env(safe-area-inset-bottom, 24px));
  left: 50%;
  transform: translateX(-50%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 18px;
  border-radius: 4px; /* Jobs: label е label, не хапче */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}
.img-fullscreen-overlay.is-open::after {
  opacity: 1;
}
body.fullscreen-open .single-image-container {
  cursor: default;
}

/* ── Close button ─────────────────────────────────────────── */
.img-fullscreen-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top, 16px));
  right: max(16px, env(safe-area-inset-right, 16px));
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;

  /* mirrors .header.glass */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px) saturate(300%);
  -webkit-backdrop-filter: blur(25px) saturate(350%);
 
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-weight: 300;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  opacity: 0;
  transform: scale(0.8);
}

.img-fullscreen-overlay.is-open .img-fullscreen-close {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.15s;
}

.img-fullscreen-close:hover {
  background: rgba(255, 140, 0, 0.25);
  backdrop-filter: blur(10px) saturate(300%);
  -webkit-backdrop-filter: blur(10px) saturate(300%);
  border-color: rgba(255, 140, 0, 0.5);
  box-shadow:
    0 0 20px rgba(255, 140, 0, 0.5),
    inset 0 0 30px rgba(255, 140, 0, 0.3);
  color: #ff8c00;
  transform: scale(1.08);
}

.img-fullscreen-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

.img-fullscreen-close:active {
  transform: scale(0.95);
  transition-duration: 80ms;
}

/* ── Spinner ──────────────────────────────────────────────── */
.img-fullscreen-spinner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;

  /* glass ring — consistent с header.glass */
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-right-color: rgba(255, 140, 0, 0.6);

  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.15),
    0 0 20px rgba(255, 140, 0, 0.2);

  animation: fsSpinnerRotate 0.7s linear infinite;
  pointer-events: none;
  display: none; /* показва се от JS при loading */
}

@keyframes fsSpinnerRotate {
  to { transform: rotate(360deg); }
}


@media (prefers-reduced-motion: reduce) {
  .img-fullscreen-overlay,
  .img-fullscreen-overlay img,
  .img-fullscreen-close {
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }
  .img-fullscreen-overlay img {
    transform: none !important;
  }
  .img-fullscreen-close {
    transform: none !important;
  }
  .img-fullscreen-spinner {
    animation-duration: 1.5s;
  }
}

/* ============================================
   JOBS MOBILE CORRECTIONS
   Снимката е продуктът. На мобилен — full bleed.
   Без padding, без закръгляния, без извинения.
   ============================================ */

@media (max-width: 480px) {

  /* Hero — edge to edge */
  .hero-box {
    border-radius: 0;
    margin-bottom: 0;
  }

  /* Gallery cards — full width, no round corners */
  .gallery,
  .responsive,
  .responsive[role="listitem"] {
    border-radius: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .gallery img {
    border-radius: 0;
  }

  .gallery h2,
  .gallery-title {
    border-radius: 0;
  }

  /* Full-width single image — true edge to edge */
  #full-width-image-page {
    padding: 0;
    margin-top: 60px;
  }

  #full-width-image-page picture,
  #full-width-image-page img {
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  /* Gallery containers — strip all padding and rounding */
  .image-gallery,
  .image-gallery-v,
  .single-image-container {
    border-radius: 0;
    padding: 4px;
    max-width: 100%;
  }

  .image-gallery img,
  .image-gallery-v img,
  .single-image-container img {
    border-radius: 0;
  }

  /* Content grid — no side padding on mobile */
  .content {
    padding: 6px 0;
    gap: 8px;
  }
}
