/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light text color */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

header {
    background-color: #3e3e3e; /* Darker header background */
    color: #ffffff; /* White text color */
    text-align: center;
    padding: 20px 0;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section {
    background-color: #3e3e3e; /* Darker section background */
    color: #e0e0e0; /* Light text color */
    margin: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
}

h2 {
    color: #ffffff; /* White text color */
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin: 10px 0;
}

a {
    color: #007bff; /* Blue link color */
    text-decoration: none;
}

a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: #3e3e3e; /* Darker footer background */
    color: #e0e0e0; /* Light text color */
    width: 100%;
}

footer a {
    color: #007bff; /* Blue link color */
    text-decoration: none;
}

footer a:hover {
    color: #0056b3; /* Darker blue on hover */
    text-decoration: underline;
}

.button-link {
    display: inline-block;
    padding: 8px 5px;
    margin: 5px 0;
    background-color: #8B5CF6; /* Indigo-800 */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
  }
  
.button-link:hover {
    background-color: #7C3AED; /* Indigo-700 */
    transform: scale(1.03);
    color: black;
    text-decoration: none;
  }
  
/* 👇 Add this CSS block */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 10px; /* optional */
  }
  
  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  .image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 1rem auto; /* center it */
    overflow: hidden;
    border-radius: 50%; /* makes it circular */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 4px solid #8B5CF6;
    object-fit: cover;
  }
  
  .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
  .project {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ccc;
  }
  
  .project h3 {
    margin-bottom: 0.5rem;
  }
  
  .project p {
    margin-bottom: 1rem;
  }

  .project h3 a.button-link {
    font-size: 16px;
    font-weight: 600;
    padding: 12px 16px;
  }

  .links-intro {
    text-align: center;
    color: #b0b0b0;
    font-style: italic;
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }

  .link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  @media (max-width: 768px) {
    .link-grid {
      grid-template-columns: repeat(2, 1fr);
      max-width: 400px;
    }
  }

  @media (max-width: 480px) {
    .link-grid {
      grid-template-columns: 1fr;
      max-width: 250px;
    }
  }
  
  .button-link {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 16px 20px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: white;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
  }

  .button-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
  }

  .button-link:hover::before {
    left: 100%;
  }
  
  .button-link:hover {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    color: white;
    text-decoration: none;
  }

  .link-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  }

  /* Specific link colors */
  .button-link.linkedin:hover {
    background: linear-gradient(135deg, #0077B5, #005885);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
  }

  .button-link.youtube:hover {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
  }

  .button-link.github:hover {
    background: linear-gradient(135deg, #333, #222);
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
  }

  .button-link.handshake:hover {
    background: linear-gradient(135deg, #00A651, #008A42);
    box-shadow: 0 8px 25px rgba(0, 166, 81, 0.4);
  }

  .button-link.leetcode:hover {
    background: linear-gradient(135deg, #FFA116, #FF8C00);
    box-shadow: 0 8px 25px rgba(255, 161, 22, 0.4);
  }

  .button-link.chess:hover {
    background: linear-gradient(135deg, #7FA650, #6B8E3A);
    box-shadow: 0 8px 25px rgba(127, 166, 80, 0.4);
  }

  .navbar {
    background-color: #8B5CF6; /* dark grey */
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .nav-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }
  
  .nav-container a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
  }
  
  .nav-container a:hover {
    background-color: #8B5CF6; /* purple accent */
    color: black;
    transform: scale(1.03);
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .project-card {
    background-color: #2D2D2D;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .project-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: white;
  }
  
  .project-card p {
    margin: 0;
    color: lightgray;
    line-height: 1.4;
  }
  
  .project-card .button-link {
    align-self: start;
  }
  
  .project-card .video-container {
    border-radius: 8px;
    overflow: hidden;
  }

  /* Resume container styles */
  .resume-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .resume-pdf {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: white;
    width: 100%;
    max-width: 800px;
    height: 1000px;
  }

  @media (max-width: 768px) {
    .resume-pdf {
      height: 600px;
      max-width: 100%;
    }
  }

  @media (max-width: 480px) {
    .resume-pdf {
      height: 500px;
      max-width: 100%;
    }
  }

  .resume-download {
    text-align: center;
  }

  .resume-download .button-link {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  }

  .resume-download .button-link:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  }
  
