/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=WDXL+Lubrifont+JP+N&family=Poppins:wght@300;400;500;600&family=Alumni+Sans+SC:ital,wght@0,100..900;1,100..900&Playfair+Display&family=Protest+Guerrilla&family=Old+Standard+TT&family=Archivo+Black&family=Prata&family=Vidaloka&family=Abril+Fatface&family=Jacquard+24+Charted&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Sofia&family=Zen+Tokyo+Zoo&family=Poller+One&family=DM+Serif+Display:ital@0;1&display=swap');


/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #000000;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* Font Sizes for Different Screen Sizes */
@media (max-width: 1200px) {
    .section h2 {
        font-size: 2.9em; /* Slightly smaller for medium screens */
    }
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content h5 {
        font-size: 1.4rem; /* Smaller font for timeline headings */
    }
    .timeline-content p{
        font-size: 0.7rem;
    }
    .timeline-date {
        font-size: 0.9em; /* Slightly smaller for timeline dates */
    }
    .hero h1 {
        font-size: 2.4em; /* Slightly smaller for hero section */
    }
    .hero p {
        font-size: 1.1em; /* Slightly smaller for hero description */
    }
    .training-details h3{
        font-size: 1.5em;
    }
    .skills-list li {
        font-size: 0.95em; /* Smaller font size for skills list */
    }
    .project-header h3 {
        font-size: 1.1em; /* Slightly smaller for project titles */
    }
    .footer-text {
        font-size: 0.9em; /* Smaller font size for footer text */
    }
}

@media (max-width: 992px) {
    .section h2 {
        font-size: 2.6em; /* Smaller font size for section headings */
    }
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content h5 {
        font-size: 1.2rem; /* Smaller font for timeline headings */
    }
     .timeline-content p{
        font-size: 0.6rem;
    }
    .timeline-date {
        font-size: 0.8em; /* Smaller font for timeline dates */
    }
    .hero h1 {
        font-size: 2.2em; /* Smaller font size for hero section */
    }
    .hero p {
        font-size: 1.0em; /* Smaller font size for hero description */
    }
     .training-details h3{
        font-size: 1.2em;
    }
    .skills-list li {
        font-size: 0.9em; /* Smaller font size for skills list */
    }
    .project-header h3 {
        font-size: 1.0em; /* Smaller font size for project titles */
    }
    .footer-text {
        font-size: 0.8em; /* Smaller font size for footer text */
    }
}

@media (max-width: 768px) {
    .section h2 {
        font-size: 2.3em; /* Smaller font size for section headings */
    }
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content h5 {
        font-size: 1.0rem; /* Smaller font for timeline headings */
    }
     .timeline-content p{
        font-size: 0.5rem;
    }
    .timeline-date {
        font-size: 0.7em; /* Smaller font for timeline dates */
    }
    .hero h1 {
        font-size: 2.0em; /* Smaller font size for hero section */
    }
    .hero p {
        font-size: 0.9em; /* Smaller font size for hero description */
    }
     .training-details h3{
        font-size: 1em;
    }
    .skills-list li {
        font-size: 0.85em; /* Smaller font size for skills list */
    }
    .project-header h3 {
        font-size: 0.9em; /* Smaller font size for project titles */
    }
    .footer-text {
        font-size: 0.7em; /* Smaller font size for footer text */
    }
}

@media (max-width: 576px) {
    .section h2 {
        font-size: 2em; /* Smaller font size for section headings */
    }
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content h5 {
        font-size: 0.9rem; /* Smaller font for timeline headings */
    }
     .timeline-content p{
        font-size: 0.4rem;
    }
    .timeline-date {
        font-size: 0.6em; /* Smaller font for timeline dates */
    }
    .hero h1 {
        font-size: 1.8em; /* Smaller font size for hero section */
    }
    .hero p {
        font-size: 0.8em; /* Smaller font size for hero description */
    }
     .training-details h3{
        font-size: 0.8em;
    }
    .skills-list li {
        font-size: 0.8em; /* Smaller font size for skills list */
    }
    .project-header h3 {
        font-size: 0.8em; /* Smaller font size for project titles */
    }
    .footer-text {
        font-size: 0.6em; /* Smaller font size for footer text */
    }
}

