/* =========================
   GLOBAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#050816;
    color:#ffffff;
    font-family:'Inter',sans-serif;
    overflow-x:hidden;
    line-height:1.7;
    position:relative;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-3;
    background:
    linear-gradient(rgba(5,8,22,0.78), rgba(5,8,22,0.82)),
    url("../assets/background.png") center/cover no-repeat;
    opacity:0.5;
    pointer-events:none;
}

/* =========================
   STAR BACKGROUND
========================= */

#stars{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-2;

    background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.10) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.10) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.10) 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.10) 1px, transparent 1px);

    background-size:
    300px 300px,
    400px 400px,
    500px 500px,
    600px 600px;
}

/* =========================
   NAVIGATION
========================= */

nav{
    position:fixed;

    top:0;
    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 60px;

    backdrop-filter:blur(12px);

    background:rgba(5,8,22,0.7);

    z-index:1000;
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}

.brand-text{
    color:#ffffff;
    font-size:1rem;
    font-weight:600;
    letter-spacing:0.03em;
    white-space:nowrap;
}

.brand-logo{
    height:42px;
    width:auto;
    display:block;
}

nav ul{
    display:flex;
    gap:30px;

    list-style:none;
}

nav a{
    color:white;
    text-decoration:none;

    transition:0.3s;
}

nav a:hover{
    color:#61dafb;
}

nav a.active{
    color:#61dafb;
}

/* =========================
   HERO
========================= */

.hero{
    min-height:82vh;

    display:flex;
    justify-content:center;
    align-items:center;

    gap:80px;

    padding:120px 10% 50px;
}

.hero-image img{

    width:420px;
    height:420px;

    object-fit:cover;

    border-radius:50%;

    border:4px solid #61dafb;

    box-shadow:
    0 0 30px rgba(97,218,251,0.3);
}

.hero-text{
    max-width:650px;
}

.subtitle{
    color:#61dafb;
    margin-bottom:10px;

    letter-spacing:2px;
}

.hero h1{

    font-size:4rem;
    font-weight:700;

    margin-bottom:12px;
}

.name-divider{
    width:120px;
    height:2px;
    background:rgba(97,218,251,0.75);
    margin:0 0 14px;
}

.name-localized{
    color:#d8e4ee;
    font-size:1.05rem;
    letter-spacing:0.08em;
    margin-bottom:18px;
}

.hero h2{

    font-size:2rem;

    font-weight:300;

    margin-bottom:25px;
}

.hero p{
    color:#c7d0d9;

    margin-bottom:20px;
}

.hero-link{
    margin-top:-6px;
}

.hero-link a{
    color:#61dafb;
    text-decoration:none;
    font-weight:500;
}

.hero-link a:hover{
    text-decoration:underline;
}

.buttons{
    display:flex;
    gap:15px;

    flex-wrap:wrap;
}

.buttons a{

    text-decoration:none;

    color:white;

    border:1px solid #61dafb;

    padding:12px 25px;

    border-radius:30px;

    transition:0.3s;
}

.buttons a:hover{

    background:#61dafb;
    color:#050816;

    transform:translateY(-3px);
}

/* =========================
   SECTION
========================= */

section{
    padding:100px 10%;
}

#about{
    padding-top:40px;
}

section h2{

    font-size:2.5rem;

    margin-bottom:40px;

    text-align:center;

    color:#61dafb;
}

section p{
    color:#c7d0d9;
}

/* =========================
   ABOUT
========================= */

#about p{

    max-width:900px;

    margin:auto;

    text-align:center;

    font-size:1.1rem;
}

/* =========================
   RESEARCH
========================= */

.research-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

.research-card{

    background:rgba(255,255,255,0.05);

    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:20px;

    overflow:hidden;

    transition:0.3s;
}

.research-card:hover{

    transform:translateY(-10px);

    box-shadow:
    0 10px 30px rgba(97,218,251,0.2);
}

.research-card img{

    width:100%;
    height:220px;

    object-fit:cover;
}

#research .research-card img{
    height:auto;
    max-height:none;
    object-fit:contain;
    display:block;
}

#research .research-card:first-child img{
    height:750px;
    object-fit:cover;
    object-position:center top;
}

#research .research-grid{
    gap:40px;
}

#gallery .research-card img{
    height:320px;
}

.research-card h3{

    padding:20px 20px 10px;
}

.research-card p{

    padding:0 20px 25px;
}

/* =========================
   TIMELINE
========================= */

.timeline{

    max-width:900px;

    margin:auto;
}

.item{

    background:rgba(255,255,255,0.04);

    margin-bottom:25px;

    padding:25px;

    border-left:
    4px solid #61dafb;

    border-radius:10px;
}

.item h3{
    color:#61dafb;
    margin-bottom:10px;
}

/* =========================
   CONFERENCE
========================= */

.conference-card{

    max-width:900px;

    margin:20px auto;

    padding:30px;

    background:rgba(255,255,255,0.04);

    border-radius:15px;
}

.conference-card h3{

    color:#61dafb;

    margin-bottom:10px;
}

/* =========================
   AWARD
========================= */

#award ul{

    max-width:800px;

    margin:auto;

    list-style:none;
}

#award li{

    margin-bottom:15px;

    background:rgba(255,255,255,0.05);

    padding:18px;

    border-radius:10px;
}

/* =========================
   CONTACT
========================= */

#contact{

    text-align:center;
}

#contact p{

    font-size:1.1rem;
}

/* =========================
   FOOTER
========================= */

footer{

    text-align:center;

    padding:40px;

    color:#888;
}

/* =========================
   SCROLL ANIMATION
========================= */

.js-enabled .research-card,
.js-enabled .item,
.js-enabled .conference-card,
.js-enabled #award li{

    opacity:0;

    transform:translateY(40px);

    transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.show{

    opacity:1 !important;

    transform:translateY(0) !important;
}

/* =========================
   MOBILE
========================= */

@media(max-width:900px){

    nav{

        flex-direction:column;

        gap:15px;

        padding:15px;
    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;
    }

    .brand{
        flex-direction:column;
        gap:10px;
    }

    .brand-text{
        font-size:0.95rem;
        text-align:center;
        white-space:normal;
    }

    .brand-logo{
        height:36px;
    }

    .hero{

        flex-direction:column;

        text-align:center;

        min-height:100vh;
        padding:160px 10% 80px;
    }

    .hero h1{
        font-size:2.8rem;
    }

    .name-divider{
        margin:0 auto 14px;
    }

    .name-localized{
        font-size:0.98rem;
    }

    .hero h2{
        font-size:1.5rem;
    }

    .hero-image img{

        width:300px;
        height:300px;
    }

    .buttons{

        justify-content:center;
    }

    section{

        padding:80px 7%;
    }

    #about{
        padding-top:80px;
    }

    nav a.active{
    color:#61dafb !important;
    }

    .hero{
    transition:transform 0.2s linear;
    }

    #gallery .research-card img{
        height:260px;
    }
}
