html {
    scroll-behavior: smooth;
  }
  
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
  }
  header {
    text-align: center;
    padding: 2rem;
    background-color: #222;
    color: white;
  }

  #profile {
    padding: 40px 20px;
  }
  
  .profile-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .profile-text {
    flex: 1;
    min-width: 280px;
  }
  
  .profile-text h2 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .profile-text p {
    font-size: 16px;
    line-height: 1.6;
  }
  

  .download-icon {
    margin-left: 8px;
  }
  
  .profile-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    margin-top: 20px;
  }
  
  .profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* round shape */
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  .profile-image img:hover{
    transform: scale(1.1);
  }
  
  /* Mobile Responsive */
  @media (max-width: 768px) {
    .profile-container {
      flex-direction: column;
      text-align: center;
    }
  
    .profile-image {
      margin-bottom: 20px;
      order: -1; /* Profile image comes first */
    }
  
    .profile-text {
      order: 1; /* Description comes after the profile image */
    }
  }
  .resume-button {
    position: relative; /* Important for shine effect */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: black;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    overflow: hidden; /* Needed for shine effect */
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 16px;
  }
  
  .resume-button:hover {
    background-color: #333;
    transform: scale(1.05);
  }
  
  /* Shine effect */
  .resume-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.2) 100%);
    transform: skewX(-20deg);
  }
  
  .resume-button:hover::before {
    left: 125%;
    transition: left 0.75s ease;
  }
  


.about-sections {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 50px 20px;
  flex-wrap: wrap; /* Stack on smaller screens */
  background-color: #f9f9f9;
}

/* ========================
   Education Section Styles
======================== */

.education-section {
  flex: 1;
  min-width: 300px;
}

.education-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
  text-align: left;
}

.education-timeline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.education-item {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.education-item h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #222;
}

.education-year {
  font-size: 1rem;
  color: #777;
  margin-bottom: 10px;
  display: block;
}

.education-item p {
  font-size: 1rem;
  color: #555;
  margin-top: 10px;
}

/* =====================
   Skills Section Styles
===================== */

.skills-section {
  flex: 1;
  min-width: 300px;
}

.skills-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
  text-align: left;
}

.skill {
  margin-bottom: 20px;
}

.skill span {
  display: block;
  font-size: 1rem;
  color: #222;
  margin-bottom: 5px;
}

.progress-bar {
  background-color: #ddd;
  border-radius: 20px;
  overflow: hidden;
  height: 20px;
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar .fill {
  height: 100%;
  background-color: #4CAF50;
  transition: width 0.5s ease-in-out;
  border-radius: 20px;
}

/* =====================
   Responsive Design
===================== */

@media (max-width: 768px) {
  .about-sections {
    flex-direction: column;
    padding: 20px 10px;
  }

  .education-section,
  .skills-section {
    width: 100%;
  }

  .education-timeline {
    align-items: center;
  }

  .education-item {
    width: 90%;
  }
}


  #projects, #contact {
    padding: 2rem;
  }
 

  #projects {
    width: 100%;
    margin-left: 20px;
    padding: 40px 0;
  }
  
  .project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 40px 0;
    padding: 1.5rem;
    border-radius: 12px;
    background-color: #f9f9f9;
    transition: transform 0.5s ease, opacity 0.5s ease;
    flex-wrap: wrap;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
  }
  
  .project-card:hover {
    transform: scale(1.01);
    background-color: #f0f0f0;
  }
  
  .project-text {
    flex: 1;
    min-width: 280px;
  }
  
  .project-text h3 {
    margin-bottom: 10px;
    color: #222;
  }
  
  .project-text p {
    margin-bottom: 10px;
    line-height: 1.5;
  }
  
  .project-text a {
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
  }
  
  .project-image {
    flex: 1;
    text-align: center;
  }
  
  .project-image img {
    width: 100%;
    max-width: 300px;
    max-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .project-image img:hover {
    transform: scale(1.1);
  }
  
  /* Mobile Responsive */
  @media (max-width: 768px) {
    .project-card {
      flex-direction: column;
      text-align: center;
    }
    .project-text {
      order: 2;
    }
    .project-image {
      order: 1;
    }
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  input, textarea {
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  button {
    padding: 0.8rem;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
  }
  button:hover {
    background-color: #005fa3;
  }
  #status {
    margin-top: 1rem;
    color: green;
  }

  #about {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 10px;
    margin: 20px;
  }
  .social-icons {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
  }
  .social-icons img:hover {
    transform: scale(1.2);
  }
  
  
  /* 👉 Responsive Design */
  @media (max-width: 600px) {
    header {
      padding: 1rem;
    }
     #contact {
      padding: 1rem;
      width: 100%;
    }
    input, textarea, button {
      font-size: 0.95rem;
    }
    #about {
      width: 100%;
      text-align: center;
    }
  }
  /* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: black;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    z-index: 1000;
    flex-wrap: wrap;
  }
  
  .nav-left {
    display: flex;
    align-items: center;
  }
  
  .profile-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  .nav-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
  }
  
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .nav-right a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    transition: color 0.3s ease;
    white-space: nowrap;
  }
  
  .nav-right a:hover {
    color: #0077cc;
  }
  
  /* Space below fixed navbar */
  body {
    padding-top: 70px;
  }
  
  /* Menu icon */
.menu-icon {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Responsive menu */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-right {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: black;
    position: absolute;
    top: 60px; /* space after navbar */
    left: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease; /* <-- ADD THIS */
    color: white;
  }

  .nav-right.show {
    padding: 1rem 0;
    max-height: 500px; /* Enough height for 3 items */
    transition: all 0.5s ease; /* smooth opening */
  }

  .nav-right a {
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-top: 1px solid #eee;
  }
}

  /* Scroll Animation Base */
.scroll-item {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

/* When visible */
.scroll-item.show {
  opacity: 1;
  transform: translateY(0);
}
.scroll-item {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 0.8s ease-out;
}
.scroll-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
