@import url('https://fonts.googleapis.com/css2?family=Cutive+Mono&family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Noto+Sans+Mono:wght@100..900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

::before,
::after {
    box-sizing:border-box
}
* {
    max-height: 100%;
    box-sizing:border-box;
}

html {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    max-width: 100dvw;
    font-family: "Noto Sans Mono";
    background-color: rgb(254, 255, 232);
}

body {
    margin: 0;
    overflow-x: hidden;
}

main {
    padding: 0;
    margin: 0; 
}

aside {
    padding: 5dvh 0;
    position: relative;
}

a {
    text-decoration: none;
    color: black;
}

a:hover {
    text-decoration: underline;
    text-decoration-color: red;
    text-decoration-line: underline;
}

canvas {
    z-index: 10;
    height: 100%;
}

nav {
    margin: 0;
    padding: 0;
    display: grid;
    position: sticky;
    grid-template-columns: auto-fill;
    grid-template-rows: 1fr;
    width: 100svw;
    justify-content: right;
    z-index: 100;
}

.menu-item{
    text-align: right;
    text-decoration: none;
    font-size: clamp(1.1rem, 18px, 1.25rem);
    font-weight: 500;
    color: black;
}

ul {
    padding: 0 2rem;
    position: relative;
    gap: 2em;
}

li {
    list-style-type: none;
    max-width: fit-content;
    backdrop-filter: blur(30px);
}

.canvas_body {
    position: absolute;
    padding: 0;
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* .menu-item a:hover{
    text-decoration-color: red;
    text-decoration: line-through;
} */

/* .page-title {
    font-family: monospace;
    font-size: clamp(4rem, 72px, 6rem);
    font-weight: 700;
    color: black;
    position: absolute;
} */

.project-info {
    padding: 0 10dvw;
}

.link {
    text-decoration: underline;
    text-decoration-color: red;
    text-decoration-line: underline;
}

p {
    position: relative;
    text-align: left;
    text-justify: newspaper;
    font-size: clamp(1.1rem, 18px, 1.3rem);
    line-height: 1.8rem;
}

/* .page-title a{
    text-decoration: none;
    font-family: monospace;
    font-size: clamp(4rem, 72px, 6rem);
    font-weight: 500;
    color: black;
} */

/* section {
    position: relative;
    z-index: 100;
} */

.content-grid {
    display: grid;
    padding: 0;
    margin: 0;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(1fr 2fr);
}

h1 {
    font-size: clamp(2rem, 36px, 5rem);
    font-weight: 700;
    color: black;
    padding: 0;
}

h2 {
    font-size: clamp(1.5rem, 28px, 3rem);
    font-weight: 600;
    color: black;
}

h3 {
    font-size: clamp(1rem, 18px, 2rem);
    font-weight: 500;
    color: black;
}

img,
video {
    display: block;
    padding: 0;
    margin: 0;
    max-width: 100%;
}

footer {
    padding-left: 10dvw;
    margin-top: auto;
}

.footer-copyright {
    text-align: left;
    line-height: 1rem;
    margin: 0;
    padding: 0;
    font-size: clamp(0.7rem, 10px, 1rem);
}

.footer-copyright a {
    text-align: right;
    line-height: 1rem;
    margin: 0;
    padding: 0;
}
  
  /* Fullscreen Loading Screen */
  #loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: white;
    color: black;
    z-index: 1000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    opacity: 1;
    visibility: visible;
  }
  
  /* Fade-out animation for loading screen */
  #loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  /* Spinner Loader */
  .loader.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid red;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Bouncing Dots Loader */
  .loader.bouncing-dots {
    display: flex;
    gap: 6px;
  }
  
  .loader.bouncing-dots div {
    width: 12px;
    height: 12px;
    background-color: red;
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
  }
  
  .loader.bouncing-dots div:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .loader.bouncing-dots div:nth-child(3) {
    animation-delay: 0.4s;
  }
  
  @keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
  }
  
  /* Pulse Loader */
  .loader.pulse {
    width: 30px;
    height: 30px;
    background-color: red;
    border-radius: 50%;
    animation: pulse 1s infinite ease-in-out;
  }
  
  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
  }
  
  /* Main Content */
  #main-content.hidden {
    display: none;
  }
  


  
  /* Portfolio Grid */
    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem;
      padding: 5rem;
      max-width: 1500px;
      margin: 0 auto;
    }

    /* Project Card */
    .project-card {
      background-color: #fff;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      cursor: pointer;
      transition: transform 0.2s ease-in-out;
      position: relative;
    }

    .project-card:hover {
      transform: scale(1.05);
    }

    .project-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
    }

    .project-content {
      padding: 15px;
    }

    .project-title {
      font-size: 1.25em;
      margin: 0;
    }

    .project-description {
      font-size: 0.9em;
      color: #666;
      margin: 10px 0;
    }

    /* Modal Styles */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    .modal-content {
      background-color: #fff;
      border-radius: 8px;
      width: 80%;
      max-width: 600px;
      padding: 20px;
      position: relative;
      animation: fadeIn 0.3s;
    }

    .modal-content h2 {
      margin-top: 0;
    }

    .modal-close {
      position: absolute;
      top: 10px;
      right: 10px;
      background: #333;
      color: #fff;
      border: none;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      font-size: 1.1em;
      cursor: pointer;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media only screen and (min-width: 600px) {
      p {
        text-align: justify;
      }
    }