a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #ff0800;
}

#summary p{
    text-align: justify;
    font-family: "Old Standard TT", serif;
  font-weight: 400;
  font-style: normal;
}

/* Navbar Styles */
nav {
    background: transparent;
    color: #ffffff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 500;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background: #ffffff;
    box-shadow: 0 1px 2px rgb(184, 182, 182);
}

/* Navbar Styles */
nav .container {
    display: flex;
    justify-content: center; /* Space between logo and hamburger */
    align-items: center;
    transition: justify-content 0.5s ease;
}

/* Adjust alignment when scrolled */
nav.scrolled .container {
    justify-content: space-between;
}

.logo.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.5s ease; /* Smooth transition for logo appearance */

}

nav.scrolled .logo {
    opacity: 1;
    transform: translateY(0);
}

.logo img, .logo1 img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
   
}
.logo1 img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
   
}

.logo1 {
    margin-bottom: 20px;
}



/* Navbar Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    transition: transform 0.5s ease; /* Smooth transition for moving links */
}

/* Center nav-links initially */
nav .nav-links {
    transform: translateX(0); /* Initially centered */
}

/* Move nav-links to the right when scrolled */
nav.scrolled .nav-links {
    transform: translateX(40px); /* Adjust this value to make space for the logo */
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: 500;
    font-size: 1em;
    color: #000000;
}

.nav-links a:hover {
    color: #24850f;
}


button {
    position: relative;
    padding: 5px 10px;
    border-radius: 50px;
    border: 1px solid #FFD700;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    background: transparent;
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 0 0 0 transparent;
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
  }
  
  button:hover {
    background: #FFD700;
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
  }
  
  button:hover::before {
    -webkit-animation: sh02 0.5s 0s linear;
    -moz-animation: sh02 0.5s 0s linear;
    animation: sh02 0.5s 0s linear;
  }
  
  button::before {
    content: '';
    display: block;
    width: 0px;
    height: 86%;
    position: absolute;
    top: 7%;
    left: 0%;
    opacity: 0;
    background: #fff;
    box-shadow: 0 0 50px 30px #fff;
    -webkit-transform: skewX(-20deg);
    -moz-transform: skewX(-20deg);
    -ms-transform: skewX(-20deg);
    -o-transform: skewX(-20deg);
    transform: skewX(-20deg);
  }
  
  @keyframes sh02 {
    from {
      opacity: 0;
      left: 0%;
    }
  
    50% {
      opacity: 1;
    }
  
    to {
      opacity: 0;
      left: 100%;
    }
  }
  
 
  

/* Center the Hamburger Menu in the Navbar */
.menu-toggle {
    display: none;
    cursor: pointer;
    
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
    position: absolute;
    right: 20px; /* Adjust position if needed */
}

/* Adjusted Bar Styles for Modern Look */
.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #068822; /* Color of the bars */
    border-radius: 10px;
    transition: transform 0.4s ease-in-out, background-color 0.4s ease-in-out;
  
}

/* Animation for Transforming Hamburger to Cross */
.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation Overlay Styles */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transition: right 0.5s ease;
    overflow: hidden;
}

.mobile-nav-overlay.open {
    right: 0;
}

/* Mobile Navigation Links */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin: 20px 0;
}

.mobile-nav-links a {
    color: #000000;
    font-size: 1.2em;
    font-family: 'Times New Roman', Times, serif;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #959701;
    transform: scale(1.1);
}

/* Show Hamburger Menu on Small Screens */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 0; /* Center it horizontally */
        transform: translateX(-50%); /* Adjust position to center */
    }

    body.mobile-nav-active {
        overflow: hidden;
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .mobile-nav-links a {
        font-size: 1.5em; /* Smaller font size */
    }

    .mobile-nav-links i {
        font-size: 1.5em; /* Smaller icon size */
    }
}

