:root {
    --primary-red: #C41E3A;
    --dark-red: #8B0000;
    --bright-yellow: #FFD700;
    --orange: #FF6B35;
    --dark: #1a1a1a;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-red) 0%, var(--primary-red) 50%, var(--orange) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1552674605-469523170273?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.sunburst {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: conic-gradient(from 0deg, var(--bright-yellow) 0deg, transparent 20deg, var(--bright-yellow) 40deg, transparent 60deg, var(--bright-yellow) 80deg, transparent 100deg, var(--bright-yellow) 120deg, transparent 140deg, var(--bright-yellow) 160deg, transparent 180deg, var(--bright-yellow) 200deg, transparent 220deg, var(--bright-yellow) 240deg, transparent 260deg, var(--bright-yellow) 280deg, transparent 300deg, var(--bright-yellow) 320deg, transparent 340deg, var(--bright-yellow) 360deg);
    opacity: 0.15;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.event-badge {
    background: var(--bright-yellow);
    color: var(--dark);
    display: inline-block;
    padding: 10px 30px;
    font-weight: 800;
    font-size: 1.2rem;
    transform: skew(-10deg);
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.event-badge span {
    display: inline-block;
    transform: skew(10deg);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 var(--dark-red), 6px 6px 0 rgba(0,0,0,0.3);
    animation: slideInLeft 1s ease-out;
}

.hero-title .highlight {
    color: var(--bright-yellow);
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 30px;
    animation: slideInLeft 1s ease-out 0.2s backwards;
}

.date-box {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transform: rotate(3deg);
    transition: transform 0.3s;
    animation: slideInRight 1s ease-out 0.4s backwards;
}

.date-box:hover {
    transform: rotate(0deg) scale(1.05);
}

.date-box .day {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-red);
    line-height: 1;
}

.date-box .month {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.date-box .year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange);
}

.runner-silhouette {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    opacity: 0.9;
    animation: run 2s ease-in-out infinite;
}

@keyframes run {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-20px); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Info Bar */
.info-bar {
    background: var(--dark);
    color: white;
    padding: 30px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.info-item {
    text-align: center;
    padding: 15px;
}

.info-item i {
    font-size: 2.5rem;
    color: var(--bright-yellow);
    margin-bottom: 10px;
}

.info-item h5 {
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--bright-yellow);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-red), var(--bright-yellow));
    margin: 20px auto;
    border-radius: 3px;
}

/* Categories */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 3px solid transparent;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--bright-yellow);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.category-card h3 {
    color: var(--primary-red);
    font-weight: 800;
    margin-bottom: 10px;
}

.category-card .distance {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dark);
    margin: 15px 0;
}

/* Pricing */
.pricing-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border-left: 5px solid var(--primary-red);
}

.pricing-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.pricing-card h4 {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 15px;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
}

.price span {
    font-size: 1rem;
    color: #666;
}

/* Registration Form */
.registration-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    position: relative;
    overflow: hidden;
}

.registration-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 100px 100px;
}

.registration-form {
    background: white;
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.form-control, .form-select {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.btn-register {
    background: linear-gradient(135deg, var(--bright-yellow) 0%, var(--orange) 100%);
    color: var(--dark);
    border: none;
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.6);
    color: var(--dark);
}

/* Payment Info */
.payment-box {
    background: linear-gradient(135deg, var(--bright-yellow) 0%, #ffed4e 100%);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    border: 3px dashed var(--orange);
}

.payment-box h4 {
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 20px;
}

.payment-detail {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-detail strong {
    color: var(--primary-red);
}

/* Features */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-item h5 {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 5px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, #333 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-section .highlight-text {
    color: var(--bright-yellow);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 0 30px;
}

.contact-info a {
    color: var(--bright-yellow);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--bright-yellow);
    color: var(--dark);
    transform: translateY(-3px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .runner-silhouette {
        display: none;
    }
    
    .date-box {
        margin: 20px 0;
    }
    
    .registration-form {
        padding: 30px 20px;
    }
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Registration Type Tabs */
.reg-type-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.reg-type-btn {
    flex: 1;
    padding: 20px;
    border: 3px solid #e0e0e0;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.reg-type-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.reg-type-btn h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.reg-type-btn small {
    display: block;
    margin-top: 5px;
    opacity: 0.8;
    font-size: 0.85rem;
}

.reg-type-btn.active {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: white;
}

/* Responsive adjustments for registration tabs */
@media (max-width: 767.98px) {
    .reg-type-tabs {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .reg-type-btn {
        padding: 18px 15px;
        width: 100%;
    }
    
    .reg-type-btn i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .reg-type-btn h5 {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .reg-type-btn small {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

@media (max-width: 575.98px) {
    .reg-type-tabs {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .reg-type-btn {
        padding: 15px 12px;
        border-width: 2px;
    }
    
    .reg-type-btn i {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .reg-type-btn h5 {
        font-size: 0.95rem;
    }
    
    .reg-type-btn small {
        font-size: 0.75rem;
    }
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

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