html, body {
    min-height: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}



body {
    background-color: #171717;
    font-family: "Red Hat Display", sans-serif;

}

img, video { max-width: 100%; height: auto; }

/* Heading styles */
h2{
    font-size: clamp(28px, 6vw, 60px);
    z-index: 1;
}
h3{
    font-size: clamp(20px, 4.5vw, 50px);
    z-index: 1;
}

/* Button container layout */
.button{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}

/* Auto hide while scrolling */
.hide {
    opacity: 0;
    transition: opacity 0.4s;
}

/* Base button styles */
button {
    border: 0 ;
    border-radius: 50px;
    padding: 10px 30px;
    width: 200px;
    height: 100px;
    cursor: pointer;
    font-size: 30px;
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    z-index: 2;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

button:focus {
    outline: none;
    box-shadow: none;
}

/* Orange button */
.orange {
    background: linear-gradient(90deg, #f1a60a, #f46f03);
    backdrop-filter: blur(10px);
    color: white;
    transition: background 0.5s ease, color 0.5s ease;
}
.orange:hover {
    color: black;
    background: white;
}

/* Gray button */
.gray {
    background: linear-gradient(90deg, #545454, #2e2e2e);
    backdrop-filter: blur(10px);
    color: white;
    transition: background 0.5s ease, color 0.5s ease;
}
.gray:hover {
    background: white;
    color: black;
}
/* White button */
.white{
    background: linear-gradient(120deg, #8a8a8a, #b8b8b8);
    backdrop-filter: blur(10px);
    color: black;
    transition: background 0.5s ease, color 0.5s ease;
}
.white:hover {
    background: white;
    color: black;
}
.black {
    display: none;
    background: #000000;
    backdrop-filter: blur(10px);
    color: white;
    transition: background 0.5s ease, color 0.5s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    justify-content: center;
}
.centered-text {
    text-align: center;
}
.centered-text h2:first-of-type {
    color: #ffffff;
}
.centered-text h3:last-of-type {
    color: #909090;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.header-left {
    display: flex;
}

.header-right {
    margin-left: auto;
    display: flex;
    gap: 20px;
}

    #icon {
        width: 500px;
        height: auto;
        margin-right: 15px;
        position: relative;
        display: block;
    }
#icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../pictures/icon2.png") no-repeat center;
    background-size: contain;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
#icon:hover::after {
    opacity: 1;
}
#github-logo {
    width: 50px;
    height: auto;
    margin-right: 30px;
    order: 1;
    transition: box-shadow 0.35s ease;
    border-radius: 999px;

}
#github-logo:hover {
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
}
/* Circle hover effect */
.circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(162, 91, 255, 0);
    transition: box-shadow 0.35s ease;
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.circle .avatar {
    background: white;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.circle .gif {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.circle:hover .avatar {
    opacity: 0;
}

.circle:hover .gif {
    opacity: 1;
}

.circle:hover {
    box-shadow: 0 0 18px rgba(162, 91, 255, 0.75);
}


/* Animated blob background */
body {
    position: relative;
}

body:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 70%;
    width: 80vmax;
    height: 80vmax;
    background: url("../pictures/blob.svg") no-repeat bottom right;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
    animation: blobSwing 7s ease-in-out infinite alternate;
    z-index: -1;
    will-change: transform;
}

body::after {
    content: "";
    position: absolute;
    top: 40%;
    right: 65%;
    width: 80vmax;
    height: 80vmax;
    background: url("../pictures/blob.svg") no-repeat bottom left;
    background-size: contain;
    opacity: 1;
    pointer-events: none;
    animation: blobSwingReverse 7s ease-in-out infinite alternate;
    z-index: -1;
    will-change: transform;
}

@keyframes blobSwing {
    0%   { transform: rotate(-12deg) translateX(-6vw); }
    100% { transform: rotate(12deg)  translateX(3vw); }
}

@keyframes blobSwingReverse {
    0%   { transform: rotate(10deg)  translateX(4vw); }
    100% { transform: rotate(-10deg) translateX(-4vw); }
}





/* Reduced motion and responsive tweaks */
@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
    }
}
/* Legibility */
@media (max-width: 1250px) {
    body::after {
        filter: blur(10px);
    }
    .orange {
        background: linear-gradient(90deg, #f17e0a, #f44303);
        color: white;
        transition: opacity 0.8s ease, transform 0.65s ease;
    }
}

.divider-white{
    flex-direction: column;
    display: flex;
    border-radius: 15px;
    margin: 20vmax 5vmax 5vmax 5vmax;
    height: auto;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.80);
    padding: 5vmax;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    a{
        color: #f17e0a;
    }

    h2{
        font-size: clamp(28px, 4vw, 90px);
        font-family: "Ubuntu", sans-serif;
        text-align: left;
    }
    p{
        text-align: center;
        font-size: clamp(18px, 2vw, 50px);
        font-family: "Exo", sans-serif;

    }
    .row {
        gap: 10vmax;
        img{
            align-self: center;
            width: 20vmax;
            height: 100%;
        }
        display: flex;

    }
}
.divider-gray{
    flex-direction: column;
    display: flex;
    color: white;
    border-radius: 15px;
    margin: 5vmax;
    height: auto;
    background-color: rgba(80, 80, 80, 0.8);
    backdrop-filter: blur(10px);
    padding: 5vmax;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    a{
        color: #f1a60a;
    }
    h2{
        font-size: clamp(28px, 4vw, 90px);
        font-family: "Ubuntu", sans-serif;
        text-align: left;
    }
    p{
        justify-content: right;
        text-align: center;
        font-size: clamp(18px, 2vw, 50px);
        font-family: "Exo", sans-serif;
    }
    .row {
        gap: 10vmax;
        img{
            align-self: center;
            width: 20vmax;
            height: 100%;
        }
        display: flex;

    }
}

