:root {
    --animation-duration: 500ms;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --blur-amount: 20px;
    --translate-distance: 64px;

    --h1: clamp(160px, 6vw, 240px);
    --h2: clamp(80px, 3vw, 100px);
    --highlight: clamp(56px, 2vw, 84px);
    --bodyLarge: clamp(56px, 2vw, 84px);
    --body: clamp(40px, 1.5vw, 60px);
    --background-gradient: radial-gradient(135.86% 287.63% at 100%, #150c25 37.5%, #1d0840 100%);

}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-display: auto;
}

@font-face {
    font-family: 'SpaceGrotesk';
    font-style: normal;
    src: url('../fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-display: auto;
}


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

html {
    height: 100%;
}

html.gradient-bg {
    min-height: 100vh;
    background: url('../assets/Vivatech-desktop-BG.webp') center / 100% no-repeat,
    var(--background-gradient);
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: white;
    width: 3840px;
    height: 2160px;
    overflow: hidden;
    position: relative;
}

.container-grid {
    padding: 116px 224px;
    display: grid;
    grid-template-columns: 57fr 43fr;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100vh;
    column-gap: 230px;
    row-gap: 30px;
    box-sizing: border-box;
}

.full-width {
    grid-column: 1 / -1;
    margin-top: auto;
}

    .logo {
        text-align: center;
        img {
            width: auto;
            height: 84px;
        }
    }


.left-section {
    display: flex;
    flex-direction: column;
    gap: 128px;
    padding-top: 168px;
}


    .sparkles {
        position: absolute;
        width: 100%;
        height: 100%;
        pointer-events: none;
        /*z-index: 3;*/
    }

    .sparkle {
        position: absolute;
        background: url('../assets/sparkle-glassy.svg');
        background-size: contain;
    }

    .sparkle-1 {
        width: 60px;
        height: 60px;
        top: 100px;
        left: -60px;
    }

    .sparkle-2 {
        width: 80px;
        height: 80px;
        top: 10px;
        left: 10px;
    }

    /* Halos */
    .title-glows {
        position: relative;
        display: flex;
        align-items: flex-end;
        width: 100%;
        min-height: 646px;
    }
    .glow {
        position: absolute;
        border-radius: 50%;
        filter: blur(60px);
        z-index: 1;
        mix-blend-mode: screen; /* Makes glows blend vibrantly */
    }

    @keyframes float-1 {
        0% {
            box-shadow: 
                0 0 60px rgba(0, 204, 204, 0.6),
                0 0 120px rgba(0, 204, 204, 0.3),
                0 0 180px rgba(255, 255, 255, 0.15);
            transform: translateY(0px);
        }
        50% {
            box-shadow: 
                0 0 80px rgba(0, 204, 204, 0.8),
                0 0 160px rgba(0, 204, 204, 0.5),
                0 0 240px rgba(255, 255, 255, 0.25);
            transform: translateY(-40px);
        }
        100% {
            box-shadow: 
                0 0 60px rgba(0, 204, 204, 0.6),
                0 0 120px rgba(0, 204, 204, 0.3),
                0 0 180px rgba(255, 255, 255, 0.15);
            transform: translateY(0px);
        }
    }
    @keyframes float-2 {
        0% {
            box-shadow: 
                0 0 60px rgba(0, 50, 255, 0.6),
                0 0 120px rgba(0, 50, 255, 0.3),
                0 0 180px rgba(255, 255, 255, 0.15);
            transform: translateY(-20px);
        }
        50% {
            box-shadow: 
                0 0 80px rgba(0, 50, 255, 0.8),
                0 0 160px rgba(0, 50, 255, 0.5),
                0 0 240px rgba(255, 255, 255, 0.25);
            transform: translateY(40px);
        }
        100% {
            box-shadow: 
                0 0 60px rgba(0, 50, 255, 0.6),
                0 0 120px rgba(0, 50, 255, 0.3),
                0 0 180px rgba(255, 255, 255, 0.15);
            transform: translateY(-20px);
        }
    }
    @keyframes float-3 {
        0% {
            box-shadow: 
                0 0 60px rgba(138, 43, 226, 0.6),
                0 0 120px rgba(138, 43, 226, 0.3),
                0 0 180px rgba(255, 255, 255, 0.15);
            transform: translateY(10px);
        }
        50% {
            box-shadow: 
                0 0 80px rgba(138, 43, 226, 0.8),
                0 0 160px rgba(138, 43, 226, 0.5),
                0 0 240px rgba(255, 255, 255, 0.25);
            transform: translateY(-30px);
        }
        100% {
            box-shadow: 
                0 0 60px rgba(138, 43, 226, 0.6),
                0 0 120px rgba(138, 43, 226, 0.3),
                0 0 180px rgba(255, 255, 255, 0.15);
            transform: translateY(10px);
        }
    }

    .glows {
        position: absolute;
        z-index: -1;
        top: 320px;
        left: 420px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

    }

    .glow-1 {
        width: 240px;
        height: 240px;
        background: radial-gradient(ellipse,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(0, 204, 204, 0.6) 30%,
            rgba(0, 204, 204, 0.3) 60%, 
            transparent 100%);
        top: 45%;
        left: 26%;
        animation: float-1 8s ease-in-out infinite alternate;
    }

    .glow-2 {
        width: 320px;
        height: 320px;
        background: radial-gradient(ellipse,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(0, 50, 255, 0.6) 30%,
            rgba(0, 50, 255, 0.3) 60%, 
            transparent 100%);
        top: -40px;
        right: -150px;
        transform: translateX(-50%);
        animation: float-2 12s ease-in-out infinite alternate;
    }

    .glow-3 {
        width: 280px;
        height: 280px;
        background: radial-gradient(ellipse,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(138, 43, 226, 0.6) 30%,
            rgba(138, 43, 226, 0.3) 60%, 
            transparent 100%);
        top: 35%;
        right: 70%;
        animation: float-3 10s ease-in-out infinite alternate;
    }


.title-block {
    text-align: left;
    font-family: SpaceGrotesk;
    font-weight: 600;
    line-height: 1.1;
}

.title-line {
    background: linear-gradient(
            140deg,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.4) 39.9%,
            rgba(255, 255, 255, 0.6) 40%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.6) 74.9%,
            rgba(255, 255, 255, 0.4) 75%,
            rgba(255, 255, 255, 0.8) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;;
    text-align: center;
    filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, .4)) drop-shadow(0px 4px 12px rgba(255, 255, 255, .4));
}

    .line-small {
        font-size: 145px;
        letter-spacing: 3%;
    }

    .line-large {
        font-size: 300px;

    }


