/* ================================================
   BOURNFIRE HACKATHON - PREMIUM MODERN DESIGN
   Industry-Standard UI/UX with 3D Effects & Animations
================================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===============================
   CSS Custom Properties
================================ */
:root {
    /* Premium Color Palette */
    --primary: #e54738;
    --primary-dark: #d43d2f;
    --secondary: #e54738;
    --accent: #667eea;
    --accent-purple: #764ba2;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e54738 0%, #e54738 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-mesh: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-aurora: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);

    /* Glass Morphism */
    --glass-white: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(24px);

    /* Dark Theme */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1419;
    --bg-tertiary: #14191f;
    --text-primary: #ffffff;
    --text-secondary: #b8c0d9;
    --text-muted: #7a8396;

    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-2xl: 48px;
    --radius-full: 9999px;

    /* Shadows & Glows */
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.35);
    --glow-primary: 0 0 60px rgba(229, 71, 56, 0.4);
    --glow-secondary: 0 0 60px rgba(229, 71, 56, 0.4);
    --glow-accent: 0 0 60px rgba(102, 126, 234, 0.4);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===============================
   Global Reset & Base Styles
================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Enhanced Animated Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(229, 71, 56, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(229, 71, 56, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 50% 60%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(240, 147, 251, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #0a0e1a 0%, #0f1419 50%, #14191f 100%);
    background-attachment: fixed;
    animation: meshGradient 25s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes meshGradient {

    0%,
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }

    25% {
        opacity: 0.9;
    }

    50% {
        opacity: 1;
        transform: scale(1.05) rotate(2deg);
    }

    75% {
        opacity: 0.95;
    }
}

/* Floating particles effect */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        radial-gradient(circle, rgba(229, 71, 56, 0.02) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: particleFloat 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

/* Content layer */
body>* {
    position: relative;
    z-index: 1;
}

/* ===============================
   Utility Classes
================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section-padding {
    padding: var(--space-24) 0;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scroll reveal animation */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-scroll].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state */
.loading {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(229, 71, 56, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}