/* ── Contact Section ─────────────────────────────── */
.contact-section {
    padding: 6rem 0 8rem; /* horizontal padding handled by contact-container */
    position: relative;
    overflow: hidden;
}

/* Ambient spotlight behind the headline */
.contact-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 60%;
    height: 70%;
    background: radial-gradient(ellipse at 30% 40%, rgba(56, 189, 248, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.contact-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Two-column layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* ── Left column ─────────────────────────────────── */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Availability badge */
.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    width: fit-content;
    letter-spacing: 0.01em;
}

.availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: availability-pulse 2.4s ease-in-out infinite;
}

@keyframes availability-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Display headline */
.contact-headline {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-color);
    margin: 0;
}

.contact-headline-accent {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-desc {
    color: rgba(248, 250, 252, 0.55);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 42ch;
    margin: 0;
}

/* Email CTA row */
.contact-email-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.contact-email-cta {
    display: flex; /* flex, not inline-flex: respects parent width */
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.06);
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.contact-email-cta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-email-cta:hover {
    border-color: rgba(56, 189, 248, 0.65);
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

.contact-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.06);
    color: rgba(248, 250, 252, 0.6);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.contact-copy-btn:hover {
    border-color: rgba(56, 189, 248, 0.65);
    background: rgba(56, 189, 248, 0.12);
    color: var(--secondary-color);
}

/* ── Right column ────────────────────────────────── */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-channels-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.35);
    margin: 0;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Individual channel row */
.contact-channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.22s ease,
                background   0.22s ease,
                box-shadow   0.22s ease;
}

.contact-channel:hover {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.channel-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.channel-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.channel-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

.channel-sub {
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.4);
}

.channel-arrow {
    flex-shrink: 0;
    color: rgba(248, 250, 252, 0.25);
    transition: transform 0.22s ease, color 0.22s ease;
}

.contact-channel:hover .channel-arrow {
    transform: translate(3px, -3px);
    color: var(--secondary-color);
}

/* ── Responsive: Contact ─────────────────────────── */
@media (max-width: 1024px) {
    .contact-layout {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-desc {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 3rem 0;
    }

    .contact-container {
        padding: 0 1rem;
    }

    .contact-email-row {
        flex-direction: row;
    }

    .contact-email-cta {
        flex: 1;
    }
}
