:root {
 --primary: #1a365d;  /* Тъмно-синьо с нюанс на нощ */
  
  /* Акцентен цвят (енергичен, но професионален) */
  --secondary: #38b2ac;  /* Технологично тюркоазено */
  
  /* Неутрални цветове */
  --dark-text: #2d3748;  /* Мек тъмно-сив (за текст) */
  --light-bg: #f7fafc;   /* Много светло синьо-бяло */
  --light-text: #ffffff;  /* Чист бял (за текст на тъмен фон) */
  
  /* Допълнителни акценти */
  --accent: #805ad5;     /* Лилаво (за бутони/hover ефекти) */
  --danger: #e53e3e;
}

/* Основен стил */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth; /* Плавно скролиране */
    background: var(--light-bg);
    color: var(--dark-text);
}

.lang-options [href="/ar/"] {
  direction: rtl;
  text-align: right;
}

a:focus, button:focus, input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.service-card {
    background: color-mix(in srgb, var(--primary), white 30%);
    color: white;
}

.service-card h3 {
    color: white;
}

/* Навигация */
nav {
    background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
    position: fixed;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    top: 0;
    left: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Плавна анимация */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

nav.scrolled {
    background-color: var(--primary);
    backdrop-filter: blur(12px); /* Модерен glass ефект */
    padding: 0.5rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a6cf7;
    text-decoration: none;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0 auto;
}

.nav-links a {
    color: var(--light-bg);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4a6cf7;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Хамбургер меню (за мобилни) */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

.fullscreen-sectiondd {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}



section {
    padding: 4rem;
    min-height: 100vh;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Анимации при скрол */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.product_image {
    width: 64px;
}

/* Модал (добавете към съществуващия CSS) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: fadeInUp 0.5s;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

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

/* Анимация за затваряне */
.modal.fade-out {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #fff;
    }
    nav {
        background: rgba(30, 30, 30, 0.9);
    }
}

.product-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Премахваме transform и добавяме по-деликатни ефекти */
.product-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Елегантен бордър ефект */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4a6cf7, #6a11cb);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Хубав ефект върху изображението */
.product_image {
    transition: transform 0.3s ease;
    filter: grayscale(10%);
}

.product-card:hover .product_image {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* Подобрен бутон "Виж повече" */
.view-details {
    display: inline-block;
    margin-top: 1rem;
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.view-details::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.product-card:hover .view-details::after {
    width: 100%;
}

/* Стилове за секцията със услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.5s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border-top: 3px solid transparent;
    overflow: hidden;
    height: auto; /* Важно! */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-top-color: #4a6cf7;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.service-card:nth-child(1):hover { border-top-color: #4a6cf7; }
.service-card:nth-child(2):hover { border-top-color: #6a11cb; }
.service-card:nth-child(3):hover { border-top-color: #11cb6a; }

/* Accordion стилове */
.service-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
    height: 60px; /* Фиксирана височина */
}

.service-header h3 {
    padding-left: 11px;
}

.accordion-toggle {
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
    transition: all 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: center center;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 1s ease-out, max-height 1s ease-out;
    padding: 0 1rem;
}

/* Стил за затворена карта */
.service-card:not(.active) {
    height: 60px !important; /* Фиксирана височина на заглавния ред */
}
.service-card.active {
    height: auto;
    transition: all 1s ease-out;
}
.service-card.active .accordion-content {
    max-height: 600px; /* Адаптира се автоматично */
    transition: all 1s ease-out;
    padding: 0 1rem 1rem;
}

.service-card.active .accordion-toggle {
    transform: rotate(135deg); /* Завъртане на + до x */
}

.subcategory {
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
}

.subcategory h4 {
    color: var(--light-text);
    margin-bottom: 0.3rem;
}

/* Скриваме съдържанието на затворените карти */
.service-card:not(.active) .accordion-content {
    display: none;
    transition: all 1s ease-out;
}

.subcategory p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.tech-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tech-tags span {
  background: var(--primary); /* #1a365d - тъмно синьо */
  color: var(--light-text); /* white */
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

#home {
  background: linear-gradient(135deg, #4a6cf7 0%, #249b55 100%);
  position: relative;
  overflow: hidden;
}
#home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    url('../img/vs_logo_p.svg') center/cover no-repeat,
    linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  opacity: 0.05;
  animation: subtle-pulse 11s infinite alternate;
}

@keyframes subtle-pulse {
  0% { opacity: 0.03; transform: scale(0.98); }
  100% { opacity: 0.07; transform: scale(1.02); }
}

#home h1, #home p {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: white;
}

/* About Section */
.about-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 4rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(56, 178, 172, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.about-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.about-content h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.about-text {
  max-width: 600px;
}

.about-features {
  margin-top: 1.5rem;
  list-style: none;
  padding-left: 0;
}

.about-features li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  position: relative;
  padding-left: 2rem;
}

.about-features li::before {
  content: "•";
  color: var(--secondary);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -3px;
}

.tech-gradient {
  flex: 1;
  background: linear-gradient(45deg, #4a6cf7 0%, #38b2ac 100%);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  box-shadow: 0 10px 30px rgba(56, 178, 172, 0.2);
}

.tech-icons {
  display: flex;
  gap: 2rem;
}

.tech-icons .icon {
  width: 60px;
  height: 60px;
  filter: brightness(0) invert(1); /* Бели иконки */
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: calc(var(--order) * 0.1s);
}

.tech-icons .icon:hover {
  transform: scale(1.1);
  opacity: 1;
}

.about-features li::before {
  background: linear-gradient(to right, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes fadeIn {
  to { opacity: 0.8; }
}



/* Основни стилове */
.contact-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-subtitle {
  color: var(--secondary);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Форма */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-input {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 2px solid #e2e8f0;
  font-size: 1rem;
  background: transparent;
  transition: border-bottom 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  will-change: border-bottom; /* Подобрява производителността */
}

.form-input:focus {
  width: 100%;
  outline: none;
  border-bottom: 3px solid var(--secondary); /* По-дебела линия при фокус */
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: #94a3b8;
  transition: all 0.3s;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -0.5rem;
  font-size: 0.8rem;
  color: var(--secondary);
}

/* Бутон */
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.send-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Контактна информация */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-icon {
  width: 24px;
  height: 24px;
  fill: var(--secondary);
}

.language-dropdown {
  position: relative;
  margin-left: auto;
  min-width: 80px;
}

/* Бутон за текущ език */
.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-current:hover {
  background: rgba(255,255,255,0.2);
}

.lang-flag {
  font-size: 1.2em;
}

.lang-code {
  font-weight: 500;
}

.lang-chevron {
  fill: currentColor;
  transition: transform 0.3s;
}

/* Опции за езици */
.lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--primary);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 140px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
}

.language-dropdown:hover .lang-options,
.language-dropdown:focus-within .lang-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown:hover .lang-chevron {
  transform: rotate(180deg);
}

/* Стилове за отделните опции */
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
}

.lang-option:hover {
  background: rgba(255,255,255,0.1);
}

.lang-name {
  font-size: 0.9em;
}

@media (max-width: 768px) {
    nav {
    display: flex;
    align-items: center;
    padding: 0 15px;
  }
    .nav-links {
        position: fixed;
        top: 40px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s;
        z-index: 1001;
        order: 4;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-brand {
        order: 1;
        margin-right: auto;
    }


    .menu-toggle {
        display: block;
         order: 3;
        margin-left: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
  
    .contact-form {
        padding: 1.5rem;
    }

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

  .about-section {
    flex-direction: column;
    padding: 2rem 1rem;
    text-align: center;
  }

  .tech-gradient {
    width: 100%;
    height: 200px; /* Намалена височина */
    margin-top: 2rem;
    order: -1; /* Премества градиента над текста */
  }

  .tech-icons {
    gap: 1rem; /* По-малко разстояние между иконките */
  }

  .tech-icons .icon {
    width: 40px; /* По-малки иконки */
    height: 40px;
  }

  .about-features li {
    text-align: left; /* Подравняване на точките */
    padding-left: 1.5rem;
  }

  .language-dropdown {
    order: 2;
    margin-left: 0;
    margin-right: 10px;
    min-width: auto;
  }
  
  .lang-options {
    right: 0;
    left: auto;
    transform: none;
    width: auto;
    min-width: 120px;
    max-width: calc(100vw - 20px); /* Оставя малко поле */
  }
  
  .lang-dropdown:hover .lang-options {
    transform: translate(-50%, 0);
  }
  .lang-code {
    display: none;
  }
  .lang-current {
    padding: 8px 10px;
  }
}

/* Основен стил за секцията */
.fullscreen-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #1a365d 0%, #38b2ac 100%);
  color: white;
  padding: 2rem;
  text-align: center;
  overflow: hidden;
}

.fullscreen-section::before {
  z-index: 1; /* Фоновите елементи трябва да са под съдържанието */
}

/* Контейнер за съдържанието */
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Заглавие */
.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.highlight {
  color: #38b2ac;
  position: relative;
  display: inline-block;
}

.highlight:after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: currentColor;
  opacity: 0.3;
  z-index: -1;
}

/* Подзаглавие */
.hero-subtitle {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Бутони за действие */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta-btn-primary {
  background: #38b2ac;
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.cta-btn-primary:hover {
  background: #2e9c96;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-btn-secondary {
  background: transparent;
  color: white;
  padding: 0.8rem 2rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-btn-secondary:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

.cta-btn-secondary .icon {
  transition: transform 0.3s ease;
}

.cta-btn-secondary:hover .icon {
  transform: rotate(90deg);
}

.cta-btn-primary, 
.cta-btn-secondary {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* Технологичен стек */
.tech-stack {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  z-index: 10;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  transition: all 0.3s ease;
  position: relative;
  z-index: 20;
}

.tech-item:hover {
  opacity: 1;
  transform: translateY(-5px);
  filter: drop-shadow(0 5px 10px rgba(56, 178, 172, 0.3));
}

.tech-item img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: brightness(0) invert(1);
}

.tech-item:hover img {
  transform: scale(1.1);
}

.tech-item span {
  font-size: 0.9rem;
}

/* Индикатор за скрол */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.scroll-indicator span {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Медийни заявки за мобилни устройства */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .tech-stack {
    gap: 1.5rem;
  }
}