@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;300;600;700;800;900&display=swap");

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

body,
html {
  font-size: 1rem;
  font-family: "Bricolage Grotesque", sans-serif;
  color: #ffffff;
  background: #242424;
  padding: 0;
  margin: 0;
  overscroll-behavior: none;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-style: normal;
  overflow: hidden;
}

header {
  padding: 2em 4em 2em 4em;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  width: 100%;
}

header h1 {
  font-size: 14px;
  font-weight: 300;
}

header p {
  font-size: 12px;
  padding-right: 1em;
}

header .about {
  text-align: right;
  min-width: 200px;
  padding-left: 1em;
}

header .connect {
  text-align: left;
  min-width: 200px;
}


section .project-list {
  display: flex;
  justify-content: center; 
  align-items: center;     
  width: 100%;
  height: 100vh;          
  position: relative;      
}

.works-list img {
  opacity: 0;
}

.projects::-webkit-scrollbar {
  display: none;
}

.work {
  max-width: 800px;
  padding: 2em;
  text-align: center;
}

.work a img {
  opacity: 0;
  pointer-events: none; 
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.8s ease, transform 0.8s ease;
  z-index: 9999;
  max-height: 350px;
}

.work a:hover img {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.work a {
  font-size: 24px;
  font-weight: 200;
}

.logo img {
  width: 150px;
}

a {
  text-decoration: none;
  padding-bottom: 4px;
  transition: 0.4s;
  color: #ffffff;
}

a:hover {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.glassy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(206, 10, 10, 0.01);
  backdrop-filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

canvas {
  z-index: 0;
}

.container {
  position: absolute;
  width: 100%;
  height: 100%;
  padding-right: 40px;
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: baseline;
  align-items: center;
  letter-spacing: -0.02em;
  overflow: hidden;
  margin: 0 auto;
  z-index: 1000;
}

@media (max-width: 1080px) {

  .works-list a img,
  .work a img {
    max-width: 250px;
    top: 60%; 
  }

  header {
    flex-direction: column;
    justify-content: left;
  }

  header .about {
    text-align: center;
    display: none;
  }
  
  header .connect {
    text-align: center;
    display: none;
  }

  header .img {
    margin: 2em;
  }

  .logo img {
    width: 150px;
    margin: 14px;
  }

  .work a {
    font-size: 16px;
    font-weight: 300;
  }

  .work {
    padding: 1em;
    text-align: center;
    line-height: 1.3;
  }
  

}