/* Основни стилове */
:root {
  --primary-color: #c9a96e;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --bg-color: #f9f9f9;
  --card-bg: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

.dark-theme {
  --primary-color: #c9a96e;
  --secondary-color: #ecf0f1;
  --accent-color: #e74c3c;
  --text-color: #ecf0f1;
  --bg-color: #1a1a1a;
  --card-bg: #2c2c2c;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
  line-height: 1.6;
}

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

/* Навигация */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  z-index: 1001;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 100%;
  margin: 0;
  padding-left: 8% ;
}

.nav-logo img {
  height: 50px;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 5px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.2rem;
  color: #ffffff;
  transition: var(--transition);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.theme-toggle:hover {
  color: var(--primary-color);
  transform: rotate(20deg);
}

/* Стилове за знамена в езиково меню */
.language-selector {
  position: relative;
  cursor: pointer;
}

.language-selector .current-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #ffffff;
  border-radius: 4px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.flag-bg {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="15" viewBox="0 0 20 15"><rect width="20" height="5" fill="%23FFFFFF"/><rect y="5" width="20" height="5" fill="%2346952D"/><rect y="10" width="20" height="5" fill="%23D62612"/></svg>');
}

.flag-en {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="15" viewBox="0 0 20 15"><rect width="20" height="15" fill="%2300266C"/><path d="M0,0 L20,15 M20,0 L0,15" stroke="%23FFFFFF" stroke-width="3"/><path d="M8,0 L12,0 L12,15 L8,15 Z M0,6 L20,6 L20,9 L0,9 Z" fill="%23FFFFFF"/><path d="M0,0 L20,15 M20,0 L0,15" stroke="%23C8102E" stroke-width="1.5"/><path d="M9,0 L11,0 L11,15 L9,15 Z M0,7 L20,7 L20,8 L0,8 Z" fill="%23C8102E"/></svg>');
}

.flag-fr {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="15" viewBox="0 0 20 15"><rect width="6.666" height="15" fill="%23005299"/><rect x="6.666" width="6.666" height="15" fill="%23FFFFFF"/><rect x="13.333" width="6.667" height="15" fill="%23EF4135"/></svg>');
}

.flag-ru {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="15" viewBox="0 0 20 15"><rect width="20" height="5" fill="%23FFFFFF"/><rect y="5" width="20" height="5" fill="%230036A6"/><rect y="10" width="20" height="5" fill="%23D52B1E"/></svg>');
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 100;
  min-width: 150px;
}

.language-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.lang-dropdown a:hover {
  background-color: var(--primary-color);
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Херо секция */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-color) 100%);
  margin-top: 0;
  padding-top: 0;
}

.hero-content {
  text-align: center;
  z-index: 3;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
  text-shadow: 
    0 0 20px rgba(0, 0, 0, 1),
    0 0 30px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(0, 0, 0, 0.8),
    3px 3px 0px rgba(0, 0, 0, 0.9),
    -3px -3px 0px rgba(0, 0, 0, 0.9),
    3px -3px 0px rgba(0, 0, 0, 0.9),
    -3px 3px 0px rgba(0, 0, 0, 0.9),
    6px 6px 12px rgba(0, 0, 0, 0.9);
  animation: fadeInDown 1s ease;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  text-shadow: 
    0 0 10px rgba(0, 0, 0, 1),
    0 0 15px rgba(0, 0, 0, 0.9),
    2px 2px 4px rgba(0, 0, 0, 0.9),
    -2px -2px 4px rgba(0, 0, 0, 0.9),
    2px -2px 4px rgba(0, 0, 0, 0.9),
    -2px 2px 4px rgba(0, 0, 0, 0.9);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-shadow: 
    0 0 10px rgba(0, 0, 0, 1),
    0 0 15px rgba(0, 0, 0, 0.9),
    2px 2px 4px rgba(0, 0, 0, 0.9),
    -2px -2px 4px rgba(0, 0, 0, 0.9),
    2px -2px 4px rgba(0, 0, 0, 0.9),
    -2px 2px 4px rgba(0, 0, 0, 0.9);
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 1s ease 0.9s both;
}

/* Адаптирам текста за светла теама */
.light-theme .hero-title {
  color: #ffffff;
  text-shadow: 
    0 0 25px rgba(0, 0, 0, 1),
    0 0 35px rgba(0, 0, 0, 0.95),
    0 0 50px rgba(0, 0, 0, 0.9),
    4px 4px 0px rgba(0, 0, 0, 0.95),
    -4px -4px 0px rgba(0, 0, 0, 0.95),
    4px -4px 0px rgba(0, 0, 0, 0.95),
    -4px 4px 0px rgba(0, 0, 0, 0.95),
    8px 8px 15px rgba(0, 0, 0, 0.95);
}

