@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
  color: #fff;
  transition: 0.7s;
  scroll-behavior: smooth;
}

:root {
  --color-mediumpurple: #9498f2;
  --color-blue: #115d8c;
  --color-darkblue: #0b3b59;
  --color-light: #f0f1f2;
  --color-lazure: #05dbf2;
}

.scroll-tracker {
  position: fixed;
  height: 0.25rem;
  inset: 0 0 auto;
  background-color: var(--color-darkblue);
  z-index: 100;
}

a {
  text-decoration: none;
}
.segment_all {
  display: flex;
  position: relative;
}

.segment--left {
  position: fixed;
  top: 0;
  left: 0;
  width: 40vw;
  height: 100vh;
  background-color: var(--color-blue);
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.segment--left--text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  align-content: flex-end;
  padding: 50px;
  max-width: 500px;
}
.segment--left--text h1 {
  font-size: 2rem;
  color: var(--color-lazure);
  font-weight: 700;
  line-height: 2.5rem;
  letter-spacing: 1px;
}

.segment--left--text p {
  line-height: 1.5rem;
  color: var(--color-lazure);
}

.button {
  border: 5px solid var(--color-lazure);
  border-radius: 5px;
  background-color: transparent;
  width: fit-content;
  height: fit-content;
}
.button p {
  font-size: 1.5rem;
  color: var(--color-lazure);
  padding: 15px 50px;
  margin: auto;
  text-align: center;
  font-weight: 700;
}
.button:hover {
  background-color: var(--color-lazure);
  box-shadow: 4px 4px 15px #00000052;
}
.button p:hover {
  color: var(--color-blue);
}

.segment--right {
  position: absolute;
  top: 0;
  right: 0;
  width: 60vw;
  height: 100vh;
  /* background-color: var(--color-lazure); */
}
.segment--right--main {
  background-color: var(--color-lazure);
  min-height: 100vh;
  position: relative;
}

.main-image {
  height: 100vh;
  width: 100%;
  object-fit: cover;
  left: 0;
  top: 0;
  display: block;
}
.main-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-lazure);
  mix-blend-mode: hard-light;
}

/* segment {
  background-color: var(--color-mediumpurple);
  min-height: 100vh;
} */
.segment--right {
  height: 100vh;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-y: auto;
}
.segment {
  /* height: 100vh;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth; */
  scroll-snap-align: start;
  overflow-y: auto;
}

.segment--right--skills {
  background-color: var(--color-mediumpurple);

  min-height: 100vh;
}
.segment--right--projects {
  background-color: var(--color-light);
  min-height: 100vh;
}
.segment--right--contact {
  background-color: var(--color-darkblue);
  min-height: 100vh;
}

.segment--right--inside {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: top;
  flex-wrap: wrap;
  align-content: flex-start;
  padding: 50px;
  max-width: 700px;
  min-height: 100vh;
  color: var(--color-darkblue);
}
.segment--right--inside h2 {
  font-size: 3rem;
  color: var(--color-darkblue);
}
.segment--right--inside h2.contact {
  color: var(--color-light);
}

.gallery {
  align-content: center;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-block: 20px;
}
.gallery_list {
  display: flex;
  flex-wrap: wrap;
  border-radius: 5px;
  justify-content: flex-start;
  align-content: center;
  gap: 30px;

  margin: auto;
}
.icon {
  width: 120px;
  height: 120px;
  border: 5px solid var(--color-darkblue);
  border-radius: 5px;
  object-fit: cover;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.4s, box-shadow 0.2s;
  box-shadow: none;
  display: flex;
  align-content: center;
  justify-content: center;
  position: relative;
}

.icon img {
  object-fit: scale-down;
  height: 100%;
  width: 100%;
  transition: filter 0.4s;
  filter: opacity(30%);
}

.icon:hover {
  transform: scale(1.1);
  box-shadow: 4px 4px 15px #00000052;
}
.icon img:hover {
  filter: opacity(100%);
}

.projects {
  width: 173px;
  height: 220px;
}

.icon.projects img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--color-light);
  width: 100%;
  height: 100%;
  padding: 5px;
  text-align: center;
  filter: opacity(80%);
  color: var(--color-darkblue);
  transition: display 1s;
  display: none;
  /* justify-content: center;
  align-items: center; */
}
/* .overlay:hover {
  filter: opacity(50%);
} */

.overlay-text {
  width: 100%;
  height: 100%;
  padding: 10px;
  color: var(--color-darkblue);
  display: flex;
  justify-content: center;
  align-items: center;
}
.display {
  display: initial;
  transition-duration: 3s;
}

.more-on {
  text-align: right;
  color: var(--color-darkblue);
}
.link {
  color: var(--color-darkblue);
  text-decoration: none;
  display: inline-block;
  position: relative;
}
.link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--color-darkblue);
  bottom: -1px;
  left: 0;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.4s linear;
}

.link:hover::after {
  transform-origin: bottom left;
  transform: scaleX(1);
}
.container {
  width: 100%;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 70%;
}

input,
textarea {
  border: 5px solid var(--color-lazure);
  border-radius: 5px;
  padding: 10px;
  color: var(--color-darkblue);
  background-color: var(--color-light);
}
label {
  margin-top: 10px;
  color: var(--color-light);
}
.button.form {
  font-size: 1.5rem;
  color: var(--color-lazure);
  padding: 15px 50px;
  margin-left: 0;
  margin-top: 20px;
  text-align: center;
  font-weight: 700;
  width: fit-content;
}
.button.form:hover {
  background-color: var(--color-lazure);
  box-shadow: 4px 4px 15px #00000052;
  color: var(--color-blue);
}

.rotate {
  transform: rotateY(180deg);
}

@media (max-width: 700px) {
  .segment_all {
    display: flex;
    flex-direction: column;
  }
  .segment--left,
  .segment--right {
    width: 100%;
    position: relative;
    justify-content: center;
  }
  .form {
    width: 100%;
  }
  .segment--right--main,
  .main-image {
    min-height: 30vh;
    height: 30vh;
  }
}

@media (max-width: 1020px) and (max-height: 560px) {
  .segment--left--text h1 {
    font-size: 1.2rem;
    line-height: 1.2rem;
  }

  .segment--left--text p {
    line-height: 1.1rem;
    font-size: 0.8rem;
  }
}
