/* CSS Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #667eea;
    --text-primary: #f5f5f5;
    --text-secondary: #d0d0d0;
    --text-light: #b0b0b0;
    --text-dark: #2c2c2c;
    --bg-primary: #2c2c2c;
    --bg-secondary: #3a3a3a;
    --bg-light: #f8f8f0;
    --bg-dark: #1a1a1a;
    --border-color: #4a4a4a;
    --border-light: #555;
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.3);
    --spacing-unit: 1rem;
    --section-padding: 2rem;
    --border-radius: 10px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography */
body {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #2c2c2c;
    position: relative;
    overflow-x: hidden;
}

/* Background Video */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -10;
    opacity: 0.3;
}

.background-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 44, 44, 0.7);
    z-index: -9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 500;
}

/* Base Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Base Section */
.section {
    padding: 100px 0;
    min-height: 100vh;
    background-color: transparent;
    margin: 0;
}

/* Reduce gap for brands section */
#brands.section {
    padding: 60px 0;
    min-height: auto;
}

/* Base Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: #0056b3;
}

/* Base Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp var(--transition-slow) ease forwards;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: calc(var(--spacing-unit) * 0.5); }
.mb-2 { margin-bottom: var(--spacing-unit); }
.mb-3 { margin-bottom: calc(var(--spacing-unit) * 1.5); }
.mb-4 { margin-bottom: calc(var(--spacing-unit) * 2); }

.mt-1 { margin-top: calc(var(--spacing-unit) * 0.5); }
.mt-2 { margin-top: var(--spacing-unit); }
.mt-3 { margin-top: calc(var(--spacing-unit) * 1.5); }
.mt-4 { margin-top: calc(var(--spacing-unit) * 2); }

/* Lazy Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.lazy-image.loaded {
    opacity: 1;
    background: none;
    animation: none;
}

.lazy-video {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

.lazy-video.loaded {
    opacity: 1;
    background: none;
    animation: none;
}

.lazy-video.loading {
    opacity: 0.7;
}

.lazy-video.ready {
    opacity: 1;
}

/* Loading shimmer animation */
@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive image styles */
.responsive-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Modern image format support */
.webp .lazy-image[data-webp-src] {
    /* WebP images will be loaded via JavaScript */
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lazy-image,
    .lazy-video {
        animation: none;
        transition: none;
    }
}
