:root {
    --color-primary: #0f141e;
    /* Dark background/text */
    --color-accent: #3b82f6;
    /* Blue accent */
    --color-text-main: #1f2937;
    --color-text-light: #6b7280;
    --color-white: #ffffff;
    --color-bg-light: #f9fafb;
    --font-family: 'Inter', sans-serif;
    --spacing-container: 2rem;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--color-primary);
    background-color: var(--color-white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.hidden {
    display: none !important;
}

/* Header */
.header {
    padding: 1.5rem 0;
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo__text--accent {
    color: var(--color-accent);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    font-size: 0.9rem;
    font-weight: 700;
}

.nav__link {
    text-decoration: none;
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: color 0.2s;
    text-transform: uppercase;
}

.nav__link:hover {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: #1a1f2e;
    transform: translateY(-1px);
}

.btn--dark {
    background-color: #0f172a;
    color: var(--color-white);
    padding: 1rem 2.5rem;
}

.btn--dark:hover {
    background-color: #1e293b;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid #e5e7eb;
    padding: 1rem 2.5rem;
}

.btn--outline:hover {
    border-color: var(--color-text-light);
    color: var(--color-primary);
    background-color: #f9fafb;
}

.btn--text {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0;
}

.btn--text:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero__content {
    max-width: 500px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #eff6ff;
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.badge__icon {
    font-size: 0.9em;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__title br {
    display: block;
}

.hero__description {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
}

.hero__image-wrapper {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero__image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 10;
}

.hero__image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.01);
    background-color: #f3f4f6;
}

/* Games Section */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
    color: #1e293b;
}

.game-card__short-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    font-weight: 500;
}

.games-section,
.team-section {
    padding: 2rem 0;
    background-color: var(--color-bg-light);
    min-height: 80vh;
    animation: fadeIn 0.3s ease-out;
}

.container-games {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
}

.game-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card__image-wrapper {
    position: relative;
    overflow: hidden;
}

.game-card__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.game-card:hover .game-card__image {
    transform: scale(1.05);
}

/* Team Section Styles moved from inline */
.team-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.section-description {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.6;
}



/* Logo White Variant */
.logo__text--white {
    color: var(--color-white);
}

/* Back Button */
.btn--back {
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.btn--back:hover {
    color: var(--color-primary);
}

.game-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-card__overlay {
    opacity: 1;
}

.game-card__info-bar {
    background-color: var(--color-primary);
    padding: 1rem;
    text-align: center;
    border-bottom: 3px solid var(--color-accent);
}

.game-card__bar-title {
    color: #facc15;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.2;
}

.game-card__updates {
    padding: 1.5rem;
}

.update-date {
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.update-list {
    list-style-type: none;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.update-list li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
}

.update-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.game-details {
    animation: fadeIn 0.3s ease-out;
}

.game-details__banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.game-details__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.game-details__description {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Game Details Updates */
.game-details__updates-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.update-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.game-details__actions {
    display: flex;
    gap: 1rem;
}

/* Team Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.team-card {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f3f4f6;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.team-card__avatar {
    width: 80px;
    height: 80px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem auto;
}

/* Avatar Colors */
.avatar--blue {
    background-color: var(--color-accent);
}

.avatar--green {
    background-color: #10b981;
}
.avatar--red {
    background-color: #b91010;
}
.team-card__name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.team-card__role {
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.team-card__skills {
    list-style: none;
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .header__container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero__content {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .nav__list {
        display: none;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 4rem 0 2rem 0;
    margin-top: auto;
}

.footer__container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.footer__description {
    line-height: 1.6;
    max-width: 300px;
}

.footer__heading {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.75rem;
}

.footer__link {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer__container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Dark Mode */
body.dark-mode {
    --color-primary: #f8fafc;
    --color-text-main: #f3f4f6;
    --color-text-light: #9ca3af;
    --color-white: #0f172a;
    --color-bg-light: #1e293b;
}

body.dark-mode .footer {
    background-color: #020617;
    border-top: 1px solid #1e293b;
}

body.dark-mode .nav__link {
    color: #cbd5e1;
}

body.dark-mode .nav__link:hover {
    color: var(--color-accent);
}

body.dark-mode .hero__title {
    color: #f1f5f9;
}

body.dark-mode .hero__description {
    color: #94a3b8;
}

body.dark-mode .game-card,
body.dark-mode .team-card,
body.dark-mode .container-games {
    background-color: #1e293b;
    border: 1px solid #334155;
}

body.dark-mode .section-title,
body.dark-mode .game-card__title,
body.dark-mode .team-card__name,
body.dark-mode .update-title {
    color: #f1f5f9;
}

body.dark-mode .section-description {
    color: #94a3b8;
}

body.dark-mode .btn--back {
    color: #cbd5e1;
}

body.dark-mode .btn--back:hover {
    color: var(--color-white);
}

body.dark-mode .game-details__updates-section {
    border-top-color: #334155;
}

body.dark-mode .update-list {
    color: #cbd5e1;
}

body.dark-mode .footer__heading,
body.dark-mode .logo__text {
    color: #ffffff;
}

body.dark-mode .btn--dark {
    background-color: #f8fafc;
    color: #0f172a;
}

body.dark-mode .btn--dark:hover {
    background-color: #e2e8f0;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none !important;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal__content {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    position: relative;
    width: 90%;
    max-width: 500px;
    z-index: 1010;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-light);
    line-height: 1;
}

.modal__close:hover {
    color: var(--color-primary);
}

.modal__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-primary);
}

.contact-section {
    margin-bottom: 1.5rem;
}

.contact-section__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.contact-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-team-list {
    display: grid;
    gap: 0.75rem;
}

.contact-member {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.contact-member__name {
    font-weight: 700;
    color: var(--color-primary);
}

.contact-member__discord {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.contact-warning {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
}

/* Dark Mode Modal */
body.dark-mode .modal__content {
    background-color: #1e293b;
    border: 1px solid #334155;
    color: #f1f5f9;
}

body.dark-mode .modal__title,
body.dark-mode .contact-section__title,
body.dark-mode .contact-member__name {
    color: #f1f5f9;
}

body.dark-mode .contact-member {
    background-color: #0f172a;
}

body.dark-mode .contact-member__discord {
    color: #94a3b8;
}

body.dark-mode .modal__close {
    color: #94a3b8;
}

body.dark-mode .modal__close:hover {
    color: #f1f5f9;
}

body.dark-mode .contact-warning {
    background-color: #7f1d1d;
    color: #fecaca;
}

body.dark-mode .btn--outline {
    border-color: #475569;
    color: #cbd5e1;
}

body.dark-mode .btn--outline:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Theme Toggle */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    margin-right: 1rem;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.1);
}