@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
}
body{
    background: #EDE8DA;
    background: linear-gradient(135deg, #EDE8DA 0%, #E2DAC8 100%);
    scroll-behavior: smooth;
    font-family: "Ubuntu", sans-serif;
    padding-bottom:60px;
    opacity: 0;
    transition: .3s opacity;
    position: relative;
}
body.ready{
    opacity: 1;
}
h1{
    font-family: "Noto Serif", serif;
}
.banner{
    width: 96vw;
    max-width: 1500px;
    margin: 2vw auto;
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
    padding: 100px 20px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .3);
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
}
.banner h1{
    width: 90%;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 2.5rem;
    line-height: 1.2;
    transition: filter .4s;
}
.banner .links{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.banner p, .banner a{
    margin: 0;
    opacity: .6;
    cursor: pointer;
    transition: transform .2s, opacity .3s, text-shadow .1s;
    font-weight: 500;
    color: black;
    text-decoration: none;
}
.banner p:hover, .banner a:hover{
    transform: translateY(-2px);
    opacity: 1;
}
.banner:has(.links:hover) h1{
    filter: blur(4px);
}
.labs-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 96vw;
    max-width: 1500px;
    margin: 60px auto;
    perspective: 3000px;
}
.lab-card{
    border-radius: 25px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s, filter .2s, opacity .3s;
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.4));
    box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
    overflow: hidden;
    position: relative;
}
.lab-card::before{
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}
.lab-card:hover::before{
    left: 100%;
}
.lab-content h2{
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    background: linear-gradient(135deg, #000, #333);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.lab-content p{
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 20px;
    text-align: justify;
}
.labs-grid:has(.lab-card:hover) .lab-card{
    filter: blur(5px);
    opacity: 0.5;
}
.lab-card:hover{
    transform: translateY(-10px) scale(1.02) rotateY(2deg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 1 !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    background: rgba(221, 221, 221, 0.5);
    filter: none !important;
}
.tech-stack{
    display: flex;
    gap: 10px;
}
.tech{
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    color: rgba(0, 0, 0, 0.7);
    transition: all 0.2s;
}
.tech:hover{
    background: rgba(0, 0, 0, 0.8);
    color: white;
}
.lab-card a{
    width: 95%;
    color: rgb(0, 0, 0);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 40px;
    margin-left: 2.5%;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 10px;
    padding-top: 10px;
}
.contact-container{
    display: flex;
}
.contact-card{
    width: 47vw;
    max-width: 1500px;
    margin-left: 2vw;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(221, 221, 221, 0.2));
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.05);
}
.email-form h1{
    margin-bottom: 15px;
}
.email-form input{
    width: 100%;
    height: 40px;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, 0.5);
    outline: none;
    padding-left: 7px;
    transition: .2s all;
    margin-bottom: 10px;
}
.email-form textarea{
    width: 100%;
    height: 100px;
    border-radius: 10px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, 0.5);
    outline: none;
    padding: 7px;
    transition: .2s all;
    margin-bottom: 10px;
    resize: none;
}
.email-form input:focus, .email-form textarea:focus, .contact-card button:hover{
    border: 2px solid #9fc7ff85;
}
.contact-card button{
    width: 100%;
    color: rgb(0, 0, 0);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    height: 40px;
    backdrop-filter: blur(15px);
    border-radius: 10px;
    transition: .2s border ease-in-out, .2s scale cubic-bezier(.65,-0.01,.47,1.25);
}
.contact-card disclaimer{
    opacity: .5;
    font-size: 13px;
}
.contact-card button:active{
    scale: .97;
    border: 1px solid #9fc7ffc9;
}
.banner a, .lab-card a, .contact-card button, header li, select {
    cursor: pointer;
}
button:focus-visible, a:focus-visible, input:focus-visible{
    outline: 3px solid #6366f1;
    outline-offset: 2px;
}
.banner::after, .lab-card::after, .contact-card::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-radius: inherit;
    background-image: url("https://png.pngtree.com/png-vector/20240402/ourmid/pngtree-vintage-crumpled-craft-package-wrapping-paper-texture-as-a-transparent-background-png-image_11989598.png");
    background-size: 250px;
    background-repeat: repeat;
    opacity: .1;
    mix-blend-mode: multiply;
    z-index: 1;
}
.banner > *, .lab-card > *, .contact-card > * {
    position: relative;
    z-index: 2;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}
@media screen and (max-width: 768px){
    .banner{
        padding: 60px 20px;
        width: 92vw;
    }
    .banner h1{
        font-size: 1.8rem;
        width: 100%;
        text-align: center;
    }

    .banner .links{
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .banner p, .banner a{
        font-size: 1.1rem;
        padding: 10px;
    }
    
    .email-form{
        width: 96vw;
    }
}