/**
 * Szeja Rally Team - Beyond Design
 * Advanced Modern Racing Experience
 */

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    /* Colors - Beyond Edition */
    --color-primary: #FF0000;
    --color-secondary: #0A0A0A;
    --color-accent: #FFD700;
    --color-dark: #0F0F0F;
    --color-darker: #060606;
    --color-light: #FFFFFF;
    --color-gray: #808080;
    --color-gray-dark: #2A2A2A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    --gradient-accent: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-dark: linear-gradient(180deg, #0F0F0F 0%, #1A1A1A 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    
    /* Typography */
    --font-primary: 'Rajdhani', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;
    
    /* Effects */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(255, 0, 0, 0.5);
}

/* ===================================
   RESET & BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--color-darker);
    color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===================================
   PARTICLES BACKGROUND
   =================================== */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===================================
   MODERN NAVIGATION
   =================================== */
.nav-modern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.nav-modern.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap;
}

.logo-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    min-width: 0;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Scrolled state - smaller logo */
.nav-scrolled .logo-image {
    height: 45px;
}

.nav-menu-modern {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
}

.nav-link {
    color: var(--color-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-social {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    border-radius: 8px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.cart-link {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.2);
}

.cart-link:hover {
    background: var(--gradient-primary);
    color: var(--color-light);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.4);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--color-primary);
    color: var(--color-light);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-darker);
}

.cart-count:empty {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* ===================================
   HERO SECTION - BEYOND
   =================================== */
.hero-beyond {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
}

.hero-content-beyond {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 0 40px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.hero-title-beyond {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-line {
    display: block;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(255, 0, 0, 0.5);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 3vw, 2rem);
    letter-spacing: 8px;
    margin-bottom: 50px;
    color: var(--color-accent);
}

.typewriter-text {
    display: inline-block;
    border-right: 3px solid var(--color-accent);
    animation: typing 3s steps(20) 1s both, blink 0.5s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-stats-mini {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   BUTTONS - BEYOND
   =================================== */
.btn-beyond {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-beyond::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.btn-beyond:hover::before {
    left: 100%;
}

.btn-primary-beyond {
    background: var(--gradient-primary);
    color: var(--color-light);
    box-shadow: var(--shadow-glow);
}

.btn-primary-beyond:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.7);
}

.btn-outline-beyond {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-beyond:hover {
    background: var(--color-primary);
    color: var(--color-light);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===================================
   SCROLL INDICATOR
   =================================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 30px; }
}

.scroll-text {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   FLOATING SHAPES
   =================================== */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.3) 0%, transparent 70%);
    animation: float 20s infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ===================================
   CONTAINER
   =================================== */
.container-beyond {
    max-width: 2000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===================================
   SECTION HEADERS
   =================================== */
.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-label::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.section-title-beyond {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.section-header-center {
    text-align: center;
    margin-bottom: 80px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-beyond {
    padding: 150px 0;
    position: relative;
    background: var(--gradient-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.about-image-side {
    position: relative;
}

.image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.parallax-image {
    width: 100%;
    transition: transform 0.3s;
}

.image-frame:hover .parallax-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.image-frame:hover .image-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-light);
    cursor: pointer;
    transition: var(--transition);
}

.play-button:hover {
    transform: scale(1.1);
}

.floating-card {
    position: absolute;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-md);
}

.floating-card i {
    font-size: 32px;
    color: var(--color-primary);
}

.floating-card span {
    font-size: 18px;
    font-weight: 700;
}

.card-1 {
    top: 20px;
    right: -50px;
}

.card-2 {
    bottom: 40px;
    left: -50px;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--color-primary);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.feature-content p {
    color: var(--color-gray);
    font-size: 14px;
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-beyond {
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.stats-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/stats-bg.jpg') center/cover no-repeat fixed;
    filter: brightness(0.3);
}

.stats-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 50px 30px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.stat-icon {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.stat-value {
    font-size: 64px;
    font-weight: 900;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stat-bar {
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-bar {
    width: 80%;
}

/* TO BE CONTINUED IN NEXT FILE... */
