:root {
  --main-color: #ffffff;
  --border: #ffffff;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Jost', sans-serif;
  color: var(--main-color);
  background: #080f19; /* ← ЭТО УБИРАЕТ БЕЛУЮ ПОЛОСКУ */
  scroll-behavior: smooth;
}

/* Скрыть кнопку Home на больших экранах */
.mobile-home {
  display: none;
}

/* Показать только на мобильных */
@media (max-width: 768px) {
  .mobile-home {
    display: list-item;
  }
}

.lang-buttons-desktop button,
.lang-buttons-mobile button {
  font-family: 'Jost', sans-serif;
  font-weight: bold;
}
/* ===== ФОН ===== */

.background-container {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}


.text-link {
  color: inherit;
  text-decoration: none;
  opacity: 1;
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.25),
    0 0 14px rgba(255, 255, 255, 0.15);
  transition: text-shadow 0.25s ease, opacity 0.25s ease;
}

.text-link:hover {
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.45),
    0 0 22px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(255, 255, 255, 0.18),
    0 0 70px rgba(255, 255, 255, 0.12);
}

/* страницы */
body.home .background-container,
body.contact .background-container {
  background-image: url('images/background1.jpg');
}

body.workflow .background-container,
body.portfolio .background-container,
body:not(.home):not(.contact) .background-container {
  background-image: url('images/background1blur.jpg');
}

/* 📱 MOBILE */
/* ❗ ВАЖНО: псевдослои убраны ниже */
.background-container::before,
.background-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1; /* фикс полоски */
}

      .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
        cursor: pointer;
        width: 75px; height: 15px;
        margin-left: auto;
        margin-right: 20px;
      }
      .hamburger span {
        display: block;
        height: 2px;
        background: var(--main-color);
        border-radius: 2px;
        transition: 0.4s;
        transform-origin: center;
      }

      .hamburger.active span:nth-child(1) {
        /* Поворачиваем, укорачиваем и сдвигаем вправо */
        transform: rotate(45deg) scaleX(0.2) translateX(30px) translateY(7.5px);
        transform-origin: right;
      }
      .hamburger.active span:nth-child(2) {
        opacity: 0;
      }
      .hamburger.active span:nth-child(3) {
        /* Поворачиваем, укорачиваем и сдвигаем вправо */
        transform: rotate(-45deg) scaleX(0.2) translateX(30px) translateY(-7.5px);
        transform-origin: right;
      }


 .main-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;

  width: 50vw;
  height: 100vh;

  padding: 60px 20px 20px;

  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;

  background: linear-gradient(
    to left,
    #0f1017 0%,
    rgba(15, 16, 23, 0.9) 25%,
    rgba(15, 16, 23, 0.65) 50%,
    rgba(15, 16, 23, 0.35) 75%,
    rgba(15, 16, 23, 0) 100%
  );
}
      
      .main-nav ul {
        flex-direction: column;
        gap: 20px;
        width: 100%;
      }
      
      .main-nav li a {
        padding: 10px 0;
        display: block;
        text-align: center;
      }

      .main-nav.active {
        transform: translateX(0); /* Показываем меню, сдвигая его на место */
      }
/* лёгкий overlay */
.background-container::before {
  background: rgba(0,0,0,0.1);
}
/* 📱 MOBILE BACKGROUNDS */
@media (max-width: 768px) {

  /* HOME + CONTACT → background 2 */
  body.home .background-container,
  body.contact .background-container {
    background-image: url('images/background2.jpg');
  }

  /* WORKFLOW + PORTFOLIO → background 2 blur */
  body.workflow .background-container,
  body.portfolio .background-container,
  body:not(.home):not(.contact) .background-container {
    background-image: url('images/background2blur.jpg');
  }

}
.background-container {
  background-attachment: scroll;
}

@media (max-width: 768px) {
  section.welcome {
    height: auto;
    min-height: 50dvh;
  }
  @media (max-width: 768px) {
  .about-me p {
    line-height: 0;
  }
}
}

/* ===== MAIN ===== */

main {
  position: relative;
  z-index: 2;
  padding-top: 60px;
}

/* ===== HERO ===== */

section.welcome {
padding: 130px 20px 300px 20px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.welcome h1 {
  font-size: 3rem;
  margin-bottom: 0rem;
}

.welcome p {
  font-size: 1.2rem;
  max-width: 650px;
  margin-bottom: 1rem;
}

/* ===== CONTENT ===== */

.main-content {
  max-width: min(66vw, 1000px);
  margin-bottom: 120px;
}

.about-me {

  text-align: left;
  position: relative;
  z-index: 1;
}

.about-me h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-me p {
  text-align: justify;
  text-justify: inter-word;
 hyphens: none;
  line-height: 1.6;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  z-index: 1;
}


/* ===== LINK ===== */

.scroll-down {
  color: var(--main-color);
  text-decoration: none;
  font-weight: bold;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.scroll-down:hover {
  text-shadow: 0 0 60px #ffffff, 0 0 30px #ffffff;
}

/* ===== CONTACT ===== */

.contact {
  margin-bottom: 40px;
  margin-top: 0;
  text-align: left;
}

/* ===== 📱 MOBILE ===== */

@media (max-width: 768px) {

  header {
    height: 70px;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;

  }

  .site-name,
  .lang-buttons-desktop {
    display: none;
  }
  

  .lang-buttons-mobile {
    display: flex;
    gap: 10px;
    margin-left: 20px;
  }

  .lang-buttons-mobile button {
    background: none;
    border: none;
    color: var(--main-color);
    cursor: pointer;
    font-weight: bold;
    padding: 0;
    white-space: nowrap;
  }

  section.welcome,
  .about-me,
  .contact {
    text-align: left;
    align-items: flex-start;
	   width: 100%;
  }

  .welcome h1,
  .welcome p {
	   width: 100%;
	 padding-bottom: 90px;
  }

  .welcome p {
    font-size: 1rem;
    max-width: 100%;
	 padding-top: 0px;
    padding-left: 0px;
    padding-right: 0px;
  }
  .about-me p {
	  font-size: 1rem;
	    line-height: 1.2;
  margin-bottom: 1.6rem;
  }

  .main-content {
     padding-top: 100px;
	padding-left: 20px;
    padding-right: 20px;
    text-align: left;
    width: 100%;
  }
}

/* ===== 💻 DESKTOP ===== */

@media (min-width: 769px) {
  .main-content {
    padding-left: 160px;

  }
  section.welcome {
	  padding-right: 168px;
	  padding-top: 300px;
	  
}
@media (min-width: 769px) {
  .main-nav {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
  }

  .main-nav ul {
    display: flex;
    flex-direction: row;
    gap: 24px;
  }
}