:root {
  --nav-height: 90px;
  --blue-light: #6eb3d6;
  --blue-dark: #2f6e94;
  --accent: #43A4C7;
}
/* Скриваме мобилната навигация по default */
.mobile-navbar {
  display: none;
}
.mobile-hero{
  display: none;
}

body {
  margin: 0;
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-dark) 100%);
  background-attachment: fixed;
  color: #ffffff;
}

/* ========== NAVBAR ========== */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background: rgba(3, 3, 3, 0.46);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.logo {
  width: 98px;
  height: 63px;
  object-fit: contain;
  display: block;
}

.messages {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  font-weight: 200;
}

.messages img {
  width: 60px;
  height: 53px;
}


.navbar-center {
  display: flex;
  font-size: 21px;
  font-weight: 500;
}

.navbar-center a {
  padding: 0 20px;
  color: #fff;               
  text-decoration: none;     
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-center a:not(:first-child) {
  border-left: 2px solid rgba(255, 255, 255, 0.4);
}

.navbar-center a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.navbar-center a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.navbar-center a:hover::after {
  width: 100%;
}

.navbar-center a.active {
  color: var(--accent);
}

.navbar-right {
  text-align: right;
  color: #fff;
}

.navbar-right h1 {
  font-size: 23px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.navbar-right hr {
  border: none;
  height: 2px;
  background: #ffffffa8;
  margin: 6px 0;
}

.navbar-right span {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.7;
  display: block;
}

/* === TEAM SECTION === */
.team-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: calc(var(--nav-height) + 40px) 0 40px 60px; /* махаме дясната вътрешна отстъпка */
  min-height: 100vh;
  gap: 40px;
}

.team-left {
  flex: 1;
  color: #000;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 3px 6px rgba(0,0,0,0.4);
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: #fff;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* === КАРТИ (разчупен дизайн) === */
.cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.row {
  display: flex;
  gap: 50px; /* хоризонтално разстояние между картите */
}

/* първи ред – 2 карти, центрирани */
.row-two {
  justify-content: center;
}

/* втори ред – 3 карти, центрирани */
.row-three {
  justify-content: center;
}

.card {
  width: 210px;
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

/* цветна рамка отвън */
.card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, #43A4C7, #6eb3d6, #2f6e94);
  mask: 
  linear-gradient(#fff 0 0) content-box, 
  linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude; 
  pointer-events: none;
}

/* hover ефект */
.card:hover {
  transform: translateY(-12px) rotate(-1.5deg) scale(1.05);
  box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

/* контейнер за двете снимки */
.image-wrapper {
  position: relative;
  width: 100%;
  height: 150px; /* можеш да промениш височината */
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

/* фонова снимка */
.background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  filter: brightness(0.7); /* леко потъмняване за контраст */
  transition: transform 0.4s ease;
}

/* снимката отгоре */
.overlay-img {
    position: absolute;
    top: 63%;
    left: 50%;
    width: 86%;
    height: auto;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    transition: transform 0.4s ease;
    z-index: 2;
}

/* ефект при hover – фонът леко се приближава */
.card:hover .background-img {
  transform: scale(1.1);
}

/* ефект при hover – горната снимка леко изскача */
.card:hover .overlay-img {
  transform: translate(-50%, -50%) scale(1.05);
}

/* заглавие и текст */
.card h3,
.card p {
  position: relative;
  z-index: 3;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* при hover съдържанието изскача */
.card:hover h3 {
  transform: translateY(-4px);
  color: var(--accent);
}

.card:hover p {
  transform: translateY(-2px);
  opacity: 0.9;
}



/* === Дясна снимка === */
.team-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-right: 0; /* няма отстояние */
}

.team-right img {
  width: 100%;
  max-width: 500px;
  border-radius: 30px 0 0 30px; /* закръгляме само към вътрешната част */
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.4s ease;
}

.team-right img:hover {
  transform: scale(1.05) rotate(-1deg);
}

@media (max-width: 450px) {

  /* Navbar адаптация */
  .navbar {
    padding: 8px 14px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-sizing: border-box; /* да не излиза извън ширината */
    width: 100%;
  }

  .navbar-left {
    gap: 10px;
  }

  .logo {
    width: 72px;
    height: 46px;
  }
  /* Скриваме централното меню */
  .navbar-center {
    display: none;
  }
      .navbar-right h1 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
    }
    .navbar-right {
    text-align: center;
    color: #fff;
  }

  /* Фон за по-лек тон */
  body, .hero {
    background-color: #d4f4ff;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* предотвратява хоризонтално скролиране */
  }

.mobile-hero {
    display: block;
    width: 100%;
    overflow: hidden;
    height: 250px; /* задаваме желаната височина */
    margin-top: -3%;
}

.mobile-hero img {
        width: 100%;
        height: 80%;
        object-fit: cover;
        object-position: center -11%;
        display: block;
        border-radius: 20px;
}


  /* Mobile navbar (овален стил) */
  .mobile-navbar {
        display: flex;
        justify-content: center;
        background: #0F2947;
        padding: 14px 10px;
        border-radius: 30px;
        width: fit-content;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        margin-left: 16%;
        margin-top: -5%;
    }

.mobile-navbar ul {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* ако бутоните не се събират, отиват на следващ ред */
    padding: 0;
    margin: 0;
    list-style: none;
}


  .mobile-navbar ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    transition: background 0.3s, color 0.3s;
    border-radius: 20px;  /* овал за отделните линкове */
  }

  .mobile-navbar ul li a:hover {
    background: #43A4C7;
    color: #fff;
  }
  .mobile-navbar ul li a.active {
    background: #43A4C7;  /* акцентен цвят */
    color: #fff;
}


  /* Team секция в колона */
  .team-section {
    flex-direction: column;
    align-items: center;
    padding: 120px 20px 40px;
    gap: 30px;
    box-sizing: border-box;
    width: 100%;
  }

    .team-left {
        width: 100%;
        margin-top: -30%;
    }
    .team-right img {
        display: none;
    }


  /* Мобилен изглед: карти на един ред */
 .cards {
    display: flex;
    flex-direction: column;   /* една под друга */
    gap: 20px;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  .row {
    display: flex;
    flex-direction: column;   /* картите в реда също една под друга */
    gap: 20px;
    width: 100%;
  }

  .card {
    width: 100%;             /* цялата ширина */
    margin: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    padding: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .overlay-img {
        position: absolute;
        top: 66%;
        left: 50%;
        width: 67%;
        height: auto;
        transform: translate(-50%, -50%);
        border-radius: 10px;
        transition: transform 0.4s ease;
        z-index: 2;
    }

  .card h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
  }

  .card p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
  }

  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.25);
  }

  .team-right {
    width: 100%;
    justify-content: center;
    display: flex;
  }

  .team-right img {
    max-width: 100%;
    border-radius: 20px;
  }
  .messages img {
    width: 50px;
    height: 42px;
    object-fit: contain;
    display: block;
}
}
@media (max-width: 400px) {
  .card {
    padding: 12px;
  }
  .card h3 {
    font-size: 1.05rem;
  }
  .card p {
    font-size: 0.9rem;
  }
}