.light-theme .hero-subtitle,
.light-theme .hero-description {
  color: #ffffff;
  text-shadow: 
    0 0 12px rgba(0, 0, 0, 1),
    0 0 18px rgba(0, 0, 0, 0.95),
    3px 3px 5px rgba(0, 0, 0, 0.95),
    -3px -3px 5px rgba(0, 0, 0, 0.95),
    3px -3px 5px rgba(0, 0, 0, 0.95),
    -3px 3px 5px rgba(0, 0, 0, 0.95);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Адаптирам бутона за светла теама */
.light-theme .btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.light-theme .btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Адаптирам бутона за светла теама */
.light-theme .btn-secondary {
  color: #ffffff;
  border: 2px solid #ffffff;
}

.light-theme .btn-secondary:hover {
  background-color: #ffffff;
  color: var(--primary-color);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Карусел */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  margin:0;
  padding:0;
}

.carousel-container {
  margin: 0;
  padding:0;
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeSlide 15s infinite ease-in-out;
}

.carousel-slide:nth-child(1) { animation-delay: 0s; }
.carousel-slide:nth-child(2) { animation-delay: 2.5s; }
.carousel-slide:nth-child(3) { animation-delay: 5s; }
.carousel-slide:nth-child(4) { animation-delay: 7.5s; }
.carousel-slide:nth-child(5) { animation-delay: 10s; }
.carousel-slide:nth-child(6) { animation-delay: 12.5s; }

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

.carousel-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: 1;
}

/* Адаптирам overlay за светла теама */
.light-theme .carousel-blur-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* Адаптирам overlay за тъмна теама */
.dark-theme .carousel-blur-overlay {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  25% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  background-color: var(--primary-color);
  opacity: 0.1;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.el1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.el2 {
  width: 150px;
  height: 150px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.el3 {
  width: 80px;
  height: 80px;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

.el4 {
  width: 120px;
  height: 120px;
  top: 30%;
  left: 70%;
  animation-delay: 1s;
}

/* Секции */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.title-underline {
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto 20px;
}

/* Информационна секция */
.info-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.info-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Преглед на галерията */
.gallery-preview {
  padding: 100px 0;
  background-color: var(--card-bg);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 300px;
  transition: var(--transition);
}

.preview-item:hover {
  transform: scale(1.05);
}

.preview-image {
  width: 100%;
  height: 100%;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-weight: 500;
}

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

.preview-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  transform: translateY(100%);
  transition: var(--transition);
}

.preview-item:hover .preview-overlay {
  transform: translateY(0);
}

.preview-overlay h3 {
  font-size: 1.2rem;
}

.preview-cta {
  text-align: center;
}

/* Галерия страница */
.gallery-section {
  padding: 150px 0 100px;
}

.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--primary-color);
  color: var(--text-color);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

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

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 250px;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
}

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

/* За нас страница */
.about-section {
  padding: 150px 0 100px;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
}

.highlight-text {
  font-style: italic;
  font-weight: 500;
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
  margin: 30px 0;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Контакти секция */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-color);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 20px;
  min-width: 30px;
}

.contact-text h3 {
  margin-bottom: 5px;
  color: var(--primary-color);
}

.contact-map {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Футър */
.footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 50px 0 20px;
  transition: var(--transition);
}

.dark-theme .footer {
  background-color: #1a1a2e;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-top: 1px solid #2c3e50;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
  
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 600;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
  transform: translateX(5px);
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
  width: 20px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.dark-theme .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Допълнителни корекции за по-добър контраст в тъмния режим */
.dark-theme .footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.dark-theme .footer-contact p {
  color: rgba(255, 255, 255, 0.7);
}

.dark-theme .footer-logo p {
  color: rgba(255, 255, 255, 0.8);
}

/* Модален прозорец */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

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

.modal-nav button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-nav button:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Анимации */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Адаптивен дизайн */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    background-color: var(--card-bg);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    gap: 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    padding: 15px 0;
    width: 100%;
    text-align: center;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .preview-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-filters {
    flex-direction: column;
    align-items: center;
  }
  
  .language-selector .current-lang {
    font-size: 0.9rem;
  }
  
  .flag {
    width: 18px;
    height: 13px;
  }
}