body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #0f1117;
    color: #e6e6e6;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .container {
    display: flex;
    flex-direction: row;
    background: linear-gradient(135deg, #1e1f23, #17181c);  
    padding: 40px;
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    margin-top: 40px;

    /* Depth & glow */
    box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.3);
  
  
    /* Optional backdrop blur for subtle glassiness */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
    background: rgba(30, 31, 35, 0.85); /* Nearly opaque, but still see stars */  }


  .container > * {
    position: relative;
    z-index: 1;
  }


      
  .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.09), transparent);
    pointer-events: none;
    border-radius: 16px;
    z-index: 1;
  }

  
  .left {
    flex: 1;
    text-align: center;
    padding-right: 40px;
  }
  
  .left .name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
  }
  
  .left .title {
    font-size: 16px;
    color: #00ffe0;
    margin-bottom: 20px;
  }
  
  .icons a {
    margin: 0 6px;
    font-size: 22px;
    text-decoration: none;
    display: inline-block;
    filter: drop-shadow(0 0 1px #000);
  }
  
  .badges {
    margin-top: 25px;
  }
  
  .badges img,
  .badges svg {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
  }
  
  .right {
    flex: 2;
    padding-left: 20px;
  }
  
  .right h1 {
    font-size: 32px;
    color: #ffffff;
    margin-bottom: 12px;
  }
  
  .right p {
    font-size: 16px;
    font-weight: 400; /* or even 500 */
    line-height: 1.6;
    color: #c0c0c0;
  }
  
  .right ul {
    margin-top: 20px;
    padding-left: 20px;
    list-style-type: disc;
    color: #e6e6e6;
  }
  
  .right li {
    margin-bottom: 10px;
  }
  
  .right a {
    color: #00ffe0;
    text-decoration: none;
  }
  
  .right a:hover {
    text-decoration: underline;
  }
  
  /* === PROJECT GRID SECTION === */
  
  .projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
    max-width: 1350px;
    width: 100%;
    margin: 40px auto;
    padding: 0 40px;
    box-sizing: border-box;
    
  }
  

    .project-card {
    position: relative;
    background: #1e1f23;
    color: #ffffff;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.6),
    inset 0 0 4px rgba(255, 255, 255, 0.03);
  
    transition: transform 0.1s ease, 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: rgba(30, 31, 35, 0.85); /* Nearly opaque, but still see stars */    
    }
    
    .project-card:hover {
        background: linear-gradient(135deg, #150c70, #f16bae);
        background-size: 400% 400%;
        transform: translateY(-14px) scale(1.01);
        color: #ffffff;
      }
      

    .project-card:hover::before {
        opacity: 1;
    }
    
    .project-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom right, rgba(255,255,255,0.09), transparent);
        pointer-events: none;
        border-radius: 16px;
        z-index: 1;
      }


    .project-card h3 {
      font-size: 20px;
      font-weight: 600;
      color: #ffffff;
    }
    
    .project-card p {
      font-size: 14px;
      line-height: 1.6;
      font-weight: 300;
      color: #bbbbbb;
          margin-bottom: 20px;
    }
    
  .tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .tech-icons img {
    height: 28px;
    width: auto;
  }
  
  .link {
    color: #ff5722;
    font-size: 14px;
    margin-bottom: 8px;
    text-decoration: none;
  }
  
  .link:hover {
    text-decoration: underline;
  }
  
  .github-icon img {
    height: 24px;
    width: 24px;
    filter: brightness(0) invert(1);
  }
  
  #stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .wave-ui {
    text-align: center;
    margin-top: 40px;
    font-size: 22px;
    font-weight: bold;
    color: #00e0c0; /* that electric blue-green */
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  
  #waveButton {
    margin-top: 15px;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    background-color: transparent;
    border: 2px solid #00e0c0;
    color: #00e0c0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  #waveButton:hover {
    background-color: #00e0c0;
    color: #000;
  }
  
  #waveMessage {
    margin-top: 10px;
  }

  .projects-section {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  .projectsHeader {
    margin-bottom: 10px;
    text-align: center;
    color: white;
    font-size: 24px;
  }

  .project-writeup {
    max-width: 700px; /* narrower width for clean reading */
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.02); /* subtle readable background */
    border-radius: 12px;
    text-align: left; /* better for paragraphs */
    color: #f0f0f0; /* brighter for better contrast */
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* mild card effect */
  }
  
  .project-writeup p {
    margin-bottom: 18px;
  }
  
  .project-writeup a {
    color: #00ffe0;
    text-decoration: none;
  }
  
  .project-writeup a:hover {
    text-decoration: underline;
  }
  
  .project-writeup code {
    font-family: monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #00ffe0;
  }
  

/* Responsive stacking for the left/right container layout */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 20px;
  }

  .left, .right {
    padding: 0;
    text-align: center;
  }

  .right {
    margin-top: 30px;
  }
}

/* Responsive project card grid */
@media (max-width: 768px) {
  .projects {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .project-card {
    margin-bottom: 20px;
  }
}