@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600&family=Montserrat:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Poppins;
    text-decoration: none;
}

.home-container {
    width: 100%;
    margin: 36px 0;
    padding: 0 5%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    /* Adjust the gap between cards as needed */
    /* background-color: #0c52a1; */
}

.profile-card {
    position: relative;
    width: 250px;
    height: 250px;
    background-color: #3D4785;
    padding: 15px;
    border-radius: 50%;
    box-shadow: -5px 8px 45px rgba(51, 51, 51, 0.126);
    transition: all .4s;
    margin: 20px;
}

.profile-card:hover {
    border-radius: 10px;
    height: 350px;
}

.profile-card .img {
    position: relative;
    width: 100%;
    height: 100%;
}

.profile-card:hover img {
    border-radius: 10px;
    transform: translateY(-70px);
}

.img img {
    object-fit: fill;
    width: 100%;
    border-radius: 50%;
    transition: all .4s;
    z-index: 99;
}

.caption {
    text-align: center;
    transform: translateY(-120px);
    opacity: 0;
    pointer-events: none;
    transition: all .5s;
}

.profile-card:hover .caption {
    opacity: 1;
    pointer-events: all;
}

.caption h3 {
    font-size: 21px;
    color: #FFF;
    font-weight: 600;
}

.caption p {
    font-size: 15px;
    font-weight: 500;
    margin: 2px 0 12px 0;
    color: #FFF;
}

.caption .social-links i {
    font-size: 21px;
    margin: 0 3px;
    cursor: pointer;
    color: #FFF;
    transition: all .4s;
}

.caption .social-links i:hover {
    color: #b5bdec7c;

}

.profile-card-prof {
    position: relative;
    width: 300px;
    height: 300px;
    background-color: #3D4785;
    padding: 15px;
    border-radius: 50%;
    box-shadow: -5px 8px 45px rgba(51, 51, 51, 0.126);
    transition: all .4s;
    margin: 20px;
}

.profile-card-prof:hover {
    border-radius: 10px;
    height: 400px;
}

.profile-card-prof .img-prof {
    position: relative;
    width: 100%;
    height: 100%;
}

.profile-card-prof:hover img {
    border-radius: 10px;
    transform: translateY(-70px);
}

.img-prof img {
    object-fit: fill;
    width: 100%;
    border-radius: 50%;
    transition: all .4s;
    z-index: 99;
}

.caption-prof {
    text-align: center;
    transform: translateY(-120px);
    opacity: 0;
    pointer-events: none;
    transition: all .5s;
}

.profile-card-prof:hover .caption-prof {
    opacity: 1;
    pointer-events: all;
}

.caption-prof h3 {
    font-size: 20px;
    color: #FFF;
    font-weight: 600;
}

.caption-prof p {
    font-size: 16px;
    font-weight: 500;
    margin: 2px 0 12px 0;
    color: #FFF;
}

.caption-prof .social-links-prof i {
    font-size: 21px;
    margin: 0 3px;
    cursor: pointer;
    color: #FFF;
    transition: all .4s;
}

.caption-prof .social-links-prof i:hover {
    color: #b5bdec7c;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
    border-radius: 100%;
}

::-webkit-scrollbar-track {
    background: #FFF;
}

::-webkit-scrollbar-thumb {
    background: #3D4785;
}

html,
body {
    height: 100%;
    width: 100%;
}

#preLoader {
    background: #fff url(img/Hourglass.gif) no-repeat center center;
    height: 100vh;
    width: 100%;
    position: fixed;
    z-index: 100;
}

.nav-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    position: relative;
    background-color: #3D4785;
    padding: 12px 36px;
}

.menu {
    display: flex;
}

.menu li {
    padding-left: 30px;
}

.menu li a {
    display: inline-block;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: white;
    transition: 0.15s ease-in-out;
    position: relative;
    text-transform: uppercase;
}

.menu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    /* background-color: #B85042; */
    transition: 0.15s ease-in-out;
}

.menu a:before {
    content: "";
    position: absolute;
    bottom: -6px;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 50px;
    transform: scaleX(0);
    transition: transform 0.2s linear;
}

.menu a:hover:before {
    transform: scaleX(1);
}

.close-menu i,
.open-menu i {
    color: white;
}

.menu li a:hover:after {
    width: 100%;
}

.open-menu,
.close-menu {
    position: absolute;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
}

.open-menu {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.close-menu {
    top: 20px;
    right: 20px;
}

#check {
    display: none;
}

.logo a {
    display: flex;
    gap: 12px;
}

.logo img {
    font-size: 30px;
    font-weight: 600;
    display: flex;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
    color: #FC3314;
}

