/* ===== SECTIONS ===== */
/********************************************************* Header *********************************************************/
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
  }

  footer {
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
  }
  
  #footer-container{  
    padding: 0.5rem 0;
    width: 100%;
    position: relative;
    bottom: 0;
    margin-top: 1rem;
    border: none;
  }

  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .copyright {
    margin: 0;
    font-size: 0.9rem;
  }
  
  nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /********************************************************* Profile *********************************************************/
  #profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap-lg);
    padding: var(--section-padding) 0;
    min-height: 90vh;
  }
  
  .section__pic-container {
    width: 300px;
    height: 300px;
    background-image: var(--profile-image);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    position: relative;
  }
  
  .open-to-work {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
  
  .blinking-dot {
    width: 10px;
    height: 10px;
    background-color: green;
    border-radius: 50%;
    animation: blink 1.2s infinite;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  .open-to-work-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
  }
  
  .section__text {
    text-align: center;
  }
  
  .section__text__p2 {
    font-size: 1.75rem;
    color: var(--text-secondary);
  }
  
  .title {
    font-size: 3rem;
    color: var(--text-color);
  }

  /* #social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
  }
  
  .social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
  } */
  
  /********************************************************* Projects Section ******************************************************/
  
  #projects {
    padding-top: 100px;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--gap-lg);
    margin: 2rem 0;
  }

  .project-text {
    color: var(--text-secondary);
  }

  .title {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  
  .section__text__p1 {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 1rem;
    line-height: 1.7;
  }
  
  /* Filter Buttons */
  .project-filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
  }
  
  .project-btn {
    border-radius: 50px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
  }
  
  .project-btn.active,
  .project-btn:not(.active):hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  /* Projects Grid */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
  }
  
  /* Project Card */
  .project-card {
    border-color: var(--text-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }
  
  /* Image Container with Hover Effect */
  .project-image-container {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
  }
  
  .project-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
  }
  
  .project-card:hover .project-image {
    transform: scale(1.03);
  }
  
  .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(26, 26, 46, 0.8);
    transition: width 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .project-card:hover .image-overlay {
    width: 100%;
  }
  
  .overlay-icon {
    color: white;
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.2s;
  }
  
  .project-card:hover .overlay-icon {
    opacity: 1;
    transform: translateY(0);
  }
  
  .overlay-icon:hover {
    color: var(--gray-dark);
    transform: scale(1.2);
  }
  
  /* Project Details */
  .project-details {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.3;
  }
  
  .project-description {
    color: var(--gray-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
  }
  
  /* Tech Tags */
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
  }
  
  .project-tag {
    background-color: var(--gray-light);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
  }

  /********************************************************* About  *********************************************************/
  #about {
    padding: 80px;
    background-color: var(--background-color-2);
    color: var(--text-color);
  }
  
  .about-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--background-color-1);
    padding: 2rem;
  }

  
  .about-image {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    background-image: var(--profile-image);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
  }
  
  .section__text {
    flex: 1;
  }
  
  .about-intro .title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
  }
  
  .about-intro .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
  }
  
  .about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color-light);
    text-align: justify;
    hyphens: auto;
    margin: 0;
  }

 /* Stats Boxes - Wider with Border */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0;
  gap: 10px; /* Reduced from 20px */
}

.stat-box {
  background: var(--card-bg-color);
  border-radius: 18px;
  padding: 15px;
  width: 100%;
  max-width: 150px; /* Increased from 300px */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  /* border: 3px solid var(--primary-color); Added border */
  flex-grow: 1; /* Allows boxes to grow equally */
  margin: 0 5px; /* Small margin to prevent touching */
}

.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color-dark); /* Optional: darken border on hover */
}

