/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(-45deg, #0d0d0d, #1a1a1a, #261100);
    background-size: 400% 400%;
    animation: bgShift 30s ease infinite;
    color: white;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

@keyframes bgShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Intro Section Layout */
.intro {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Left Side */
.intro-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.intro-left h1 {
    font-family: 'Space Mono', monospace;
    font-size: 4.5rem;
    margin-bottom: 0.25rem;
}

.title {
    font-size: 1.25rem;
    color: #aaa;
    margin-bottom: 28rem;
}

/* Right Side Image */
.intro-right img {
    width: 360px;
    /* was 220px */
    height: 660px;
    /* was 390px */
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid transparent;
    background-image:
        linear-gradient(#0d0d0d, #0d0d0d),
        linear-gradient(135deg, orange, deepskyblue);
    background-origin: border-box;
    background-clip: content-box, border-box;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(255, 165, 0, 0.4),
        0 0 25px rgba(0, 191, 255, 0.3);
}

#profile-photo {
    transition: transform 0.2s ease;
    will-change: transform;
    perspective: 1000px;
}



/* Info Row */
.info-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.info-block {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    flex: 1 1 200px;
}

.icon {
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.info-block h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: white;
}

.info-block p {
    font-size: 0.95rem;
    color: #aaa;
}

.about {
    margin-top: 6rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    color: #ccc;
}

.about p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #aaa;
    line-height: 1.7;
}

.about h2 {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 6rem auto;
    padding: 0 2rem;
    max-width: 1100px;
}


.project {
    text-align: center;
    cursor: crosshair;
}

.project:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
  }
  

.project-image {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
  }

.project-image img,
.project-image video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 20px 10px rgba(0, 0, 0, 0.2));
}


/* Example background colors */
.FYP {
    background: linear-gradient(135deg, #1e1e1e, #3c3c3c);
}

.youtube {
    background: linear-gradient(135deg, #1a1a1a, #ff1f1f);
}

.soundmap {
    background: linear-gradient(135deg, #1a1f3f, #3f5ba9);
}

.videoedit {
    background: linear-gradient(135deg, #3a2c1d, #5c3f26);
}

.projects {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin: 6rem auto;
    padding: 0 2rem;
    max-width: 1200px;
  }

  .projects p {
    font-size: 0.95rem;
    color: #999; /* gray for the rest */
    line-height: 1.4;
  }
  
  .projects p .highlight {
    color: white;     /* keep YouTube white */
    font-weight: bold;
  }
  
  

  .project.span-1 {
    grid-column: span 2;
  }
  
  .project.span-2 {
    grid-column: span 4;
  }
  
  @media (max-width: 768px) {
    .projects {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .project.span-1,
    .project.span-2 {
      grid-column: span 2;
    }
  }
  
  .contact a {
    color: #aaa;             /* or #aaa, or whatever you want */
  text-decoration: none;
  }


  /* Modal overlay */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden; /* prevents scroll on background */
  }
  
  .modal-overlay.active {
    display: flex;
  }
  
  /* Scrollable modal content box */
  .modal-content {
    background: #111;
    padding: 2rem;
    border-radius: 16px;
    max-width: 700px;
    max-height: 90vh; /* limits height */
    width: 90%;
    overflow-y: auto; /* enables internal scrolling */
    padding-right: 1rem;
    position: relative;
    color: #eee;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    scrollbar-width: thin;
  }
  
  /* Optional: custom scrollbar for Webkit browsers */
  .modal-content::-webkit-scrollbar {
    width: 6px;
  }
  
  .modal-content::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 6px;
  }
  
  
  .close-modal {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.5rem;
    background: none;
    color: #fff;
    border: none;
    cursor: pointer;
  }
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #111;
  padding: 2rem;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  position: relative;
  color: #eee;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.5rem;
  background: none;
  color: #fff;
  border: none;
  cursor: pointer;
}
  
.modal-content img,
.modal-content video {
  max-width: 100%;
  border-radius: 12px;
  margin: 1.5rem 0;
  display: block;
}

.modal-content h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #fff;
}

.modal-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  color: #aaa;
}

.modal-content a {
  color: #66ccff;
  text-decoration: none;
  border-bottom: 1px solid #66ccff;
}

.modal-content a:hover {
  opacity: 0.8;
}

.cv-download {
    text-align: center;
    margin: 6rem 0 4rem;
    font-size: 1.1rem;
  }
  
  .cv-download p {
    color: #aaa;
  }
  
  .cv-download a {
    color: white;
    border-bottom: 1px solid white;
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
  
  .cv-download a:hover {
    opacity: 0.75;
  }
  