
html{
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-color: rgb(90, 90 ,90);
    color: white;
    margin: 0;
    font-size: 15pt;
}



.figcaption {
    color: lightgray;
    font-size: 0.7vw;
}



/*************************************************************
*   Navigation Bar
*************************************************************/
.navbar-brand{
    z-index: 99;
    font-size: 40px; /* 40px */
    font-family: Modak;
}
.navbar-brand img{
    height: 60px; /* 60px */
    width: 60px; /* 60px */ 
}
.nav-link{
    font-size: 22px; /* 22px */
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-transform: capitalize;
    padding-left: 1em !important;
    padding-right: 1em !important;
}

.navbar-nav .nav-link.active {
    color: #00aced !important; /* or any highlight color */
    font-weight: bold;
    border-bottom: 2px solid #00aced;
    transition: all 0.3s ease;
}

.dropdown-menu {
    background-color: #343a40; /* Dark background */
    border: none;
}

.dropdown-item {
    color: #fff; /* White text */
}

.dropdown-item:hover {
    background-color: #495057;
    color: #fff;
}

/*************************************************************
* Hero Section
*************************************************************/
.hero{
    position: relative;
}
.hero img {
    width: 100%;
    height: auto; /* Full screen height */
    object-fit: cover; /* Ensure the image fills the space */
}
.hero-text {
    position: absolute;
    bottom: 8%;
    right: 3%;
    padding: 2%;
    border: 2px solid rgba(100, 100, 100, 0.444);
    background-color: rgba(176, 176, 176, 0.445);
    border-radius: 10px 5vw;
}
.hero-text h1 {
    font-size: 3.5vw; /* 60px */
    font-family: 'Roboto Condensed';
    font-weight: bold;
    text-align: right;
    color: black;
}




/*************************************************************
* Our Project Section
*************************************************************/
#ourproject hr{
    height: 4px;
    width: 100px;
    text-align: center;
    position: relative;
    background: #00acc1;
    margin: 0 auto;
    margin-bottom: 50px;
    border: 0;
}
#ourproject {
    margin-top: 5vw;
}

.flex-container {
    display: flex;
    /**/
    align-items: stretch;
    gap: 2rem;
    /**/
    align-items: center;
    flex-direction: row;
    justify-content: center;
    padding: 2%; 
    padding-bottom: 0px;
    border-radius: 8px;
    
}
.text-container{
    flex-wrap: wrap;
    justify-content: left;
    align-items: flex-start;
    align-content: center;
    padding: 30px;
    background-color: rgb(70,70,70);
}
.img-container img{
    /**/
    width: 100%;
    height: auto;
    max-width: 600px; /* prevent them from growing too large on big screens */
    /**/
    border-radius: 8px;
}
.text-container h3 {
    margin-bottom: 20px;
}
.text2, .text4 {
    order: 1;
}
.img2, .img4 {
    order: 2;
}


@media (max-width: 1231px) {

    .text2, .text4 {
        order: 2;
    }
    .img2, .img4 {
        order: 1;
    }
    .flex-container {
        flex-wrap: wrap;
    }

    .text-holder{
        font-size: 2vw;
    }
    .img-holder img{
        width: 70%;
    }

}

.text-container {
    flex: 1;
    padding: 1.5rem;
    background-color: rgb(70, 70, 70);
}

.text-container h3 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    margin-bottom: 1rem;
}

.text-container p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    line-height: 1.6;
}

.figcaption {
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    color: lightgray;
    margin-top: 0.5rem;
}

/* Responsive Grid Layout */
@media (max-width: 992px) {
    .flex-container {
        flex-direction: column;
        gap: 2rem;
    }

    .img-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .text-container {
        width: 100%;
    }

    .row1 .img-container img,
    .row2 .img-container img,
    .row3 .img-container img,
    .row4 .img-container img {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 576px) {
    .text-container {
        padding: 1rem;
    }

    .row1 .img-container img,
    .row2 .img-container img,
    .row3 .img-container img,
    .row4 .img-container img {
        max-width: 100%;
    }
}

/*************************************************************
* Team Section
*************************************************************/
#team .title hr{
    height: 4px;
    width: 100px;
    text-align: center;
    position: relative;
    background: #00acc1;
    margin: 0 auto;
    margin-bottom: 50px;
    border: 0;
}
#team {
    pointer-events: auto;
}

.team-member hr{
    height: 4px;
    width: 50px;
    text-align: center;
    position: relative;
    background-color: gray;
    border: solid gray;
    margin: 0 auto;
    margin-top: 20px;
    border: 0;
}

#team .container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    /*border: solid #c11d00;*/
}

#team .team {
    vertical-align: middle;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 auto 3rem;
    /*border: solid green;*/
}

#team .team-member {
    max-width: calc(20% - 0px);
    -webkit-box-flex: 0;
    -ms-flex: 1 1 calc(20% - 0px);
    flex: 1 1 calc(20% - 0px);
    padding: 0 15px;
    position: relative;
    margin-bottom: 2.25rem;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /*border: solid yellow;*/
}

#team .card{
    position: relative;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: -webkit-transform 0.6s cubic-bezier(.63,-.32,.4,1.39);
    transition: -webkit-transform 0.6s cubic-bezier(.63,-.32,.4,1.39);
    transition: transform 0.6s cubic-bezier(.63,-.32,.4,1.39);
    transition: transform 0.6s cubic-bezier(.63,-.32,.4,1.39), -webkit-transform .6scubic-bezier(.63,-.32,.4,1.39);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /*border: solid blue;*/
    background-color: transparent;
    border: transparent;
}

