html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Match the header height */
}

  /* Base Styles */
  body {
    background-color: white;
    color: #fff;
    margin: 0;
    margin-top: 0;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
  }
  
  h2 {
    position: relative;
    font-size: 2rem;
    text-align: center;
    animation: fade-in 1.5s ease-in-out;
  }
  
  a {
    text-decoration: none;
    color: #000000;
  }
  
  
/* About Section */
.about {
  padding: 11.7rem 2rem;
  background: whitesmoke;
  color: black;
  text-align: left;
  border-left: 30%;
  display: flex;
  align-items: flex-end;
  gap: 210px;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: center;
  align-items: flex-end;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
  color: black;
  flex: 1;
  text-align: left;

}

.about .image-section img {
  width: 390px;
  border-radius: 50%;
  height: 460px;
  border-radius: 30%;
  animation: fadeInRight 1s; 
  flex: 1;
  text-align: center;
  margin-left:0.03px;
}

/* Skills Section */
.skills {
  padding: 4rem 2rem;
  background: white;
  color: black;
  text-align: center;
}

.skills h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  animation: fade-in 1.5s ease-in-out;
  color: #000000;
}

.skills-container {
  max-width: 800px;
  margin: 0 auto;
}

.skill {
  background: whitesmoke;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  margin: 1.5rem 0;
  position: relative;
  width: 45%;
  border: 1px solid #ffffff;
}

.skill-title {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: #020202;
  margin-bottom: 0.5rem;
}

.skill-bar {
  background: rgb(255, 255, 255);
  border-radius: 5px;
  border-right-color: #000000;
  overflow: hidden;
  position: relative;
  height: 10px;
}

.skill-progress {
  height: 10px;
  background: linear-gradient(90deg, #ff4500, #ff4500);
  border-radius: 5px;
  animation: grow-bar 2s ease-in-out;
}

/* Alternating positions for skills */
.skill-left {
  margin-left: 0;
  margin-right: auto;
  border-radius: 24px;
}

.skill-right {
  margin-right: 0;
  margin-left: auto;
  border-radius: 24px;
}

/* Animation for skill bar */
@keyframes grow-bar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .skills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .skill {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.resume-section {
  text-align: center;
  margin: 20px 0;
}

.download-btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  color: #fff;
  background-color: orangered; /* Change to your preferred color */
  text-decoration: none;
  border: 2px solid orangered;
  border-radius: 25px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 10px hsla(31, 91%, 49%, 0.859);
}

.download-btn:hover {
  background-color: transparent;
  color: orangered;
  box-shadow: 0 6px 15px rgba(201, 93, 25, 0.6);
  transform: translateY(-3px); /* Slight upward motion */
}

.download-btn:active {
  transform: translateY(0); /* Reset motion on click */
  box-shadow: 0 3px 8px rgba(50, 123, 168, 0.5);
}

/* Add a subtle animation when the button is loaded */
.download-btn {
  animation: fadeInScale 1s ease-in-out;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* Projects Section */
.projects {
  padding: 4rem 2rem;
  background: whitesmoke;
  color: black;
  text-align: center;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  animation: fade-in 1.5s ease-in-out;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

/* Project Card */
.project-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgb(0, 0, 0);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.project-card p {
  font-size: 1rem;
  color: #131313;
  padding: 0 1rem;
}

.tech-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-stack span {
  background: #333;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
}

/* Buttons */
.project-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.project-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #fff;
  background: #444;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.project-links a:hover {
  background: #ff4500;
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .projects-container {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 150px;
  }
}

  