/* contact.css - page-specific styles for contact.html */

:root {
    --contact-ink: #0f0f0f;
    --contact-panel: rgba(255, 255, 255, 0.92);
    --contact-panel-strong: rgba(255, 255, 255, 0.97);
    --contact-accent: #163a67;
    --contact-accent-2: #2a5d9f;
}

.contact-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding: clamp(24px, 4vw, 48px);
    box-sizing: border-box;
    isolation: isolate;
}

.contact-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 14% 14%, rgba(121, 175, 255, 0.25), rgba(121, 175, 255, 0) 34%),
        radial-gradient(circle at 86% 22%, rgba(74, 130, 214, 0.2), rgba(74, 130, 214, 0) 30%);
}

.contact-section {
    width: 100%;
    max-width: 1120px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(16px, 2.2vw, 28px);
}

.contact-card {
    border: 2px solid rgba(15, 15, 15, 0.8);
    border-radius: 18px;
    background: linear-gradient(155deg, var(--contact-panel), rgba(255, 255, 255, 0.84));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    width: 100%;
    min-height: clamp(320px, 44vh, 460px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(18px, 3vw, 34px);
    box-sizing: border-box;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.contact-card h1 {
    margin: 0 0 10px;
    font-size: clamp(34px, 6vw, 54px);
    line-height: 1.02;
    letter-spacing: 0.2px;
    color: var(--contact-ink);
}

.contact-card p {
    margin: 0 0 10px;
    line-height: 1.55;
    font-size: clamp(16px, 2vw, 20px);
    color: #1f1f1f;
}

.contact-list {
    margin-top: 16px;
    display: grid;
    gap: 9px;
}

.contact-item {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 15, 15, 0.14);
    background: rgba(255, 255, 255, 0.66);
}

.cv-card {
    border: 2px solid rgba(15, 15, 15, 0.8);
    border-radius: 18px;
    background: linear-gradient(160deg, var(--contact-panel-strong), rgba(248, 251, 255, 0.9));
    min-height: clamp(320px, 44vh, 460px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.23), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.cv-card h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
    letter-spacing: 0.2px;
    color: var(--contact-ink);
}

.cv-custom-text {
    margin: 0 0 14px;
    min-height: clamp(150px, 24vh, 230px);
    border: 1px dashed rgba(15, 15, 15, 0.45);
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.5;
    color: #263241;
    background:
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        repeating-linear-gradient(0deg, rgba(21, 51, 92, 0.08) 0 1px, transparent 1px 26px);
}

.cv-download-link {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--contact-accent), var(--contact-accent-2));
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 10px 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 18px rgba(21, 58, 103, 0.3);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.cv-download-link:hover,
.cv-download-link:focus {
    opacity: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(21, 58, 103, 0.38);
}

.contact-item a {
    color: #0b2f5b;
    font-weight: 700;
}

.contact-item a:hover,
.contact-item a:focus {
    opacity: 0.85;
}

@media (max-width: 640px) {
    .contact-main {
        min-height: auto;
        padding: 14px 10px 20px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-card,
    .cv-card {
        border-radius: 14px;
        padding: 14px;
    }

    .contact-card h1,
    .cv-card h2 {
        font-size: clamp(24px, 8vw, 34px);
    }
}

@media (max-width: 900px) {
    .contact-main {
        min-height: auto;
        padding: 20px 14px 24px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .contact-card {
        width: 100%;
    }

    .contact-card,
    .cv-card {
        min-height: auto;
    }
}
