/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.8em;
    color: #2c3e50;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 0.5em;
  }

  /* Underline effect for section titles */
  h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db; /* Accent color */
  }

  p {
    margin-bottom: 1em;
    color: #555;
  }

  a {
    text-decoration: none;
    color: #3498db; /* Accent color */
    transition: color 0.3s ease;
  }

  a:hover {
    color: #2980b9;
  }

  ul {
    list-style: none;
  }

  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .content-section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .button, .cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    text-align: center;
  }

  .button:hover, .cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
  }

  /* Header & Navigation */
  #header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
  }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
  }

  .logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
  }

  .nav-links {
    display: flex;
  }

  .nav-links li {
    margin-left: 25px;
  }

  .nav-links a {
    color: #333;
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after { /* Add 'active' class via JS */
    width: 100%;
  }

  .burger {
    display: none;
    cursor: pointer;
  }

  .burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
  }

  /* Hero Section */
  #hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Full viewport height */
    text-align: center;
    color: #fff;
    /* === UPDATED BACKGROUND === */
    /* Replace 'path/to/your/outer-space-image.jpg' with your actual image URL */
    background: linear-gradient(rgba(20, 20, 40, 0.7), rgba(20, 20, 40, 0.7)), url('images/space.jpg') no-repeat center center/cover;
    /* Fallback solid color if image fails */
    background-color: #1a1a2e; /* Dark blue/purple fallback */
    padding: 0 20px;
    margin-top: 60px; /* Adjust if header height changes */
  }

  .hero-content {
    max-width: 700px;
    animation: fadeIn 1s ease-in-out;
  }

  #hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5em;
    color: #fff; /* Ensure text is white */
  }

  #hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
    color: #e0e0e0; /* Light grey/white for readability */
  }

  .cta-button {
    font-size: 1.1rem;
    padding: 12px 25px;
    /* Optional: Adjust button color for space theme */
    /* background-color: #e91e63; */
  }
  /* .cta-button:hover {
    background-color: #c2185b;
  } */






/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    opacity: 0; /* Start hidden */
    transform: translateX(-50px); /* Start slightly off to the left */
    animation: fadeInSlideIn 1.5s forwards;
  }
  
  .about-text {
    flex: 2;
    opacity: 0; /* Start hidden */
    transform: translateY(50px); /* Start below the screen */
    animation: fadeInUp 1.5s forwards;
    animation-delay: 0.3s; /* Delay for text to appear after the image */
  }
  
  .profile-pic {
    flex: 1;
    max-width: 250px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Show pointer cursor to indicate interaction */
    opacity: 0; /* Start hidden */
    transform: scale(0.9); /* Start smaller */
    animation: profilePicAnimate 1.5s forwards;
    animation-delay: 0.5s; /* Delay for image to appear after text */
  }
  
  /* Animation for fade-in and sliding */
  @keyframes fadeInSlideIn {
    to {
      opacity: 1;
      transform: translateX(0); /* Slide into normal position */
    }
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0); /* Move into normal position */
    }
  }
  
  @keyframes profilePicAnimate {
    to {
      opacity: 1;
      transform: scale(1); /* Grow to normal size */
    }
  }
  
  /* Hover effect for profile picture */
  .profile-pic:hover {
    transform: scale(1.1); /* Slight zoom on hover */
    transition: transform 0.3s ease;
  }
  
  /* Smooth scrolling for the entire page */
  html {
    scroll-behavior: smooth;
  }
  





  /* About Section
  .about-content {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .about-text {
    flex: 2;
  }

  .profile-pic {
    flex: 1;
    max-width: 250px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  } */

  /* Projects Section */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    
  }

  .project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  .project-card img, .placeholder-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .placeholder-img {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
  }

  .project-card h3 {
    font-family: 'Poppins', sans-serif; /* Use sans-serif for project titles */
    font-size: 1.4rem;
    margin: 15px 20px 10px;
    color: #34495e;
  }

  .project-card p {
    font-size: 0.95rem;
    padding: 0 20px;
    flex-grow: 1; /* Make text take available space */
    color: #555;
  }

  .project-links {
    padding: 15px 20px;
    margin-top: auto; /* Push links to the bottom */
    display: flex;
    gap: 10px;
  }

  .project-links .button {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  /* Skills Section */
  .skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
  }

  .skills-list li {
    background-color: #eaf2f8; /* Light blue background */
    color: #34495e; /* Dark blue text */
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
  }

  .skills-list li:hover {
    transform: scale(1.05);
  }

  /* Contact Section */
  #contact {
    background: linear-gradient(to right, #043b32, #2ab69c); 
    
  }

  #contact-form {
    max-width: 600px;
    margin: 30px auto;
    display: grid;
    gap: 15px;
  }

  #contact-form input,
  #contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
  }

  #contact-form textarea {
    resize: vertical;
  }

  #contact-form button {
    width: fit-content;
    justify-self: center; /* Center button */
  }

  .contact-links {
    text-align: center;
    margin-top: 40px;
  }

  .contact-links a {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
  }

  .social-icons {
    margin-bottom: 20px;
  }

  .social-icons a {
    display: inline-block;
    margin: 0 10px;
    font-size: 1.5rem; /* Placeholder size */
    /* Replace text with actual icons (e.g., Font Awesome) */
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #bdc3c7;
    color: #fff;
    text-align: center;
  }
  .social-icons a:hover {
    background-color: #3498db;
  }

  .contact-links .button {
    margin-top: 10px;
  }

  /* Footer */
  footer {
    background-color: #2c3e50; /* Dark footer */
    color: #ecf0f1;
    text-align: center;
    padding: 20px;
    margin-top: auto; /* Push footer to bottom if content is short */
  }

  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Add fade-in for sections on scroll (requires JS) */
  .content-section.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .content-section.visible {
    opacity: 1;
    transform: translateY(0);
  }


  /* Responsive Design */
  @media (max-width: 768px) {
    h1 {
      font-size: 2.5rem;
    }
    #hero h1 {
      font-size: 2.8rem;
    }
    h2 {
      font-size: 1.8rem;
    }

    .nav-links {
      position: fixed;
      right: -100%; /* Start off-screen */
      top: 60px; /* Match header height */
      height: calc(100vh - 60px);
      width: 60%;
      background-color: #fff;
      flex-direction: column;
      align-items: center;
      justify-content: space-around;
      box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
      transition: right 0.5s ease-in-out;
      padding: 20px 0;
    }

    .nav-links.nav-active {
      right: 0; /* Slide in */
    }

    .nav-links li {
      margin-left: 0;
      opacity: 0; /* For staggered animation */
    }

    .burger {
      display: block;
    }

    /* Burger Animation */
    .toggle .line1 {
      transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
      opacity: 0;
    }
    .toggle .line3 {
      transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Staggered Nav Link Animation */
    @keyframes navLinkFade {
      from {
        opacity: 0;
        transform: translateX(50px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .about-content {
      flex-direction: column;
      text-align: center;
    }

    .profile-pic {
      margin-top: 30px;
      max-width: 200px;
    }

    .project-grid {
      grid-template-columns: 1fr; /* Stack projects on smaller screens */
    }
  }

  @media (max-width: 480px) {
    h1 {
      font-size: 2rem;
    }
     #hero h1 {
      font-size: 2.2rem;
    }
    #hero p {
      font-size: 1rem;
    }
    .content-section {
      padding: 60px 15px;
    }
    .nav-links {
      width: 80%; /* Wider nav on very small screens */
    }
  }

  .interest {
    text-align: center;
    color: whitesmoke;
  }