/* === Reset & Base === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Kumbh Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #111;
  background: #faf8f3;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: disc;
}
:root {
  --container: 1100px;
  --accent: #435cec;
  --accent-2: #00d4ff;
  --dark: #131313;
}

/* === Navbar === */
.navbar {
  background: #131313;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar__container {
  position: relative; /* anchor за абсолютното меню */
  display: flex;
  justify-content: space-between;
  height: 80px;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
}

#navbar__logo {
  background-image: linear-gradient(to right, #ff6a00 0%, #096cee 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
}

.navbar__menu {
  display: flex;
  align-items: center;
  list-style: none;
}

.navbar__item {
  height: 120px;
}

.navbar__links {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  text-decoration: none;
  height: 100%;
  transition: all 0.3s ease;
}
.navbar__links:hover {
  color: #7aa2ec;
}

/* button в навигацията */
.navbar__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  width: 100%;
}
.button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  padding: 20px 20px;
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  border-radius: 4px;
  background: linear-gradient(to right, #fcb045, #fd1d1d, #3a3cb4);
  color: #fff;
  transition: all 0.3s ease;
}

/* === Navbar Mobile === */
@media (max-width: 960px) {
  .navbar__container {
    justify-content: space-between;
    height: 80px;
    max-width: 1300px;
    padding: 0 16px;
  }

  /* бургер бутон */
  .navbar__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
  }

  /* контейнер за трите черти */
  #mobile-menu {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
  }

  /* самите линии */
  #mobile-menu .bar {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* състояние "отворено" → X */
  #mobile-menu.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  #mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  #mobile-menu.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* скрито меню по подразбиране */
  .navbar__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%; /* точно под navbar__container */
    margin: 0;
    width: 100%;
    opacity: 1;
    z-index: 999;
    grid-template-columns: auto;
  }

  /* показано меню */
  .navbar__menu.active {
    display: block;
    background: #131313;
    height: 60vh;
    font-size: 1rem;
    animation: navSlide 0.25s ease;
  }

  .navbar__item {
    width: 100%;
    height: auto;
  }
  .navbar__links {
    text-align: center;
    padding: 1rem;
    width: 100%;
    display: table;
  }
  .navbar__btn {
    padding-bottom: 2rem;
  }
  .button {
    width: 80%;
    height: 80px;
    margin: 0;
  }

  #navbar__logo {
    padding-left: 4px;
  }
}

