/* === Основни настройки === */
:root {
  --main-gradient: linear-gradient(135deg, #1f3b73, #0d1125, #1b7fc3);
  --text-color: #f0f0f0;
  --accent: #3ba4f7;
  --dark-bg: rgba(0, 0, 0, 0.6);
  --light-bg: #f8f9fa;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--text-color);
  background: var(--main-gradient);
  line-height: 1.6;
}

/* === Хедър и навигация === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* === Основна навигация === */
nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  color: var(--accent);
  font-weight: bold;
  font-size: 1.4rem;
  text-decoration: none;
}

/* === Линкове в навигацията === */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  position: relative;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
}

/* === Dropdown меню === */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(20, 20, 30, 0.95);
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0.5rem 0 0;
  min-width: 180px;

  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none; /* предотвратява кликове когато е скрито */
}

.dropdown-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #fff;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

/* === Хамбургер бутон (само за мобилни) === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  z-index: 2001; /* над header */
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* === Мобилно странично меню === */
.side-menu {
  position: fixed;
  top: 0;
  right: -260px;
  width: 260px;
  height: 100vh;
  background: #111827;
  color: #fff;
  padding: 2rem 0;
  transition: right 0.3s ease;
  z-index: 2000;
  overflow-y: auto;
}

.side-menu.active {
  right: 0;
}

.side-menu .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
}

.side-menu a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 0.6rem 1.5rem;
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);

}

.side-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px; 

}

/* === Подменю в мобилното меню === */
.submenu {
  display: none;
  padding-left: 1rem;
}

.has-submenu.active .submenu {
  display: block;
}

/* === Overlay (фон при активно меню) === */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 1500;
  transition: opacity 0.25s ease;
  opacity: 0;
}

.overlay.active {
  display: block;
  opacity: 1;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* --- Подменю в мобилната версия --- */
#sideMenu ul li {
  position: relative;
  overflow: hidden;
}

#sideMenu ul li ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;

  /* фиксовете за позицията */
  margin: 0;
  padding-left: 1rem;
  list-style: none;

}

#sideMenu ul li.active ul {
  max-height: 400px; /* колкото трябва, за да побере подменюто */
  opacity: 1;
  margin-top:0.3em;
}

/* --- Стрелка вдясно на "Услуги" --- */
#mobileServices::after {
  content: "▸";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

#sideMenu ul li.active > #mobileServices::after {
  transform: rotate(90deg);
}



