html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #000000; 
  font-family: "Gowun Dodum", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}


nav {
  position: fixed;
  top: 0;
  left: 0; 
  width: 100%; 
  height: 65px;
  padding: 1.5rem 3rem;
  background-color: rgba(21, 21, 21, 1);
  display: flex;
  justify-content: space-between;  
  align-items: center;  
  width: 100%;
  z-index: 10;
}


.logo-link {
  position: relative;        
  width: 50px;                
  height: 50px;               
  border-radius: 50%;         
  background-color: #ffffff;  
  transition: background-color 0.3s, box-shadow 0.3s; 
  overflow: hidden;           
}

.logo-link:hover {
  background-color: #efefef; 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);  
}


.nav-logo {
  position: absolute;   
  top: 50%;              
  left: 50%;             
  transform: translate(-50%, -50%); 
  width: 60px;          
  height: 60px;         
  object-fit: contain;  
} 

nav a {
  font-weight: 200;
  text-decoration: none;
  color: #efefef;
  font-size: 1.33rem;
  padding: 0.5rem 1rem;
}

nav a:hover {
  color: #aacc83;
}


.hamburger {
  display: none; 
  position: absolute;
  top: 1rem;  
  right: 3rem; 
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.bar {
  width: 30px;
  height: 4px;
  background-color: #efefef;
  border-radius: 5px;
}

h1 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-top: 5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

#work {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 20px; 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 20px; 
}

#work a {
  display: block; 
  text-align: center; 
  justify-content: center;      /* Center image horizontally */
  align-items: center;  
}

#work img {
  width: 100%; 
  height: 250px; 
  object-fit: cover;
  border-radius: 8px; 
  transition: transform 0.3s ease; 
}

#work img:hover {
  transform: scale(1.05); 
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #000000;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  display: none;
}

.scroll-to-top:hover {
  background-color: #002d00;
}

footer {
  background: rgb(0, 0, 0);
  text-align: center;
  padding: 2em;
  position: relative;
}

.pflip {
  color: #efefef;
}

.hilight {
  color: rgb(213, 206, 187);
}

footer a {
  color: rgb(213, 206, 187);
  font-weight: 600;
  text-decoration: none;
}

.socials {
  display: flex; 
  justify-content: center;
  gap: 2rem; 
}

.socials img {
  max-width: 3.75rem; /* Maximum width of the icon */
  max-height: 3.75rem; 
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.socials a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
  filter: brightness(1.2);
}

/* Media Queries */
@media only screen and (min-width: 768px) {
  nav {
    justify-content: space-between;
  }

  nav a {
    font-size: 1.5rem;
  }

  .hamburger {
    display: none; 
  }

  .nav-logo {
    margin-right: 40px; 
  }

  .nav-links {
    display: flex;
    justify-content: space-evenly; 
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    justify-content: space-between;
  }

  .hamburger {
    display: flex; 
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    right: 0;
    background-color: rgba(21, 21, 21, 1);
    width: 100%;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.5rem;
    padding: 1rem 0;
  }

 
  #work {
    grid-template-columns: repeat(2, 1fr);
  }

  #work img {
    margin: 20px 0; 
    width: 100%;
    max-width: none; 
  }


  footer {
    font-size: 0.8rem;
  }

  .socials {
    flex-direction: row; 
    justify-content: center;
  }

  .socials img {
    width: 60px; 
    height: 60px;
  }
}

/* For Mobile Devices */
@media only screen and (max-width: 480px) {
  nav {
      grid-template-columns: 1fr;
      padding: 1rem;
  }

  .navbar-toggle {
      display: block;
  }

  .navbar-menu {
      display: none;
  }

  .navbar-menu.active {
      display: block;
  } 

  #work {
    grid-template-columns: 1fr; 
  }

}


