/* EPIC Motorsports Marketing - Motorsports Theme with Alternating Sections */
/* High-contrast sections and motorsport-specific styling */

/* Section Contrast System */
.section-dark {
    background: #0a0a0a;
    color: #ffffff;
    position: relative;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
    color: #ffffff;
}

.section-dark p {
    color: #cccccc;
}

.section-light {
    background: #ffffff;
    color: #000000;
    position: relative;
}

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-light h5,
.section-light h6 {
    color: #000000;
}

.section-light p {
    color: #666666;
}

/* Enhanced Hero Section - Dark */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='racing' x='0' y='0' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Crect width='10' height='10' fill='%23dc143c' opacity='0.05'/%3E%3Crect x='10' y='10' width='10' height='10' fill='%23dc143c' opacity='0.05'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23racing)'/%3E%3C/svg%3E");
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

/* Partner Logos Section - Light */
.partner-logos {
    background: #ffffff;
    border-top: 5px solid #dc143c;
    position: relative;
}

.partner-logos::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #dc143c, transparent);
}

/* Services Section - Dark */
.services-preview {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 50%, #1a1a1a 100%);
    color: #ffffff;
    position: relative;
}

.services-preview .section-title {
    color: #ffffff;
}

.services-preview .section-subtitle {
    color: #cccccc;
}

.services-preview .service-preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 20, 60, 0.2);
    color: #ffffff;
}

.services-preview .service-preview-card h3 {
    color: #ffffff;
}

.services-preview .service-preview-card p {
    color: #cccccc;
}

.services-preview .service-preview-card:hover {
    background: rgba(220, 20, 60, 0.1);
    border-color: #dc143c;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

/* Featured Projects Section - Light */
.featured-projects {
    background: #f8f8f8;
    position: relative;
}

.featured-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #dc143c, #ff1744, #dc143c);
}

/* News Section - Dark */
.latest-news {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: #ffffff;
    position: relative;
}

.latest-news .section-title {
    color: #ffffff;
}

.latest-news .news-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 20, 60, 0.2);
    color: #ffffff;
}

.latest-news .news-item h3 {
    color: #ffffff;
}

.latest-news .news-excerpt {
    color: #cccccc;
}

.latest-news .news-item:hover {
    background: rgba(220, 20, 60, 0.1);
    border-color: #dc143c;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

/* CTA Section - Already Dark - Enhanced */
.cta-banner {
    background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #dc143c 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.1'%3E%3Cpath d='m0 0 60 60m0-60L0 60'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* Enhanced Logo Styling */
.placeholder-logo {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #333333;
    font-weight: 900;
    font-size: 0.9rem;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.placeholder-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.2), transparent);
    transition: left 0.5s ease;
}

.placeholder-logo:hover::before {
    left: 100%;
}

.placeholder-logo:hover {
    border-color: #dc143c;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Motorsports Typography Enhancements */
.motorsports-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.motorsports-title.speed-blur {
    text-shadow: 
        2px 0 0 rgba(220, 20, 60, 0.5),
        4px 0 0 rgba(220, 20, 60, 0.3),
        6px 0 0 rgba(220, 20, 60, 0.1);
}

.motorsports-title.checkered {
    background: linear-gradient(45deg, 
        #000 25%, transparent 25%, transparent 50%, 
        #000 50%, #000 75%, transparent 75%
    );
    background-size: 20px 20px;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: checkeredMove 2s linear infinite;
}

@keyframes checkeredMove {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* Project Statistics Enhancement */
.project-stat {
    position: relative;
    text-align: center;
    padding: 20px;
    background: rgba(220, 20, 60, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.project-stat:hover {
    background: rgba(220, 20, 60, 0.1);
    transform: translateY(-3px);
}

.project-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #dc143c;
    display: block;
    position: relative;
}

.project-stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #dc143c, transparent);
    border-radius: 2px;
}

.project-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666666;
    margin-top: 10px;
}

/* Dark section adjustments for project stats */
.section-dark .project-stat {
    background: rgba(220, 20, 60, 0.1);
}

.section-dark .project-stat:hover {
    background: rgba(220, 20, 60, 0.2);
}

.section-dark .project-stat-label {
    color: #cccccc;
}

/* Enhanced Section Labels */
.section-label {
    color: #dc143c;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: inline-block;
    position: relative;
    padding-left: 30px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 3px;
    background: #dc143c;
    border-radius: 2px;
}

/* Racing Flag Pattern for Backgrounds */
.racing-flag-bg {
    background-image: repeating-conic-gradient(from 0deg, #000 0deg 90deg, #fff 90deg 180deg);
    background-size: 20px 20px;
    opacity: 0.03;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-dark,
    .section-light {
        padding: 60px 0;
    }
    
    .motorsports-title.speed-blur {
        text-shadow: 
            1px 0 0 rgba(220, 20, 60, 0.5),
            2px 0 0 rgba(220, 20, 60, 0.3);
    }
    
    .project-stat-number {
        font-size: 2rem;
    }
    
    .checkered {
        animation: none;
        background: #dc143c;
        background-clip: text;
        -webkit-background-clip: text;
    }
}

@media (max-width: 480px) {
    .motorsports-title {
        letter-spacing: 1px;
    }
    
    .section-label {
        letter-spacing: 2px;
        padding-left: 25px;
    }
    
    .section-label::before {
        width: 15px;
        height: 2px;
    }
}