* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Archivo";
  src: url(./Public/fonts/Archivo-VariableFont_wdth\wght.ttf);
}

@font-face {
  font-family: "Inter";
  src: url(./Public/fonts/Inter-VariableFont_opsz\wght.ttf);
}

@font-face {
  font-family: "Moon-face";
  src: url(./Public/fonts/Moonhouse-yE5M.ttf);
}

body {
  background-color: #f0f0f0;
  color: #333;
  overflow-x: hidden;
}

.blur-overlay{
  position: absolute;
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 20vh;
  backdrop-filter: blur(20px);
  mask: linear-gradient(to bottom,
  rgba(0, 0, 0, 0) 0%,  
  rgba(0, 0, 0, 0.4) 30%,
  rgba(0, 0, 0, 0.99) 70%,
  rgba(0, 0, 0, 1) 100%
  );
  z-index: 100;
}

.blur-overlay.fade-out{
  opacity: 0;
}

:root {
  --accent-color: #e21e1e;
  --primary-color: #f0f0f0;
  --secondary-color: #050505;
}

header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  mix-blend-mode: difference;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  width: 100%;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #f0f0f0;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0f0f0;
  border-radius: 60px;
  height: 44px;
  width: 420px;
}

.nav-menu a {
  text-decoration: none;
  color: #f0f0f0;
  font-size: 16px;
  width: 104px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Archivo;
  font-weight: 300;
}

.nav-menu a:hover {
  background-color: #f0f0f0;
  color: var(--secondary-color);
  border-radius: 24px;
  font-weight: bold;
}

#menu-toggle {
  font-size: 24px;
  color: var(--primary-color);
  display: none;
}

.nav-menu-mobile {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: column;
  background-color: var(--secondary-color);
  width: 160px;
  height: 180px;
  position: fixed;
  top: 10%;
  right: 10%;
  z-index: 10000;
  border-radius: 6px;
  display: none;
  transition: all 1s ease-in-out;
  transform: translateX(-100);
  font-family: Archivo;
  font-size: 18px;
}

.nav-menu-mobile a {
  color: var(--primary-color);
  text-decoration: none;
}

/**nav responsive**/

@media (max-width: 900px) {
  header {
    margin-top: 14px;
  }

  .nav-menu {
    display: none;
  }

  #menu-toggle {
    display: block;
    cursor: pointer;
  }

  .nav-menu-mobile {
    right: 5%;
    font-size: 18px;
  }

  .logo {
    font-size: 28px;
  }
}

@media (max-width: 800px) {
  .nav-menu-mobile {
    right: 10%;
  }
}

/**hero section**/
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.vignette {
  width: 100%;
  height: 100%;
  box-shadow: 0 0 800px rgba(0, 0, 0, 0.4) inset;
}

.gradient {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 10%;
}

.gradient img {
  width: 100%;
  height: 100%;
}

.sub-text {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(8deg);
  gap: 10px;
  height: 60px;
  width: 96%;
  max-width: 1280px;
  margin-inline: auto;
  overflow: hidden;
  background-color: var(--primary-color);
  background: #f0f0f0;
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0)
  );
}

.sub-text img {
  position: absolute;
  width: 1200px;
  height: 40px;
  object-fit: cover;
  left: max(calc(640px * 2), 100%);
  animation: scrollLeft 10s linear infinite;
}

.sub-text img:nth-child(1) {
  animation-delay: calc(10s / 2 * (2 - 1) * -1);
}

.sub-text img:nth-child(2) {
  animation-delay: calc(10s / 2 * (2 - 2) * -1);
}

@keyframes scrollLeft {
  to {
    left: -1150px;
  }
}



.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  /* z-index: 3; */
  width: 340px;
  height: 605px;
  position: absolute;
  overflow: hidden;
  object-fit: cover;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



@media (max-width: 768px) {

  .hero-image img{
    width: 75%;
    height: 75%;
    object-fit: cover;
  }
  .gradient {
    top: 0%;
  }
}

.work {
  background-color: #050505;
  color: #e21e1e;
  height: 895px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.work h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-align: right;
}

.project-1-int-button,
.project-2-int-button,
.project-3-int-button,
.project-4-int-button {
  position: absolute;
  width: 54px;
  height: 54px;
  right: 0;
  bottom: 0;
}

.project-1-int-button,
.project-4-int-button {
  display: none;
}

.project-1-int-button img,
.project-2-int-button img,
.project-3-int-button img,
.project-4-int-button img {
  position: absolute;
}

.project-4-int-button img {
  left: 0;
}

#button-top:hover {
  opacity: 0;
}

