/* EPIC Motorsports Marketing - Clean Homepage Design */
/* Minimal and professional like WWP Group */

/* Hero Section with YouTube Video */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

/* YouTube Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#youtube-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#youtube-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
}

/* Clean overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* Hero Content */
.hero-content {
    text-align: center;
    color: #ffffff;
    z-index: 4;
    position: relative;
    max-width: 1200px;
    padding: 0 48px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
    margin-bottom: 3rem;
    letter-spacing: -0.05em;
    color: #ffffff;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta .btn {
    color: #ffffff;
    border-color: #ffffff;
    font-size: 1rem;
    padding: 20px 40px;
}

.hero-cta .btn:hover {
    background: #ffffff;
    color: #000000;
}

.hero-cta .btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.hero-cta .btn-primary:hover {
    background: transparent;
    color: #ffffff;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

/* Services Section */
.services-preview {
    background: #ffffff;
    padding: 160px 0;
    position: relative;
}

.services-grid {
    margin-top: 100px;
}

.service-preview-card {
    text-align: left;
    padding: 60px 40px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    background: #ffffff;
}

.service-preview-card:last-child {
    border-bottom: none;
}

.service-preview-card:hover {
    border-color: #000000;
    transform: translateY(-4px);
}

.service-preview-card .service-preview-icon {
    width: 60px;
    height: 60px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.service-number {
    font-size: 1rem;
    font-weight: 700;
    color: #0066ff;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.service-preview-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000000;
    line-height: 1.2;
}

.service-preview-card p {
    font-size: 1rem;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex: 1;
}

.service-arrow {
    font-size: 2rem;
    color: #000000;
    transition: transform 0.3s ease;
}

.service-preview-card:hover .service-arrow {
    transform: translateX(10px);
}

/* Placeholder Images for F1 Content */
.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: #000000;
    letter-spacing: 2px;
    text-align: center;
    transition: all 0.3s ease;
}

.placeholder-image.f1-racing { background: linear-gradient(135deg, #dc143c, #ff4500); color: #ffffff; }
.placeholder-image.f1-monaco { background: linear-gradient(135deg, #ff0000, #8b0000); color: #ffffff; }
.placeholder-image.f1-silverstone { background: linear-gradient(135deg, #006400, #228b22); color: #ffffff; }
.placeholder-image.f1-season { background: linear-gradient(135deg, #4169e1, #0000cd); color: #ffffff; }
.placeholder-image.f1-digital { background: linear-gradient(135deg, #9932cc, #8a2be2); color: #ffffff; }
.placeholder-image.f1-sustainability { background: linear-gradient(135deg, #32cd32, #00ff00); color: #ffffff; }

/* Featured Projects Section */
.featured-projects {
    background: #ffffff;
    padding: 160px 0;
    border-top: 1px solid #e0e0e0;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 2rem;
}

.view-all-projects {
    color: #000000;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.view-all-projects:hover {
    opacity: 0.7;
}

.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

.featured-project-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-project-card:hover {
    border-color: #000000;
}

.featured-project-image {
    height: 400px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-project-card:hover .featured-project-image img {
    transform: scale(1.05);
}

.featured-project-content {
    padding: 40px;
}

.project-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0066ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.featured-project-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
    line-height: 1.3;
}

.featured-project-card p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* News Section */
.latest-news {
    background: #f8f8f8;
    padding: 160px 0;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 2rem;
}

.view-all-news {
    color: #000000;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.view-all-news:hover {
    opacity: 0.7;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
    margin-top: 100px;
}

.news-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.news-item:hover {
    border-color: #000000;
}

.news-item-image {
    height: 250px;
    background: #f0f0f0;
    overflow: hidden;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-item-image img {
    transform: scale(1.05);
}

.news-item-content {
    padding: 40px;
}

.news-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0066ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.news-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
    line-height: 1.3;
}

.news-excerpt {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.read-more {
    color: #000000;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s ease;
}

.read-more:hover {
    opacity: 0.7;
}

/* CTA Section */
.cta-banner {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 160px 0;
}

.cta-banner h2 {
    color: #ffffff;
    margin-bottom: 2rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.cta-banner .btn {
    color: #ffffff;
    border-color: #ffffff;
}

.cta-banner .btn:hover {
    background: #ffffff;
    color: #000000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-projects-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .projects-header,
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .service-preview-card {
        padding: 40px 24px;
    }
    
    .service-preview-card .service-preview-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .services-preview,
    .featured-projects,
    .latest-news,
    .cta-banner {
        padding: 80px 0;
    }
    
    .featured-project-content,
    .news-item-content {
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 90vh;
    }
    
    .services-preview,
    .featured-projects,
    .latest-news,
    .cta-banner {
        padding: 60px 0;
    }
    
    .featured-project-content,
    .news-item-content {
        padding: 24px;
    }
}