:root {
    --primary-red: #E63946;
    --dark-red: #C42A35;
    --light-red: #FF5964;
    --cream: #F8F7F4;
    --off-white: #FEFEFE;
    --gray-light: #E8E6E3;
    --gray-mid: #B4B2AF;
    --gray-dark: #4A4A4A;
    --charcoal: #2B2B2B;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: -1;
    background-image:
        repeating-linear-gradient(45deg, var(--primary-red) 0px, var(--primary-red) 2px, transparent 2px, transparent 10px),
        repeating-linear-gradient(-45deg, var(--primary-red) 0px, var(--primary-red) 2px, transparent 2px, transparent 10px);
    animation: patternSlide 20s linear infinite;
}

@keyframes patternSlide {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

/* Header */
header {
    background: var(--off-white);
    padding: 2rem 0;
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(230, 57, 70, 0.08);
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Unbounded', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: -0.02em;
    animation: fadeInDown 0.8s ease-out;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 {
    font-family: 'Unbounded', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero .highlight {
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.hero .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 0;
    width: 100%;
    height: 0.4rem;
    background: var(--light-red);
    opacity: 0.3;
    z-index: -1;
}

.hero p {
    font-size: 1.4rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Unbounded', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-red);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* Mods Section */
.mods-section {
    padding: 6rem 0;
    background: var(--off-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-mid);
    font-weight: 300;
}

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

.mod-card {
    background: var(--cream);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out both;
    display: flex;
    flex-direction: column;
}

.mod-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--light-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mod-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.15);
}

.mod-card:hover::before {
    transform: scaleX(1);
}

.mod-card:nth-child(1) { animation-delay: 0.1s; }
.mod-card:nth-child(2) { animation-delay: 0.2s; }
.mod-card:nth-child(3) { animation-delay: 0.3s; }
.mod-card:nth-child(4) { animation-delay: 0.4s; }
.mod-card:nth-child(5) { animation-delay: 0.5s; }
.mod-card:nth-child(6) { animation-delay: 0.6s; }
.mod-card:nth-child(7) { animation-delay: 0.7s; }
.mod-card:nth-child(8) { animation-delay: 0.8s; }

.mod-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mod-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mod-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.mod-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.3;
}

.mod-description {
    color: var(--gray-dark);
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

.mod-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
    margin-top: auto;
}

.downloads {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray-mid);
    font-size: 0.9rem;
    font-weight: 600;
}

.downloads-icon {
    font-size: 1.2rem;
}

.mod-link {
    background: var(--primary-red);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mod-link:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

/* Support Section */
.support-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: white;
    text-align: center;
}

.support-content {
    animation: fadeInUp 0.8s ease-out;
}

.support-section h2 {
    font-family: 'Unbounded', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.support-section p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary {
    background: white;
    color: var(--primary-red);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-red);
}

/* Footer */
footer {
    background: var(--charcoal);
    color: var(--gray-light);
    padding: 3rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-red);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .mods-grid {
        grid-template-columns: 1fr;
    }

    .support-section h2 {
        font-size: 2rem;
    }

    .support-buttons {
        flex-direction: column;
        align-items: center;
    }
}