/* анимация при показване на мобилното меню */
@keyframes navSlide {
  from {
    transform: translateY(-8px);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Hero Section === */
.hero {
  background-color: #faf8f3;
  padding: 50px 0;
}
.hero__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  height: 90%;
  text-align: center;
  padding: 30px;
}
.hero__heading {
  font-size: 42px;
  margin-bottom: 20px;
  color: #fff;
}
.hero__heading span {
  background: linear-gradient(to right, #ff6a00, #096cee);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -mo-text-fill-color: transparent;
}
.hero__description {
  font-size: 26px;
  background: linear-gradient(to right, #0e12ff, #b922ff);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}
.hero__content {
  margin-top: 1rem;
  font-size: 18px;
  font-weight: bold;
}
.highlight {
  border-bottom: 4px solid rgb(4, 0, 255);
}
@media (max-width: 768px) {
  .hero__heading {
    font-size: 26px;
  }
  .hero__description {
    font-size: 18px;
  }
}

/* === About Section === */
.main {
  background-color: #131313;
  padding: 8rem 0;
}
.main__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  height: 90%;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  padding: 10px 50px;
}
.main__content {
  color: #fff;
  width: 100%;
  padding: 10px 10px;
}
.main__content h1 {
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background-image: linear-gradient(to top, #ff087b 0%, #ed1a52 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}
.main__content h2 {
  font-size: 2rem;
  background: linear-gradient(to right, #8f0eff, #225dff);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
}
.main__content p {
  margin-top: 1rem;
  font-size: 16px;
  font-weight: 500;
}
.main__btn {
  font-size: 1.8rem;
  background: linear-gradient(to right, #fcb045, #fd1d1d, #833ab4);
  padding: 20px 60px;
  border: none;
  border-radius: 4px;
  margin-top: 2rem;
  cursor: pointer;
  position: relative;
  transition: all 0.35s;
  outline: none;
}
.main__btn a {
  position: relative;
  z-index: 2;
  color: #fff;
  text-decoration: none;
}
.main__btn:after {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #3878b8;
  transition: all 0.35s;
  border-radius: 4px;
}
.main__btn:hover:after {
  width: 100%;
}

.main__img--container {
  text-align: center;
}
.main__img--card {
  margin: 10px;
  height: 500px;
  width: 500px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  background-image: linear-gradient(to right, #00dbde 0%, #fc00ff 100%);
}
.fa-layer-group,
.fa-users {
  font-size: 14rem;
}
#card-2 {
  background: linear-gradient(to right, #dd2476, #2f32ff);
}

/* About – Responsive */
@media (max-width: 1100px) {
  .main__container {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 auto;
    height: 90%;
  }
  .main__img--container {
    display: flex;
    justify-content: center;
  }
  .main__img--card {
    height: 425px;
    width: 425px;
  }
  .main__content {
    text-align: center;
    margin-bottom: 4rem;
  }
  .main__content h1 {
    font-size: 2rem;
    margin-top: 2rem;
  }
  .main__content h2 {
    font-size: 2rem;
  }
  .main__content p {
    margin-top: 2rem;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .main__img--card {
    width: 250px;
    height: 250px;
  }
  .fa-users,
  .fa-layer-group {
    font-size: 4rem;
  }
  .main__content h1 {
    font-size: 1.5rem;
    margin-top: 3rem;
  }
  .main__content h2 {
    font-size: 1.5rem;
  }
  .main__content p {
    margin-top: 2rem;
  }
  .main__btn {
    padding: 12px 36px;
    margin: 2.5rem 0;
  }
}

/* === Services Section === */
.services {
  background: #131313;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(4rem, 8vw, 10rem) 1rem;
  color: #fff;
}
.services h1 {
  color: #fff;
  background-image: linear-gradient(to right, #ff0844 0%, #3c49f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3rem;
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.5rem);
}
.services__wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  width: min(1200px, 100%);
}
.services__card {
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(
    -225deg,
    #231557 0%,
    #44107a 29%,
    #ff1361 67%,
    #fff800 100%
  );
  padding: 1.5rem;
  min-height: 400px;
  will-change: transform;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.services__card:nth-child(2),
.services__card:nth-child(3) {
  background-image: linear-gradient(
    -225deg,
    #231557 0%,
    #44107a 29%,
    #ff1361 67%,
    #fff800 100%
  );
}
.services__card h2 {
  font-size: 20px;
  text-align: center;
}
.services__card p {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 1rem;
}
.services__btn {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.services__card button {
  color: #111;
  background: #fff;
  padding: 0.8rem 1.1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
}
.services__card button:hover {
  cursor: pointer;
  transform: translateY(-1px);
}
.services__card button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.services__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  cursor: default;
}
@media (max-width: 768px) {
  .services {
    padding: 3rem 1rem;
  }
  .services h1 {
    margin-bottom: 2rem;
  }
}

/* === Lists & Table-ish === */
.list {
  padding-left: 1.2rem;
}
.list li {
  margin: 0.35rem 0;
}
.table {
  display: grid;
  gap: 0.5rem;
  padding: 10px;
}
.table__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  background: #fff;
}
.table__head {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}
@media (max-width: 640px) {
  .table__row {
    grid-template-columns: 1fr;
  }
}

/* === Generic Grid & Cards === */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.card img {
  border-radius: 0.5rem;
}

/* === Container & Sections === */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}
.section {
  padding: 4rem 2rem;
}
.section__title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}
.muted {
  opacity: 0.75;
}

/* === Footer === */
.footer__container {
  background-color: #131313;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.footer__logo {
  color: #fff;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 2rem;
}
.footer__links {
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: center;
}
.footer__link--wrapper {
  display: flex;
}
.footer__link--items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 16px;
  text-align: left;
  width: 250px;
  box-sizing: border-box;
}
.footer__link--items h2 {
  margin-bottom: 16px;
  color: #fff;
}
.footer__link--items a {
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: 0.3s ease-out;
}
.footer__link--items a:hover {
  color: #e9e9e9;
}
.footer__link--items p {
  color: #fff;
}
.social__icon--link {
  color: #fff;
  font-size: 24px;
}
.social__media {
  max-width: 1000px;
  width: 100%;
}
.social__media--wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1000px;
  margin: 40px auto 0 auto;
}
.social__icons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 120px;
}
.website__rights {
  color: #fff;
}

/* Footer – по-широка мобилна адаптация */
@media (max-width: 820px) {
  .footer__links {
    padding-top: 2rem;
  }
  .footer__logo {
    margin-bottom: 2rem;
  }
  .website__rights {
    margin-bottom: 2rem;
  }
  .footer__link--wrapper {
    flex-direction: column;
  }
  .social__media--wrap {
    flex-direction: column;
  }
}

/* Footer – дребни екрани */
@media (max-width: 480px) {
  .footer__link--items {
    margin: 0;
    padding: 10px;
    width: 100%;
  }
}

/* Footer – една колона под 600px */
@media (max-width: 600px) {
  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .footer__link--wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .footer__link--items {
    width: 100%;
    text-align: center;
    align-items: center;
    margin: 0.5rem 0;
  }
  .social__media--wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
}

/* === Table: responsive под 680px с хоризонтален скрол === */
@media (max-width: 680px) {

  /* самият контейнер става скролваем по хоризонтала */
  .table {
    display: block;       /* вместо grid – за да работи overflow */
    overflow-x: auto;
    padding-bottom: 8px;  /* малко място под редовете */
    white-space: nowrap;  /* предотвратява прекършване на текста в заглавията */
  }

  /* всеки ред си остава grid с 3 колони, но с минимална ширина */
  .table__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    min-width: 500px;      /* или 420–540px според дължината на текстовете */
    margin-bottom: 0.5rem; /* вместо gap от .table */
  }

  /* ако искаш, можеш да намалиш шрифта леко на мобилно */
  .table__row div {
    font-size: 0.9rem;
  }
}

/* === Table → cards layout под 680px === */
@media (max-width: 680px) {

  /* спираме grid-а на контейнера, за да не пречи */
  .table {
    display: block;
    padding: 0 10px;
  }

  /* всеки ред става отделна „карта“ */
  .table__row {
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.75rem;
  }

  /* скриваме заглавния ред – ще ползваме етикети по редовете */
  .table__row.table__head {
    display: none;
  }

  /* вътре в картата: всеки "cell" става ред – label + value */
  .table__row > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    font-size: 0.95rem;
  }

  /* първата колона (Participant) – като заглавие на картата */
  .table__row > div:nth-child(1) {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }

  /* добавяме етикети към 2ра и 3та колона */
  .table__row > div:nth-child(2)::before,
  .table__row > div:nth-child(3)::before {
    font-weight: 600;
    margin-right: 0.5rem;
  }

  /* !!! тук са текстовете от заглавния ред – ако ги смениш,
     просто ги обновяваш и тук */
  .table__row > div:nth-child(2)::before {
    content: "Before Aug 15, 2022";
  }
  .table__row > div:nth-child(3)::before {
    content: "After Aug 15, 2022";
  }
}

/* === Responsive tightening for price rows on very small screens === */
@media (max-width: 480px) {

  /* правим row-а по-гъвкав */
  .table__row > div {
    display: flex;
    justify-content: flex-start;   /* цената идва по-близо до етикета */
    gap: 6px;                      /* малко пространство между label + value */
    flex-wrap: wrap;               /* ако много се стесни, редът се пренася красиво */
  }

  /* label-ите да не изяждат ширина */
  .table__row > div:nth-child(2)::before,
  .table__row > div:nth-child(3)::before {
    display: inline-block;
    min-width: auto;              /* да не заемат прекалена ширина */
    margin-right: 4px;            /* по-малко разстояние от цената */
    font-weight: 600;
  }

  /* самите стойности (цените) */
  .table__row > div:nth-child(2),
  .table__row > div:nth-child(3) {
    font-weight: 600;
    white-space: nowrap;           /* не позволява цената да се чупи */
  }
}