.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 2, 3, 0.85); /* Slightly more transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    backdrop-filter: blur(15px); /* Increase from 10px to 20px for more blur */
}

.contact-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-content {
    max-width: 500px;
    padding: 2rem;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.2s;
}

.contact-overlay.active .contact-content {
    transform: translateY(0);
    opacity: 1;
}

.contact-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
    line-height: 1;
}

.contact-close:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: rotate(90deg);
}

.contact-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
}

.contact-method {
    margin: 1.5rem 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.contact-method:hover {
    opacity: 1;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.3rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.contact-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
