/* Smooth scrolling */

html {
  scroll-padding-top: 100px; /* Adjust this based on your header height */
}

body {
  padding-top: 75px; /* Adjusted navbar height */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
  color: #1e293b;
  min-height: 100vh;
}
.navbar {
  padding-top: 1rem;
  padding-bottom: 1rem;
  min-height: 80px;
  background: linear-gradient(90deg, #6a0dad, #ff6f61);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.7);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.navbar-brand {
  line-height: 1.5;
  color: #fff !important;
}
.nav-link {
  position: relative;
  padding-bottom: 0.25rem;
  color: #fff !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffd6cc !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: #ffd6cc;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Section Titles */
section h2 {
  color: #1e293b;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.4rem);
  position: relative;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
section h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 5px;
  margin: 15px auto 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #4f46e5, #3b82f6, #06b6d4);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Profile Image */
#profile-pic {
  max-width: 280px;
  width: 100%;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  display: block;
  margin: 0 auto 1.5rem auto;
  transition: transform 0.3s ease;
}
#profile-pic:hover {
  transform: scale(1.05);
}

/* About Me Section - warm sunset gradient */
#about {
  background: linear-gradient(135deg, #ff9a8b, #ff6f61, #6a0dad);
  color: #fff;
  padding: 80px 20px 100px;
  border-radius: 15px;
  box-shadow: inset 0 0 30px rgba(0 0 0 / 0.15);
  margin-bottom: 60px;
  margin-top: 30px;
}

/* Override container inside About to remove default bg */
#about .container {
  background: transparent !important;
}

/* Social Icons */
#about .social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Social icons color */
#about .social-links a {
  color: #fff;
  font-size: 1.8rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
#about .social-links a:hover {
  color: #ffd6cc;
  transform: scale(1.2);
}

/* Style for role/position below name */
#about h3.role {
  font-weight: 600;
  font-size: clamp(1rem, 2vw + 0.3rem, 1.3rem);
  color: #1e293b; /* soft light blue, adjust as you like */
  margin-top: -10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 8px rgba(219, 234, 254, 0.7);
}

/* Text paragraphs */
#about p {
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  font-weight: 600;
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.1rem);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Social Links (general) */
.social-links a {
  font-size: 1.9rem;
  margin-right: 20px;
  color: #334155;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
  color: #4f46e5;
  transform: scale(1.2);
}

/* Responsive Row Spacing Fix */
@media (max-width: 768px) {
  #about .row {
    text-align: center;
  }
  #about .col-md-8 {
    padding: 0 1rem;
  }
}

/* Cards for Experience and Education */
.card-modern {
  background: rgba(255 255 255 / 0.7);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: none;
  box-shadow: 0 8px 24px rgba(100 116 139 / 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem;
  margin-bottom: 2rem;
}
.card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(99 102 241 / 0.3);
}

.card-modern ul {
  margin-top: 1rem;
  color: #475569;
  font-weight: 500;
  font-size: 1rem;
}

/* Button Gradient */
.btn-gradient {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  border: none;
  color: white;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-gradient:hover {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  transform: translateY(-2px);
}

/* Contact + Footer Container */
#contact {
  background: linear-gradient(
    135deg,
    rgba(106, 13, 173, 0.7) 0%,
    rgba(255, 111, 97, 0.9) 80%,
    rgba(255, 111, 97, 1) 100%
  );
  padding: 3rem 1.5rem 2rem;
  color: #fff;
  /* border-radius: 1.5rem 1.5rem 0 0; */
  box-shadow: 0 -10px 30px rgba(255, 111, 97, 0.4);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Section Title */
#contact h2 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 0 10px rgba(255 255 255 / 0.3);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #fff;
}

/* Contact Info */
#contact .contact-info {
  font-size: 1.15rem;
  line-height: 1.5;
}
#contact .contact-info p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  color: #dbeafe;
  font-weight: 600;
  transition: color 0.3s ease;
}
#contact .contact-info p i {
  font-size: 1.5rem;
  color: #a5b4fc;
  min-width: 32px;
  text-align: center;
}
#contact .contact-info p:hover {
  color: #ffd6cc;
}

