:root {
    --text-color: #2d3436;
    --bg-color: #fafafa;
    --accent-color: #000000; 
    --transition-slow: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 25px;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

header {
    padding: 40px 80px;
    position: relative;
    backdrop-filter: blur(5px);
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 60px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 28px;
    font-weight: 400;
    position: relative;
    transition: var(--transition-slow);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0px;
    height: 1px;
    bottom: -5px;
    left: 0px;
    background-color: var(--text-color);
    transition: width 400ms ease;
}

nav a.active::after {
    width: 100%;
    background-color: #000000;
}

nav a.active {
    color: var(--text-color);
    font-weight: 400; 
}

nav a:hover::after {
    width: 100%;
}

.hamburger-menu, .menu-toggle {
    display: none;
}

#logo {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -2px;
    margin: 0px 40px;
    transition: letter-spacing 500ms ease;
}

#logo:hover {
    letter-spacing: 1px;
}

.banner {
    width: 100vw;
    height: 500px;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.banner img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    animation: slowZoom 20s infinite alternate ease-in-out;
}

.title {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid #000;
    margin-bottom: 40px;
}

.title h2 {
    font-size: 32px;
    letter-spacing: 4px;
}

main {
    margin: 0 auto;   
    padding: 0 20px;   
    display: block;  
}

.gojo {
    float: left;
    width: 380px; 
    height: auto;
    shape-outside: url('../img/BlaBlaJuist.png');
    shape-image-threshold: 0.1;
    shape-margin: 30px; 
    margin-right: 20px;
    margin-left: 30px; 
    margin-top: -20px;
}

main p {
    padding: 0 0 20px 0; 
    font-size: 18px;
    line-height: 1.8; 
    text-align: justify;
    color: var(--text-color);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 120px;
    border-top: 1px solid rgba(0,0,0,0.03);
    margin-top: auto;
}

.social {
    display: flex;
    gap: 18px;
}

.social img {
    width: 22px;
    height: 22px;
    filter: grayscale(1) opacity(0.5);
    transition: var(--transition-slow);
}

.social img:hover {
    filter: grayscale(0) opacity(1);
    transform: translateY(-2px) scale(1.05);
}

small {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #b2bec3;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    header {
        padding: 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    body {
        min-height: 100vh;
        height: auto;
    }

    .menu-toggle {
        display: block; 
        font-size: 32px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        visibility: hidden; 
    }

    nav.active {
        right: 0;
        visibility: visible;
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        justify-content: center;
        height: 100%;
        gap: 30px;
    }

    #logo {
        margin: 10px 0;
        font-size: 40px;
        order: -1; 
    }

    .banner {
        height: 300px;
    }

    .gojo {
        float: none; 
        display: block;
        width: 80%; 
        margin: 0 auto 20px auto; 
        shape-outside: none; 
    }

    main p {
        padding: 0 20px 15px 20px;
        font-size: 16px; 
    }

    footer {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

main p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

main p:nth-of-type(1) { animation-delay: 0.2s; }
main p:nth-of-type(2) { animation-delay: 0.4s; }
main p:nth-of-type(3) { animation-delay: 0.6s; }
main p:nth-of-type(4) { animation-delay: 0.8s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gojo {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
    filter: grayscale(20%);
}

.gojo:hover {
    transform: scale(1.03) rotate(-1deg);
    filter: grayscale(0%);
}

::selection {
    background: var(--accent-color);
    color: #fff;
}

::-moz-selection {
    background: var(--accent-color);
    color: #fff;
}

::-webkit-selection {
    background: var(--accent-color);
    color: #fff;
}

::-ms-selection {
    background: var(--accent-color);
    color: #fff;
}

::-o-selection {
    background: var(--accent-color);
    color: #fff;
}

::-khtml-selection {
    background: var(--accent-color);
    color: #fff;
}
