/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #ffffff;
}

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

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-hero {
    background-color: #2563eb;
    color: white;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-hero:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
}

.btn-final-cta {
    background-color: white;
    color: #2563eb;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-final-cta:hover {
    background-color: #f9fafb;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-submit {
    background-color: #2563eb;
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.btn-submit:hover {
    background-color: #1d4ed8;
}

.btn-submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-mobile {
    width: 100%;
    margin-top: 1rem;
}

/* Header */
.header {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    height: 3rem;
    width: auto;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 24px;
    height: 3px;
    background-color: #374151;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

.nav-mobile.active {
    display: flex;
}

.nav-link-mobile {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: #2563eb;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 5rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.hero-decoration-1 {
    top: 2.5rem;
    left: 2.5rem;
    width: 5rem;
    height: 5rem;
    background-color: #bfdbfe;
}

.hero-decoration-2 {
    bottom: 5rem;
    right: 5rem;
    width: 8rem;
    height: 8rem;
    background-color: #93c5fd;
    animation-delay: 1s;
}

.hero-decoration-3 {
    top: 50%;
    left: 25%;
    width: 4rem;
    height: 4rem;
    background-color: #60a5fa;
    animation-delay: 0.5s;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo-img {
    height: 8rem;
    width: auto;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #374151;
    margin-bottom: 2rem;
    max-width: 4xl;
    margin-left: auto;
    margin-right: auto;
}

.event-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    font-size: 1.125rem;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #2563eb;
}

.event-item span {
    font-weight: 600;
    color: #1f2937;
}

.hero-note {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .event-details {
        flex-direction: row;
        justify-content: center;
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.benefit-card {
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefit-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #bfdbfe;
}

.benefit-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    margin: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

.benefit-overlay {
    position: absolute;
    inset: 0;
    background-color: #2563eb;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-card:hover .benefit-overlay {
    opacity: 0.1;
}

.benefit-content {
    padding: 0 1.5rem 1.5rem;
    text-align: center;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.benefit-card:hover .benefit-title {
    color: #2563eb;
}

.benefit-description {
    color: #6b7280;
    line-height: 1.6;
}

.benefits-cta {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.benefits-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.benefits-cta-text {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9fafb 0%, #dbeafe 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-0.5rem);
}

.gallery-item img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.gallery-description {
    font-size: 0.875rem;
    color: #d1d5db;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Final CTA Section */
.final-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
}

.final-cta-content {
    text-align: center;
}

.final-cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.final-cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 4xl;
    margin-left: auto;
    margin-right: auto;
}

.final-cta-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-feature-icon {
    background-color: white;
    color: #2563eb;
    padding: 0.75rem;
    border-radius: 9999px;
    font-weight: 700;
}

.final-cta-note {
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.8;
}

@media (min-width: 768px) {
    .final-cta-title {
        font-size: 3rem;
    }
    
    .final-cta-subtitle {
        font-size: 1.5rem;
    }
    
    .final-cta-features {
        flex-direction: row;
        justify-content: center;
    }
}

/* Footer */
.footer {
    background-color: #111827;
    color: white;
    padding: 4rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-main {
    grid-column: span 2;
}

.footer-logo {
    height: 4rem;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: #d1d5db;
    margin-bottom: 1.5rem;
    max-width: 28rem;
}

.footer-info {
    space-y: 0.5rem;
}

.footer-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.footer-icon {
    width: 1rem;
    height: 1rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #60a5fa;
}

.footer-links {
    list-style: none;
}

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

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

.footer-links a:hover {
    color: #60a5fa;
}

.footer-subtitle {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 0.5rem;
}

.social-link:hover {
    color: #60a5fa;
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-name {
    font-weight: 500;
    color: #60a5fa;
    margin-bottom: 0.25rem;
}

.contact-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-phone:hover {
    color: #60a5fa;
}

.contact-icon {
    width: 1rem;
    height: 1rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 3rem;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.powered-by {
    color: #60a5fa;
    font-weight: 600;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Registration Page Styles */
.registration-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    padding: 4rem 0;
}

.registration-hero-content {
    text-align: center;
}

.registration-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.registration-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.registration-event-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.125rem;
}

.registration-content {
    padding: 3rem 0;
    background-color: #f9fafb;
}

.registration-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.registration-form-section {
    grid-column: span 2;
}

.registration-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .registration-hero-title {
        font-size: 3rem;
    }
    
    .registration-event-info {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .registration-layout {
        grid-template-columns: 2fr 1fr;
    }
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.card-title-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.card-subtitle {
    color: #6b7280;
    margin-top: 0.5rem;
}

.card-content {
    padding: 1.5rem;
}

.card-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #2563eb;
}

/* Form Styles */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-label {
    font-weight: 600;
    color: #374151;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

.race-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.race-category {
    position: relative;
}

.race-category input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.race-category-label {
    display: block;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.race-category input[type="radio"]:checked + .race-category-label {
    border-color: #2563eb;
    background-color: #dbeafe;
}

.race-category-label:hover {
    background-color: #f0f9ff;
}

.race-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.race-icon {
    font-size: 1.25rem;
}

.race-name {
    font-weight: 600;
}

.race-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.race-pricing {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.early-bird {
    color: #059669;
    font-weight: 600;
}

.normal-price {
    color: #6b7280;
    text-decoration: line-through;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
}

.link-text {
    color: #2563eb;
    text-decoration: underline;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.info-icon {
    width: 1rem;
    height: 1rem;
    color: #2563eb;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.contact-detail {
    color: #6b7280;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Error Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.error-content {
    text-align: center;
    padding: 2rem;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 6rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.error-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .error-actions {
        flex-direction: row;
        justify-content: center;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 767px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .benefits,
    .gallery {
        padding: 3rem 0;
    }
    
    .final-cta {
        padding: 3rem 0;
    }
    
    .final-cta-title {
        font-size: 2rem;
    }
    
    .final-cta-subtitle {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .mobile-menu-btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero,
    .benefits,
    .gallery,
    .final-cta {
        padding: 1rem 0;
    }
}