.line {
  height: 2px;
  width: 936px;
  background-color: #e21e1e;
}

.project-column-1,
.project-column-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.project-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 936px;
  height: 548px;
  margin-top: 20px;
  gap: 20px;
}

.project-1,
.project-4 {
  background-color: var(--primary-color);
  width: 648px;
  height: 260px;
  border-radius: 1.2rem;
  display: flex;
  gap: 20px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.project-2,
.project-3 {
  background-color: var(--primary-color);
  width: 260px;
  height: 260px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.project-1-text,
.project-4-text {
  width: 365px;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  color: var(--secondary-color);
  position: relative;
  font-family: "Inter";
}

.project-1-text a,
.project-4-text a {
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 0.8rem;
  margin-top: 10px;
  border: 1px solid var(--secondary-color);
  border-radius: 0.4rem;
  padding: 8px;
  position: absolute;
  bottom: 0;
}

.project-1-image,
.project-4-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 0.8rem;
  overflow: hidden;
  background-color: var(--accent-color);
  position: relative;
}

.project-2-image,
.project-3-image {
  width: 220px;
  height: 156px;
  object-fit: cover;
  overflow: hidden;
  border-radius: 0.8rem;
  background-color: var(--accent-color);
  position: relative;
}


.project-1 img,
.project-2 img,
.project-3 img,
.project-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-2-info,
.project-3-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.project-2-text,
.project-3-text {
  width: 220px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  color: var(--secondary-color);
  font-family: 'Inter';
}

.project-4-text h3,
.project-1-text h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.project-3-text h3,
.project-2-text h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.project-1-info,
.project-4-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 20px;
}

.project-4-info {
  flex-direction: row-reverse;
  text-align: right;
}

/*works-responsive*/

@media (max-width: 1000px) {
  .work {
    height: 1188px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .line {
    width: 540px;
  }

  .project-container {
    position: relative;
    gap: 20px;
    width: 540px;
    height: 836px;
  }

  .project-column-1,
  .project-column-2 {
    position: absolute;
    width: 540px;
    flex-direction: column;
  }

  .project-column-2 {
    top: 33.4%;
    align-items: flex-end;
  }

  .project-column-1 {
    top: 0;
    left: 0;
    align-items: flex-start;
  }

  .project-1,
  .project-4 {
    width: 540px;
  }

  .project-1-info,
  .project-4-info {
    width: 93%;
    justify-content: space-between;
  }

  .project-1-image,
  .project-4-image {
    width: 220px;
  }

  .project-1-text,
  .project-4-text {
    width: 260px;
    height: 220px;
  }

.text {
width: 260px;
height: 100px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
 line-clamp: 4;
  /* display: -webkit-box;
  -webkit-box-direction: vertical; */
  }
}

@media (max-width: 600px) {
  .work {
    height: 1400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .project-1-int-button,
  .project-4-int-button {
    display: block;
  }
  .line {
    width: 360px;
  }

  .project-container {
    position: relative;
    gap: 20px;
    width: 260px;
    height: 1043px;
  }

  .project-column-1,
  .project-column-2 {
    position: absolute;
    width: 260px;
    flex-direction: column;
  }

  .project-column-2 {
    top: 53.6%;
    align-items: flex-end;
  }

  .project-column-1 {
    top: 0;
    left: 0;
    align-items: flex-start;
  }

  .project-1,
  .project-4 {
    width: 260px;
    height: 260px;
  }

  .project-1-info,
  .project-4-info {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .project-link {
    display: none;
  }

  .project-1-text,
  .project-4-text {
    width: 100%;
    height: auto;
  }

  .project-1-image,
  .project-4-image {
    width: 220px;
    height: 156px;
  }

  .project-1-text h3,
  .project-4-text h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--secondary-color);
  }

  .project-1-text,
  .project-4-text {
    width: 220px;
    height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
  }



  .text {
width: 200px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
  }
}

@media (max-width: 400px) {
  .work {
    height: 1288px;
    width: 100%;
  }
}

@media (max-width: 300px) {
  .work {
    height: 1288px;
    width: 100%;
  }
}

.skills h1 {
  font-size: 64px;
  text-align: right;
  font-weight: 300;
  font-family: Archivo;
}

.skills-header {
  display: flex;
  justify-content: center;
  width: 68%;
  margin-bottom: 20px;
}

.skills-line {
  margin-bottom: 20px;
}

.skills {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skills span {
  font-weight: bolder;
  font-family: Archivo;
  font-style: italic;
  font-size: 20px;
}

.skill-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 60%;
  gap: 18px;
}

.skill-container div {
  background-color: var(--primary-color);
  box-shadow: #d3d3d3 0px 10px 20px 0px;
  width: 200px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary-color);
  font-size: 18px;
  font-weight: bold;
  font-family: Archivo;
}