/* Enhanced Timeline Styling */
/* Enhanced Timeline Styling */
.timeline {
    position: relative;
    margin: 50px 0;
    padding: 20px 0;
    border-left: 4px solid #178b08;
}

.timeline-item {
    margin: 20px 0;
    position: relative;
    padding-left: 50px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-date {
    position: absolute;
    left: -90px; /* Adjust left position for better spacing */
    top: 0;
    font-weight: bold;
    font-size: 1em; /* Increase font size for better visibility */
    color: #178b08;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 10px 15px; /* Add padding for better spacing */
    width: 120px; /* Increase width for better readability */
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1; /* Ensure date is above the timeline */
}

.timeline-content {
    background: hsl(0, 0%, 98%);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.timeline-content h3 {
    font-family: "Alumni Sans SC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 1.5rem;
  font-style: normal;
  margin: 0;
}
.timeline-content h4 {
    font-weight: bold;
    font-size: 1.5rem;
    font-family: "DM Serif Display", serif;
    margin: 0;
}
.timeline-content h5 {
    font-size: 1rem;
    font-family: "DM Serif Display", serif;
    margin: 0;
    font-style: italic;
    color: #555;
}

.timeline-content p {
    margin: 0;
    font-size: 0.8em;
    color: #555;
}

.timeline-logo {
    width: auto;
    height: 100px;
    margin-bottom: 10px;
    
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #178b08;
    border: 3px solid #178b08;
    z-index: 1;
}

/* Timeline line animation */
.timeline-item::after {
    content: "";
    position: absolute;
    left: -14px;
    top: 35px;
    bottom: -20px;
    width: 4px;
    background-color: #178b08;
    z-index: 0;
}

.timeline-item:last-child::after {
    content: none;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline {
        border-left: none;
    }
    .timeline-item {
        padding-left: 0;
        margin: 0 0 40px 0;
    }
    .timeline-date {
        position: static;
        margin-bottom: 10px;
        display: inline-block;
        width: auto;
        padding: 5px 10px;
    }
    .timeline-item::before,
    .timeline-item::after {
        display: none;
    }
    .timeline-content {
        width: 90%;
        margin: 0 auto;
    }
}



/* Hero Section */
.hero {
    background: #ffffff;
    color: #000000;
    text-align: center;
    padding: 140px 0px 0px;
    min-height: 10vh;
}

.hero h1 {
    font-family: "DM Serif Display", sans-serif;
    font-size: 2.5em;
    margin: 5px 0 5px;
    font-weight: 800;
    animation: fadeInDown 1s ease-in-out;

}

.hero p {
    font-size:1em;
    font-family: "DM Serif Display", serif;
    font-style: italic;
    margin: 0px 0px;
}
.hero p svg {
    width: 20px; /* Set icon size */
    height: 20px;
    margin-right: 5px; /* Space between icon and text */
    vertical-align: middle; /* Align vertically with text */
}




/* Main Content */
.section {
    padding: 60px 20px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 10px;
    animation: fadeInUp 1s ease-in-out;
    text-align: justify;
}

.section h2 {
    font-weight: 800;
    margin-top: 0;
    font-size: 3em;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    display: inline-block;
    font-family: "Prata", serif;
    font-style: normal;
}

.section ul {
    padding-left: 20px;
}

.section ul li {
    margin-bottom: 15px;
    font-size: 1em;
}

.section ul li strong {
    color: #333;
    font-weight: 500;
}

/* Unified Training Card */
.unified-training-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: hsl(0, 0%, 98%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    flex-wrap: wrap; /* Wrap items for small screens */
}

.unified-training-card .training-details {
    flex: 1;
    padding-right: 20px;
    max-width: 60%; /* Restrict the width of the details */
}

.unified-training-card .training-carousel {
    flex: 1;
    max-width: 40%; /* Restrict the width of the carousel */
}
.training-details h3{
    font-family: "Zen Tokyo Zoo", system-ui;
    font-size: 2em;
    margin: 20px 0 10px;
    animation: fadeInDown 1s ease-in-out;
}
.training-details p{
    text-align: justify;
    font-family: "Old Standard TT", serif;
  font-weight: 400;
  font-style: normal;
}

/* Carousel Styles */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px; /* Adjust based on your preference */
    margin: 0 auto;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.certificate-img {
    min-width: 100%;
    max-width: 100%;
    border: 2px solid #ffffff00;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease-in-out;
}

.certificate-img.active {
    opacity: 1;
}

.certificate-img:not(.active) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-prev, .carousel-next {
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease-in-out;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .unified-training-card {
        flex-direction: column; /* Stack items vertically */
    }

    .unified-training-card .training-details,
    .unified-training-card .training-carousel {
        max-width: 100%; /* Full width on small screens */
        margin-bottom: 15px;
    }

    .carousel {
        max-width: 100%;
    }
}


/* Skills Section Styling */
#skills {
    background: #ffffff; /* Light background for contrast */
    padding: 40px 20px;
     font-family: "WDXL Lubrifont JP N", sans-serif;
  font-weight: 400;
  font-style: normal;
}




.skills-list {
    list-style-type: none; /* Remove default bullet points */
    padding-left: 0; /* Remove default padding */
    margin-top: 20px;
}

.skills-list li {
    margin-bottom: 15px; /* Space between each skill */
    font-size: 1em; /* Font size for readability */
    line-height: 1.6; /* Space between lines */
    position: relative; /* For custom bullet */
    padding-left: 20px; /* Space for custom bullet */
    text-align: justify;
    font-family: "Old Standard TT", serif;
  font-weight: 400;
  font-style: normal;
}

.skills-list li::before {
    content: "•"; /* Custom bullet point */
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
    color: #333;
}

strong {
    font-weight: bold;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    

}

/* Projects Section Styling */
#projects {
    background: #ffffff;
    padding: 60px 20px;
    font-family: 'Arial', sans-serif;
}



