body {
    background-color: #050505;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Custom Grid Pattern */
.grid-bg {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

/* Animations */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation-fill-mode: forwards;
}

.animate-on-scroll.visible {
    animation: fadeSlideIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Beam Animations */
.beam-border-h::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to right, transparent, #fd953f, transparent);
    transform: translateX(-100%);
    animation: beam-slide 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.5;
}

@keyframes beam-slide {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Custom 3D visual styles */
.glass-panel {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Toggle Switch Logic */
input:checked~.toggle-dot {
    transform: translateX(100%);
}

input:checked~.toggle-bg {
    background-color: #fd953f;
}

.invisible {
    visibility: hidden !important;
}

.font-geist {
    font-family: 'Geist', sans-serif !important;
}

.font-roboto {
    font-family: 'Roboto', sans-serif !important;
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif !important;
}

.font-poppins {
    font-family: 'Poppins', sans-serif !important;
}

.font-playfair {
    font-family: 'Playfair Display', serif !important;
}

.font-instrument-serif {
    font-family: 'Instrument Serif', serif !important;
}

.font-merriweather {
    font-family: 'Merriweather', serif !important;
}

.font-bricolage {
    font-family: 'Bricolage Grotesque', sans-serif !important;
}

.font-jakarta {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.font-manrope {
    font-family: 'Manrope', sans-serif !important;
}

.font-space-grotesk {
    font-family: 'Space Grotesk', sans-serif !important;
}

.font-work-sans {
    font-family: 'Work Sans', sans-serif !important;
}

.font-pt-serif {
    font-family: 'PT Serif', serif !important;
}

.font-geist-mono {
    font-family: 'Geist Mono', monospace !important;
}

.font-space-mono {
    font-family: 'Space Mono', monospace !important;
}

.font-quicksand {
    font-family: 'Quicksand', sans-serif !important;
}

.font-nunito {
    font-family: 'Nunito', sans-serif !important;
}

[style*="--border-gradient"]::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: var(--border-radius-before, inherit);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    background: var(--border-gradient);
    pointer-events: none;
}

@keyframes beam-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dots-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 24px 24px;
    }
}

@keyframes karaoke-reveal-left {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: 0 0;
    }
}

@keyframes karaoke-reveal-right {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 100% 0;
    }
}

.karaoke-line {
    background-image: linear-gradient(to right, #ffffff 50%, #525252 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    display: inline-block;
}

.karaoke-trigger.visible .karaoke-line {
    animation-duration: 2.3s;
    animation-timing-function: linear;
    animation-fill-mode: forwards;
    animation-delay: var(--delay, 0s);
}

.karaoke-trigger.visible .karaoke-line.direction-left {
    animation-name: karaoke-reveal-left;
}

.karaoke-trigger.visible .karaoke-line.direction-right {
    animation-name: karaoke-reveal-right;
}

.inline-icon {
    display: inline-block;
    height: 1.4rem;
    width: 1.4rem;
    margin: 0 0.3rem;
    vertical-align: -0.25em;
    opacity: 0.9;
}

@keyframes cursor-float-1 {

    0%,
    100% {
        transform: translate3d(-20px, 40px, 0);
    }

    33% {
        transform: translate3d(60px, -30px, 0);
    }

    66% {
        transform: translate3d(-40px, -10px, 0);
    }
}

@keyframes cursor-float-2 {

    0%,
    100% {
        transform: translate3d(40px, -40px, 0);
    }

    50% {
        transform: translate3d(-30px, 50px, 0);
    }
}

@keyframes comment-pop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    10%,
    90% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
}

@keyframes flux-packet-1 {
    0% {
        left: 24%;
        top: 25%;
        opacity: 0;
        transform: scale(0);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        left: 50%;
        top: 50%;
        opacity: 1;
        transform: scale(0.5);
    }

    51% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes flux-packet-2 {
    0% {
        left: 24%;
        top: 50%;
        opacity: 0;
        transform: scale(0);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        left: 50%;
        top: 50%;
        opacity: 1;
        transform: scale(0.5);
    }

    51% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes flux-packet-3 {
    0% {
        left: 24%;
        top: 75%;
        opacity: 0;
        transform: scale(0);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        left: 50%;
        top: 50%;
        opacity: 1;
        transform: scale(0.5);
    }

    51% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes flux-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes flux-dash {
    to {
        stroke-dashoffset: -8;
    }
}