/* Hover target bigger than the card for smoother entry/exit */
.hover-area {
    position: relative;
    width: min(96vw, 680px); /* slightly larger than card */
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    pointer-events: auto;
}

/* Clean business card design */
.card {
    position: absolute;
    width: min(92vw, 620px);  /* slightly smaller than hover-area */
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #f8f8f8;
    color: #333;
    display: grid;
    place-items: center;
    padding: clamp(24px, 4vw, 40px);
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 10;
    
    box-shadow:
        0 24px 60px rgba(0,0,0,0.15),
        0 10px 24px rgba(0,0,0,0.1),
        inset 0 0 0 1px rgba(0,0,0,0.05);

    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateY(0);
    transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms cubic-bezier(.2,.8,.2,1), filter 300ms ease;
    will-change: transform, box-shadow, filter;
}

/* Subtle inner frame for business card */
.frame {
    position: absolute;
    inset: 12px;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}

/* Hover amplification for business card */
.card.is-hovering {
    filter: saturate(1.02) contrast(1.01);
    box-shadow:
        0 34px 80px rgba(0,0,0,0.2),
        0 14px 32px rgba(0,0,0,0.15),
        inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* Business card layout - centered content */
.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 90%;
    height: 100%;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* Centered contact information */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2vw, 20px);
    text-align: center;
    height: 100%;
}

.name {
    font-size: clamp(24px, 4.5vw, 30px);
    font-weight: 400;
    color: #333;
    letter-spacing: 0.01em;
    margin-bottom: clamp(4px, 1vw, 8px);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.title {
    font-size: clamp(11px, 2vw, 14px);
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: clamp(16px, 3vw, 24px);
    font-family: system-ui, -apple-system, sans-serif;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1.2vw, 10px);
    align-items: center;
}

.phone,
.email {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #555;
    line-height: 1.4;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.phone {
    font-weight: 500;
    color: #444;
}

.email {
    color: #666;
    font-style: italic;
    font-weight: 300;
}

/* Responsive adjustments */
@media (max-width: 520px) {
    .frame { 
        inset: 8px; 
        border-radius: 6px; 
    }
    
    .hover-area { 
        width: min(96vw, 96vw); 
    }
    
    .contact-info {
        gap: clamp(10px, 2vw, 16px);
    }
}

@media (max-width: 400px) {
    .card {
        padding: clamp(16px, 3vw, 24px);
    }
}
