/* Global Styles */
:root {
  --primary-color: #3f396d;
  --secondary-color: #ff6b6b;
  --background-color: #f8f9fa;
  --text-color: #333;
  --light-text: #6c757d;
  --white: #ffffff;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Josefin Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utilities */
.c-orange {
  color: var(--secondary-color) !important;
}

section {
  padding: 70px 0;
}

.heading {
  margin-bottom: 40px;
}

.heading small {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.heading h3 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.heading h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 50px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* Buttons */
.c-btn {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.c-btn:hover {
  background-color: #322d5a;
  color: var(--white);
  transform: translateY(-3px);
}

.h-btn {
  box-shadow: var(--box-shadow);
}

.link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.link:hover {
  color: var(--secondary-color);
}

.link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.link:hover::after {
  width: 100%;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  transition: var(--transition);
}

.navbar-brand {
  font-size: 1.8rem !important;
  font-weight: 700;
  color: var(--primary-color) !important;
}

.nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.nav-menu {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Home Section */
.home {
  padding-top: 80px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.home h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.home p {
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.social-icons-container {
  display: flex;
  gap: 20px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  transition: var(--transition);
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.social-icon i, .social-icon svg {
  font-size: 1.2rem;
}

/* Education Section */
.education {
  background-color: var(--white);
}

.education-card {
  background-color: var(--white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
  z-index: -1;
}

.education-period {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.education-location {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.education-card h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.education-school {
  font-weight: 500;
  margin-bottom: 5px;
}

.education-grade {
  color: var(--light-text);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Skills Section */
.skill {
  background-color: #f8f9fa;
}

.skills-list, .soft-skills {
  background-color: var(--white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
}

.skills-list:hover, .soft-skills:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.section-subheading {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.section-subheading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 40px;
  background-color: var(--secondary-color);
}

.skill-category {
  margin-bottom: 20px;
}

.skill-category strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.badge {
  padding: 6px 12px;
  margin-bottom: 5px;
}

.badge.bg-light {
  color: var(--primary-color) !important;
  font-weight: 500;
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Portfolio Section */
.portfolio {
  background-color: var(--white);
  padding-bottom: 70px;
}

#myBtnContainer {
  margin-bottom: 30px;
}

.filter-item {
  background: none;
  border: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 8px 15px;
  margin: 0 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-item:hover, .filter-item.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.post {
  margin-bottom: 25px;
}

.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  height: 250px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.read-more-btn {
  border: none;
  background: none;
  padding: 0;
  display: inline-block;
}

.source-code-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.source-code-link:hover {
  color: var(--secondary-color);
}

/* Research Section */
.research {
  background-color: #f8f9fa;
}

.publication-card {
  background-color: var(--white);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.publication-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.publication-year {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.publication-card h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.publication-venue {
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--light-text);
}

.publication-description {
  color: var(--text-color);
  margin-bottom: 0;
}

/* Contact Section */
.contact {
  background-color: var(--white);
}

.contact-details {
  padding: 20px;
}

.contact-details i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-details p {
  margin-bottom: 20px;
}

.contact-details a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--primary-color);
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.form-control {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

/* Back to Top Button */
#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

#btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#btn-back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

/* Media Queries */
@media (max-width: 992px) {
  .home h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }
  
  .home {
    text-align: center;
    padding-top: 50px;
  }
  
  .home h2 {
    font-size: 2rem;
  }
  
  .social-icons-container {
    justify-content: center;
  }
  
  .education-card, .skills-list, .soft-skills, .publication-card {
    margin-bottom: 20px;
  }
  
  .heading h3 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .home h2 {
    font-size: 1.8rem;
  }
  
  .heading h3 {
    font-size: 1.5rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .contact-form {
    padding: 20px;
  }
  
  .filter-item {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

/* Animation classes for filter */
.show {
  display: block;
}

.hide {
  display: none;
}

/* Custom JavaScript for Portfolio Filtering */
.portfolio-body {
  transition: var(--transition);
}

/* Custom JavaScript for Form Submission */
#contactForm {
  position: relative;
}

/* Custom styles for the project cards */
.badge-pill {
  margin-right: 5px;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.8rem;
}

.contact-link {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--primary-color);
}

/* Education Section Enhancements */
.education-achievements ul li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 20px;
}

.education-achievements ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }

}