#team .team-member:hover .card{
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

#team .card-front, #team .card-back {
    width: 100%;
}

#team .card-front {
    -webkit-transition: .6s;
    transition: .6s;
    -webkit-perspective: preserve-3d;
    perspective: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
   /* border: solid pink;*/
}

#team .card-back {
    position: absolute;
    top: 0;
    left: 0;
    -webkit-transition: .6s;
    transition: .6s;
    -webkit-perspective: preserve-3d;
    perspective: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
    /*border: solid lime;*/
    background-color: transparent;
    
}

#team .team-member_image{
    padding-top: 100%;
    position: relative;
    margin-bottom: 1.25rem;
    /*border: solid violet;*/
}

.team-member_image .img-holder {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: transparent;
}

.team-member_image .img-holder img {
    display: block;
    width: 100vw;
    height: 100vh;
    -o-object-fit: cover;
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
    image-rendering: optimizeQuality;
    border-radius: 8px;
}

.team-member-title {
    font-family: "Poppins Bold";
    font-size: 16px;
    margin-bottom: .25rem;
}

.team-member-subtitle {
    font-size: 14px;
    color: #8ca5c6;
}

#team .linkedin, #team .github {
    position: relative;
    pointer-events: auto;
    transform: none;
    z-index: 999;
    display: inline-block;
    color: #8ca5c6;
}

#team .highlight {
    color: white; 
}

.team-member_info.container-fluid {
    position: relative;
    height: 192.48px;
    width: 187.68px;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    background-color: rgb(70,70,70);
    /*border: solid red;*/
}


.team-member-subtitle.LinkedIn {
    position: absolute;
    bottom: 65%;
    left: 15%;
}
.team-member-subtitle.Github {
    position: absolute;
    bottom: 45%;
    left: 20%;
}

#team .team-about.container {
    width: 90%;
    margin-left: auto;
    padding: 20px;
}

/* Tablet: Show 3 per row */
@media (max-width: 1024px) {
    #team .team-member {
        -webkit-box-flex: 0;
        -ms-flex: 1 1 calc(33.33% - 30px);
        flex: 1 1 calc(33.33% - 30px);
        max-width: calc(33.33% - 30px);
    }
}

/* Mobile: Show 2 per row */
@media (max-width: 768px) {
    #team .team-member {
        -webkit-box-flex: 0;
        -ms-flex: 1 1 calc(50% - 30px);
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

/* Small Mobile: Show 1 per row */
@media (max-width: 480px) {
    #team .team-member {
        -webkit-box-flex: 0;
        -ms-flex: 1 1 calc(100% - 0px);
        flex: 1 1 100%;
        max-width: 100%;
    }
}




/*************************************************************
* Blog Section
*************************************************************/
.blog-section .title hr{
    height: 4px;
    width: 100px;
    text-align: center;
    position: relative;
    background: #00acc1;
    margin: 0 auto;
    margin-bottom: 50px;
    border: 0;
}

.blog-section a {
    color: white;
}

#blog-posts .btn a:hover {
    text-decoration: none;
}
#blog-posts .btn:hover {
    background-color: rgb(20, 99, 99);
}
.blog-content-wrapper a {
    color: rgb(32, 210, 246);
}
.blog-header p {
    color: rgb(130, 130, 130);
}
.blog-post-title {
    margin-bottom: 30px;
}
.blog-header{
    margin-top: 5%;
}
.blog-subtitle {
    margin-left: 20px;
}

.blog-card-group.container{
    position: relative;
    /*border: solid red;*/
}

.blog-card {
    display: grid;
    grid-template-columns: 3fr 4fr;
    gap: 20px;
    background: rgb(70,70,70);
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 10px 10px hsla(0, 0%, 0%, 0.05);
    transition: 0.25sease;
    /*border: solid green;*/
    margin-bottom: 50px;
}


.blog-card_banner {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    /*border: solid blue;*/
}

/*.blog-banner-image-holder {
    border: solid black;
}*/
.blog-banner-image-holder img {
    border-radius: 8px;
    border: solid black;
}

.blog-banner-image-holder img {
    width: 450px;
    height: 450px;
}

/*.blog-content-wrapper{
    border: solid yellow;
}*/

.blog-summary {
    font-size: var(--fs-4);
    display: -webkit-box;
    line-clamp: 8;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.load-more {
    margin-inline: auto;
    margin-left: 30vw;
    background: rgb(70,70,70);
    color: white;
    padding: 0.6875rem 1.1875rem;
}

.btn {
    min-width: 10rem;
    border-radius: 100px;
}

.blog-banner-image-holder img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

.blog-banner-image-holder {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.blog-banner-image-holder {
    width: 100%;
    max-width: 450px;
    height: 0;
    padding-bottom: 100%; /* 1:1 ratio */
    position: relative;
    overflow: hidden;
}

.blog-banner-image-holder img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.blog-banner-image-holder figcaption {
    position: absolute;
    bottom: -2vh;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
    padding: 0.3rem;
}

@media (max-width: 768px) {
    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-banner-image-holder {
        max-width: 100%;
    }
}


/*************************************************************
* Footer Section
*************************************************************/
#main-footer{
    background-color: rgb(70, 70, 70);
    color: #fff;
}