.skills i {
  margin-right: 10px;
}

@media (max-width: 768px) {
  .skills {
    height: 95vh;
  }

  .skill-container {
    width: 100%;
    flex-direction: row;
    align-items: center;
    height: 300px;
    flex-wrap: wrap;
  }

  .skill-container div {
    width: 130px;

    margin-bottom: 10px;
  }
}

.about {
  background-color: var(--secondary-color);
  color: var(--primary--color);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  flex-direction: row-reverse;
}

.about-image {
  width: 520px;
  height: 280px;
  overflow: hidden;
  object-fit: cover;
  border-radius: 20px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-header h2 {
  font-family: "Archivo";
  color: var(--primary-color);
}

.about-text {
  width: 50%;
  text-align: right;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text p {
  color: var(--primary-color);
  font-size: 1.6rem;
  font-family: "Archivo";
  font-weight: 550;
}

.about-text span {
  font-family: "Archivo";
  font-style: italic;
  font-weight: lighter;
  font-size: 1.62rem;
  color: var(--accent-color);
}

.about-text button {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

.cta a {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
}

.cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
  width: 100%;
}

@media (max-width: 800px) {
  .about {
    height: 100vh;
    width: 100%;
  }

  .about-content {
    flex-direction: column;
    width: 100%;
  }

  .about-image {
    width: 300px;
    height: 180px;
  }

  .about-text {
    width: 83%;
    text-align: center;
    padding: 20px;
  }

  .about-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .about-text p {
    width: 100%;
    text-align: center;
    padding: 0;
    font-size: 1.2rem;
  }

  .about-text span {
    font-size: 1.2rem;
  }

  .cta {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 1000px) {
  .about {
    height: 100vh;
    width: 100%;
  }

  .about-content {
    flex-direction: column;
    width: 100%;
  }

  .about-image {
    width: 300px;
    height: 180px;
  }

  .about-text {
    width: 83%;
    text-align: center;
    padding: 20px;
  }

  .about-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .about-text p {
    width: 100%;
    text-align: center;
    padding: 0;
    font-size: 1.2rem;
  }

  .about-text span {
    font-size: 1.2rem;
  }

  .cta {
    justify-content: center;
    width: 100%;
  }
}

.contact {
  background-color: #f0f0f0;
  color: var(--secondary-color);
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.contact-contents {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 80%;
}

.left-part {
  height: 100%;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.left-part h1 {
  font-size: 8rem;
  text-transform: uppercase;
  text-align: left;
  font-family: "Archivo";
  font-weight: lighter;
}

.right-part {
  height: 100%;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.input {
  background-color: var(--primary-color);
  height: 40px;
  font-size: 1.2rem;
  border: none;
  border-bottom: 2px solid #050505;
  margin-bottom: 30px;
  font-family: Archivo;
  font-weight: 300;
}

.input:nth-child(1) {
  margin-bottom: 20px;
}

input:focus {
  outline: none;
}

textarea {
  resize: none;
  font-size: 1.2rem;
}

textarea:focus {
  outline: none;
}

.right-part button {
  height: 60px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 1.4rem;
  font-weight: bold;
  border: none;
  border-radius: 0.2rem;
}

.contact-line {
  height: 2px;
  width: 80%;
  background-color: #333;
  margin-bottom: 20px;
}

.contact form {
  display: flex;
  flex-direction: column;
  width: 80%;
  gap: 20px;
}

@media (max-width: 900px) {
  .contact {
    height: 120%;
    margin: 60px 0;
  }

  .contact-contents {
    flex-direction: column;
    height: 120%;
    margin: 20px 0;
    gap: 20px;
  }

  .left-part h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-top: -20px;
  }

  .left-part,
  .right-part {
    width: 95%;
  }

  .right-part button {
    height: 45px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 0.2rem;
  }

  .left-part {
    width: 90%;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 1150px) {
  .left-part {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .left-part h1 {
    font-weight: bold;
    margin-top: -20px;
  }
}

.footer-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-menu a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 16px;
  font-family: Inter;
  font-weight: 300;
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.copyright {
  color: var(--primary-color);
  font-size: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: Archivo;
}

.footer {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.footer-content h3 {
  font-size: 3.6rem;
  margin-bottom: 20px;
  font-family: Archivo;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icons a {
  color: var(--primary-color);
  font-size: 24px;
  text-decoration: none;
  cursor: pointer;
}

