:root {
    --accent-yellow: #FFD700;
    --accent-yellow-dark: #e6c200;
    --background: #0D0D0D;
    --surface-1: #1A1A1A;
    --surface-2: #242424;
    --border: #333333;
    --text-primary: #F0F0F0;
    --text-secondary: #A8A8A8;
    --white: #FFFFFF;
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar - Webkit Browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--surface-1);
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-yellow);
    border-radius: 6px;
    border: 3px solid var(--surface-1); /* Creates padding around thumb */
}

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

/* --- Header --- */
.main-header {
    background-color: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:not(.active):hover {
    color: var(--text-primary);
}

.main-nav a.active {
    color: var(--accent-yellow);
}

.user-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--background);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--accent-yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.btn-icon.btn-small {
    padding: 0.5rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--surface-2);
    color: var(--text-primary);
}
.btn-discord {
    background-color: transparent;
    padding: 0.5rem;
}

.btn-discord:hover {
    background-color: var(--surface-2);
}

.btn-discord img {
    display: block;
    width: 24px;
    height: 24px;
    filter: invert(1);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow-x: hidden; /* Prevents horizontal scrollbar during animations */
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero .hero-subtext {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: backwards; /* Start invisible */
}

.hero .btn-primary {
    padding: 0.8rem 2rem;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: backwards;
}

.downloads-counter {
    display: inline-block;
    background-color: var(--surface-1);
    padding: 0.5rem 1rem;
    border-radius: 24px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border);
    animation: fadeInUp 1s ease-out 0.8s;
    animation-fill-mode: backwards;
}

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

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

/* --- Our Mission Section --- */
.our-mission {
    padding: 4rem 0;
    background-color: var(--surface-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.our-mission h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

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

.mission-item {
    background-color: var(--surface-2);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: backwards;
}

.mission-item:nth-child(2) { animation-delay: 0.2s; }
.mission-item:nth-child(3) { animation-delay: 0.4s; }

.mission-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
    border-color: #444;
}
.mission-item h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.mission-item p {
    color: var(--text-secondary);
}

/* --- Featured Mods --- */
.featured-mods {
    padding-bottom: 4rem;
}

.page-content {
    padding-top: 4rem;
}

.featured-mods h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.mod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.mod-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 20px; /* Match card radius for focus outline */
}

.mod-card {
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    min-height: 400px;
    background-color: var(--surface-2);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mod-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mod-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0) 40%, rgba(13, 13, 13, 0.8) 70%, var(--background) 100%);
    border-radius: inherit; /* Inherit border-radius from parent */
}

.mod-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.mod-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.language-icons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-icons img, .language-icons svg {
    width: 20px;
    height: 20px;
    filter: invert(1) opacity(0.7);
}

.popular-tag {
    color: var(--background);
    background-color: var(--accent-yellow);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.more-products-action {
    text-align: center;
    margin-top: 2.5rem;
}

/* --- Footer --- */
.main-footer {
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background-color: rgba(13, 13, 13, 0.7);
    backdrop-filter: blur(20px);
}

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

.footer-column {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-socials a img {
    width: 20px;
    height: 20px;
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-socials a:hover img {
    opacity: 1;
}

.main-footer a:hover {
    color: var(--white);
}

/* --- Legal Pages (TOS, etc.) --- */
.legal-page {
    padding: 4rem 0;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1, .legal-page h2 {
    margin-bottom: 1rem;
}

.legal-page p, .legal-page li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.corner-text {
    position: fixed;
    bottom: 5px;
    right: 8px;
    font-size: 0.6rem;
    color: var(--surface-2);
    z-index: 9999;
    pointer-events: none;
}