/* Hero Refinements */
/* Hero Refinements */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Update path to your PNG */
    background-image: url('../img/assets/photo_6244375870336339040_y.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* This creates the sticky/parallax effect */
    background-attachment: fixed;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darkened gradient for better text readability */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: -1;
}

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

.hero-logo {
    width: 140px;
    /* Slightly larger for impact */
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    letter-spacing: -2px;
}

.cta-btn {
    padding: 12px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Feature Toggle Design */
.role-btn {
    padding: 12px 40px;
    border-radius: 50px;
    border: 2px solid #eee;
    background: #fff;
    font-weight: 700;
    color: #6c757d;
    transition: 0.3s;
}

.role-btn.active {
    background: #ffc107;
    border-color: #ffc107;
    color: #000;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

/* Floating Animation for Scroll Hint */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}

/* FEATURES */

/* Runner Feature Styles */

/* Initial states to prevent blank page on load */
#runner-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#organizer-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.role-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-row {
    padding: 3rem 0;
    transition: all 0.4s ease;
}

.feature-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-img-wrapper:hover {
    transform: translateY(-10px);
}

.feature-img {
    transition: transform 0.5s ease;
    width: 100%;
}

.feature-img-wrapper:hover .feature-img {
    transform: scale(1.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 1rem;
}

.feature-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #636e72;
}

/* Zebra striping for clarity */
.feature-row:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 2rem;
}

/* FEATURES */

/* DOCS AND EVENTS */
/* Documentation Section */
.doc-card {
    background: linear-gradient(145deg, #1a1a1a, #242424);
    border: 1px solid #333;
    transition: border-color 0.3s ease;
}

.doc-card:hover {
    border-color: #ffc107;
}

/* Upcoming Races Section */


.hover-scale {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.4) !important;
}

.race-btn-text {
    letter-spacing: 2px;
}

/* DOCS AND EVENTS */