.contact-page {
    min-height: 100%;
}

html,
body.contact-page {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #000;
    background-image: url("img/contact-background.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.contact-page .page-content-wrapper {
    min-height: 100vh;
    height: auto;
}

.contact-main {
    justify-content: center;
    padding: 2rem 1.5rem;
}

.contact-main + .footer-about-page {
    margin-top: auto;
}

.nav-item {
    font-family: "Impact", "Anton", sans-serif;
}

.contact-card {
    width: min(100%, 760px);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    background: rgba(0, 0, 0, 0.99);
    border: none;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.863);
    box-sizing: border-box;
}

.contact-kicker,
.contact-label {
    font-family: "Space Mono", monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-kicker {
    margin: 0 0 0.5rem;
    color: #b3b3b3;
    font-size: 0.8rem;
}

.contact-card h1 {
    margin: 0;
    font-family: "Anton", Impact, sans-serif;
    font-size: clamp(2.5rem, 7vw, 4rem);
    line-height: 1;
}

.contact-intro {
    margin: 0.9rem 0 2rem;
    color: #d1d1d1;
    font-size: 1rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    padding: 1rem 0.75rem 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-label {
    color: #a8a8a8;
    font-size: 0.7rem;
}

.contact-link,
.contact-location {
    color: #fff;
    font-family: "Space Mono", monospace;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    overflow-wrap: anywhere;
}

.contact-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: #c8c8c8;
    text-decoration: underline;
}

.contact-email {
    font-weight: 700;
}

@media (max-width: 768px) {
    .contact-main {
        padding: 1.5rem 1rem;
    }

    .header-about-page .container {
        flex-direction: row;
        height: 100%;
        padding: 0 0.25rem;
    }

    .nav-links-left {
        gap: 0.25rem;
        margin-bottom: 0;
    }

    .nav-item {
        padding: 0.5rem 0.4rem;
        font-size: clamp(0.75rem, 3vw, 1rem);
    }
}

@media (max-width: 480px) {
    .contact-details {
        grid-template-columns: 1fr;
    }
}
