@font-face {
    font-family: 'Montserrat';
    src: url('ttf/Montserrat-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Light';
    src: url('ttf/Light.ttf') format('truetype');
    font-weight: lighter; /* или 300, ако шрифтът е "Light" */
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Light';
    src: url('ttf/Montserrat-Regular.ttf') format('truetype');
    font-weight: lighter; /* или 300, ако шрифтът е "Light" */
    font-style: bold;
  }
  
  @font-face {
    font-family: 'Regular';
    src: url('ttf/Montserrat-Regular.ttf') format('truetype');
    font-weight: bold; /* или 300, ако шрифтът е "Light" */
    font-style: bold;
  }
  
  b, strong {
    font-weight: bold;
  }
  
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
  }
  
  /* Loading Screen */
  #loading-screen {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  /* Лого */
  .loading-logo {
    width: 450px;
    max-width: 80%;
    animation: zoomLogo 2s ease-in-out infinite alternate;
  }
  
  /* Анимация */
  @keyframes zoomLogo {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
  }
  
  /* Мобилна оптимизация */
  @media (max-width: 768px) {
    .loading-logo {
      width: 180px;
    }
  }
  
  
  
  /* Header */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #fff;
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, #053b89, #9b327f) 2;
  }
  
  .right-header {
    display: flex;
    align-items: center;
    gap: 45px;
  }
  
  .logo img {
    height: 43px;
  }
  
  /* Навигация на мобилни устройства */
  /* Обвивка за логото и бутона */
  .logo-and-button {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  /* Десктоп бутон */
  .header-app-button {
    font-family: 'Light', sans-serif;
    padding: 9px 24px;
    background-color: #1663ce;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .header-app-button:hover {
    background-color: #01458d;
  }
  
  /* Скриване на мобилния бутон по подразбиране */
  .mobile-app-button {
    display: none;
  }
  
  /* Мобилен изглед */
  @media (max-width: 768px) {
    .logo-and-button .header-app-button {
      display: none;
    }
  
    .mobile-app-button {
      display: block;
      margin-bottom: 10px;
      padding: 10px;
      background-color: #007bff;
      color: white;
      text-align: center;
      border-radius: 6px;
      font-weight: bold;
      text-decoration: none;
    }
  
    .nav-links {
      display: flex;
      flex-direction: column;
    }
  
    .language-selector {
      margin-top: auto;
    }
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-family: 'Light', sans-serif;
  }
  
  .nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    position: relative;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #053b89;
    transition: width 0.3s;
  }
  
  .nav-links a:hover::after {
    width: 100%;
  }
  
  /* Language Selector */
  .language-selector {
    position: relative;
    cursor: pointer;
    display: inline-block;
    font-family: 'Light', sans-serif;
  }
  
  .language-selector img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
  }
  
  .selected-lang {
    display: flex;
    align-items: center;
    font-weight: bold;
  }
  
  .language-selector .arrow {
    margin-left: 5px;
    font-size: 14px;
  }
  
  .language-dropdown {
    position: absolute;
    top: 35px;
    right: 0;
    background-color: white;
    list-style: none;
    padding: 20px;
    border: 1px solid #ccc;
    display: none;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
    border-radius: 5px;
  }
  
  .language-dropdown li {
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  
  .language-dropdown li:hover {
    color: rgb(22, 83, 153);
  }
  
  .language-selector.open .language-dropdown {
    display: flex;
  }
  
  /* Мобилно меню */
  .menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
    color: #000;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    position: relative;
    z-index: 20;
  }
  
  /* Икона за бургер меню */
  .menu-toggle .hamburger-icon {
    width: 30px;
    height: 3px;
    background-color: #053b89;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .menu-toggle .hamburger-icon::before,
  .menu-toggle .hamburger-icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #053b89;
    transition: all 0.3s;
  }
  
  .menu-toggle .hamburger-icon::before {
    top: -10px;
  }
  
  .menu-toggle .hamburger-icon::after {
    top: 10px;
  }
  
  /* Мобилен изглед */
  @media screen and (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      justify-content: center; /* Центрираме бутоните по вертикала */
      align-items: center; /* Центрираме бутоните хоризонтално */
      gap: 20px;
      padding: 30px 20px;
      background-color: #fff;
      position: absolute;
      top: 80px;
      right: 0;
      width: 100%;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      z-index: 10;
      transform: translateX(100%); /* Скриваме менюто по подразбиране */
      transition: transform 0.3s ease-out;
      text-align: center; /* Центрираме текстовете на бутоните */
    }
  
    .nav-links a {
      font-size: 18px;
      color: #000;
      text-decoration: none;
      font-weight: bold;
      padding: 15px 20px; /* Малко повече разстояние за бутоните */
      display: block;
      width: 100%; /* Бутоните ще са с ширина 100% */
      border-bottom: 1px solid #eee; /* Лека линия под всеки бутон */
      box-sizing: border-box;
    }
  
    .nav-links a:hover {
      color: #053b89;
      background-color: #f1f1f1; /* Hover ефект за бутоните */
      border-radius: 5px;
    }
  
    .language-selector {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 20px;
    }
  
    .menu-toggle {
      display: block;
      font-size: 28px;
      color: #000;
      background: none;
      border: none;
      padding: 0;
      margin: 0;
      cursor: pointer;
      transition: transform 0.3s ease;
    }
  
      /* Анимация за бутона за меню */
      .menu-toggle.open {
        transform: rotate(90deg); /* Ротация на бутона за меню когато е активен */
      }
  
      .menu-toggle.open:before {
        content: "×"; /* Символ за X */
        font-size: 28px;
        color: #000;
      }
  
        /* Селектора за език */
    .language-selector {
      margin-top: 20px; /* Разстояние от бутоните до селектора */
      padding: 10px;
      cursor: pointer;
      font-size: 16px;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 100%;
      background-color: #f1f1f1;
      border-radius: 5px;
    }
  
    .language-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: white;
      list-style: none;
      padding: 20px;
      border: 1px solid #ccc;
      display: none;
      flex-direction: column;
      gap: 20px;
      z-index: 100;
      border-radius: 5px;
      animation: dropdownAnimation 0.3s ease-out;
    }
  
      /* Показване на dropdown */
      .language-selector.open .language-dropdown {
        display: flex;
      }
  
        /* Анимация за появяване на dropdown */
    @keyframes dropdownAnimation {
      0% {
        opacity: 0;
        transform: translateY(-10px);
      }
      100% {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    .language-dropdown li {
      display: flex;
      align-items: center;
      cursor: pointer;
      text-align: center;
    }
  
    .language-dropdown li:hover {
      color: rgb(22, 83, 153);
      background-color: #f1f1f1;
      border-radius: 5px;
    }
  
    /* Показване на менюто когато класът "active" е добавен */
    .right-header.active .nav-links {
      transform: translateX(0); /* Връща менюто на място */
      display: block; /* Уверяваме се, че менюто ще се покаже */
      visibility: visible; /* Осигуряваме, че е видимо */
    }
  
    /* Анимация за иконата */
    .right-header.active .hamburger-icon {
      background-color: transparent;
    }
  
    .right-header.active .hamburger-icon::before {
      transform: rotate(45deg);
      top: 0;
    }
  
    .right-header.active .hamburger-icon::after {
      transform: rotate(-45deg);
      top: 0;
    }
  }
  
  /* Slider */
/* Slider */
.slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

.slides-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 2s ease-in-out;
}

.slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Лек затъмняващ слой */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1));
  z-index: 1;
  pointer-events: none;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

/* Централно разположен текст */
.slider-text {
  font-family: 'Light', sans-serif;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
  padding: 0 20px;
}

.slider-text h2 {
  font-size: 2.8em;
  margin: 0;
}

.slider-text p {
  font-size: 1.2em;
  margin-top: 10px;
}


/* Основен стил за галерията */
.styled-gallery {
  padding: 80px 20px;
  background-color: #f7f9fc;
  overflow: hidden;
}

.gallery-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 30px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow:
    0 1px 8px rgba(0, 123, 255, 0.3),
    0 4px 12px rgba(0, 123, 255, 0.3),
    0 12px 26px rgba(0, 123, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-text-box {
  flex: 1;
  min-width: 300px;
}

.gallery-text-box h2 {
  font-family: 'Light', sans-serif;
  font-size: 36px;
  color: #0a3d62;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.blue-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #007BFF, #00BFFF);
  border-radius: 2px;
  margin-bottom: 20px;
}

.gallery-text-box p {
  font-family: 'Light', sans-serif;
  font-size: 18px;
  color: #333;
  line-height: 1.5;
}

.gallery-images-scroll {
  flex: 2;
  overflow-x: auto;
  position: relative;
  display: flex;
}

.gallery-image-row {
  display: flex;
  gap: 30px;
  min-width: 100%;
  transition: transform 0.5s ease;
}

.gallery-image {
  width: 370px;
  height: 350px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.gallery-image:hover {
  transform: scale(0.95);
  box-shadow: 0 3px 2px rgba(0, 0, 0, 0.2);
}

.gallery-images-scroll.paused .gallery-image-row {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .gallery-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-image-row {
    animation: none;
    flex-wrap: nowrap;
  }

  .gallery-image {
    width: 70vw;
    height: 60vw;
    margin-bottom: 20px;
  }

  .gallery-images-scroll {
    overflow-x: scroll;
  }
}

/* Lightbox Стилове */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  transition: 0.2s;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 1000;
}

.lightbox-nav-prev, .lightbox-nav-next {
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox-nav-prev:hover, .lightbox-nav-next:hover {
  color: #00bfff;
}

.lightbox-info {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

@keyframes zoomIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

  

/* Основен контейнер */
.case-history-section {
  font-family: 'Light', sans-serif;
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.case-history-section h2 {
  font-size: 36px;
  font-weight: 900;
  color: #0a3d62;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.red-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #007BFF, #00BFFF);
  margin: 0 auto 40px;
  border-radius: 4px;
}

/* Case row */
.case-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 80px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.case-row.visible {
  opacity: 1;
  transform: translateY(0);
}

.case-row.reverse {
  flex-direction: row-reverse;
}

/* Image */
.case-image-container {
  flex: 1 1 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.case-image-container img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  z-index: 2;
  position: relative;
}

/* Ъглови линии върху снимката */
.case-image-container .corner-line {
  position: absolute;
  background-color: #ffc72d;
  z-index: 3;
  border-radius: 3px;
}

/* Горна дясна */
.top-right-horizontal {
  top: 15px;
  right: 15px;
  width: 60px;
  height: 4px;
}

.top-right-vertical {
  top: 15px;
  right: 15px;
  width: 4px;
  height: 60px;
}

/* Долна лява */
.bottom-left-horizontal {
  bottom: 15px;
  left: 15px;
  width: 60px;
  height: 4px;
}

.bottom-left-vertical {
  bottom: 15px;
  left: 15px;
  width: 4px;
  height: 60px;
}

/* Info Box */
.case-info {
  flex: 1 1 100%;
  background: linear-gradient(145deg, #f7f7f7, #f7f6f6);
  color: #2e2e2e;
  padding: 40px 25px;
  margin-top: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-logo {
  width: 250px;
  margin-bottom: 20px;
}

.case-info h3 {
  font-size: 22px;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.case-info p {
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 600px;
}

/* Responsive design */
@media (min-width: 769px) {
  .case-row {
    flex-direction: row;
  }

  .case-info,
  .case-image-container {
    flex: 1;
    max-width: 50%;
  }

  .case-info {
    margin: 20px;
    padding: 50px 35px;
  }

  .case-info h3 {
    font-size: 26px;
  }

  .case-info p {
    font-size: 16.5px;
  }

  .case-logo {
    width: 300px;
  }
}

    
  

  /* footer */
.site-footer {
    background: linear-gradient(90deg, #00091f 0%, #072a5a 47%, #072a5a 53%, #00091f 100%);
    border-top-left-radius: 80px;
    border-top-right-radius: 80px;
    color: white;
    padding: 50px 20px 20px 20px; /* Добавих малко отдолу за повече пространство */
    font-family: 'Light', sans-serif;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
  }
  
  .footer-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 250px;
  }
  
  .footer-info-block {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .footer-icon {
    width: 40px;
    height: 40px;
  }
  
  .footer-info-block p {
    margin: 2px 0;
    font-size: 15px;
  }
  
  .footer-divider {
    width: 120px;
    height: 1px;
    background-color: white;
    opacity: 0.5;
    margin-left: 55px;
  }
  
  .footer-divider.short {
    width: 80px;
    margin-top: 15px;
  }
  
  .footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-main-logo {
    width: 250px;
    height: auto;
  }
  
  /* Footer bottom section */
  .footer-bottom {
    text-align: center;
    width: 100%;
    margin-top: 40px;
  }
  
  .footer-bottom-line {
    width: 80%;  /* Центрираме линията според ширината на контейнера */
    max-width: 400px;  /* За да не стане твърде широка на големи екрани */
    height: 1px;
    background-color: white;
    opacity: 0.4;
    margin: 0 auto 10px auto;  /* Центрира по хоризонтала */
  }
  
  .footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
    text-align: center;  /* Добавяме за да се уверим, че текста също е центриран */
  }