/* 35 Raceway Park - Modern Styling */

:root {
    --primary-orange: #FF6B35;
    --dark-orange: #E85A2A;
    --light-orange: #FF8C61;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --light-gray: #F0F0F0;
    --mid-gray: #666666;
    --dark-gray: #2C2C2C;
    --text-dark: #1A1A1A;
    --border-color: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 120px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--mid-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-orange);
    transition: all 0.3s ease;
}

/* Black Border Above Hero */
.hero-top-border {
    height: 8px;
    background: #000000;
    margin-top: 152px;
}

/* Hero Section with Slideshow */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

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

.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.6),
        0 0 40px rgba(0,0,0,0.4);
}

.hero-title .number {
    color: var(--primary-orange);
    font-size: 7rem;
    display: block;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.6),
        0 0 40px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.8),
        0 0 15px rgba(0,0,0,0.6);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Countdown & Race Status Section */
.countdown-section {
    background: var(--primary-orange);
    padding: 2.5rem 2rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.countdown-background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.countdown-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.race-status {
    flex: 0 0 auto;
}

.status-light-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-light {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.status-light.green {
    background: #00ff00;
    box-shadow: 0 0 30px #00ff00, 0 0 20px rgba(0,0,0,0.3);
}

.status-light.red {
    background: #ff0000;
    box-shadow: 0 0 30px #ff0000, 0 0 20px rgba(0,0,0,0.3);
}

.status-light.active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.status-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.countdown-main {
    text-align: center;
}

.countdown-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-unit {
    text-align: center;
    min-width: 80px;
}

.time-value {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.time-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    display: block;
    opacity: 0.9;
}

.event-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.event-logo-container {
    flex-shrink: 0;
}

.event-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.event-details {
    text-align: left;
}

.event-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.event-date {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
    display: inline-block;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.4),
        0 0 10px rgba(0,0,0,0.3);
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
    box-shadow: 
        0 4px 15px rgba(255, 107, 53, 0.3),
        0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary:hover {
    background: var(--dark-orange);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(255, 107, 53, 0.4),
        0 4px 12px rgba(0,0,0,0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Photos Callout */
.photos-callout {
    padding: 2rem;
    background: var(--off-white);
}

.photos-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.photographer-logo {
    flex-shrink: 0;
}

.photo-logo-img {
    max-width: 250px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
}

.photo-text {
    text-align: center;
}

.photo-text h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--text-dark);
}

.photo-text p {
    color: var(--mid-gray);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Class Sponsors Section */
.class-sponsors {
    padding: 5rem 2rem;
    background: var(--white);
}

.sponsor-features-grid {
    max-width: 1400px;
    margin: 3rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.sponsor-feature-card {
    background: var(--off-white);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.sponsor-feature-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.sponsor-feature-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--primary-orange);
}

.sponsor-logo-large {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo-large img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Racing Classes Section */
.racing-classes {
    padding: 5rem 2rem;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-orange);
}

.section-subtitle {
    color: var(--mid-gray);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.classes-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.class-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.class-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

.class-card:hover::before {
    transform: scaleX(1);
}

.class-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.class-content {
    padding: 1.5rem;
}

.class-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--primary-orange);
}

.class-description {
    color: var(--mid-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.class-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.class-link:hover {
    color: var(--dark-orange);
}

/* Track Info Section */
.track-info {
    padding: 5rem 2rem;
    background: var(--white);
}

.track-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.track-image-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.track-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.track-image-container:hover .track-image {
    transform: scale(1.05);
}

.track-details h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--text-dark);
}

.track-details p {
    color: var(--mid-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.track-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    background: var(--off-white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--mid-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* Sponsors Section */
.sponsors-section {
    padding: 5rem 2rem;
    background: var(--off-white);
}

.sponsors-grid {
    max-width: 1400px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.sponsor-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
}

.sponsor-card img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: var(--white);
}

.contact-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.contact-item {
    text-align: center;
    background: var(--off-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--mid-gray);
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--dark-orange);
}

/* Footer */
footer {
    background: var(--dark-gray);
    padding: 3rem 2rem 1.5rem;
    color: var(--white);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--primary-orange);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #CCCCCC;
}

.footer-bottom a {
    color: var(--primary-orange);
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .track-content {
        grid-template-columns: 1fr;
    }

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

    .countdown-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .event-info {
        justify-content: center;
    }

    .event-details {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .logo-img {
        height: 80px;
    }

    .hero-top-border {
        margin-top: 112px;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-title .number {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .classes-grid {
        grid-template-columns: 1fr;
    }

    .track-stats {
        grid-template-columns: 1fr;
    }

    .sponsor-features-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .countdown-timer {
        gap: 1rem;
    }

    .time-value {
        font-size: 2rem;
    }

    .time-label {
        font-size: 0.8rem;
    }

    .status-light {
        width: 50px;
        height: 50px;
    }

    .status-text {
        font-size: 0.9rem;
    }

    .event-logo {
        width: 130px;
        height: 130px;
        margin: 0 auto;
    }

    .event-name {
        font-size: 1.2rem;
    }

    .event-date {
        font-size: 0.95rem;
    }

    .photos-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .photo-logo-img {
        max-width: 200px;
    }
}

/* ============================================
   SPONSOR SCROLL BAR
   ============================================ */
.sponsor-scroll-bar {
    background: #ffffff;
    border-top: none;
    border-bottom: 3px solid var(--primary-orange);
    overflow: hidden;
    padding: 14px 0;
    position: relative;
}

.sponsor-scroll-bar::before,
.sponsor-scroll-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.sponsor-scroll-bar::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.sponsor-scroll-bar::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.sponsor-scroll-track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    animation: sponsorScroll 35s linear infinite;
}

.sponsor-scroll-bar:hover .sponsor-scroll-track {
    animation-play-state: paused;
}

.sponsor-scroll-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-decoration: none;
}

.sponsor-scroll-item img {
    height: 150px;
    width: auto;
    max-width: 375px;
    object-fit: contain;
    filter: brightness(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.sponsor-scroll-item:hover img {
    filter: brightness(1.1);
    transform: scale(1.1);
}

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

@media (max-width: 768px) {
    .sponsor-scroll-item img {
        height: 105px;
        max-width: 275px;
    }
    .sponsor-scroll-track {
        gap: 32px;
    }
}
