html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: monospace;
    background-size: cover;
    color: #c9fdff;
    overflow-x: hidden;
}

.section-content h2 {
    margin-bottom: 2rem;
    /* Add some space below the title */
}

.section-container {
    height: 100vh;
    width: 100vw;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.section {
    min-height: 100vh;
    /* Ensure the section takes up at least the full height of the viewport */
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    transition: background 0.5s ease;
    position: relative;
    overflow: hidden;

}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #01292b;
    filter: blur(6px);
    z-index: -1;
    opacity: 0.6;
}

.profile-description-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    white-space: pre-line;
    /* Default behavior, allows text to wrap */
    align-items: center;
    width: 100%;
}

.profile-column {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.description-column {
    width: 50%;
    padding-left: 2rem;
    text-align: center;
}

.profile-picture-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    /* Circular container for the glow */
    animation: glow-animation 3s ease-in-out infinite alternate;
}

.section-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}

.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

@keyframes glow-animation {
    0% {
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 1);
    }
}

.typing-animation {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 3s steps(30, end) forwards, blink 0.7s step-end infinite;
}

@keyframes typing {
    to {
        width: 100%;
    }
}

#profile-name {
    font-size: 2.5rem;
    margin-top: 1rem;
}

#profile-bio {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.description-container {
    font-size: 1.5rem;
    line-height: 1.6;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 4rem;
    padding: 2rem;
    padding-top: 1rem;

}

.skill-logo {
    width: 120px;
    height: 120px;
    /* Adjust size as needed */
}

@keyframes loading {
    0% {
        width: 0%;
    }

}

#certificates,
#skills,
#projects,
#education {
    height: auto;
    padding-top: 100px;
    padding-bottom: 100px;
    align-items: start;
}

#profile,
#contact {
    height: auto;
    padding-top: 250px;
    padding-bottom: 100px;
    align-items: start;
}

.certificate-deck {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 2rem;
    padding-top: 1rem;


}


.certificate-logo {
    border-radius: 10px 10px 0 0;
    width: 300px;
    height: 220px;
    /* Rounded corners for the logo */
}


.certificate-details {
    backdrop-filter: blur(2px);
    /* make it on the right side of the card */
    background-color: rgba(0, 0, 0, 0.655);
    /* Dark overlay for better text visibility */
    border-radius: 0 0 10px 10px;
    /* Rounded bottom corners */
    opacity: 1;
    /* Initially hide the text */
    transition: opacity 0.3s ease;
    padding: 1rem;
    width: 300px;
    /* Set a fixed width */
    height: 220px;
    /* Set a fixed height */

}

.certificate-details h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.certificate-details p {
    margin: 0.2rem 0;
    font-size: 1rem;
}

.certificate-card-column:hover  {
    transform: scale(1.05);
    /* Slightly enlarge the card on hover */
    transition: transform 0.3s ease;
}

.certificate-link {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    color: #c9fdff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    justify-content: flex-end;

}

.certificate-link:hover {
    background-color: #025f5b;
    color: #ffffff;
    transform: scale(1.05);
    /* Slightly enlarge the button on hover */
    transition: transform 0.3s ease;
}

.project-deck {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding: 2rem;
    padding-top: 1rem;
}

.project-card-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}
.project-logo {
    border-radius: 10px 10px 0 0;
    width: 300px;
    height: 220px;
    /* Rounded corners for the logo */
}

.project-details {
    backdrop-filter: blur(2px);

    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.655);
    /* Dark overlay for better text visibility */
    border-radius: 0 0 10px 10px;
    /* Rounded bottom corners */
    opacity: 1;
    /* Initially hide the text */
    transition: opacity 0.3s ease;
    /* Smooth transition for the opacity */
    width: 300px;
    /* Set a fixed width */
    height: 270px;
    /* Set a fixed height */
    cursor: pointer;

}

.project-card-column:hover:not(.expanded-parent) {
    transform: scale(1.05);
}

