.glass-card {
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 128, 128, 0.1);
    box-shadow: 0 8px 32px rgba(0, 128, 128, 0.05);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-left-scroll.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right-scroll {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-in-right-scroll.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-container {
    position: relative;
}

.timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #F1F5F9;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-fill {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    background: linear-gradient(to bottom, #E62E2D, #008080);
    transform: translateX(-50%);
    z-index: 1;
    height: 0%;
    transition: height 0.3s ease-out;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.timeline-dot {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(0);
}

.timeline-dot.is-visible {
    transform: scale(1);
}

.bg-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.02'/%3E%3C/svg%3E");
}

.sticky-active {
    color: #FF0000 !important;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #E2E8F0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #CBD5E1;
}

.char-reveal span {
    display: inline-block;
    opacity: 0;
    transform: scale(0.5) translateY(10px);
    animation: charFadeIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes charFadeIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-split-left,
.hero-split-right {
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
    display: inline-block;
}

.parallax-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.magnetic-btn {
    -webkit-transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

html {
    scroll-behavior: smooth;
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    inset: 0;
    background-color: #fdfcfc;
    /* Light background for light variant */
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.dark #loading-screen {
    background-color: #000000;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid;
    border-color: #f6d137 #0000;
    animation: l1 1s infinite;
}

@keyframes l1 {
    to {
        transform: rotate(.5turn)
    }
}

.mesh-gradient-bg {
    background: radial-gradient(at 0% 0%, hsla(0, 100%, 50%, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(180, 100%, 25%, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(0, 100%, 50%, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(180, 100%, 25%, 0.08) 0px, transparent 50%);
    background-size: 150% 150%;
    animation: gradient-xy 15s ease infinite;
}

/* Marquee Styles */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.marquee-row {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
    gap: 2rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .marquee-row {
        gap: 4rem;
        padding-bottom: 3rem;
    }
}

@keyframes marquee-reverse {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.marquee-row.reverse {
    animation: marquee-reverse 40s linear infinite;
}

.marquee-row:hover,
.marquee-row.reverse:hover {
    animation-play-state: paused;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-100vh) scale(0);
        opacity: 0;
    }
}

.approach-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.4);
    animation: drift-particle 20s infinite linear alternate;
}

@keyframes drift-particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        transform: translate(100vw, -20vh) scale(0.5);
        opacity: 0;
    }
}

.ruler-y {
    position: relative;
    outline: 2px solid cyan;
}

.ruler-y::before,
.ruler-y::after {
    content: '';
    position: absolute;
    left: -9999px;
    right: -9999px;
    height: 1px;
    background: red;
    pointer-events: none;
    z-index: 9999;
}

.ruler-y::before {
    top: 0;
}

.ruler-y::after {
    bottom: 0;
}