/* Custom Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

section {
    padding: 80px 0;
}

#hero {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding-top: 100px;
    overflow: hidden;
    min-height: 400px;
    margin-top: 40px;
}

.bold-text {
    font-weight: bold;
}

.profile-picture {
    border: 5px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}


.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: #2575fc;
    transform: translateX(-50%);
}

.skill-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    width: 150px;
    cursor: pointer;
    pointer-events: auto;
    /* Ensure clicks work during animation */
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-logo {
    max-width: 80px;
    height: auto;
    margin-top: 15px;
}

.skills-container {
    overflow-x: hidden;
    /* Hide overflow for seamless infinite scroll */
    width: 100%;
    position: relative;
}

.skills-track {
    display: flex;
    width: max-content;
    animation: infiniteScroll 25s linear infinite;
    /* Always active infinite scroll */
}

.skills-track:hover {
    animation-play-state: paused;
    /* Pause on hover */
}

.skill-item {
    flex: 0 0 auto;
    margin-right: 20px;
    padding: 10px;
    pointer-events: auto;
    /* Ensure clicks work on items */
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Half the width due to duplication */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.modal-title {
    margin: 10px 0;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .skill-card {
        width: 120px;
    }

    .skill-logo {
        max-width: 60px;
    }

    .modal-content {
        width: 95%;
    }
}

.education-card{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.education-card:hover{
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.certificate-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.certificates-container {
    overflow-x: auto;
    /* Enable horizontal scrolling */
    width: 100%;
    position: relative;
    scrollbar-width: none;
    /* Hide scrollbar in Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar in IE/Edge */
}

.certificates-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar in Chrome/Safari */
}

.certificates-track {
    display: flex;
    width: max-content;
    /* Allow content to extend beyond container */
    padding: 0 10px;
    /* Optional: padding for better edge spacing */
}

.certificate-item {
    flex: 0 0 auto;
    margin-right: 20px;
    padding: 10px;
}

.certificates-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.modal-title {
    margin: 10px 0;
}

.modal-text {
    margin-bottom: 0;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .certificate-card {
        width: 250px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.modal-title {
    margin: 10px 0;
}

.modal-text {
    margin-bottom: 0;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .certificate-card {
        width: 250px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.modal-title {
    margin: 10px 0;
}

.modal-text {
    margin-bottom: 0;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .certificate-card {
        width: 250px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

.skill-logo,
.institution-logo {
    width: 80px;
    height: 80px;
    margin-top: 20px;
}

.frissco-container {
    display: flex;
    /* Enable flexbox */
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
    height: auto;
    padding-bottom: 10px;
    /* Full viewport height */
}

.frissco-image {
    /* Responsive */
    height: auto;
    width: 100%;
    /* Maintain aspect ratio */
}

@media (max-width: 1024px) {
    .frissco-image {
            /* Responsive */
        height: auto;
        width: 100%;
        /* Maintain aspect ratio */
    }
}

@media (max-width: 768px) {
    .frissco-image {
        height: auto;
        width: 100%;
    }
}

.navbar {
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: #333 !important;
}

.embed-responsive {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    border-radius: 10px;
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.blog-post {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #fff;
    height: 500px;
    /* Ensures uniform height */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.blog-post-image {
    width: 100%;
    height: 250px;
    /* Fixed height for images */
    object-fit: cover;
    /* Ensures images scale properly */
    border-radius: 10px;
    margin-bottom: 15px;
}

.blog-post h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Prevents long titles from breaking layout */
}

.blog-post p {
    font-size: 1rem;
    color: #666;
    flex-grow: 1;
    /* Allows text to fill available space */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limits description to 3 lines */
    -webkit-box-orient: vertical;
}

.blog-post a {
    color: #2575fc;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
}

.blog-post a:hover {
    text-decoration: underline;
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    /* Adjust width as needed */
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.projects-container {
    overflow-x: auto;
    /* Enable horizontal scrolling */
    width: 100%;
    position: relative;
    scrollbar-width: none;
    /* Hide scrollbar in Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar in IE/Edge */
}

.projects-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar in Chrome/Safari */
}

.projects-track {
    display: flex;
    width: max-content;
    /* Allow content to extend beyond container */
    padding: 0 10px;
    /* Optional: padding for better edge spacing */
}

.project-item {
    flex: 0 0 auto;
    /* Prevent flex items from shrinking */
    margin-right: 20px;
    /* Space between items */
    padding: 10px;
    /* Padding around each item */
}


/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .navbar {
    background-color: #1a1a1a !important;
}

.dark-mode .card {
    background-color: #1e1e1e;
    color: #ffffff;
}

.dark-mode .card:hover {
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.dark-mode .section-title::after {
    background-color: #6a11cb;
}

.dark-mode #hero {
    background: linear-gradient(135deg, #1a1a1a, #121212);
}

.dark-mode .bg-light {
    background-color: #1e1e1e !important;
    color: #ffffff;
}

.dark-mode .bg-dark {
    background-color: #121212 !important;
}

.dark-mode .form-control {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #333;
}

.dark-mode .form-control::placeholder {
    color: #747474;
}

.dark-mode .form-control:focus {
    background-color: #1e1e1e;
    color: #ffffff;
    border-color: #6a11cb;
}

.dark-mode .btn-primary {
    background-color: #6a11cb;
    border-color: #6a11cb;
}

.dark-mode .btn-primary:hover {
    background-color: #2575fc;
    border-color: #2575fc;
}

.dark-mode .modal-title {
    color: #000;
}

.dark-mode .list-unstyled li {
    color: rgb(0, 0, 0);
}