/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .nav-menu a,
    .cta-button,
    .submit-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.navbar {
    background: #990000;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 44px;
    width: auto;
}

.nav-logo h1 {
    color: #FFCC00;
    font-size: 1.8rem;
    margin: 0;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 1.1rem;
    min-height: 44px;
}

.nav-menu a:hover {
    color: #FFCC00;
    background: rgba(255, 204, 0, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(153, 0, 0, 0.8), rgba(255, 204, 0, 0.8)), 
                url('images/team-photo-2024.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(153, 0, 0, 0.7) 0%, rgba(255, 204, 0, 0.7) 100%);
}

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

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: #990000;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    border: 2px solid #FFCC00;
}

.cta-button:hover {
    background: #FFCC00;
    color: #990000;
    border-color: #990000;
}

/* Sections */
section {
    padding: 80px 0;
}

.about {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
}

.team-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about h2,
.schedule h2,
.races h2,
.eligibility h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #990000;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    color: #990000;
    margin-bottom: 1rem;
}

/* Schedule */
.schedule {
    background: #FFCC00;
}

.schedule-with-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.schedule-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.schedule-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.schedule-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #990000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.schedule-item h3 {
    color: #990000;
    margin-bottom: 1rem;
}

.schedule-item ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.schedule-item li {
    margin-bottom: 0.5rem;
}

/* Races */
.races {
    background: #FFCC00;
}

.race-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.race {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #990000;
}

.race.championship {
    background: linear-gradient(135deg, #990000, #FFCC00);
    color: white;
    border-left: 4px solid #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.championship-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.race h3 {
    color: #990000;
    margin-bottom: 1rem;
}

.race.championship h3 {
    color: white;
}

/* Eligibility */
.eligibility {
    background: #FFCC00;
}

.eligibility-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.eligibility-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.eligibility-text h2 {
    text-align: center;
    align-self: center;
}

.eligibility-text p {
    text-align: center;
    align-self: center;
}

.eligibility-text h3 {
    text-align: left;
    margin-top: 2rem;
    margin-bottom: 1rem;
    max-width: 400px;
    align-self: flex-start;
}

.action-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.eligibility ul {
    text-align: left;
    max-width: 400px;
    margin: 0;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.eligibility li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cta-section {
    margin-top: 3rem;
    align-self: center;
}

/* Contact Page */
.contact {
    padding: 120px 0 80px;
    background: white;
}

.contact h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #990000;
}

.contact>.container>p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: #990000;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    color: #990000;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #990000;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #990000;
}

.submit-btn {
    background: #990000;
    color: white;
    padding: 12px 30px;
    border: 2px solid #FFCC00;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #FFCC00;
    color: #990000;
    border-color: #990000;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #FFCC00;
    color: #990000;
    border: 1px solid #990000;
}

.form-message.error {
    background: #990000;
    color: white;
    border: 1px solid #FFCC00;
}

/* Footer */
footer {
    background: #990000;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */

/* Tablet styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu a {
        padding: 0.6rem 0.8rem;
        font-size: 1rem;
        min-height: 44px;
    }
    
    .about-content,
    .eligibility-content {
        gap: 3rem;
    }
    
    .schedule-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 10px;
    }

    .nav-menu {
        gap: 0.3rem;
        flex-wrap: nowrap;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .logo {
        height: 38px;
    }
    
    .nav-logo h1 {
        font-size: 1.5rem;
    }

    /* Hero section */
    .hero {
        height: 80vh;
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .about h2,
    .schedule h2,
    .races h2,
    .eligibility h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Grid layouts */
    .contact-content,
    .about-content,
    .eligibility-content,
    .schedule-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features,
    .schedule-content,
    .race-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .race.championship {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Images */
    .team-photo,
    .championship-photo,
    .action-photo,
    .schedule-photo {
        margin-bottom: 1rem;
    }
    
    /* Contact form */
    .contact h1 {
        font-size: 2rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    /* Buttons */
    .cta-button,
    .submit-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .about h2,
    .schedule h2,
    .races h2,
    .eligibility h2 {
        font-size: 1.75rem;
    }
    
    .feature,
    .schedule-item,
    .race {
        padding: 1.5rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1rem;
    }
    
    .nav-menu {
        font-size: 0.8rem;
        gap: 0.1rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.6rem;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .logo {
        height: 36px;
    }
    
    .nav-logo h1 {
        font-size: 1.3rem;
    }
}