:root {
  --primary-color:      #0755bc;
  --primary-dark:       #2164ea;
  --secondary-color:    #f8f3ff;
  --dark-color:         #1a1a70;
  --light-color:        #f8f9fa;
  --accent-color:       #ff7e5f;
  --text-color:         #333;
  --header-bg-color:    rgba(111, 83, 83, 0.708);
}

/* General base styles */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--light-color);
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

/* HEADER & NAVBAR */
.navbar {
  position: relative;
  background-color: var(--header-bg-color);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease-in-out;
  padding: 0;
  margin-bottom: 0;
  z-index: 1030;
}
.navbar.scrolled {
  background-color: rgba(178,220,234,0.72) !important;
  padding: 0.5rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar .container {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: bold;
  color: white !important;
  text-align: center;
  margin: 0 auto;
}
.navbar-logo {
  height: 200px;
  width: auto;
  display: block;
  margin: 0 auto;
}


/* — or merge into your existing .hero p: */
.hero p.subtitle {
  margin: 0 auto 2rem;
  text-align: center;
}
.navbar-nav .nav-link,
.nav-link {
  font-size: 1.2rem;
  color: white !important;
  margin-left: 1rem;
  transition: color 0.3s;
}
.navbar-nav .nav-link:hover,
.nav-link:hover {
  color: var(--primary-dark) !important;
}

/* Подобрено dropdown меню */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--header-bg-color);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  padding: 0.8rem 0;
  min-width: 250px;
  margin-top: -0.6rem;
  z-index: 1050;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-item {
  font-size: 1.1rem;
  color: white;
  padding: 0.6rem 1.5rem;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-dark);
  color: #fff;
  padding-left: 1.8rem;
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


/* Social icons */
.social-icons {
  display: flex;
  gap: 1rem;
}
.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
  display: inline-flex;
  padding: 0.3rem;
  text-decoration: none;
}
.social-icons a:hover {
  color: var(--accent-color);
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* HERO SECTION */
.hero {
  position: relative;
  background: url('my-harp-background.jpg') center/cover no-repeat;
  color: #d8cdcd;
  padding: 150px 0 120px;
  background-attachment: scroll;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px #094029;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  max-width: 700px;
  margin-bottom: 2rem;
  text-shadow: 0 5px 5px #000;
}

/* BUTTONS */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 0.75rem 2rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Responsive за мобилни (dropdown) */
@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: static;
    background-color: var(--header-bg-color);
    box-shadow: none;
    padding: 0.5rem 0;
  }
  .dropdown-item {
    text-align: center;
  }
  .navbar-collapse.show {
    max-height: 320px;
    opacity: 1;
  }
}

/* SECTIONS & CARDS */
.section { padding: 3rem 0; position: relative; }
.section-title {
  display: inline-block;
  margin-bottom: 3rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 0;
  width: 50px; height: 3px;
  background-color: var(--primary-color);
}
.about-img {
  border-radius: 10px;
  box-shadow: 0 20px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.about-img:hover {
  transform: scale(1.02);
}
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.card-img-top {
  height: 200px; object-fit: cover;
}
.card-body {
  padding: 2rem;
}
.card-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.fancy-img {
  width: 100%; height: auto;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.fancy-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* CONTACT & FOOTER */
.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.contact-info i {
  width: 40px; height: 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}
footer {
  width: 100%;
  margin-top: auto;
  background: #978384;
  color: #fff;
  padding: 3rem 0 1.5rem;
}
.footer-links {
  list-style: none; padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #fff;
}
.back-to-top {
  position: fixed; bottom: 20px; right: 20px;
  width: 50px; height: 50px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
.back-to-top.active {
  opacity: 1; visibility: visible;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* Центриране на заглавието */
.section-title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.section-title h2 {
  text-align: center;
}

/* Services grid */
.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 140px 20px;
}
.service-card {
  background-color: #c3d3db;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.service-icon {
  font-size: 40px;
  color: #4e73df;
  margin-bottom: 15px;
}
.service-card h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 16px;
  color: #555;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.fancy-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.fancy-img:hover {
  transform: scale(1.05);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

/* Add transition for scroll effect */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE — put all mobile tweaks below */
@media (max-width: 768px) {

  .navbar {
    padding: 0;
    margin-bottom: 0;
  }
  .navbar .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .navbar-brand .navbar-logo {
    height: 150px !important;
  }
  .navbar-brand {
    order: 1;
    align-self: center;
  }
  .toggler-bar {
    display: block;
    width: 28px;
    height: 3.5px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.3s;
    position: relative;
  }
  .collapse.show.navbar-collapse {
    max-height: 320px;
    opacity: 1;
  }
  .collapse.navbar-collapse {
    width: 100%;
    background: var(--header-bg-color);
    box-shadow: 0 4px 32px rgba(0,0,0,0.13);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    padding: 1rem 0 0.7rem 0;
    transition: max-height 0.5s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.4s;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin: 0 auto;
    z-index: 1030;
  }
  .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
    opacity: 0;
  }
  .navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  .navbar-collapse .nav-link {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s 0.1s, transform 0.4s 0.1s;
  }
  .navbar-collapse.show .nav-link {
    opacity: 1;
    transform: translateY(0);
  }
  .navbar-collapse {
    background: var(--header-bg-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.4s;
    opacity: 0;
  }
  .navbar-collapse.show {
    max-height: 320px;
    opacity: 1;
    box-shadow: 0 8px 30px rgba(0,0,0,0.16);
  }
  .navbar-collapse {
    order: 3;
  }
  .navbar-collapse {
    transform-origin: top center;
  }
  .navbar {
    overflow: visible;
  }
  /* Покажи dropdown при hover (десктоп) */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}
/* Стил на самия линк Услуги */
.nav-item.dropdown .nav-link.dropdown-toggle::after {
  content: " ▾";
  font-size: 0.8em;
  margin-left: 6px;
}


/* Responsive позициониране на падащото меню */
@media (min-width: 992px) {
  .navbar-nav .dropdown-menu {
    top: 100%;
    left: 0;
    min-width: 220px;
  }
}

/* За мобилни – падането се контролира от JS */
@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
  }
  .dropdown-item {
    color: white;
    text-align: center;
  }
}
/* Основен стил за менюто */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--header-bg-color);
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
  padding: 0.7rem 0;
  min-width: 250px;
  transform: translateY(5px);
  transition: all 0.3s ease;
  z-index: 1050;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-item:hover {
  background-color: var(--primary-dark);
  color: #fff;
  padding-left: 1.8rem;
}