/* Expanded state makes it float and appear above others */
.project-details.expanded {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 600px;
    width: 700px;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    box-shadow: 0 12px 24px rgba(0,0,0,0.6);
    overflow-y: auto;
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.read-more-msg {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevents accidental click */
}

/* Show on hover */
.project-card-column:hover .read-more-msg {
    opacity: 1;
}


/* Hide it when expanded */
.project-details.expanded .read-more-msg {
    opacity: 0;
}

.project-details h3 {
    margin: 0.5rem 0;
    font-size: 1.9rem;
}

.project-details p {
    margin: 0.2rem 0;
    font-size: 1rem;
}

.project-techs {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

/* Show only when expanded */
.project-details.expanded .project-techs {
    max-height: 500px; /* or auto if content size is known */
    opacity: 1;
    margin-top: 1rem;
}

.project-link {
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 10px 20px;
    margin-top: 10px;
    color: #c9fdff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    justify-content: flex-end;
}

.project-link:hover {
    background-color: #025f5b;
    color: #c9fdff;
    transform: scale(1.05);
    /* Slightly enlarge the button on hover */
    transition: transform 0.3s ease;
}

.education-deck {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.education-card-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.education-logo {
    border-radius: 15px 0 0 15px;
    width: 300px;
    height: 270px;
    /* Rounded corners for the logo */
}

.education-details {
    backdrop-filter: blur(2px);

    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.655);
    /* Dark overlay for better text visibility */
    width: 300px;
    /* Set a fixed width */
    height: 270px;
    /* Set a fixed height */
    border-radius: 0 15px 15px 0;
    /* Rounded bottom corners */
    opacity: 1;
    /* Initially hide the text */
    transition: opacity 0.4s ease;
    /* Smooth transition for the opacity */
    justify-content: center;
}

.education-details h3 {
    margin: 0.5rem 0;
    font-size: 1.8rem;
}

.education-details p {
    margin: 0.2rem 0;
    font-size: 1rem;
}

.education-card-column:hover {
    transform: scale(1.05);
    /* Slightly enlarge the card on hover */
    transition: transform 0.3s ease;
}

.contact-form-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 13rem;
    text-align: center;
    font-size: larger;
}

.contact-container {
    flex-direction: column;
    flex-wrap: nowrap;

}

.contact-container p {
    font-size: 1.5rem;
}

.cv-link {
    text-decoration: none;
    padding: 10px 20px;
    color: #c9fdff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    background-color: rgba(1, 30, 32, 0.567);
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    justify-content: flex-end;
}

.cv-link:hover {
    background-color: #025f5b;
    color: #c9fdff;
    transform: scale(1.05);
    /* Slightly enlarge the button on hover */
    transition: transform 0.3s ease;
}

.form-container {
    border-radius: 10px;
    /* Rounded bottom corners */
    overflow: hidden;
    width: 500px;
    /* Ensures that no part of the background image overflows */
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(1, 30, 32, 0.39);
    backdrop-filter: blur(2px);
    border-radius: 12px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
    /* Set a fixed width */

}

.form-control {
    margin-bottom: 20px;
    border: none;
    background-color: rgba(2, 54, 58, 0.39);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
    /* Smooth transition on focus */
}

.form-control:focus {
    background-color: rgba(4, 88, 96, 0.495);
    color: #c9fdff;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
}

.form-label {
    color: #c9fdff;
    font-size: 1.2rem;
}

.btn-primary {
    background-color: rgba(6, 121, 129, 0.619);
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: rgba(6, 168, 179, 0.656);
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.5);
}

