/* Hero Section */
.hero {
    height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    width: 70%;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    color: var(--dark-gray);
}

.hero-content::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: left center;
    width: 100%;
    height: 8px;
    background: var(--dynamo-red);
    border-radius: 4px;
    transition: transform 0.6s ease-out 0.3s;
}

.hero.animate-in h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero.animate-in .hero-content::after {
    transform: translateX(-50%) scaleX(1);
}

/* Statistics Section */
.stats-overview-section {
    padding: 1.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    text-align: center;
    width: 70%;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.stat-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 2rem;
    color: var(--dynamo-red);
    font-weight: 800;
}

.stat-label {
    color: var(--medium-gray);
    text-transform: uppercase;
    margin-top: 0.4rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.stats-overview-section .stat-card:hover,
.contact-section .contact-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    z-index: 10;
}


/* Contact Section */
.contact-section {
    padding: 1.5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    width: 70%;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    text-decoration: none;
    color: inherit;
    display: block;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease;
}

.contact-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-card i {
    font-size: 1.8rem;
    color: var(--dynamo-red);
    margin-bottom: 0.8rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Map Section */
.map-section {
    padding: 1.5rem 0;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 350px;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.3s ease-out;
    width: 70%;
    margin: 0 auto;
}

.map-container.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Section Titles and Subtitles */
.section-title,
.section-subtitle {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title.animate-in,
.section-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        height: 38vh;
        width: 80%;
        margin: 0 auto;
    }

    .hero-content {
        width: 80%;
        margin: 0 auto;
    }

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

    .hero-content::after {
        height: 7px;
        border-radius: 3.5px;
    }

    .stats-overview-section {
        padding: 1.3rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.2rem;
        width: 80%;
    }

    .stat-card {
        padding: 1.2rem;
        border-radius: 10px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .contact-section {
        padding: 1.3rem 0;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.2rem;
        width: 80%;
    }

    .contact-card {
        padding: 1.2rem;
        border-radius: 14px;
    }

    .contact-card i {
        font-size: 1.6rem;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }

    .contact-card p {
        font-size: 0.85rem;
    }

    .map-section {
        padding: 1.3rem 0;
    }

    .map-container {
        height: 300px;
        width: 80%;
        border-radius: 10px;
    }
}

/* Mobile View (≤767px) */
@media (max-width: 767px) {
    .hero {
        height: 35vh;
        padding: 1.2rem 0.6rem;
        width: 95%;
        margin: 0 auto;
    }

    .hero-content {
        width: 95%;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-content::after {
        height: 6px;
        border-radius: 3px;
    }

    .stats-overview-section {
        padding: 1.2rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.8rem;
        width: 95%;
    }

    .stat-card {
        padding: 1rem;
        border-radius: 12px;
        min-height: 44px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .contact-section {
        padding: 1.2rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        width: 95%;
    }

    .contact-card {
        padding: 1rem;
        border-radius: 12px;
        min-height: 44px;
    }

    .contact-card i {
        font-size: 1.5rem;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .contact-card p {
        font-size: 0.8rem;
    }

    .map-section {
        padding: 1.2rem 0;
    }

    .map-container {
        height: 250px;
        width: 95%;
        border-radius: 10px;
    }
}

/* Small Mobile View (≤400px) */
@media (max-width: 400px) {
    .hero {
        height: 30vh;
        padding: 1rem 0.6rem;
        width: 90%;
        margin: 0 auto;
    }

    .hero-content {
        width: 100%;
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        margin-bottom: 0;
        gap: 0.4rem;
    }

    .hero h1 .club-name-part {
        display: inline-block;
        margin: 0;
    }

    .hero-content::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        transform-origin: left center;
        width: 100%;
        height: 6px;
        background: var(--dynamo-red);
        border-radius: 3px;
        transition: transform 0.6s ease-out 0.3s;
    }

    .hero.animate-in .hero-content::after {
        transform: translateX(-50%) scaleX(1);
    }

    .stats-overview-section {
        padding: 1rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.6rem;
        width: 90%;
    }

    .stat-card {
        padding: 0.8rem;
        border-radius: 10px;
        min-height: 44px;
        min-width: 150px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .contact-section {
        padding: 1rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        width: 90%;
    }

    .contact-card {
        padding: 0.8rem;
        border-radius: 10px;
        min-height: 44px;
    }

    .contact-card i {
        font-size: 1.4rem;
    }

    .contact-card h3 {
        font-size: 1rem;
    }

    .contact-card p {
        font-size: 0.75rem;
    }

    .map-section {
        padding: 1rem 0;
    }

    .map-container {
        height: 200px;
        width: 90%;
        border-radius: 8px;
    }
}