* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Ensures all elements respect container sizes */
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  body {
    background-color: #000000; 
    font-family: "Gowun Dodum", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
    max-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);  
  }  
  
  
  /* Logo image styling */
  .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;
  }
  
  #gif img {
    width: 100vw;
    height: auto; 
  }


  h1, h2 {
    font-family: "Protest Guerrilla", serif;
    font-weight: 400;
    font-size: 3.5rem;
    font-style: normal;
    color: #dbfc9e; 
    margin-top: 12rem;
    margin-bottom: 6rem; 
    font-weight: bold;
    text-align: center; 
  }

  #redesign {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
  justify-content: center;
  align-items: cent
  }
  
  #redesign a {
    display: block; 
    text-align: center; 
  }
  
  #redesign img {
    width: 100%;
    max-width: 90vw; /* Prevents cut-off */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
  }
  
  #redesign img:hover {
    transform: scale(1.05); 
  }

  .project {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 10px;
    text-align: center;
  }

  .project h1 {
    font-size: 2rem;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }
  
  /* Images */
  .project img {
    width: 100%;
    max-width: 90vw; /* Prevent cut-off */
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
  }  
  
  .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: grid;  
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
    grid-auto-flow: dense;
    align-items: center;
    justify-content: center;
  }
  
  .socials img {
    width: 100px;  
    height: 100px; 
    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);
  }
  
  .socials a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%; 
  }
  
  
  @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%;
    }

    #redesign {
      grid-template-columns: 1fr 1fr; /* Two columns */
    }
  
    .project {
      grid-template-columns: 1fr 1fr; /* Two columns */
      align-items: center; /* Align text & image */
      text-align: left;
    }
  
    .project h1 {
      text-align: right; /* Align heading to the right */
      font-size: 2.5rem;
    }
  
    .project img {
      max-width: 100%; /* Adjust for larger screens */
    }
  }
  
  /* For Mobile Screens */
  @media only screen and (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: flex-start;
      padding: 1rem;
      justify-content: space-between;
    }
  
    .hamburger {
      display: flex; 
    }

    h1, h2 {
      font-size: 2rem;
      text-align: center;
      max-width: 90%;
      margin: 20px auto;
    }

    #redesign {
      display: grid;
      grid-template-columns: 1fr; /* Single column on mobile */
      gap: 20px;
      max-width: 100%;
      margin: 0 auto;
      padding: 20px;
      justify-content: center;
      align-items: center;
      text-align: center;
    }
  
    #redesign a {
      display: flex;
      justify-content: center; /* Center image inside the link */
      align-items: center;
      width: 100%;
    }
  
    #redesign img {
      width: 100%; /* Makes sure images fit inside */
      max-width: 100%; /* Prevents them from exceeding screen width */
      height: auto; /* Keeps aspect ratio */
      object-fit: cover;
      border-radius: 8px;
      display: block; /* Prevents alignment issues */
      margin: 0 auto; /* Centers images */
    }

    .project img {
      width: 100%;
      max-width: 90vw; /* Prevents cut-off */
      height: auto;
      display: block;
      margin: 0 auto;
      border-radius: 8px;
    }
    
    /* Headings */
    .project h1 {
      font-size: 2rem;
      text-align: center;
      max-width: 90%;
      margin: 20px auto;
    }

    iframe {
      width: 100% !important;
      max-width: 100vw;
    }

    .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;
    }
  
    .container {
      display: flex;
      height: 40vh;
      margin-top: 65px; 
    }
  
  }
  
  .nav-links.active {
    display: flex;
  }
  
  /* 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;
    }
    

  }
  