/* Ultra Premium Contact Cards - World Class Design */

/* Premium Contact Cards Container */
.premium-contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
    padding: 2rem 0;
    position: relative;
}

/* Individual Premium Card */
.premium-contact-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
}

/* Animated Gradient Border Effect */
.premium-contact-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(
        45deg,
        #3b82f6,
        #8b5cf6,
        #ec4899,
        #f59e0b,
        #3b82f6
    );
    background-size: 300% 300%;
    animation: gradient-border 8s ease infinite;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Inner Glow Effect */
.premium-contact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(59, 130, 246, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Hover Effects */
.premium-contact-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-contact-card:hover::before {
    opacity: 0.7;
}

.premium-contact-card:hover::after {
    opacity: 1;
}

/* Icon Container */
.premium-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Rotating Ring Behind Icon */
.premium-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg at 50% 50%,
        #3b82f6 0deg,
        #8b5cf6 90deg,
        #ec4899 180deg,
        #f59e0b 270deg,
        #3b82f6 360deg
    );
    animation: rotate-slow 20s linear infinite;
    opacity: 0.3;
    filter: blur(15px);
}

/* Icon Background */
.premium-icon-bg {
    position: relative;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 
        0 10px 30px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-contact-card:hover .premium-icon-bg {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 
        0 15px 40px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Icon Styling */
.premium-icon-bg i {
    font-size: 1.8rem;
    color: white;
    z-index: 2;
}

/* Card Content */
.premium-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.premium-card-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.premium-card-value a {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

/* Underline Animation */
.premium-card-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.premium-contact-card:hover .premium-card-value a::after {
    width: 100%;
}

/* Hover Particle Effect */
.premium-contact-card .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}

.premium-contact-card:hover .particle {
    animation: float-particle 3s ease-in-out infinite;
}

/* Special Styling for Each Card Type */
.premium-contact-card[data-type="location"] .premium-icon-bg {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.premium-contact-card[data-type="location"] .premium-icon-ring {
    background: conic-gradient(
        from 180deg at 50% 50%,
        #f59e0b 0deg,
        #ef4444 90deg,
        #f59e0b 180deg,
        #ef4444 270deg,
        #f59e0b 360deg
    );
}

.premium-contact-card[data-type="phone"] .premium-icon-bg {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.premium-contact-card[data-type="phone"] .premium-icon-ring {
    background: conic-gradient(
        from 180deg at 50% 50%,
        #10b981 0deg,
        #059669 90deg,
        #10b981 180deg,
        #059669 270deg,
        #10b981 360deg
    );
}

.premium-contact-card[data-type="email"] .premium-icon-bg {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.premium-contact-card[data-type="email"] .premium-icon-ring {
    background: conic-gradient(
        from 180deg at 50% 50%,
        #8b5cf6 0deg,
        #7c3aed 90deg,
        #8b5cf6 180deg,
        #7c3aed 270deg,
        #8b5cf6 360deg
    );
}

/* Animations */
@keyframes gradient-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .premium-contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 3rem 0;
    }
    
    .premium-contact-card {
        padding: 2.5rem 2rem;
    }
    
    .premium-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .premium-icon-bg {
        width: 60px;
        height: 60px;
    }
    
    .premium-icon-bg i {
        font-size: 1.5rem;
    }
}

/* Stagger Animation on Load */
.premium-contact-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.premium-contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.premium-contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.premium-contact-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility Focus Styles */
.premium-contact-card:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 4px;
}

.premium-card-value a:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
    border-radius: 4px;
}