* {
    box-sizing: border-box;
  }
  body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
  }
  .sidebar {
    width: 300px;
    background-color: #fefefe;
    padding: 2rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    z-index: 10;
  }
  .name-section {
    text-align: center;
  }
  .greeting-gif {
    width: 100px;
    height: 100px;
    margin-bottom: -0.5rem;
  }
  .name-image {
    width: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-image: url('static.jpg');
    background-size: cover;
    background-position: center;
  }
  .name-image:hover {
    background-image: url('animated.gif');
  }
  .sidebar h1 {
    font-family: 'Futura', sans-serif;
    font-size: 2rem;
    color: black;
    margin: 0.5rem 0 0.5rem;
  }
  .sidebar p {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    text-align: center;
  }
  .sidebar .social-links {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    flex-wrap: wrap;
  }
  .sidebar .social-links img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.2s;
  }
  .sidebar .social-links img:hover {
    transform: scale(1.1);
  }
  .sidebar .contact-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    line-height: 1.4;
  }
  .main-wrapper {
    margin-left: 300px;
    flex: 1;
    overflow-y: auto;
    background-color: #fafafa;
    padding: 2rem;
  }
  .content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .project {
    position: relative;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    aspect-ratio: 1 / 1;
  }
  .project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .project:hover {
    transform: scale(1.02);
  }
  .project .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: white;
    padding: 1rem;
    font-weight: bold;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .project:hover .overlay {
    opacity: 1;
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 4vh 1rem;
  }
  .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
  }
  .modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: #333;
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10;
  }
  .markdown img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
  }
  .markdown .side-image {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  .markdown .side-image img {
    width: 40%;
  }
  .markdown .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .markdown .gallery img {
    height: 150px;
    object-fit: cover;
    flex: 1 1 auto;
  }
  @media (max-width: 1024px) {
    .content {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 768px) {
    body {
      flex-direction: column;
    }
    .sidebar {
      position: relative;
      width: 100%;
      height: auto;
      box-shadow: none;
    }
    .main-wrapper {
      margin-left: 0;
      padding: 1rem;
    }
    .content {
      grid-template-columns: repeat(1, 1fr);
    }
    .markdown .side-image {
      flex-direction: column;
    }
    .markdown .side-image img {
      width: 100%;
    }
  }





  .project-link {
  text-decoration: none;
  color: inherit;
}

.video-project video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-project:hover video {
  autoplay: true; 
}





.project img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: opacity 0.3s;
}