/* === Hero секция === */
.hero {
  background: url('https://plus.unsplash.com/premium_photo-1670249419932-a7027d9003f8?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2070') center/cover no-repeat;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

.btn:hover {
  background: #1d7dd8;
}



/* === Услуги === */
.services {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(180deg, #0f192f, #14223f);
}

.services h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: auto;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  color: #fff;
}

.card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

/* === Футър === */
footer {
  background: #0b0f1c;
  color: #ccc;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* === Адаптивен дизайн === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

 
}

/* === Анимации при скрол === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Информационни услуги страница === */
.info-hero {
  background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2072') center/cover no-repeat;
  position: relative;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
}

.info-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.info-hero h1 {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  z-index: 1;
}

.info-hero p {
  position: relative;
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2rem;
  z-index: 1;
}

.info-hero .btn {
  position: relative;
  z-index: 1;
}

/* === Информационни карти === */
.info-cards {
  background: linear-gradient(180deg, #0f192f, #14223f);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;

  display: flex;
  flex-wrap: wrap; /* за да не преливат при тесен екран */
  justify-content: center;
  gap: 2rem;
}

.info-cards h2 {
  width: 100%; /* за да заеме цял ред преди картите */
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 3rem;
}

.info-cards .card {
  flex: 1 1 300px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
}

.info-cards .card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

/* === Responsive === */
@media (max-width: 768px) {
  .info-hero {
    height: 60vh;
    padding: 0 1rem;
  }

  .info-hero h1 {
    font-size: 2rem;
  }

  .info-hero p {
    font-size: 1rem;
  }

  .info-cards {
    flex-direction: column;
    align-items: center;
  }

  .info-cards .card {
    padding: 1.5rem;
    max-width: 100%;
  }
}

/* === Консултански услуги === */
.consult-hero {
  background: url('https://images.unsplash.com/photo-1614064641938-3bbee52942c7?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2070') center/cover no-repeat;
  position: relative;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
}

.consult-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.consult-hero h1 {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  z-index: 1;
}

.consult-hero p {
  position: relative;
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2rem;
  z-index: 1;
}

.consult-hero .btn {
  position: relative;
  z-index: 1;
}

/* === Информационни карти === */
.consult-cards {
  background: linear-gradient(180deg, #0f192f, #14223f);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;

  display: flex;
  flex-wrap: wrap; /* за да не преливат при тесен екран */
  justify-content: center;
  gap: 2rem;
}

.consult-cards h2 {
  width: 100%; /* за да заеме цял ред преди картите */
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 3rem;
}

.consult-cards .card {
  flex: 1 1 300px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
}

.consult-cards .card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

/* === Responsive === */
@media (max-width: 768px) {
  .consult-hero {
    height: 60vh;
    padding: 0 1rem;
  }

  .consult-hero h1 {
    font-size: 2rem;
  }

  .consult-hero p {
    font-size: 1rem;
  }

  .consult-cards {
    flex-direction: column;
    align-items: center;
  }

  .consult-cards .card {
    padding: 1.5rem;
    max-width: 100%;
  }
}

/* === Документи === */
.document-hero {
  background: url('https://plus.unsplash.com/premium_photo-1722859246076-6bfe65d5303d?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=988') center/cover no-repeat;
  position: relative;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 2rem;
}

.document-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.document-hero h1 {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  z-index: 1;
}

.document-hero p {
  position: relative;
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 2rem;
  z-index: 1;
}

.document-hero .btn {
  position: relative;
  z-index: 1;
}

/* ===  Документообработка карти === */
.document-cards {
  background: linear-gradient(180deg, #0f192f, #14223f);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;

  display: flex;
  flex-wrap: wrap; /* за да не преливат при тесен екран */
  justify-content: center;
  gap: 2rem;
}

.document-cards h2 {
  width: 100%; /* за да заеме цял ред преди картите */
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 3rem;
}

.document-cards .card {
  flex: 1 1 300px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
}

.document-cards .card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

/* === Responsive === */
@media (max-width: 768px) {
  .document-hero {
    height: 60vh;
    padding: 0 1rem;
  }

  .document-hero h1 {
    font-size: 2rem;
  }

  .document-hero p {
    font-size: 1rem;
  }

  .document-cards {
    flex-direction: column;
    align-items: center;
  }

  .document-cards .card {
    padding: 1.5rem;
    max-width: 100%;
  }
}

/* === Контактна страница === */
.contact-hero {
  background: linear-gradient(rgba(10, 15, 30, 0.8), rgba(10, 15, 30, 0.8)), 
              url('../images/contact-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 8rem 1rem;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.contact-hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Информация за контактите --- */
.contact-info {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  padding: 4rem 1rem;
  background: linear-gradient(180deg, #0f192f, #14223f);
  color: #fff;
  flex-wrap: wrap;
}

.contact-card {
  flex: 1 1 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-card p a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.contact-card p a:hover {
  text-decoration: underline;
}

/* --- Адаптивност --- */
@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 1rem;
  }
}

/* Картинката във футъра */
.project-image {
    max-width: 260px;
    display: block;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* Desktop: показва само във футъра */
.desktop-only {
    display: block;
}

/* Mobile: показва само в sidebar */
.mobile-only {
    display: none;
}

/* На мобилен – разменяме видимостта */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
        width: 90%;
        margin: 20px auto;
    }
}

footer {
    position: relative;
    background: #0b0f1c;
    color: #ccc;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* EU Corner – малка, прибрана картинка */
.eu-corner {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 120px;       /* регулираш размера */
    opacity: 0.95;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Мобилно – махаме от футъра */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

/* Popup overlay */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Голямата снимка */
.popup-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
}

/* X бутон */
.close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}




