/* Base Settings */
html {
    scroll-behavior: smooth;
    background-color: #020617;
    color: #f8fafc;
}

body {
    background-color: #020617;
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: none; /* Custom cursor handling */
}

/* Typography */
.font-display { font-family: 'Archivo Black', sans-serif; }
.font-body { font-family: 'Inter', sans-serif; }
.font-mono { font-family: 'Space Mono', monospace; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #020617; 
}
::-webkit-scrollbar-thumb {
    background: #1e293b; 
    border: 2px solid #020617;
}
::-webkit-scrollbar-thumb:hover {
    background: #22d3ee;
}

/* Utilities */
.text-outline-white {
    -webkit-text-stroke: 1px rgba(255,255,255,0.8);
    color: transparent;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animations */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 40s linear infinite;
}

/* Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
#custom-cursor {
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}
#custom-cursor.hovering {
    transform: translate(-50%, -50%) scale(2.5);
}

/* Horizontal Scroll Section */
.horizontal-scroll-wrapper {
    position: relative;
    height: 300vh;
}
.horizontal-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
