/* Custom CSS Styles */

/* Base styles */
:root {
    --background: #000000;
    --foreground: #ffffff;
    --highlight: #ea0000;
    --white: #ffffff;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --alpha-white: rgba(255, 255, 255, 0.5);
}

body {
    font-family: 'Geist', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    overflow-x: hidden;
}

/* Typography classes */
.text-h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 500; }
.text-h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 500; }
.text-h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 500; }
.text-h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 500; }
.text-h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); font-weight: 500; }
.text-h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); font-weight: 500; }
.text-body { font-size: 1rem; font-weight: 400; }
.text-body-lg { font-size: 1.125rem; font-weight: 400; }
.text-body-sm { font-size: 0.875rem; font-weight: 400; }

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: noise-animation 20s linear infinite;
}

@keyframes noise-animation {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

/* Custom cursor */
.custom-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(234, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out, width 0.2s ease-out, height 0.2s ease-out;
    opacity: 0;
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--white);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    opacity: 0;
}

.cursor-hover .custom-cursor {
    width: 48px;
    height: 48px;
}

/* Marquee animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Selection styling */
::selection {
    background: var(--highlight);
    color: var(--white);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
    
    .text-h1 {
        font-size: 2.5rem;
    }
    
    .text-h2 {
        font-size: 2rem;
    }
    
    .text-h3 {
        font-size: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Gradient background canvas */
#gradientCanvas {
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Navigation transitions */
.nav-scrolled {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}