@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

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

body {
    min-height: 100vh;
    background-color: #121212;
    background-size: cover;
    background-position: center;
    color: white;
    animation: fadeIn 0.8s ease;
}

html {
    scroll-behavior: smooth;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 100px;
    background-color: linear-gradient (135deg, rgba(230, 11, 153, 0.1), rgba(169, 10, 242, 0));
    border-radius: 5px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 32px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-family: "Space Grotesk", sans-serif;

}

.navbar a {
    position: relative;
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    margin-left: 20px;
    font-family: "Space Grotesk", sans-serif;
}

.navbar a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 2px;
    background: #6b51ca;
    transition: .3s;
}

.navbar a:hover::before {
    width: 100%;
}

.logo span{
    color: #6b51ca;
}
/*------description logo------*/

.explanation {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: baseline;
    align-items: center;
}

.container90 {
    width: 500px;
    position: relative;
    left: 70px;
}

img {
    width: 550px;
    display: inline;
    margin: auto;
}

.content {
    width: 500px;
    position: relative;
    left: 690px;
    top: -485px;
}

.content h1 {
    margin: .5em;
    font-family: "Space Grotesk", sans-serif;
}

.content p {
    margin: 2em;
}


.main-about-graphic {
    position: relative;
    top: 50px;
    margin: 4em;
    padding: 1em;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background-color: linear-gradient (135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

#img-gal {
    height: 360px;
    justify-content: center;
    align-items: center;
    position: relative;
    left: 59px;

}

.gallery {
    position: relative;
    top: -250px;
}

.title h2 {
    font-weight: lighter;
    font-size: 40px;
    text-align: center;
    margin: 1em;
    font-family: "Space Grotesk", sans-serif;

}

footer {
    padding: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 10px;
    background-color: linear-gradient (135deg, rgba(230, 11, 153, 0.1), rgba(169, 10, 242, 0));
    border: 1px solid rgba(151, 25, 189, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.37);

}

footer p {
    font-weight: lighter;
}


/*-----ANIMATE ON SCROLL------*/
@keyframes appear{
    from {
        opacity: 0;
        scale: 0.5;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}


@keyframes slide{
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.title{
    animation: slide linear;
    animation-timeline: view();
    animation-range: entry 0 cover 40%;
}


/* media queries for responsiveness */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .main-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .logo {
        font-size: 24px;
        text-align: center;
    }

    .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .navbar a {
        position: static;
        margin: 0;
        font-size: 15px;
    }

    .explanation {
        flex-direction: column;
        height: auto;
        padding: 100px 20px 40px;
        text-align: center;
    }

    .container90 {
        width: 100%;
        position: static;
    }

    img {
        width: 100%;
        max-width: 350px;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .content {
        width: 100%;
        position: static;
        margin-top: 30px;
        text-align: center;
    }

    .content h1 {
        margin: 0 0 15px;
        font-size: 28px;
    }

    .content p {
        margin: 0;
        padding: 0 10px;
    }

    .main-about-graphic {
        width: 95%;
        margin: 30px auto;
        padding: 15px;
    }

    #img-gal {
        position: static;
        width: 100%;
        height: auto;
    }

    .gallery {
        position: static;
    }

    .title h2 {
        position: static;
        font-size: 28px;
        margin: 20px 0;
    }

    footer {
        width: 100%;
    }
}

/* Custom scrollbar styles */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #201f22;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #6b51ca;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
    /* Color when hovering */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