.footer {
    display: flex;
    background: #0c0c0c;
    border-radius: 15px;
    flex-direction: column;
    a{
        margin: 2vb;
        font-size: clamp(28px, 4vw, 90px);
        font-family: "Exo", sans-serif;
        text-align: center;
        color: white;
        text-decoration: none;
    }
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    opacity: 0.85;
}

.back-to-top:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.3);
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    #server {
        display: none;
    }
    #github-logo {
        display: none;
    }
    .circle {
        display: none;
    }
    .button {
        align-items: center;
        flex-direction: column;
        gap: 12px;
    }

    button {
        width: 100vb;
        max-width: 260px;
        height: auto;
        padding: 12px 18px;
        font-size: 20px;

    }
    .footer {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        border-radius: 25px;
        margin: 2vb;
        transition: background 0.5s ease;
    }
    .footer:hover {
        background: rgba(24, 24, 24, 0.8);
    }
    .divider-white {
        .row{
            flex-direction: column;
            align-items: center;
            gap: 1px;
        }
    }
    .divider-gray {
        .row{
            flex-direction: column;
            align-items: center;
            gap: 1px;
        }
    }

    body:before {
        display: none;
    }

    body::after {
        content: "";
        position: fixed;
        bottom: -20vb;
        left: 0;
        top: auto;
        transform: translateX(-50%);
        width: 120vmin;
        height: 120vmin;
        background: url("../pictures/blob.svg") no-repeat center bottom;
        background-size: contain;
        opacity: 1;
        pointer-events: none;
        filter: blur(10px);
        animation: blobSwingReverse 7s ease-in-out infinite alternate;
        z-index: -1;
        will-change: transform;
    }
    .black {
        display: inline-flex;
    }
}

/* Hide headings on very small screens */
@media (max-height: 600px) {
    h2 {
        display: none;
    }
    h3{
        display: none;
    }
}
/* Hide the server image on small screens */
@media (max-height: 1020px) {
    #server {
        display: none;
    }
}
