@import url(/static/css/reset.css);
@import url(d_modal.css);

:root {
  --bg-color-gradient: linear-gradient(90deg, #ff9a8b 0%, #ff6b88 52%, #ff98ab 100%);
  --text-primary: #ffffff;
  --btn-bg: #ffffff;
  --btn-text-gradient: linear-gradient(90deg, #ff9a8b 0%, #ff6b88 52%, #ff98ab 100%);
  --mobile-menu-bg: #ffffff;
  --btn-shadow: 0 0 31px -3px rgba(0, 0, 0, 0.36);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color-gradient: #0f0c1d; 
    --text-primary: #e1e1e6;
    --btn-bg: #1e1e20; 
    --btn-text-gradient: linear-gradient(90deg, #da85f3 0%, #da85f3 100%);
    --btn-shadow: 0 0 45px -5px rgba(218, 133, 243, 0.4);
    --mobile-menu-bg: #1e1e20;
  }
}

@font-face {
  font-family: "Montserrat";
  src: url(/static/fonts/Montserrat-VariableFont_wght.ttf) format("truetype");
  font-style: normal;
}

body {
  font-family: "Montserrat";
  background: var(--bg-color-gradient);
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  transition: background 0.3s ease;
}

header {
  width: calc(100% - 20px);
  background: var(--bg-color-gradient);
  margin: 10px;
  padding: 20px 0;
  border-radius: 25px;
  transition: background 0.3s ease;
}

header .header-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 30px;
  max-width: 80%;
  margin: 0 auto;
}

header .logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

header .logo img {
  max-width: 100%;
  height: auto;
}

header .header-list ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

header .header-list ul li {
  position: relative;
  cursor: pointer;
  padding: 5px 0;
}

header .header-list ul li::after {
  content: "";
  height: 2px;
  width: 0;
  background: var(--text-primary);
  position: absolute;
  left: 0;
  bottom: 0;
  transition: width 0.5s, background 0.3s ease;
}

header .header-list ul li:hover::after {
  width: 100%;
}

header .header-icons {
  display: flex;
  justify-content: flex-end;
  gap: 30px;
}

header .header-icons img {
  height: 30px;
  cursor: pointer;
}

header .burger-menu {
  display: none;
}

header .mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  header .header-container {
    grid-template-columns: 1fr 1fr;
  }
  header .header-list {
    display: none;
  }
  header .header-icons {
    display: none;
  }
  header .burger-menu {
    display: flex;
    justify-content: flex-end;
    height: 40px;
  }
  header .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: var(--mobile-menu-bg);
    z-index: 9999;
    padding: 20px;
    text-align: center;
    transition: background 0.3s ease;
  }
  header .mobile-menu .close-btn {
    text-align: end;
  }
  header .mobile-menu a {
    background: var(--btn-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  header .mobile-menu .mobile-list {
    display: grid;
    justify-content: center;
    gap: 3rem;
    font-weight: 700;
    margin-top: 5rem;
    font-size: 1.5rem;
  }
  header .mobile-menu .lang-switch {
    width: 80vw;
    font-size: 1rem;
  }
}

main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  flex: 1;
}

main .banner {
  width: 100%;
  height: auto;
  display: grid;
  justify-content: center;
  align-items: center;
  justify-items: center;
}

main .banner .banner-img {
  width: 600px;
  border-radius: 25px;
}

@media (prefers-color-scheme: dark) {
    main .banner .banner-img {
        filter: brightness(0.9);
    }
}

main p {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-align: center;
  margin: 10px 0;
  transition: color 0.3s ease;
}

main .main_btn {
  border-radius: 28px;
  background: var(--btn-bg);
  padding: 1.3rem 3.5rem;
  margin-top: 30px;
  box-shadow: var(--btn-shadow);
  transition: 0.5s, background 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

main .main_btn span {
  background: var(--btn-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: bold;
  font-size: 2rem;
}

main .main_btn:hover {
  transform: scale(1.03);
}

@media (max-width: 800px) {
  main h1 {
    font-size: 4rem;
  }
  main p {
    font-size: 0.5rem;
  }
}

@media (max-width: 1280px) {
  main .main_btn {
    margin-top: 0;
  }
  main .main_btn #buttonText {
    font-size: 1.5rem;
  }
  main .banner-text {
    font-size: 0.8rem;
  }
}

footer {
  position: absolute;
  bottom: 0;
  text-align: center !important;
  width: 100%;
  padding-bottom: 30px;
}

@media (max-width: 1280px) {
  footer {
    height: 15%;
  }
}