@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --main_color: #b57edc;
  --text_color: #4f4f4f;
  --back-color: #c9c4ec;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  border: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

html,
body {
  height: 100%;
  min-width: 320px;
  line-height: 1;
}

input,
button,
textarea {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  color: inherit;
  background-color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:link,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul,
ol,
li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top; /* щоб не було артефактного відступу знизу */
  object-fit: cover;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Montserrat Alternates', sans-serif;
  color: var(--text_color);
  scroll-behavior: smooth;
  line-height: 1.64rem;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

section {
  padding: 3.125rem 1.25rem;
  max-width: 68.75rem;
  margin: auto;
  animation: fadeInUp 1s ease-in-out;
}

header {
  background-repeat: no-repeat;
  height: 100vh;
  background-size: cover;
  background-position-x: 100%;
  background-position-y: 47%;
  position: relative;
  background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 100%
    ),
    url('./images/back.jpg') no-repeat center top;
  width: 100%;
  background-size: cover;
  padding: 10rem;
}

.header-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 900px;
  padding: 8rem 10rem;
  align-items: center;
  margin: auto;
}

.header-text em {
  font-size: 1.2rem;
  text-align: center;
  line-height: 2rem;
  margin-bottom: 3rem;
}

h1 {
  margin-bottom: 0.9rem;
  position: relative;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--main_color);
  line-height: 2.5rem;
  font-size: 2rem;
  text-align: center;
}

h2 span {
  font-size: 5rem;
}

h2 {
  margin-bottom: 3rem;
  text-align: center;
  font-size: 1.6rem;
}

h3 {
  font-size: 1.9rem;
  color: var(--main_color);
  font-weight: 500;
  line-height: 2.4rem;
  text-align: center;
  margin-bottom: 2rem;
}

h4 {
  font-size: 1.6rem;
  color: var(--main_color);
  font-weight: 500;
  line-height: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.header-text a {
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--main_color);
  padding: 0.6rem 2rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  margin-right: 1.5rem;
  color: #fff;
  font-weight: 500;
  margin: auto;
  font-size: 1rem;
  text-transform: uppercase;
  background-color: var(--main_color);
  text-align: center;
}

.header-text a:hover {
  background-color: var(--main_color);
  color: #fff;
}

nav {
  display: flex;
  justify-content: center;
  padding: 1rem;
  position: absolute;
  left: 0;
  top: 1rem;
  z-index: 10;
  width: 100%;
}

nav a {
  color: var(--text_color);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s;
  font-size: 1.4rem;
}

nav a:last-child {
  font-size: 1rem;
  font-style: italic;
}

nav a:hover {
  color: var(--main_color);
}

#about {
  padding: 0;
  margin: 0 auto;
  width: 90%;
  max-width: 90%;
}

#about em {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 900px;
}

.text-about {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 3rem auto;
  position: relative;
  z-index: 1000;
}

.text-about .column {
  display: flex;
  flex-direction: column;
}

.column-item {
  margin-bottom: 6rem;
}

.text-about p {
  font-size: 1.2rem;
  text-align: center;
}

.text-about img {
  max-width: 400px;
  border-radius: 12px;
  margin: 0 auto;
}

.about {
  margin-top: 6rem;
  padding: 4rem;
}

.about h2 {
  position: relative;
  text-align: left;
  font-size: 2em;
  font-weight: 200;
  line-height: 3rem;
  text-align: center;
  max-width: 900px;
  margin: 3rem auto;
}

.back-image {
  position: absolute;
  left: -25%;
  top: 20%;
  opacity: 0.2;
}

.list div {
  padding: 0 2rem;
  border-left: 1px solid var(--main_color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 2rem;
  font-weight: 200;
}

.techniques-alt-section {
  padding: 4rem 1rem;
  text-align: center;
  background: linear-gradient(
      to top,
      rgba(255, 255, 255, 1),
      rgba(255, 255, 255, 0.6)
    ),
    url('images/back.jpg') no-repeat center bottom;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  max-width: 100%;
}

.technique-alt-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.technique-alt-item {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.technique-alt-item.reverse {
  flex-direction: row-reverse;
}

.tech-img img {
  width: 300px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 7px -5px 57px 15px rgba(160, 148, 161, 0.75);
}

.tech-text {
  max-width: 500px;
  text-align: left;
}

.tech-text h3 {
  font-size: 1.5rem;
  color: var(--main_color);
  margin-bottom: 1rem;
}
.tech-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
}

.contact-section {
  padding: 5rem 1rem;
  position: relative;
}

.contact-section h2 {
  color: #b57edc;
  font-size: 2rem;
  margin-bottom: 3rem;
}
.contact-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}
.contact-link {
  background-color: var(--main_color);
  border: 2px solid var(--main_color);
  color: #fff;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
  min-width: 290px;
}
.contact-link:hover {
  background-color: #fff;
  color: var(--main_color);
}
.contact-link i {
  font-size: 1.5rem;
  color: #fff;
}

.contact-link:hover i {
  color: var(--main_color);
}

footer {
  background-color: var(--back-color);
  padding: 1rem;
  text-align: center;
}

footer .back-image {
  right: 0;
  top: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media only screen and (max-width: 1024px) {
  header {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    padding: 2rem;
  }
  nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 0;
  }
  nav a {
    margin-bottom: 10px;
  }
  .header-text {
    padding: 2rem;
  }
  h1::after {
    display: none;
  }
  .text {
    margin-top: 10px;
  }
  #about {
    margin-top: 0;
  }
  .image {
    border: 0;
  }
  .list,
  .text-about {
    display: flex;
    flex-direction: column;
  }
  .column-item {
    margin-bottom: 4rem;
  }
  .text-about img {
    max-width: 85%;
    border-radius: 12px;
    margin: 0 auto;
  }
}

@media only screen and (max-width: 700px) {
  .text {
    width: auto;
  }
  .contacts-bottom img {
    width: 16rem;
  }
  .work-item em {
    line-height: 1.6rem;
  }
  .image {
    box-shadow: none;
  }
  .image img {
    padding-top: 170px;
    min-height: 900px;
    height: auto;
  }
  h1 {
    font-size: 1.8rem;
  }
  .write {
    margin-top: 0;
  }
}