@media(max-width: 1200px) {
    .menu {
        flex-direction: column;
        align-items: center;
        /* justify-content: center; */
        width: 80vw;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        backdrop-filter: blur(200px);
        transition: all 0.2s ease-in-out;
    }

    .menu li {
        margin-top: 40px;
    }

    .menu li a {
        padding: 10px;
    }

    .open-menu,
    .close-menu {
        display: block;
    }

    #check:checked~.menu {
        right: 0;
    }
}

.logo-main {
    display: flex;
    gap: 12px;
}

.logo {
    font-size: 30px;
    font-weight: 600;
    height: 56px;
    display: flex;
    font-family: 'Inter', sans-serif;
    letter-spacing: -1px;
    color: #FC3314;
}

.article {
    width: 100%;
    height: auto;
    padding-top: 32px;
    padding-bottom: 32px;
}

.article h1 {
    color: #3D4785;
    font-family: 'Inter', sans-serif;
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    padding-top: 32px;
    /* padding-bottom: 32px; */
    text-align: center;
}

.article h3 {
    color: #3D4785;
    font-family: 'Inter', sans-serif;
    font-family: 'Montserrat', sans-serif;
    font-size: 27px;
    /* padding-top: 24px; */
    /* padding-bottom: 32px; */
    text-align: center;
}

.underline {
    height: 5px;
    width: 10px !important;
    border-radius: 20px;
    margin-top: 10px !important;
    background-color: #3D4785;
    margin: auto;
    text-align: center;
    padding: 0 10vw;
    margin-bottom: 32px;
    /* margin-bottom: 32px; */
}

.highlight-gallery {
    width: 100%;
    padding: 0 10vw;
    height: 500px;
    overflow: hidden;
}

.home-highlight {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.home-highlight a {
    margin: 10px;
    /* display: block; */
    height: 100%;
    width: 100%;
}

.home-highlight a img {
    width: 400px;
    height: 400px;
    object-fit: inherit;
    background-color: white;
    transition: transform 1s ease;
    /* Add a smooth zoom transition */
    cursor: pointer;
}

.home-highlight a img:hover {
    opacity: 0.5;
    /* transform: scale(1.2); */
    /* overflow: hidden; */
    transition: opacity 0.5s;
}

.home-highlight a img:hover::after {
    content: attr(data-description);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.home-highlight a img:hover::after:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0 10vw;
    justify-content: space-between;
    margin-bottom: 40px;
}

.info-item {
    width: 30%;
    margin-bottom: 20px;
    text-align: center;
}

.info-item a {
    text-decoration: none;
    color: black;
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
}

.info-item a::after {
    content: '🔗';
    margin-left: 5px;
    color: #3D4785;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .info-item {
        width: 45%;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .info-item {
        width: 100%;
        font-size: 14px;
    }
}

.nav-article {
    display: flex;
    justify-content: space-evenly;
}

.resume {
    width: 256px;
    height: 36px;
    cursor: pointer;
    background-color: #3D4785;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: white;
}

.member {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 300vh;
}

.member .teamContent {
    position: absolute;
    width: 80vw;
    transform: translateX(100vw);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 36px 10vw;
}

.member #projects {
    transform: translateX(0);
}