/* Contact Form */
#contact .contact-form {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 6px 20px rgba(255 111 97/ 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#contact .contact-form input,
#contact .contact-form textarea {
  width: 100%;
  border: 2px solid rgba(219, 234, 254, 0.6);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 1rem;
  margin-bottom: 1.4rem;
  color: #1e293b;
  font-weight: 600;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255 255 255 / 0.85);
  resize: vertical;
}
#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
  border-color: #ffd6cc;
  box-shadow: 0 0 12px rgba(255 111 97 / 0.7);
  background: rgba(255 255 255 / 0.15);
  outline: none;
}
#contact .contact-form button {
  width: 100%;
  background: linear-gradient(90deg, #ff6f61, #6a0dad);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 0;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255 111 97 / 0.6);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
#contact .contact-form button:hover {
  background: linear-gradient(90deg, #6a0dad, #ff6f61);
  box-shadow: 0 8px 30px rgba(255 111 97 / 0.8);
}

/* Copyright text below form */
#contact > .container > div.text-center {
  font-weight: 500;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-top: 3rem;
  user-select: none;
}
@media (max-width: 991px) {
  #contact .contact-form {
    padding: 2rem 1.5rem;
  }

  #contact .contact-info {
    text-align: center;
  }

  #contact .contact-info p {
    justify-content: center;
  }

  #contact h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 767px) {
  #contact .contact-form input,
  #contact .contact-form textarea {
    font-size: 0.95rem;
    padding: 12px 14px;
  }

  #contact .contact-form button {
    font-size: 1rem;
    padding: 12px 0;
  }

  #contact h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  #contact {
    padding: 2rem 1rem 1.5rem;
  }

  #contact .contact-form {
    padding: 1.8rem 1rem;
  }

  #contact .contact-form input,
  #contact .contact-form textarea {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  #contact .contact-form button {
    font-size: 0.95rem;
    padding: 10px 0;
  }

  #contact h2 {
    font-size: 1.4rem;
  }

  #contact .contact-info {
    font-size: 1rem;
  }

  #contact .contact-info p i {
    font-size: 1.25rem;
  }
}

/* Skill Buttons */
.skill-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

.btn-skill {
  background: linear-gradient(90deg, #6a0dad, #ff6f61);
  border: none;
  color: white;
  padding: 0.4rem 1rem;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.5);
  cursor: default;
  user-select: none;
  transition: box-shadow 0.3s ease;
}
.btn-skill:hover {
  box-shadow: 0 6px 20px rgba(255, 111, 97, 0.8);
}
/* Experience cards with modern gradient and glassmorphism style */

.experience-card {
  background: rgba(255 255 255 / 0.75);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  border: none;
  box-shadow: 0 8px 24px rgba(100 116 139 / 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 2rem;
  height: 100%;
  color: #1e293b; /* Dark slate for main text */
}

.experience-card:hover {
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.3); /* subtle purple shadow */
  transform: translateY(-6px) scale(1.02);
}

/* Titles */
.experience-card .card-title,
.experience-card h3,
.experience-card h4 {
  color: #1e293b; /* Dark slate */
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}

/* Subtitles */
.experience-card .card-subtitle,
.experience-card .fst-italic {
  color: #475569; /* Medium slate gray */
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* List inside experience cards */
.experience-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.experience-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.05rem;
  color: #334155; /* Slightly lighter dark slate */
}

/* Icons in list */
.experience-list li i {
  color: #2563eb; /* Blue */
  font-size: 1.3rem;
  margin-top: 0.1rem;
  background: rgba(37, 99, 235, 0.15); /* translucent blue */
  padding: 6px;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.experience-list li:hover i {
  background: rgba(79, 70, 229, 0.5); /* purple */
  color: #eef2ff;
}

/* Responsive experience Layout */
@media (max-width: 992px) {
  #experience .row {
    flex-direction: column;
    align-items: center;
  }
  #experience .col-md-4 {
    max-width: 90%;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .experience-card {
    padding: 1.5rem;
  }
  .btn-gradient {
    width: 100%;
    text-align: center;
  }
}

/* === Education Section === */
#education {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

#education h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #3f3d56;
}

/* Centered modern card */
#education .card-modern {
  background: linear-gradient(135deg, #6a0daddd, #ff6f6166);
  backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 700px;
  width: 100%;
}

#education .card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 191, 255, 0.3);
}

#education .card-modern h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}

#education .card-modern h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #e0e0e0;
  margin-bottom: 1.2rem;
}
#education .card-modern ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  margin-top: 1rem;
  list-style: none;
}

#education .card-modern ul li {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1.25rem 0.5rem 2rem; /* space for icon on left */
  border-radius: 999px;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  position: relative;
  display: inline-block;
}

#education .card-modern ul li:hover {
  background-color: rgba(255, 255, 255, 0.25);
  cursor: default;
}

#education .card-modern ul li::before {
  content: "🎓";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  line-height: 1;
}

/* Modal */
.modal-content {
  border-radius: 1rem;
  background: linear-gradient(135deg, #6a0daddd, #ff6f6166);
  color: white;
}
.btn-close {
  filter: brightness(0) invert(1);
  position: absolute;
  right: 1rem;
  top: 1rem;
}