.project-item {
    background: #ffffff;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
}

.project-header h3 {
    margin: 0;
    font-size: 1.2em;
    flex: 1;
    text-align: justify;
    font-family: "Old Standard TT", serif;
  font-weight: 400;
  font-style: normal;
}



.toggle-details {
    font-size: 1.2em;
    background: none;
    border: none;
    cursor: pointer;
    color: #0a8d0a;
    transition: transform 0.3s ease;
}

.toggle-details.active {
    transform: rotate(45deg);
}

.project-icon {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.project-details {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.9em;
    line-height: 1.6;
    background-color: #ffffff;
}

.project-item.open .project-details {
    max-height: 500px; /* Adjust as needed */
    padding: 20px;
}
/* Add pulse animation to the "+" icon */
.animated-pulse {
    position: relative;
    display: inline-block;
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
    animation: pulse 1.5s infinite; /* Pulse animation */
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2); /* Scale up at the middle of the animation */
    }
}


/* General Styling */
/* General Styling */
/* General Styling */
/* General Styling */
#certificates {
    background: #ffffff;
    padding: 60px 20px;
    text-align: center;
}



/* Certificate Gallery */
.certificate-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adapt columns based on available space */
    gap: 5px; /* Adjust the gap between the items */
    justify-content: center;
    padding: 10px; /* Add some padding around the gallery */
}
.gallery-item {
    position: relative;
    width: 200px;
    height: 150px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out; 
}


/* Certificate Image Styling */
.certificate-img1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transitions */
}


