/* EPIC Motorsports Marketing - Premium Design Elements */
/* Sleek, artistic, and flashy design elements while maintaining professionalism */

/* Geometric Patterns and Background Elements */
.geometric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    background-image: 
        linear-gradient(30deg, transparent 40%, rgba(220, 20, 60, 0.1) 40%, rgba(220, 20, 60, 0.1) 60%, transparent 60%),
        linear-gradient(-30deg, transparent 40%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 60%, transparent 60%);
    background-size: 60px 60px;
}

.hexagon-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='%23dc143c' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

/* Glassmorphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(220, 20, 60, 0.2);
}

/* Speed Lines and Racing Elements */
.speed-lines {
    position: absolute;
    top: 50%;
    left: -50px;
    width: calc(100% + 100px);
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.6), transparent);
    transform: translateY(-50%) skewY(-2deg);
    animation: speedMove 3s ease-in-out infinite;
}

.speed-lines::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 20px;
    width: calc(100% - 40px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: speedMove 3s ease-in-out infinite 0.5s;
}

@keyframes speedMove {
    0% { transform: translateX(-100px) translateY(-50%) skewY(-2deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100px) translateY(-50%) skewY(-2deg); opacity: 0; }
}

/* Premium Typography Effects */
.filled-title {
    background: linear-gradient(135deg, #dc143c, #ff1744);
    color: white;
    padding: 20px 40px;
    display: inline-block;
    position: relative;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
}

.filled-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: titleShine 3s ease-in-out infinite;
}

.outlined-title {
    color: transparent;
    -webkit-text-stroke: 2px #dc143c;
    text-stroke: 2px #dc143c;
    font-weight: 900;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.outlined-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #dc143c;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    clip-path: inset(0 100% 0 0);
    animation: fillText 2s ease-in-out forwards;
    animation-delay: 1s;
}

@keyframes titleShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fillText {
    to { clip-path: inset(0 0 0 0); }
}

/* Racing Stripes */
.racing-stripes {
    position: relative;
    overflow: hidden;
}

.racing-stripes::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(220, 20, 60, 0.1) 10px,
        rgba(220, 20, 60, 0.1) 20px
    );
    animation: stripeMove 4s linear infinite;
    z-index: 1;
}

@keyframes stripeMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

/* Carbon Fiber Texture */
.carbon-fiber {
    background-image: 
        radial-gradient(circle at 25% 25%, transparent 25%, rgba(0, 0, 0, 0.5) 26%),
        radial-gradient(circle at 75% 25%, transparent 25%, rgba(0, 0, 0, 0.5) 26%),
        radial-gradient(circle at 25% 75%, transparent 25%, rgba(0, 0, 0, 0.5) 26%),
        radial-gradient(circle at 75% 75%, transparent 25%, rgba(0, 0, 0, 0.5) 26%);
    background-size: 20px 20px;
    background-color: #1a1a1a;
}

/* Metallic Button Effects */
.btn-metallic {
    background: linear-gradient(145deg, #e0e0e0, #c0c0c0);
    border: 2px solid #999;
    color: #333;
    position: relative;
    overflow: hidden;
}

.btn-metallic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.6s ease;
}

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

.btn-metallic:hover {
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Neon Accent Effects */
.neon-accent {
    position: relative;
}

.neon-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc143c, #ff1744);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
    transition: width 0.4s ease;
}

.neon-accent:hover::after {
    width: 100%;
}

/* Tilt Effects for Cards */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
}

/* Floating Particles */
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(220, 20, 60, 0.6);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
}

.floating-particle:nth-child(odd) {
    animation-delay: 2s;
    background: rgba(255, 255, 255, 0.4);
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 1;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
    }
}

/* Premium Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #dc143c, transparent);
    position: relative;
    margin: 60px 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 10px;
    background: #dc143c;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

/* Interactive Hover States */
.magnetic-hover {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .geometric-overlay,
    .hexagon-pattern {
        opacity: 0.02;
    }
    
    .speed-lines {
        display: none;
    }
}

@media (max-width: 768px) {
    .filled-title {
        padding: 15px 25px;
        font-size: 1.5rem;
    }
    
    .outlined-title {
        -webkit-text-stroke: 1px #dc143c;
        text-stroke: 1px #dc143c;
    }
    
    .tilt-card:hover {
        transform: none;
    }
    
    .floating-particle {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .speed-lines,
    .floating-particle,
    .racing-stripes::before,
    .filled-title::before {
        animation: none !important;
    }
}