.glass-card {
    position: relative;
    gap: 70px;
    padding: 50px;
    border-radius: 40px;
    background-color: rgb(17 11 30 / 5%); /* #110B1E;*/
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 6px;
    background: linear-gradient(90deg, #C300FF, #2FFFD9);
    -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}


.qr-section {
    display: flex;
    align-items: center;
}

.qr-code a {
    width: auto;
    height: 380px;
    padding: 10px;
    background: white;
    border-radius: 12px;
    flex-shrink: 0;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qr-text h2 {
    font-size: 72px;
    margin: 0;
    font-weight: 700;
}

.qr-text p {
    color: #B5B7BD;
    font-size: 53px;
    font-weight: 300;
}

.right-section {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

/* Animation timing variables - easy to adjust */
:root {
    --animation-duration: 650ms;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --blur-amount: 20px;
    --translate-distance: 64px;
    --bounce-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes removeCard {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    10% {
        transform: translateY(15px); /* Gentle squash down before launch */
    }
    100% {
        opacity: 0;
        transform: translateY(calc(var(--translate-distance) * -1));
        filter: blur(var(--blur-amount));
    }
}


@keyframes addCard {
    0% {
        opacity: 0;
        transform: translateY(calc(var(--translate-distance) * 1.2)); /* Start lower for bigger bounce */
        filter: blur(var(--blur-amount));
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.profile-card {
    position: relative;
    border-radius: 120px;
    overflow: hidden;
    background-color: rgb(255 255 255 / 10%);
    backdrop-filter: blur(20px);
    height: auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 80px;
    gap: 50px;
    
    /* GPU acceleration hint */
    will-change: transform, opacity, filter;
    min-width: 0;

    &.remove {
        animation: removeCard var(--animation-duration) var(--animation-timing) forwards;
    }

    &.add {
        animation: addCard var(--animation-duration) var(--bounce-easing) forwards;
    }

}

#prediction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.username-prediction {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.profile-name {
    font-size: var(--h2);
    font-weight: 500;
    display: inline-block;
}


.avatar {
    width: clamp(300px, 13vw, 420px);
    height: clamp(300px, 13vw, 420px);
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    flex-shrink: 0;
}

.prediction {
    font-family: Inter, sans-serif;
    font-size: 88px;
    line-height: 1.3;
    color: #e8e3f0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-wrap: balance;
}

.prediction strong {
    color: white;
    font-weight: 700;
}