/* Zoomed-in state */
/* Zoomed-in state */
.zoomed {
    position: fixed; /* Position relative to the viewport */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    width: 90vw; /* Max width of the viewport */
    height: auto; /* Maintain aspect ratio */
    max-height: 90vh; /* Ensure it doesn’t exceed the viewport height */
    transform: translate(-50%, -50%); /* Center the image using transform */
    z-index: 1000; /* Bring to the front */
    object-fit: contain; /* Contain the image within the viewport */
    opacity: 1; /* Ensure visibility */
    border-radius: 0; /* Remove border radius for full view */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth transition */
}
/* Default - Desktop and Larger Screens */


/* Mobile - Medium Screens */
@media (max-width: 768px) {
    .certificate-gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 certificates per row */
    }
}

/* Mobile - Small Screens */
@media (max-width: 630px) {
    .certificate-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 certificates per row */
    }
}

/* Very Small Screens */
@media (max-width: 420px) {
    .certificate-gallery {
        grid-template-columns: repeat(3, 1fr); /* 3 certificates per row */
    }
    .gallery-item {
        width: 100px;
        height: 75px;
    }
}
@media (max-width: 320px) {
   
    .gallery-item {
        width: 200px;
        height: 150px;
    }
}



/* Footer Styling */
#footer {
    background-color: #ffffff; /* White background */
    padding: 20px 0;
    text-align: center;

    font-family: "Old Standard TT";

}

.footer-container {
    margin: 0 auto;
    padding: 0 10px;
}


.footer-heart {
    color: #e74c3c; /* Red heart color */
    font-size: 1.2em;
}

.project-type{
    font-size: 0.9rem;
}



/* Responsive Design */
@media (max-width: 1200px) {
    .section h2 {
        font-size: 2.4em;
    }
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content h5 {
        font-size: 1.4rem;
    }
    .timeline-date {
        font-size: 0.9em;
    }
    .hero h1 {
        font-size: 2.4em;
    }
    .hero p {
        font-size: 1.1em;
    }
    .skills-list li {
        font-size: 0.95em;
    }
    .project-header h3 {
        font-size: 1.1em;
    }
    .footer-text {
        font-size: 0.9em;
        padding: 5px;
    }
    #publications{
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .section h2 {
        font-size: 2.0em;
    }
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content h5 {
        font-size: 1.2rem;
    }
    .timeline-date {
        font-size: 0.8em;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1.0em;
    }
    .skills-list li {
        font-size: 0.9em;
    }
    .project-header h3 {
        font-size: 1.0em;
    }
    .footer-text {
        font-size: 0.8em;
    }
    .project-type{
        font-size: 0.8rem;
        padding: 5px;
    }
    #publications{
        font-size: 0.7rem;
    }
    
}

@media (max-width: 768px) {
    .section h2 {
        font-size: 1.8em;
    }
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content h5 {
        font-size: 1rem;
    }
    .timeline-date {
        font-size: 0.75em;
    }
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .skills-list li {
        font-size: 0.85em;
    }
    .project-header h3 {
        font-size: 0.9em;
    }
    .footer-text {
        font-size: 0.75em;
    }
    .project-type{
        font-size: 0.7rem;
        padding: 5px;
    }
    #publications{
        font-size: 0.6rem;
    }
    
}

@media (max-width: 576px) {
    .section h2 {
        font-size: 1.6em;
    }
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content h5 {
        font-size: 0.9rem;
    }
    .timeline-date {
        font-size: 0.65em;
    }
    .hero h1 {
        font-size: 1.8em;
    }
    .hero p {
        font-size: 0.9em;
    }
    .skills-list li {
        font-size: 0.8em;
    }
    .project-header h3 {
        font-size: 0.7em;
    }
    .footer-text {
        font-size: 0.7em;
    }
    .project-type{
        font-size: 0.5rem;
        padding: 10px;
    }
    #publications{
        font-size: 0.6rem;
    }
    
}

