@font-face {
    font-family: 'Chubby';
    src: url('assets/fonts/Chubby.ttf') format('truetype');
}

@font-face {
    font-family: 'Hagrid';
    src: url('assets/fonts/Hagrid.otf') format('opentype');
}

:root {
    --primary-red: #E11D00;
    --dark-red: #8B0000;
    --bg-dark: #050505;
    --text-white: #FFFFFF;
    --text-muted: #A0A0A0;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes charFade {
    from {
        opacity: 0;
        filter: saturate(0) blur(10px);
    }

    to {
        opacity: 0.6;
        filter: saturate(0.8) blur(0);
    }
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.main-container {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
}

/* Background Characters */
.bg-characters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: -2;
}

.char {
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    filter: saturate(0.8) contrast(1.2);
    animation: charFade 1.5s ease-out forwards;
}

.char-1 {
    background-image: url('assets/cards/police.png');
    animation-delay: 0.1s;
}

.char-2 {
    background-image: url('assets/cards/nurse.png');
    animation-delay: 0.3s;
}

.char-3 {
    background-image: url('assets/cards/mafia.png');
    animation-delay: 0s;
}

.char-4 {
    background-image: url('assets/cards/necromancer.png');
    animation-delay: 0.4s;
}

.char-5 {
    background-image: url('assets/cards/detective.png');
    animation-delay: 0.2s;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.2) 20%,
            rgba(0, 0, 0, 0.2) 80%,
            rgba(0, 0, 0, 1) 100%),
        radial-gradient(circle at center, rgba(139, 0, 0, 0.2) 0%, transparent 70%);
    z-index: -1;
}

/* Header */
header {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding-top: 1rem;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Main Content */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.main-title {
    font-family: 'Hagrid';
    font-size: 22vw;
    color: var(--primary-red);
    text-transform: capitalize;
    margin: 0;
    line-height: 0.8;
    letter-spacing: -0.01em;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
    -webkit-text-stroke: 18px #4a0000;
    paint-order: stroke fill;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeIn 1.2s ease-out;
}

.main-title:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 1rem;
}

.footer-left,
.footer-right {
    flex: 1;
}

.footer-left {
    display: flex;
    justify-content: flex-start;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-btn {
    background: none;
    border: none;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    opacity: 0.7;
}

.footer-btn:hover {
    opacity: 1;
}

.footer-left {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(225, 29, 0, 0.2);
    width: 90%;
    max-width: 1000px;
    /* Equivalent to 5xl ish */
    height: 70vh;
    border-radius: 20px;
    position: relative;
    padding: 3rem 2rem 2rem;
    display: none;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1), 0 0 20px rgba(225, 29, 0, 0.1);
}

.modal-content.active {
    display: flex;
    animation: fadeIn 0.4s ease-out;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-red);
}

.modal-body {
    overflow-y: auto;
    padding-right: 1rem;
    height: 100%;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

.modal-body h2 {
    font-family: 'Hagrid', sans-serif;
    color: var(--primary-red);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.modal-body h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    border-left: 3px solid var(--primary-red);
    padding-left: 1rem;
}

.modal-body p,
.modal-body li {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
}

.modal-body li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.modal-body li::before {
    content: "•";
    color: var(--primary-red);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-white);
    font-weight: 500;
}

.form-input,
.form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, background-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    resize: none;
}

.submit-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #FF2E00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(225, 29, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* App Store Button */
.app-store-button {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: background-color 0.2s, border-color 0.2s;
}

.app-store-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.small-text {
    font-size: 0.6rem;
    font-weight: 400;
}

.bold-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }

    .main-container {
        padding: 1.5rem;
        height: auto;
        min-height: 100vh;
    }

    .bg-characters {
        flex-direction: row;
        width: 200%;
        /* Make it wider to overflow slightly or just stack differently */
        transform: translateX(-25%);
    }

    .char {
        opacity: 0.4;
    }

    .main-title {
        font-size: 25vw;
        -webkit-text-stroke: 12px #4a0000;
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-left,
    .footer-right,
    .footer-center {
        width: 100%;
        justify-content: center;
    }

    .footer-right {
        order: 3;
    }

    .footer-left {
        order: 1;
    }

    .footer-center {
        order: 2;
        margin: 1rem 0;
    }

    .tagline {
        font-size: 0.9rem;
    }

    /* Modal Mobile adjustment */
    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
        padding: 4rem 1.5rem 2rem;
    }

    .modal-body h2 {
        font-size: 2rem;
    }
}