body {
    font-size: 15px;
    font-family: "Poppins", sans-serif;
    max-width: 100%;
    overflow-x: hidden;
}

h2 {
    font-weight: bold;
}

img {
    max-width: 100%;
    height: auto;
}
/*--- NavBar ---*/

.Nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    backdrop-filter: blur(10px);
    background-color: rgb(255, 255, 255, .05);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
}

.Nav a {
    color: rgb(55, 55, 55);
    transition: .2s ease-in;
}

.Nav a:hover {
    color: rgb(0, 0, 0);
}

footer {
    box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.3);
    background-color: rgb(255, 255, 255, .05);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

footer p {  
    margin: 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}


@media screen and (max-width: 992px)  {
    .Nav {
        padding: 1.2rem;
    }
    
    .Nav .navbar-brand {
        font-size: 1.7em;
    }
    
    .Nav a {
        font-size: 1.5em;
        padding: 0.8rem 0;
    }
    
    .Nav .nav-item {
        padding: 0.3rem 0;
    }
}

/* --- Home --- */

#home {
    margin: 15rem 10rem 20rem; 
}

#home h1 {
    font-size: 5rem;
    padding: 0 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.txt {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.button {
    display: flex;
    justify-content: center;
}

.btn {
    margin: .5rem;
    padding: .8rem;
}

.btn.btn-outline-secondary:hover {
    background-color: #f0f0f0;
    color: black;
}

@media screen and (max-width: 992px){
    #home {
        margin: 10rem auto 15rem;
    }
    
    #home h1 {
        font-size: 4rem;
    }
    
    .txt p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/*--- Projects ---*/

#projects {
    background-color: #f7f7f7;
    justify-content: space-evenly;
    padding: 2rem;
    display: flex;
    margin: 0;
}

.projects {
    display: flex;
    text-align: center;
    flex-direction: column;
    margin: 1rem 0;
    width: 100%;
}

.projects h2 {
    margin-bottom: 1rem;
}

.content {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    margin: 0;
    padding: 0;
    flex-direction: row-reverse;
}

.box {
    background-color: #ffffff;
    width: 20rem;
    height: 27.5rem;
    margin: 1rem 0;
    transition: 1s;
    border-radius: 1rem; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box:hover {
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.box img {
    height: 50%;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

.box h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.box p {
    margin: 1rem;
    font-size: .8rem;
}

.darkBackground {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.darkBackground.show {
    display: block;
}

#content {
    width: min(90%, 65%);
    height: 35rem;
    background-color: #ffffff;
    position: fixed;
    top: 50%;
    left: 50%;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    z-index: 15;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    transition: .3s;
    line-height: 1;
    color: #666;
    width: 30px;
    height: 30px;
}

.close-btn:hover {
    color: black;
}

.contentImg {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.contentImg img {
    flex: 1 1 auto;
    max-width: 400px;
    max-height: 300px;
    min-width: 200px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.contentInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.none {
    display: none;
}

/*--- Qualifications ---*/

#qual {
    margin: 1rem 0 10rem;
}

#qual h2 {
    margin: 3rem;
}

.qual {
    display: flex;
    width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
}

.qual h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2em;
}

.qualHeading {
    display: flex;
    align-items: center;
    justify-self: center;
}

.qualHeading i {
    margin: 0rem .5rem 2rem 0;
    padding: .3rem;
    border-radius: .5rem;
    background-color: hsla(203, 98%, 68%, 0.5);
    color: rgb(58, 128, 207);
}


/*--- TimeTable ---*/

.timetable li {
    list-style-type: disc;
    font-size: 1.1em;
    margin: .5em 0;
}

.timetable p {
    color: rgba(0, 0, 0, 0.5);
    font-size: .9em;
    display: flex;
    align-items: stretch;
    max-width: 250px;
    margin-bottom: 1.5em;
}

.timetable p::before {
    content: "";
    border-left: 3px solid hsla(203, 98%, 68%, 0.5);
    margin-right: 0.5em;
    position: relative;
    right: 1rem;
    min-height: 100%;
}


/*--- Skills ---*/

.skills h4 {
    margin: 1.2rem;
    font-size: 1.1em;
}

.skills ul {
    display: flex;
    list-style: none;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 255px;
}

.skills li {
    display: flex;
    flex-wrap: wrap;
    margin: .3rem .3rem;
    background-color: #f7f7f7;
    padding: .3rem;
    transition: 1s;
    border-radius: .5rem;
    color: rgb(40, 40, 40);
    font-size: .9em;
}

.skills li:hover {
    background-color: #f0f0f0;
    cursor: pointer;
    color: black;
}


/* -- Certs -- */


.background {
    background-color: #f7f7f7;
    width: 100%;
    margin: 1rem 0;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-evenly;
    box-sizing: border-box;
}

.certs {
    margin: .5rem;
    flex: 0 1 auto;
    width: clamp(10rem, 20vw, 16rem);
    aspect-ratio: 8 / 9;
    background-color: rgb(255, 255, 255);
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: .5s;
}

.certs:hover {
    cursor: pointer;
    transform: scale(1.01);
}

.certs img {
    width: 90%;
    height: 90%;
    position: relative;
    top: 5%;
    left: 5%;
}

.certificate {
    width: 100%;
}

.certificate h3 {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

@media screen and (max-width: 992px) {
    .qual {
        display: flex;
        width: 100%;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .qualHeading {
        display: flex;
        text-align: center;
    }
}


/*-------------- Contact --------------*/


#contact {
    background-color: #f7f7f7;
    margin: 0;
    padding: 10rem;
    padding-top: 5rem;
}

#contact h1 {
    margin-bottom: 1rem;
    font-weight: bold;
}

#contact .txt p {
    max-width: 800px;
    margin-bottom: 2rem;
}

.contact {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    flex-direction: row;
}

.contact h2 {
    width: 100%;
}

.contact a {
    color: black;
}

.icons {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 1rem;
}

.icons a {
    text-decoration: none;
}

.icons i {
    transition: 1s;
}
.icons i:hover {
    color: #0d6efd;
}

@media screen and (max-width: 500px) {
    #contact {
        padding: 5rem;
    }
}