.article-box {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.article-box span {
    /* text-align: center; */
    /* background-color: #3D4785; */
    color: #3D4785;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    width: auto;
}

.article-box a {
    background-color: #3D4785;
    width: 200px;
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    text-align: center;
    margin: 10px 0;
    padding: 4px 0;
    border-radius: 10px;
}

.footer {
    width: 100%;
    height: 120px;
    background-color: #3D4785;
    display: flex;
    margin-top: 2px;
    align-items: center;
    justify-content: space-evenly;
}

.footer a li {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-weight: 500;
    list-style: none;
}

.footer a li:hover {
    text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}

.to-top {
    background: white;
    position: fixed;
    bottom: 16px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #1f1f1f;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
}

.to-top.active {
    bottom: 32px;
    pointer-events: auto;
    opacity: 1;
}

/* Add these styles to your team.css file */

/* For regular team members */
.profile-card .img img {
    object-fit: fill;
    width: 100%;
    border-radius: 50%;
    transition: all .4s;
    z-index: 99;
    /* Add a thin border around the circular photos */
    border: 2px solid #fff;
    /* White border */
    box-shadow: 0 0 0 1px #3D4785;
    /* Secondary border using box-shadow */
}

/* For professor/mentor card */
.profile-card-prof .img-prof img {
    object-fit: fill;
    width: 100%;
    border-radius: 50%;
    transition: all .4s;
    z-index: 99;
    /* Add a thin border around the circular photos */
    border: 2px solid #fff;
    /* White border */
    box-shadow: 0 0 0 1px #3D4785;
    /* Secondary border using box-shadow */
}

/* Keep the border when hovering and the image becomes rectangular */
.profile-card:hover img {
    border-radius: 10px;
    transform: translateY(-70px);
    /* Maintain border but adjust for rectangle shape */
    border: 2px solid #fff;
}

.profile-card-prof:hover img {
    border-radius: 10px;
    transform: translateY(-70px);
    /* Maintain border but adjust for rectangle shape */
    border: 2px solid #fff;
}

/* Media Queries for Mobile View */
/* @media only screen and (max-width:540px){

} */
/* Media Queries for IPad View */
@media only screen and (min-width:0) and (max-width:900px) {
    .nav {
        display: flex;
        /* position: fixed; */
        justify-content: space-evenly;
        align-items: center;
        background-color: #3D4785;
        padding: 40px 0px;
        height: 45px;
        width: 100%;
    }

    .logo {
        font-size: 24px;
        font-weight: 600;
        font-family: 'Inter', sans-serif;
        letter-spacing: -1px;
        color: #3D4785;
    }

    .navLinks {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        width: 80vw;
    }

    .navLinks a {
        text-decoration: none;
        color: white;
        font-size: 12px;
        font-family: 'Inter', sans-serif;
        font-family: 'Montserrat', sans-serif;
    }

    .logo-main {
        display: flex;
        gap: 24px;
    }

    .logo {
        height: 40px;
        margin-left: -15px;
        font-family: 'Inter', sans-serif;
    }

    .front-logo {
        width: 100%;
        height: 90vh;
        overflow: hidden;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .front-logo img {
        position: absolute;
        border-radius: 20px;
        backdrop-filter: blur(10px);
        width: 80vw;
        /* box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); */
    }

    video {
        position: absolute;
        object-fit: cover;
        width: 100%;
        height: 100%;
        pointer-events: none;
        right: 0;
        bottom: 0;
        z-index: -1;
        opacity: 0.25;
    }

    .home-highlight a img {
        width: 250px;
        height: 250px;
    }

    .highlight-gallery {
        height: 350px;
    }

    .article {
        width: 100%;
        height: auto;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .article h1 {
        color: #3D4785;
        font-family: 'Inter', sans-serif;
        font-family: 'Montserrat', sans-serif;
        font-size: 24px;
        padding-top: 32px;
        /* padding-bottom: 32px; */
        text-align: center;
    }

    .article h3 {
        color: #3D4785;
        font-family: 'Inter', sans-serif;
        font-family: 'Montserrat', sans-serif;
        font-size: 16px;
        /* padding-top: 24px; */
        /* padding-bottom: 32px; */
        text-align: center;
    }

    .nav-article {
        display: flex;
        justify-content: space-evenly;
        flex-direction: column;
        align-items: center;
    }

    .resume {
        width: 200px;
        height: 36px;
        cursor: pointer;
        background-color: #3D4785;
        display: flex;
        margin: 10px 0;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        color: white;
    }

    .member {
        position: relative;
        width: 100%;
        overflow: hidden;
        height: 500vh;
    }

    .member .teamContent {
        position: absolute;
        width: 80vw;
        transform: translateX(100vw);
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        margin: 36px 10vw;
    }

    .member #projects {
        transform: translateX(0);
    }

    .article-box {
        display: flex;
        flex-direction: column;
        margin: 20px 0;
    }

    .article-box span {
        /* text-align: center; */
        /* background-color: #3D4785; */
        color: #3D4785;
        font-family: 'Poppins', sans-serif;
        font-size: 18px;
        font-weight: 800;
        width: auto;
    }

    .article-box a {
        background-color: #3D4785;
        width: 200px;
        color: white;
        text-decoration: none;
        font-family: 'Poppins', sans-serif;
        font-size: 14px;
        text-align: center;
        margin: 10px 0;
        padding: 4px 0;
        border-radius: 10px;
    }

    .footer {
        width: 100vw;
        height: 180px;
        background-color: #3D4785;
        display: flex;
        flex-direction: column;
    }

    .footer img {
        width: 150px;
    }

    .footer {
        font-size: 14px;
        /* margin: 24px 0; */
        font-family: 'Inter', sans-serif;
        font-family: 'Montserrat', sans-serif;
        color: white;
        list-style: none;
    }

    .logo a {
        display: flex;
        gap: 24px;
    }

    .logo img {
        font-size: 24px;
        font-weight: 600;
        font-family: 'Inter', sans-serif;
        letter-spacing: -1px;
        color: #3D4785;
    }
}