/* D8 Wrap - Main Styles */
/* Brand Colors */
:root {
    /* PRIMARY COLORS */
    --ignition-orange: #ff5a00;
    --garage-black: #000000;
    --steel-grey: #babcc7;
    --voltage-yellow: #feff33;
    --clean-white: #ffffff;
    
    /* SECONDARY COLORS */
    --cyber-aqua: #0ef0fd;
    --electric-pink: #ff00c8;
    --laser-lime: #38ff15;
    
    /* RARE COLORS */
    --cold-shadow: #0e00fd;
    --deep-red: #950028;
    --mind-guide: #003f00;
    
    /* Semantic colors */
    --primary: var(--ignition-orange);
    --secondary: var(--garage-black);
    --accent: var(--voltage-yellow);
    --accent-aqua: var(--cyber-aqua);
    --accent-pink: var(--electric-pink);
    --accent-lime: var(--laser-lime);
    --text-light: var(--clean-white);
    --text-muted: var(--steel-grey);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(14, 0, 253, 0.15) 0%, rgba(149, 0, 40, 0.15) 50%, rgba(255, 90, 0, 0.1) 100%);
    --gradient-section: linear-gradient(180deg, rgba(17, 17, 17, 1) 0%, rgba(0, 0, 0, 1) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    --gradient-footer: linear-gradient(180deg, rgba(149, 0, 40, 0.1) 0%, rgba(0, 0, 0, 1) 30%);
    
    /* Glows */
    --glow-orange: 0 0 30px rgba(255, 90, 0, 0.4);
    --glow-aqua: 0 0 30px rgba(14, 240, 253, 0.4);
    --glow-pink: 0 0 30px rgba(255, 0, 200, 0.4);
    --glow-lime: 0 0 30px rgba(56, 255, 21, 0.4);
    
    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--garage-black);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Alternating section backgrounds */
.section:nth-child(even) {
    background: var(--gradient-section);
}

.section:nth-child(odd) {
    background: rgba(17, 17, 17, 0.5);
}

/* Section with gradient overlay */
.section-gradient {
    background: var(--gradient-hero);
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--electric-pink) 100%);
    margin-top: var(--spacing-sm);
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* Section subtitle */
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.section-subtitle.text-center {
    margin-left: auto;
    margin-right: auto;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

.bg-dark {
    background-color: var(--garage-black);
}

.bg-grey {
    background: linear-gradient(180deg, #0a0a0a 0%, #111 50%, #0a0a0a 100%);
}

.bg-gradient-deep {
    background: linear-gradient(135deg, rgba(14, 0, 253, 0.1) 0%, rgba(149, 0, 40, 0.15) 100%);
}

.bg-gradient-aqua {
    background: linear-gradient(135deg, rgba(14, 240, 253, 0.05) 0%, transparent 50%);
}

/* Glow effects */
.glow-orange {
    box-shadow: var(--glow-orange);
}

.glow-aqua {
    box-shadow: var(--glow-aqua);
}

.glow-pink {
    box-shadow: var(--glow-pink);
}

.glow-lime {
    box-shadow: var(--glow-lime);
}

/* Animated gradient border */
.gradient-border {
    position: relative;
    background: var(--garage-black);
    border-radius: var(--radius-md);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--electric-pink), var(--cyber-aqua), var(--primary));
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientRotate 4s ease infinite;
}

@keyframes gradientRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Grid */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Flex */
.flex {
    display: flex;
}

.flex-center {
    justify-content: center;
    align-items: center;
}

.flex-between {
    justify-content: space-between;
    align-items: center;
}

/* Main content wrapper */
.main {
    min-height: calc(100vh - 200px);
}

/* Page Hero (for inner pages) */
.page-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px var(--spacing-md) var(--spacing-xl);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

.page-hero-content {
    text-align: center;
    max-width: 800px;
}

.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.page-hero-title span {
    color: var(--primary);
}

.page-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}