/* ===== Custom Animations ===== */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(40px);
    }
}

@keyframes softPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-gridMove {
    animation: gridMove 3s linear infinite;
}

.animate-soft-pulse {
    animation: softPulse 2s infinite ease-in-out;
}

.animate-hero {
    animation: heroFadeIn 0.8s ease forwards;
}

/* ===== Utilities ===== */
.hero-clip {
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

@media (max-width: 768px) {
    .hero-clip {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Navbar States ===== */
.nav-scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .nav-scrolled {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(-20px);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate-scale {
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.animate-left {
    transform: translateX(-30px);
}

.animate-on-scroll.animate-right {
    transform: translateX(30px);
}

.animate-on-scroll.animate-scale-down {
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Process line animations */
.process-line-fill {
    width: 0;
    transition: width 1.5s ease-in-out;
}

.process-line-fill.visible {
    width: 100%;
}

.process-line-fill-v {
    height: 0;
    transition: height 1.5s ease-in-out;
}

.process-line-fill-v.visible {
    height: 100%;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-marquee,
    .animate-gridMove,
    .animate-soft-pulse {
        animation: none !important;
    }

    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}