/* ==================== Contact Modal Styling (Refined Modern Design) ==================== */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.contact-modal-content {
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 60px 40px 40px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Glow Effects */
.modal-glow-tl {
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.modal-glow-br {
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.contact-modal-overlay.active .contact-modal-content {
    transform: scale(1);
}

/* Close Button */
.contact-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.contact-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

/* Modal Header */
.contact-modal-header {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.contact-modal-title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.contact-modal-subtitle {
    font-size: 16px;
    color: #888;
    line-height: 1.6;
    font-weight: 400;
}

/* Contact Options Horizontal Grid */
.contact-options-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    width: 90px;
    transition: transform 0.3s ease;
}

.option-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ccc;
    transition: all 0.3s ease;
}

.contact-option-item:hover .option-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-5px);
}

.option-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.contact-option-item:hover .option-label {
    color: #999;
}

/* Icons Colors (Optional if you want custom hover colors, the image shows grayscale-ish till hover) */
.icon-email i { transition: all 0.3s ease; }
.contact-option-item:hover .icon-email { color: #3b82f6; }
.contact-option-item:hover .icon-whatsapp { color: #22c55e; }
.contact-option-item:hover .icon-linkedin { color: #0a66c2; }
.contact-option-item:hover .icon-discord { color: #5865f2; }
.contact-option-item:hover .icon-form { color: #a855f7; }

/* Footnote */
.contact-modal-footer {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

.availability-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

@media (max-width: 600px) {
    .contact-modal-content {
        padding: 50px 20px 30px;
    }
    .contact-options-row {
        gap: 10px;
        flex-wrap: wrap;
    }
    .contact-option-item {
        width: 80px;
    }
    .option-icon {
        width: 64px;
        height: 64px;
    }
    .contact-modal-title {
        font-size: 30px;
    }
}
