/* ============================================================
   CONNECT MODAL
   Respects the design system and hero section aesthetics.
   ============================================================ */

.connect-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-medium) var(--ease-standard);
}

.connect-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.connect-modal-card {
    background: var(--color-white);
    width: 100%;
    max-width: 440px;
    padding: var(--space-12) var(--space-10);
    border-radius: var(--radius-4xl);
    box-shadow: var(--shadow-dark-md);
    text-align: center;
    transform: translateY(20px) scale(0.98);
    transition: transform var(--duration-medium) var(--ease-spring);
    position: relative;
}

.connect-modal-overlay.active .connect-modal-card {
    transform: translateY(0) scale(1);
}

/* Glassmorphism for the Modal Card itself to match testimonials context */
.connect-modal-card {
    background:
        linear-gradient(to bottom, transparent 55%, #ffffff 100%),
        linear-gradient(135deg, #C7D4FF 0%, #EEF0FF 40%, #D8CCFF 100%);
    border: 1px solid #e7e7e2;
    border-radius: 28px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 1px 1px rgba(255, 255, 255, 1);
    overflow: hidden;
}


.connect-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.connect-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
    transform: rotate(90deg);
}

.connect-modal-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    text-align: left;
    color: #111827;
    margin-bottom: 24px;
    margin-top: 12px;
}

.connect-modal-tiles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: var(--space-10);
    padding: 0 4px;
}

.connect-tile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    gap: 16px;
    position: relative;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.connect-tile:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.connect-tile:active {
    transform: translateY(0);
}

.connect-tile-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.connect-tile-icon svg {
    width: 20px;
    height: 20px;
}

.letter-lottie-icon {
    width: 24px;
    height: 24px;
    /* Native black strokes — no filter needed at rest */
    filter: none;
    transition: filter 0.2s ease;
}

.connect-tile:hover .letter-lottie-icon {
    /* Tint strokes to #0055FF on hover */
    filter: invert(18%) sepia(100%) saturate(3000%) hue-rotate(220deg) brightness(1.1);
}

.linkedin-lottie-icon {
    width: 48px;
    height: 48px;
    /* Native black strokes — no filter needed at rest */
    filter: none;
    transition: filter 0.2s ease;
}

.connect-tile:hover .linkedin-lottie-icon {
    /* Tint strokes to #0055FF on hover */
    filter: invert(18%) sepia(100%) saturate(3000%) hue-rotate(220deg) brightness(1.1);
}

.connect-tile:hover .connect-tile-icon {
    color: #2563eb;
    transform: scale(1.05);
}

.connect-tile-label {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.connect-tile-arrow {
    margin-left: auto;
    color: #9ca3af;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    opacity: 0.6;
}

.connect-tile:hover .connect-tile-label {
    color: #0055FF;
}

.connect-tile:hover .connect-tile-arrow {
    color: #2563eb;
    transform: translate(2px, -2px);
    opacity: 1;
}

.connect-modal-footer {
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    letter-spacing: var(--tracking-wide);
}

.connect-modal-footer kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: inherit;
    font-size: var(--text-2xs);
    font-weight: 600;
    color: var(--color-ink-900);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

/* Toast notification for copy */
.copy-toast {
    position: fixed;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-pill);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    z-index: 30000;
    transition: transform var(--duration-medium) var(--ease-spring);
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}


.copy-toast.active {
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
    .connect-modal-overlay {
        padding: var(--space-6);
        align-items: center;
        /* keep it centered or move to flex-end for bottom-sheet feel */
    }

    .connect-modal-card {
        max-width: 320px;
        width: 100%;
        margin: 0;
        padding: var(--space-10) var(--space-6) var(--space-8);
        border-radius: var(--radius-3xl);
        max-height: 90vh;
        overflow-y: auto;
        background:
            linear-gradient(to bottom, transparent 55%, #ffffff 100%),
            linear-gradient(135deg, #C7D4FF 0%, #EEF0FF 40%, #D8CCFF 100%);
    }

    .connect-modal-title {
        font-size: var(--text-xl);
        margin-bottom: var(--space-8);
    }

    .connect-modal-tiles {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        margin-bottom: var(--space-8);
    }

    .connect-tile {
        padding: 12px 16px;
        gap: 12px;
        background: rgba(255, 255, 255, 0.36);
        backdrop-filter: blur(28px) saturate(180%);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.7);
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .connect-tile-icon {
        width: 20px;
        height: 20px;
    }

    .connect-tile-icon svg {
        width: 16px;
        height: 16px;
    }

    .connect-tile-label {
        font-size: 15px;
    }

    .connect-tile-arrow svg {
        width: 14px;
        height: 14px;
    }

    .connect-modal-footer {
        font-size: var(--text-2xs);
    }

}