:root {
  /* Light theme colors */
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --background-color: #ffffff;
  --text-color: #212529;
  --card-bg: #ffffff;
  --border-color: #dee2e6;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #f8f9fa;
  --progress-bg: #e9ecef;
  --section-bg-light: #eef6fa;
}

[data-bs-theme="dark"] {
  /* Dark theme colors */
  --primary-color: #0d6efd;
  --secondary-color: #adb5bd;
  --background-color: #212529;
  --text-color: #f8f9fa;
  --card-bg: #343a40;
  --border-color: #495057;
  --navbar-bg: rgba(33, 37, 41, 0.95);
  --footer-bg: #343a40;
  --progress-bg: #495057;
  --section-bg: #2c3034;
  --section-bg-light: #2c3034;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
}

/* Navbar Styles */
.navbar {
  background-color: var(--navbar-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 0.5rem 1rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
  left: 10%;
}

/* Theme Switch */
.form-check-label {
  cursor: pointer;
}

.form-check-label .fa-sun {
  display: none;
}

.form-check-label .fa-moon {
  display: inline-block;
}

[data-bs-theme="dark"] .form-check-label .fa-sun {
  display: inline-block;
}

[data-bs-theme="dark"] .form-check-label .fa-moon {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  background-image: linear-gradient(
    135deg,
    rgba(var(--bs-primary-rgb), 0.1) 0%,
    rgba(var(--bs-primary-rgb), 0.01) 100%
  );
}

.hero-image {
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    rgba(var(--bs-primary-rgb), 0.3) 100%
  );
  transform: scale(1.05);
  z-index: -1;
}

.highlight {
  color: var(--primary-color);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--card-bg);
  color: var(--primary-color);
  margin-right: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}
/* Section Styles */
.section-padding {
  padding: 100px 0;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 25%;
}

/* About Section Image Styling */
.about-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.5s ease;
}

.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    transparent 100%
  );
  opacity: 0.3;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.about-image::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 5px;
  z-index: 2;
}

.about-image:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image:hover::before {
  opacity: 0.5;
}
/* Timeline Styles */
.timeline-title {
  margin-bottom: 30px;
  color: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding: 20px;
  margin-bottom: 30px;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
  z-index: 1;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
  z-index: -1;
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.timeline-item:hover::before {
  transform: scaleY(1);
}

.timeline-item .date {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.timeline-item:hover .date {
  background-color: #fff;
  color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.timeline-item h5 {
  transition: all 0.3s ease;
}

.timeline-item:hover h5 {
  color: var(--primary-color);
  transform: translateX(8px);
}

.timeline-item p {
  transition: all 0.3s ease;
}

.timeline-item:hover p {
  transform: translateX(5px);
}
/* Skills Section */
.progress {
  height: 10px;
  background-color: var(--progress-bg);
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-color);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

.progress-bar.animate {
}
.progress-bar {
  background-color: var(--primary-color);
  border-radius: 10px;
}

/* Projects Section */
.filters button {
  margin: 0 5px;
  border-radius: 30px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.filters button.active {
  background-color: var(--primary-color);
  color: white;
}

.portfolio-item {
  margin-bottom: 30px;
}

.portfolio-item .card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background-color: var(--card-bg);
}

.portfolio-item .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Testimonials Section */
.testimonial-item {
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 20px 50px;
}

.rating {
  color: #ffc107;
  margin-top: 10px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}
.bg-light {
  background-color: var(--card-bg) !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: var(--section-bg) !important;
}

[data-bs-theme="dark"] .text-muted {
  color: #adb5bd !important;
}

[data-bs-theme="dark"] .progress {
  background-color: var(--progress-bg);
}
.carousel-control-next {
  right: 0;
}
.bg-light {
  background-color: var(--card-bg) !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: var(--section-bg) !important;
}

[data-bs-theme="dark"] .text-muted {
  color: #adb5bd !important;
}
.carousel-control-next {
  right: 0;
}
.bg-light {
  background-color: var(--section-bg-light) !important;
}

/* Contact Section */
.contact-info {
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.contact-form .form-control {
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  background-color: var(--card-bg);
  color: var(--text-color);
}

.contact-form .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
  border-color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--text-color);
}

.btn-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-social:hover {
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .hero {
    padding-top: 80px;
    text-align: center;
  }

  .hero-image {
    margin-top: 50px;
  }

  .social-icons {
    justify-content: center;
  }

  .section-padding {
    padding: 70px 0;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 50px 0;
  }

  .testimonial-item {
    margin: 20px 10px;
  }
}
