@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

:root{
    color-scheme: light dark;

    --base: light-dark(#eff1f5, #24273a);
    --mantle: light-dark(#e6e9ef, #1e2030);
    --crust: light-dark(#dce0e8, #181926);
    --surface0: light-dark(#ccd0da, #363a4f);
    --surface1: light-dark(#bcc0cc, #494d64);
    --surface2: light-dark(#acb0be, #5b6078);
    --overlay0: light-dark(#9ca0b0, #6e738d);
    --overlay1: light-dark(#8c8fa1, #8087a2);
    --overlay2: light-dark(#7c7f93, #939ab7);
    --subtext0: light-dark(#6c6f85, #a5adcb);
    --subtext1: light-dark(#5c5f77, #b8c0e0);
    --text: light-dark(#4c4f69, #cad3f5);
    --rosewater: light-dark(#dc8a78, #f4dbd6);
    --flamingo: light-dark(#dd7878, #f0c6c6);
    --pink: light-dark(#ea76cb, #f5bde6);
    --mauve: light-dark(#8839ef, #c6a0f6);
    --red: light-dark(#d20f39, #ed8796);
    --maroon: light-dark(#e64553, #ee99a0);
    --peach: light-dark(#fe640b, #f5a97f);
    --yellow: light-dark(#df8e1d, #eed49f);
    --green: light-dark(#40a02b, #a6da95);
    --teal: light-dark(#179299, #8bd5ca);
    --sky: light-dark(#04a5e5, #8bd5ca);
    --sapphire: light-dark(#209fb5, #7dc4e4);
    --blue: light-dark(#1e66f5, #8aadf4);
    --lavender: light-dark(#7287fd, #b7bdf8);
}

html{
    font-family: 'IBM Plex Serif', serif;
    background-color: var(--base);
    scroll-behavior: smooth;
}

body{
    margin: 0;
    background-color: var(--base);
    color: var(--text);
}

/* nav */
.nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 15px;
    left: 3vw;
    right: 3vw;
    z-index: 1000;
    border: 1px solid var(--surface1);
    padding: 15px 20px;
    border-radius: 12px;
    background-color: var(--mantle);
    backdrop-filter: blur(5px);
}

.nav > a{
    text-decoration: none;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links{
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a{
    text-decoration: none;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
    transition: opacity 0.5s ease;
}

.nav-links a:hover{
    opacity: 0.6;
}

/* hero section */
#hero{
    min-height: 75vh;
    display: flex;
    justify-content: center;
}

.heroHeader{
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

#heroTitle{
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 10vh;
}

#heroTitle h1{
    margin: 0;
    font-size: 5rem;
}

#heroTitle p{
    margin: 0;
    font-size: 1.3rem;
}

#about, #tools, #team{
    margin: 0 5vw;
}

.explore{
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.explore:hover{
    transform: scale(1.01) translateY(2px);
}

/* .exploretools{
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.exploretools a{
    text-decoration: none;
    color: black;
    font-weight: 600;
    padding: 10px;
    border: 1px solid black;
    border-radius: 15px;
    background: #e6e6e6;
    color: black;
    transition: all 0.3s ease;
}

.exploretools a:hover{
    transform: translateY(-5px);
    box-shadow: 0 5px 10px black;
} */

/* general styles */
.main{
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.section-header{
    font-size: 2.5rem;
    margin: 0;
    margin-bottom: 20px;
}

/* products section */
.tool-cards{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 60px;
}

.tool-card{
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border-radius: 20px;
    background-color: #363a4f;
    color: white;
    justify-content: space-between;
}

.tool-header{
    margin: 0;
    font-size: 1.5rem;
}

.tool-header a{
    text-decoration: none;
    color: white;
}

.tool-desc{
    margin: 0;
}

.tool-card img{
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid var(--overlay2);
    transition: all 0.3s ease;
}

.tool-card img:hover{
    transform: translateY(5px);
}

/* team section */
#team{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#team-header{
    margin-bottom: 0;
}

.team-title-head{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-desc{
    margin: 0;
}

.team-cards{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.team-card{
    position: relative;
    height: 350px;
    overflow: hidden;
    border: 1px solid var(--overlay2);
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.team-card:hover{
    transform: translateY(-5px);
}

.team-card-img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
    padding: 15px;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
}

.team-card-overlay p, .team-card-overlay h3{
    margin: 0;
}

.memberinfo{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.memberrole{
    font-size: 1rem;
    font-weight: 600;
}

.member-name{
    font-size: 1.8rem;
    font-weight: bold;
}

.team-card-hint{
    font-size: 1rem;
    font-weight: bold;
}

.profile-modal{
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.profile-modal.active{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.profile-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
}

.profile-panel{
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    display: flex;
    width: 90%;
    max-width: 900px;
    height: 75vh;
    overflow: hidden;
    border: 1px solid var(--overlay2);
    border-radius: 15px;
    background: white;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
    background-color: var(--base);
}

.profile-modal.active .profile-panel{
    transform: translateY(0) scale(1);
}

.profile-img-wrap{
    position: relative;
    width: 45%;
    min-width: 0;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-img-wrap img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content{
    box-sizing: border-box;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin: 2vh 5vw;
    margin-left: 0;
    margin-bottom: 0;
    width: 50%;
    padding: 35px;
    padding-right: 15px;
    overflow-y: auto;
    background-color: var(--base);
}

.profile-close{
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text);
    border-radius: 50%;
    background: var(--crust);
}

.profile-header{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#profileName{
    margin: 0;
    font-size: 3rem;
}

#profileRole{
    margin: 0;
    font-size: 1.2rem;
}

#profileDesc{
    margin: 0;
}

.profile-detail{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-detail h4{
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
}

.profile-detail p{
    margin: 0;
}

.profile-github{
    display: inline-block;
    margin-top: auto;
    padding: 12px 16px;
    border: 1px solid black;
    border-radius: 10px;
    background-color: var(--crust);
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 800;
    transition: all 0.3s ease;
}

.profile-github:hover{
    background: var(--text);
    color: var(--mantle);
}

body.modal-open{
    overflow: hidden;
}

/* footer */
#footer{
    margin-top: 60px;
    padding: 25px 0 15px;
    border-top: 1px solid var(--overlay2);
}

.footer-wrapper{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-main{
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin: 0 30px;
}

.footerhead{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tools{
    margin: 0;
    font-size: 0.9rem;
}

#tools-header{
    margin-bottom: 25px;
}

#footerTitle{
    text-decoration: none;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 800;
}

.tools a{
    text-decoration: none;
    color: var(--text);
}

.quick-links{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#linkTitle{
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
}

#quickLinks{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

#quickLinks a{
    text-decoration: none;
    color: var(--text);
}

.footer-bottom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--overlay2);
    padding: 20px 30px 0;
}

.footer-bottom p{
    margin: 0;
}

.footer-bottom p a{
    text-decoration: none;
    color: var(--text);
}