html {
  scroll-behavior: smooth;
}
body, .card-body {
  background-color: #1e1e1e;
  color: #ffffff;
  background-image: url("images/back_2.jpg"); 
  /* uncomment this if needed */
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

.custom-navbar {
  background-color: rgba(0, 0, 0,0.5);
}
.custom-navbar .nav-link,
.custom-navbar .navbar-brand {
  color: #ffffff;
}
.custom-navbar .nav-link:hover {
  color: #bbbbbb;
}

/* Section padding & border */
section {
  margin: 80px 100px;
  /* border: 0.1px solid white; */
  padding: 40px 20px;
  border-radius: 8px;
}

/* Shared Section Styles */
.skills-section,
.experience-section,
.education-section,
.contact-section,
.resume-section,
.social-section {
  /* background-color: #1e1e1e; */
  color: #ffffff;
  text-align: center;
}

.skills-section h2,
.experience-section h2,
.education-section h2,
.contact-section h2,
.social-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

.skills-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); */
}
.skill-category {
  /* background-color: #2c2c2c; */
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 12px;
  transition: 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.skill-category:hover {
  background-color: #333;
}
.skill-category h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #00bcd4;
}
.skill-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill-category ul li {
  margin: 8px 0;
  font-size: 1rem;
}
/* Top Button */
#topBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #00bcd4;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}
#topBtn:hover {
  background-color: #0197a3;
}

/* Image Styling */
.responsive-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 20px auto;
  border-radius: 50%;
  display: block;
}
.card-img-top {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
/* Experience and Education Cards */
.experience-item,
.education-item {
  margin-bottom: 30px;
  /* background-color: #2c2c2c; */
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.experience-item h3,
.education-item h3 {
  color: #00bcd4;
  margin-bottom: 5px;
}
.experience-item p,
.education-item p {
  margin: 8px 0;
  line-height: 1.6;
}
/* Resume Button */
.resume-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #00bcd4;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}
.resume-btn:hover {
  background-color: #0197a3;
}

/* Contact Section */
.contact-details {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.contact-details p {
  margin: 10px 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.social-icons img {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.social-icons img:hover {
  transform: scale(1.1);
}

/* Footer */
.footer {
  /* background-color: #121212; */
  color: #ffffff;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.95rem;
  border-top: 1px solid #333;
}
.footer p {
  margin: 5px 0;
}

/* ------------------------------------ */
/*  Mobile-Friendly Adjustments */
/* ------------------------------------ */

@media (max-width: 768px) {
  section {
    margin: 40px 15px;
    padding: 30px 15px;
  }

  .skills-section h2,
  .experience-section h2,
  .education-section h2,
  .contact-section h2,
  .social-section h2 {
    font-size: 2rem;
  }

  .contact-details {
    text-align: center;
  }

  .contact-details p {
    font-size: 1rem;
  }

  .social-icons img {
    width: 60px;
    height: 60px;
  }

  .resume-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skill-category {
    padding: 15px;
  }

  .custom-navbar .navbar-brand,
  .custom-navbar .nav-link {
    font-size: 0.9rem;
  }
}