@media (max-width: 480px) {
    .section h2 {
        font-size: 1.4em;
    }
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content h5 {
        font-size: 0.85rem;
    }
    .timeline-date {
        font-size: 0.6em;
    }
    .hero h1 {
        font-size: 1.6em;
    }
    .hero p {
        font-size: 0.8em;
    }
    .skills-list li {
        font-size: 0.75em;
    }
    .project-header h3 {
        font-size: 0.85em;
    }
    .footer-text {
        font-size: 0.65em;
    }
    .project-type{
        font-size: 0.4rem;
        padding: 10px;
    }
    #publications{
        font-size: 0.5rem;
    }
}

@media (max-width: 320px) {
    .certificate-gallery {
        grid-template-columns: 1fr;
    }
    #publications{
        font-size: 0.3em;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Badges showcase */
@keyframes slides {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}
#publications{
 font-family: 'Times New Roman', Times, serif;
 font-size: 1rem;
}
.logos {
    overflow: hidden;
    padding: 30px 0px;
    white-space: nowrap;
    position: relative;
}

.logos:before, .logos:after {
    position: absolute;
    top: 0;
    content: '';
    width: 250px;
    height: 100%;
    z-index: 2;
}

.logos:before {
    left: 0;
    background: linear-gradient(to left, rgba(255,255,255,0), rgb(255, 255, 255));
}

.logos:after {
    right: 0;
    background: linear-gradient(to right, rgba(255,255,255,0), rgb(255, 255, 255));
}

.logo_items {
    display: inline-block;
    animation: 3s slides infinite linear;
}

.logos:hover .logo_items {
    animation-play-state: paused;
}

.logo_items img {
    height: 100px;
}

#publication li{
    font-size: 1em;
}


.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
}

.theme-label {
  font-size: 0.8rem;
  color: #333;
  font-weight: 500;
}

body.dark-mode .theme-label {
  color: #ffd700;
}

.theme-switch {
  display: inline-block;
  height: 18px;
  width: 36px;
  position: relative;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #033b06;
  border-radius: 34px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: pointer;
  transition: background-color 0.4s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.403), inset -1px -1px 2px rgba(0,0,0,0.2), inset 1px 1px 2px rgba(255,255,255,0.3);
}

.slider:before {
  content: '\2600'; /* Sun symbol */
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  color: #ffd700;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  transition: transform 0.4s ease, color 0.4s ease;
  border-radius: 50%;
  box-shadow: 0 2px 3px rgba(0,0,0,0.3);
}

input:checked + .slider {
  background-color: #026807;
}

input:checked + .slider:before {
  transform: translateX(18px);
  content: '\1F319'; /* Moon symbol */
  color: #045c07;
}

@media (max-width: 768px) {
  .theme-switch-wrapper {
    justify-content: center;
    margin: 10px auto 0 auto;
  }
}

body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-mode {
  background-color: #121212;

}

body.dark-mode nav,
body.dark-mode #skills,
body.dark-mode .section,
body.dark-mode .timeline-content,
body.dark-mode .unified-training-card,
body.dark-mode .project-item,
body.dark-mode .project-details,
body.dark-mode #certificates,
body.dark-mode #footer,
body.dark-mode .mobile-nav-overlay,
body.dark-mode .hero {
  background-color: #1e1e1e !important;
  color: #e0e0e0 !important;
  transition: background-color 0.4s ease, color 0.4s ease;
}


body.dark-mode .footer-text,
body.dark-mode .project-header h3,
body.dark-mode .training-details p,
body.dark-mode .skills-list li,
body.dark-mode a {
  color: #e0e0e0 !important;
}
body.dark-mode .timeline-date,
body.dark-mode .nav-links a{
    color: #026807;
}
body.dark-mode .logo_items{
   background-color: #ffffff;
}
body.dark-mode a:hover {
  color: #046e22 !important;
}

body.dark-mode .certificate-img,
body.dark-mode .certificate-img1 {
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.15);
}

body.dark-mode .toggle-details {
  color: #ffffff;
}

body.dark-mode .carousel-prev,
body.dark-mode .carousel-next {
  background-color: rgba(11, 104, 4, 0.916);
}



