@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

.content-overlay {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.glow {
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.7), 0 0 10px rgba(255, 140, 0, 0.5), 0 0 15px rgba(255, 140, 0, 0.3);
}

.glow-text {
    /* Creates a gradient and "clips" it to the shape of the text */
    background: linear-gradient(90deg, #fb923c, #f97316); /* Orange-400 to Orange-500 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    /* We remove the text-shadow to make it clean */
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
}
.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes pulse-slow {
    50% {
        opacity: .6;
        transform: translateY(-10px);
    }
}
.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

#back-to-top-button {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#back-to-top-button.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* --- Brands Marquee CSS (Updated for seamless loop) --- */
.marquee-container {
    width: 100%;
    overflow: hidden; /* Hides content outside the container */
    box-sizing: border-box; /* Include padding/border in element's total width/height */
    position: relative; /* Good practice for containing animated elements */
}

.marquee-content {
    display: flex; /* Use flexbox for better control over horizontal layout */
    width: max-content; /* Make the content take only as much width as its children */
    animation: marquee-scroll 30s linear infinite; /* Adjust duration for speed. */
    /* padding-left: 100%; is removed to enable the -50% translateX trick */
}

.brand-item {
    display: flex; /* Changed from inline-flex to flex for more reliable flex properties */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 2.5rem; /* Space between logos */
    height: 120px; /* Fixed height for consistent layout */
    min-width: 150px; /* Use min-width instead of width for slightly more flexibility */
    flex-shrink: 0; /* Prevent items from shrinking */
}

.brand-item img {
    max-height: 80px; /* Max height for logos */
    filter: grayscale(100%) brightness(150%); /* Make logos grayscale and brighter for dark background */
    transition: filter 0.3s ease-in-out; /* Smooth transition for hover */
}

.brand-item:hover img {
    filter: grayscale(0%) brightness(100%); /* Color on hover */
}

/* Keyframe animation for the marquee - CRUCIAL CHANGE HERE for seamless loop */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        /* Moves the content exactly halfway, ensuring the duplicated set aligns seamlessly */
        transform: translateX(-50%); 
    }
}

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}
/* --- END Brands Marquee CSS --- */