.alert-success {
    background-color: #17a2b8;
    color: #c9fdff;
    text-align: center;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-title {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-icons {
    padding-right: 2rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
}


.contact-icons img {
    width: 65px;
    height: 65px;
}

@media (max-width: 768px) {

    /* Adjust profile picture and text layout for mobile */
    .profile-description-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-picture-wrapper {
        position: relative;
        width: 100px;
        height: 100px;
        display: flex;


    }

    #profile-name {
        font-size: 1.2rem;
        margin-top: 1rem;
    }

    #profile-bio {
        font-size: 1rem;
        margin-top: 1rem;
    }

    .description-container {
        font-size: 1.0rem;
        line-height: 1.3;
    }

    .description-column {
        padding-left: 0px;
        width: 100%;
        text-align: center;
    }

    .skills-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 1rem;
        padding: 2rem;
        padding-top: 1rem;
    }
    .skill-logo {
        width: 80px;
        height: 80px;
        /* Adjust size as needed */
    }
    .education-deck {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        padding-top: 1rem;

    }

    .education-card-column {
        display: flex;
        padding: 2rem;
        padding-top: 1rem;
    }
    .education-logo {
        border-radius: 10px 0 0 10px;
        width: 200px;
        height: 180px;
        /* Rounded corners for the logo */
    }
    .education-details {
        width: 200px;
        /* Set a fixed width */
        height: 180px;
        /* Set a fixed height */
        border-radius: 0 10px 10px 0;


    }

    .education-details h3 {
        margin: 0.5rem 0;
        font-size: 1.2rem;
    }

    .education-details p {
        margin: 0.5rem 0;
        font-size: 0.8rem;
    }

    .certificate-deck {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding-top: 1rem;


    }
    .certificate-card-column {
        display: flex;
        flex-direction: column;
        padding-top: 1rem;

    }
    .certificate-logo {
        border-radius: 10px 10px 0 0;
        width: 150px;
        height: 150px;
        /* Rounded corners for the logo */
    }
    .certificate-details {
        width: 150px;
        /* Set a smaller fixed width */
        height: 150px;
        /* Set a smaller fixed height */
    }

    .certificate-details h3 {
        font-size: 0.6rem;

    }

    .certificate-details p {
        font-size: 0.4rem;
    }

    .certificate-link {
        font-size: .5rem;
        padding: none;
        margin-top: opx;
    }

    .contact-form-container {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 2rem;

    }

    .contact-container {
        gap: 2rem;
        justify-content: center;
        font-size: 0.6rem;
    }

    .contact-container p {
        font-size: 1rem;
    }
    .cv-link {
        font-size: 1rem;
        padding: 5px 10px;

    }
    .form-container {
        padding: 20px;
        width: 80%;
        /* Set a fixed width */
    }

    .form-control {
        margin-bottom: 8px;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .btn-primary {
        font-size: 0.6rem;
    }

    .contact-icons img {
        width: 50px;
        height: 50px;
    }

    .project-deck {
        display: flex;
        flex-direction: column;
    }

    .project-card-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .project-logo {
        border-radius: 10px 0 0 10px;
        width: 200px;
        height: 180px;
        /* Rounded corners for the logo */
    }

    .project-details {
        border-radius: 0 10px 10px 0;
        width: 200px;
        /* Set a fixed width */
        height: 180px;
        /* Set a fixed height */
    }
    .project-card-column:hover:not(.expanded-parent) {

        opacity: 1;
        /* Show the text on hover */
    }
    .project-details.expanded {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        height: 500px;
        width: 400px;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        box-shadow: 0 12px 24px rgba(0,0,0,0.6);
        overflow-y: auto;
        border-radius: 10px;
        padding: 2rem;
        transition: all 0.4s ease;
    }
    .project-details h3 {
        margin: 0.5rem 0;
        font-size: 1rem;
    }

    .project-details p {
        margin: 0.2rem 0;
        font-size: 5rem;
    }

    .project-details p {
        margin: 0.2rem 0;
        font-size: 0.6rem;
    }
    .project-link,
    .certificate-link {
        font-size: 0.6rem;
    }

    #certificates,
    #skills,
    #projects,
    #education,
    #contact,
    #profile {
        padding-top: 100px;
        padding-bottom: 100px;
    }
    .contact-icons {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }
}