/* GLOBAL OVERFLOW FIX */
html,
body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 4px;
}



/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--theme-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--theme-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: var(--theme-color);
    /* Note: alpha usage needs hex or rgba, simplified here */
    opacity: 0.1;
    border-color: transparent;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Glitch Effect on Hover for Titles */
.glitch-wrapper:hover .glitch {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--theme-color);
}

@keyframes glitch {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

/* Service Card Hover */
.service-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -10px var(--theme-color);
    /* Simplified shadow color */
    border: 1px solid var(--theme-color);
}

.service-card:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #fff;
}

/* Abstract Shapes */
.shape {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.loader-bar {
    width: 4px;
    height: 40px;
    background: var(--theme-color);
    margin: 0 3px;
    animation: loader 1s infinite ease-in-out;
}

.loader-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.loader-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.loader-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes loader {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(2);
    }
}

/* Marquee Animation */
.animate-marquee-slow {
    animation: marquee 15s linear infinite;
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}