html {
    scroll-behavior: smooth;
}


body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}


@font-face {
    font-family: "Geist";
    src: url("/fonts/Geist-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}


.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1E6BFF, #1EC9FF);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #1E6BFF;
}



@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.animate-float {
    animation: float 2.5s ease-in-out infinite;
}


/* Bubble animation */

.bubble {
    position: absolute;
    bottom: -120px;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: linear-gradient(135deg, rgba(30, 201, 255, 0.4), rgba(30, 107, 255, 0.2));
    filter: blur(1px);
    opacity: 0.7;
    animation: floatUp 18s linear infinite;
}

/* random sizes + positions */

.bubble:nth-child(1) {
    left: 5%;
    width: 14px;
    height: 14px;
    animation-duration: 14s;
}

.bubble:nth-child(2) {
    left: 12%;
    width: 24px;
    height: 24px;
    animation-duration: 20s;
}

.bubble:nth-child(3) {
    left: 22%;
    width: 18px;
    height: 18px;
    animation-duration: 16s;
}

.bubble:nth-child(4) {
    left: 35%;
    width: 30px;
    height: 30px;
    animation-duration: 22s;
}

.bubble:nth-child(5) {
    left: 48%;
    width: 12px;
    height: 12px;
    animation-duration: 15s;
}

.bubble:nth-child(6) {
    left: 60%;
    width: 26px;
    height: 26px;
    animation-duration: 19s;
}

.bubble:nth-child(7) {
    left: 72%;
    width: 16px;
    height: 16px;
    animation-duration: 13s;
}

.bubble:nth-child(8) {
    left: 82%;
    width: 28px;
    height: 28px;
    animation-duration: 21s;
}

.bubble:nth-child(9) {
    left: 90%;
    width: 20px;
    height: 20px;
    animation-duration: 17s;
}

.bubble:nth-child(10) {
    left: 96%;
    width: 10px;
    height: 10px;
    animation-duration: 12s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.7;
    }

    80% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-120vh) scale(1.3);
        opacity: 0;
    }
}


/* Base hidden state */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;

}

/* Visible state */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variants */
.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-scale {
    transform: scale(0.9);
}

.reveal.active.reveal-left,
.reveal.active.reveal-right,
.reveal.active.reveal-scale {
    transform: none;
}

/* stagger support */
.reveal-delay-1 {
    transition-delay: .1s;
}

.reveal-delay-2 {
    transition-delay: .2s;
}

.reveal-delay-3 {
    transition-delay: .3s;
}

.reveal-delay-4 {
    transition-delay: .4s;
}


@media (max-width: 768px) {

    .reveal-left,
    .reveal-right {
        transform: translateX(0);
    }
}