/* css/styles.css - Global Styles for Shatigeag Corp */

/* Base styles / CSS Resets for Premium feel */
body {
    background-color: #0a0a0a;
    color: #f8fafc;
    scroll-behavior: smooth;
    /* Added wrapper class in HTML for overflow to not break mobile window scrolling */
}

/* Glassmorphism utilities */
.glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hide elements before GSAP loads to prevent flash - Handled by GSAP autoAlpha now */

/* Gradient Text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, #f8fafc, #94a3b8);
}

/* Dropdown hover logic for Mega Menu */
.group:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Custom Animations */
@keyframes scan {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(4000%);
        opacity: 0;
    }
}

@keyframes marquee {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes data-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translateY(-40px) scale(1);
        opacity: 0;
    }
}

.blink-fast {
    animation: blink 0.5s infinite alternate;
}

.blink-slow {
    animation: blink 1.2s infinite alternate;
}

.d-particle {
    animation: data-float 3s infinite ease-in;
    transform-origin: center;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    /* Gradient masks on the sides for a seamless fade out */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 35s linear infinite;
    width: max-content;
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}