*{
    /* border: 1px solid red; */
    box-sizing: border-box;
    font-weight: 300;
    /* letter-spacing: 1px; */
    font-size: 16px;
    scroll-behavior: smooth;
    font-family: var(--font-family-sans);
}

:root {
    --primary-offset-color: #A5ADC4;
    --primary-color: #D8DEE1;
    --light-primary-color: #FFF;

    --secondary-color: #0B2240;
    --dark-secondary-color: #345DAE;

    --font-family-sans: "Work Sans", serif;
}
/* projects Intro */

.projects-intro{
    width: 100%;
    height: auto;
    padding: 60px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.projects-intro-details{
    width: 70%;
    height: auto;
}

.projects-intro-details h2, 
.projects-intro-details p{
    width: 100%;
    text-align: center;
    color: var(--secondary-color);
}


.projects-intro-overview{
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.projects-intro-overview-card{
    width: 100%;
    margin: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.projects-intro-overview-card i{
    width: 50px;
    height: 50px;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.projects-intro-overview-card p{
    width: 100%;
    text-align: center;
    color: var(--secondary-color);
}


.projects-holder{
    width: 90%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.projects-card{
    width: 100%;
    width: 25vw;
    height: auto;
    margin: 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-primary-color);
    text-decoration: none;
}

.projects-card-img-holder{
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.projects-card-img{
    width: 100%;
    height: 50vh;
    background-color: var(--dark-secondary-color);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.projects-card:hover .projects-card-img{
    transform: scale(1.2);
}

.projects-card-name{
    width: 90%;
    height: auto;
    text-align: center;
    padding: 16px 0;
    font-weight: 500;
    color: var(--secondary-color);
}

.projects-card p{
    width: 90%;
    height: auto;
    font-size: 14px;
    text-align: center;
    color: var(--secondary-color);
}

/* Mobile */
@media screen and (max-width: 900px) {
    
    .projects-intro-details,
    .projects-intro-overview{
        width: 100%;
    }

    .projects-intro-details p,
    .projects-intro-overview-card p{
        font-size: 14px;
    }

    .projects-holder{
        width: 100%;
        flex-direction: column;
    }

    .projects-card{
        width: 100%;
        max-width: none;
        margin: 16px auto;
    }

    .projects p,
    .projects-topbar a,
    .projects-card-name{
        font-size: 14px;
    }
}


/* project-gallery */
.project-gallery{
    width: 100%;
    height: auto;
    padding: 60px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    overflow: hidden;
}

.project-photos{
    width: 90%;
    height: auto;
    margin: 30px auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.project-photos-card{
    width: 30%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-primary-color);
}

.project-photos-card-name{
    width: 100%;
    height: auto;
    padding: 16px 0;
    text-align: center;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: capitalize;
}

.project-img{
    width: 100%;
    height: 40vh;
    background-color: var(--dark-secondary-color);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.project-img::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); 
    z-index: 2;
}

.project-gallery-video{
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-gallery-video::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); 
    z-index: 2;
}

.project-gallery-video video{
    width: 100%;
    height: 80vh;
    object-fit: cover;
}

.video-container {
    width: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.play-pause-btn {
    position: absolute;
    bottom: 50%; 
    left: 50%; 
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    width: 50px;
    height: 50px;
    transform: scale(0);
    transition: all 0.3s ease-in;
    z-index: 3;

}

.play-pause-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.video-container:hover .play-pause-btn{
    transform: scale(1);
}

/* Mobile */
@media screen and (max-width: 900px) {
    .project-photos{
        width: 100%;
    }

    .project-photos-card{
        width: 100%;
        margin: 4px 4px;
    }
    .project-gallery-video video{
        width: 100%;
        height: 60vh;
    }

    .project-photos-card-name{
        font-size: 14px;
    }
}


/* Blogs */
.blogs{
    width: 100%;
    padding: 60px 16px;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.blogs p{
    width: 70%;
    text-align: center;
    color: var(--secondary-color);
}

.blogs-topbar{
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.blogs-topbar h3{
    color: var(--secondary-color);
    text-align: left;
}

.blogs-topbar a{
    width: 15%;
    padding: 16px 16px;
    text-decoration: none;
    color: var(--secondary-color);
    text-align: center;
    border: 1px solid var(--primary-offset-color);
    transition: all 0.3s ease-in-out;
}

.blogs-topbar a:hover{
    border: 1px solid var(--secondary-color);
}

.blogs-holder{
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
}

.blogs-card{
    width: 100%;
    height: auto;
    margin: 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--light-primary-color);
    text-decoration: none;
}

.blogs-card-img-holder{
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.blogs-card-img{
    width: 100%;
    height: 50vh;
    background-color: var(--dark-secondary-color);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.blogs-card:hover .blogs-card-img{
    transform: scale(1.2);
}

.blogs-card-name{
    width: 100%;
    height: auto;
    text-align: left;
    padding: 16px 16px 0 16px;
    font-weight: 500;
    color: var(--secondary-color);
}

.blogs-card p{
    width: 90%;
    height: 80px;
    max-height: 80px; 
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    color: var(--secondary-color);
    margin: 16px auto;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Mobile */
@media screen and (max-width: 900px) {
    .blogs-topbar{
        width: 100%;
    }

    .blogs-topbar a{
        width: 50%;
    }

    .blogs-topbar h3{
        width: 50%;
    }

    .blogs-holder{
        width: 100%;
        flex-direction: column;
    }

    .blogs p,
    .blogs-topbar a,
    .blogs-card-name{
        font-size: 14px;
    }

    .blogs-card p{
        width: 90%;
    }
}