/* За да работи позиционирането */
.navbar-nav {
  position: relative;
}
  .navbar-nav {
      margin-left: auto;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }
  .nav-link {
    padding: 0.6rem 0;
    font-size: 1.05rem;
  }
  #navbarNav {
    background: linear-gradient(135deg, #463232 0%, #22222283 100%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 1rem 0;
  }
  .navbar-toggler {
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    z-index: 1051;
    cursor: pointer;
    padding: 0;
    transition: box-shadow 0.2s;
  }
  .hero {
    padding: 80px 1rem 80px 1rem !important;
  }
  .hero h1 {
    font-size: clamp(2rem, 6vw, 3rem) !important;
  }
  .hero p {
    font-size: clamp(0.9rem, 3vw, 1.2rem) !important;
    max-width: 90% !important;
    margin-left: auto;
    margin-right: auto;
  }
  .services-container {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
    gap: 12px !important;
  }
  #music .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .navbar-brand { order: 1; align-self: center; }
  .social-icons.mobile-social {
    order: 2;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    background: transparent !important;
  }
  .social-icons.mobile-social .icon-group {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.3rem;
    pointer-events: none;
  }
  .social-icons.mobile-social .navbar-toggler {
    position: relative;
    margin: 0;
    padding: 0.3rem;
    z-index: 1;
  }
  .social-icons.mobile-social a {
    color: white;
    font-size: 1.6rem;
    padding: 0.2rem 0.4rem;
    transition: color 0.2s, transform 0.2s;
  }
  .social-icons.mobile-social a:hover {
    color: var(--accent-color);
    transform: translateY(-2px) scale(1.12);
  }
  .social-icons:not(.mobile-social) {
    display: none !important;
  }
}

/* --- MOBILE: #music секцията — СНИМКА ОТГОРЕ, ТЕКСТ ОТДОЛУ --- */
@media (max-width: 768px) {
  #music .row.align-items-center {
    flex-direction: column !important;
  }
  #music .col-lg-6 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  #music .col-lg-6 img {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 370px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  #music .col-lg-6 {
    text-align: center !important;
  }
}
/* --- END --- */

/* Keyframe for mobile social slide-in */
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Desktop navbar tweaks */
@media (min-width: 992px) {
  .navbar {
    padding: 2.2rem 0;
  }
  .navbar.navbar-expand-lg .container {
    position: relative !important;
  }
  .navbar.navbar-expand-lg .navbar-brand {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
  }
  .navbar.navbar-expand-lg .navbar-nav {
    margin-right: -5rem !important;
  }
}
.navbar .dropdown-toggle::after {
  content: "\25BE"; /* ▼ Unicode стрелка */
  font-family: inherit !important;
  font-size: 1.1em !important;
  color: #53483b !important;
  vertical-align: middle !important;
  border: none !important;
  background: none !important;
  display: inline-block !important;
  position: static !important;
  margin-left: 4px;
}