.stat-icon {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-number {
  font-size: 1.0rem; /* Slightly larger than before */
  font-weight: 600;
  color: var(--primary-color);
  margin: 8px 0; /* Adjusted spacing */
}

.stat-title {
  font-size: 1.0rem; /* Slightly larger than before */
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

@media (max-width: 992px) {
  .stat-box {
    max-width: 280px; /* Slightly smaller on medium screens */
  }
}

@media (max-width: 768px) {
  .stats-container {
    justify-content: center; /* Center boxes on tablet */
    gap: 15px;
  }
  
  .stat-box {
    width: 45%; /* Two per row */
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .stat-box {
    width: 100%; /* Full width on mobile */
    max-width: 100%;
  }
}
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .about-content {
      flex-direction: column;
      gap: 1.5rem;
      text-align: center;
    }
    
    .about-image {
      flex: 0 0 auto;
      width: 150px;
    }
    
    .about-intro .title {
      font-size: 2rem;
    }
    
    .about-intro .title::after {
      left: 50%;
      transform: translateX(-50%);
    }
    
    .about-description {
      font-size: 1rem;
      text-align: center;
    }
  }
  
  @media (max-width: 480px) {
    #about {
      padding: 8vh 0 3vh;
    }
    
    .about-content {
      padding: 1.5rem;
    }
    
    .about-intro .title {
      font-size: 1.8rem;
    }
  }

  /********************************************************* Research *********************************************************/
  #research {
    padding: 100px 0;
    background-color: var(--background-color-2);
  }
  
  .research-header {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .research-header .title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
  }
  
  .research-header .section__text__p1 {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
  }
  
  .research-section {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
  }
  
  .section-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 25px;
    display: inline-block;
  }
  
  /* Research Interests */
  .interests-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .interest-card {
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
  }
  
  .interest-card:hover {
    transform: translateY(-5px);
  }
  
  .interest-icon {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 15px;
  }
  
  /* Research Profiles */
  .profiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
  }
  
  .profile-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: var(--primary-color);
  }
  
  .profile-icon {
    font-size: 1.2rem;
  }
  
  /* Vertical Publications Timeline */
  .publication-year {
    margin: 40px 0;
  }
  
  .year-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .year-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 15px 0 0;
    padding: 5px 15px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 20px;
  }
  
  .timeline-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
  }
  
  .publications-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .publication-card-vertical {
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--text-color);
    display: flex;
    flex-direction: column;
  }
  
  .publication-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  }
  
  .pub-badge {
    display: inline-block;
    background-color: var(--gray-light);
    color: var(--text-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-bottom: 15px;
    align-self: flex-start;
  }
  
  .pub-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
  .pub-authors {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
  }
  
  .pub-venue {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 15px;
  }
  
  .pub-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }
  
  .pub-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    color: var(--text-primary);
    background-color: var(--gray-light);
    border-color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 5px;
  }
/********************************************************* Journey *********************************************************/

  #journey {
    padding: 100px 0;
    min-height: calc(100vh - 120px);
  }
  
  .title {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 700;
  }
  
  /* Toggle Switch */
  .journey-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50px;
    background: var(--bg-color);
    padding: 0.5rem;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .toggle-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-color);
  }
  
  .toggle-btn.active {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  /* Timeline Cards */
  .journey-container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .journey-section {
    display: none;
  }
  
  .journey-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .timeline-card {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
  }
  
  .timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  }
  
  .timeline-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
  }
  
  .timeline-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 1.5rem;
    border-radius: 8px;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .timeline-title {
    flex: 1;
  }
  
  .timeline-title h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
  }
  
  .timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .timeline-position {
    font-size: 1.0rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
  }
  
  .timeline-details {
    margin-left: 5.5rem;
  }
  
  .timeline-details ul {
    list-style-type: none;
    padding-left: 0;
  }
  
  .timeline-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .timeline-details li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
  }
  
  .award-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(76, 201, 240, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-top: 1rem;
    color: var(--primary-color);
  }
  
  .award-icon {
    margin-right: 0.5rem;
    color: var(--accent-color);
  }

  /********************************************************* Contact *********************************************************/
  /* #contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-top: 80px;
  }
  
  .contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    margin: 2rem auto;
    padding: 0.5rem;
  }
  
  .contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-sm);
    margin: 1rem;
  }
  
  .title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
  }
  
  .section__text__p1 {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1rem;
    line-height: 1.6;
  }
  
  .contact-info-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
  }
  
  .contact-info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
  }
  
  .contact-info-upper-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
  }
  
  .contact-info-item:hover {
    transform: translateY(-5px);
  }
  
  .contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    width: 70px;
    height: 70px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .contact-info-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
  }
  
  .contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .contact-info-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
  } */
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
  }
  
  .social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
  }

  /********************************************************* Skills Section *********************************************************/
  #skills {
    background: none;
  padding: var(--section-padding) 0;
  /* background-color: var(--card-bg); */
  }

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  display: inline-block;
}

.section-title h2::after {
  content: '';
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.skill-categories {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.skill-category-btn {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.skill-category-btn.active,
.skill-category-btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skills-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.skill-group {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.skill-group.active {
  display: grid;
  animation: fadeIn 0.5s ease;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--primary-color);
  transition: all var(--transition-speed) ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* .skill-item:hover .skill-circle {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
} */

.skill-item p {
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

/* Animation for skill groups */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}