/*===================================== 
  FUTURISTIC CONTACT INFO SECTION
  Glassmorphism-inspired design with modern animations
======================================*/

/* CSS Custom Properties */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --gradient-icon: linear-gradient(135deg, #5b86e5 0%, #36d1dc 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(91, 134, 229, 0.6);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-label: rgba(255, 255, 255, 0.5);
    --shadow-depth: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 15px 50px 0 rgba(91, 134, 229, 0.4);
    --shadow-glow: 0 0 40px rgba(91, 134, 229, 0.4);
}

/* Main Wrapper */
.futuristic-contact-wrapper {
    position: relative;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    overflow: visible;
    box-shadow: none;
}

.futuristic-contact-wrapper::before {
    display: none;
}

.futuristic-contact-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Enhanced Title Section */
.futuristic-contact-wrapper .section-head {
    margin-bottom: 30px;
}

.futuristic-contact-wrapper .section-head .wt-small-separator {
    margin-bottom: 12px;
}

.futuristic-contact-wrapper .section-head .wt-small-separator.site-text-primary > div:nth-child(2) {
    font-size: 13px;
    letter-spacing: 2.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.futuristic-contact-wrapper .section-head h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.2;
    text-shadow: none;
}


/* Contact Cards Container */
.futuristic-contact-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 0;
    perspective: 1000px;
}

/* Individual Contact Card */
.futuristic-contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.06),
        0 14px 24px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

/* 3D layered shadow effect */
.futuristic-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 94, 21, 0.03) 0%, rgba(241, 88, 37, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

/* Subtle inner highlight */
.futuristic-contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(241, 88, 37, 0.35), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.futuristic-contact-card:hover::before {
    opacity: 1;
}

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

/* Card hover effects - 3D lift */
.futuristic-contact-card:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-6px) translateZ(16px);
    box-shadow: 
        0 14px 28px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(255, 94, 21, 0.2);
}

/* Make children respect 3D space */
.futuristic-contact-card > * {
    position: relative;
    z-index: 2;
}

/* Icon Wrapper */
.contact-icon-wrapper {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 94, 21, 0.15) 0%, rgba(241, 88, 37, 0.15) 100%);
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 4px rgba(255, 94, 21, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

/* Icon glow effect */
.contact-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.futuristic-contact-card:hover .contact-icon-wrapper {
    transform: translateZ(30px) scale(1.05);
    box-shadow: 
        0 6px 12px rgba(255, 94, 21, 0.25),
        0 12px 24px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(255, 94, 21, 0.25) 0%, rgba(241, 88, 37, 0.25) 100%);
}

.futuristic-contact-card:hover .contact-icon-wrapper::before {
    opacity: 1;
}

/* SVG Icons */
.contact-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: #ff5e14;
    filter: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.futuristic-contact-card:hover .contact-icon-wrapper svg {
    transform: scale(1.05);
    fill: #ff5e14;
}

/* Icon gradient definitions */
.icon-gradient-phone stop:first-child { stop-color: #ff5e14; }
.icon-gradient-phone stop:last-child { stop-color: #ff5e14; }

.icon-gradient-email stop:first-child { stop-color: #ff5e14; }
.icon-gradient-email stop:last-child { stop-color: #ff5e14; }

.icon-gradient-location stop:first-child { stop-color: #ff5e14; }
.icon-gradient-location stop:last-child { stop-color: #ff5e14; }

/* Contact Content */
.contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.contact-content h3 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    color: #ff5e14;
    opacity: 1;
}

.contact-content a,
.contact-content p {
    font-size: 16px;
    font-weight: 600;
    color: #2f2f2f;
    text-decoration: none;
    margin: 0;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.contact-content a:hover {
    color: #ff5e15;
    text-shadow: none;
}

/* Entrance Animations with 3D effect */
@keyframes fadeInUp3D {
    from {
        opacity: 0;
        transform: translateY(40px) translateZ(-50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0) rotateX(0deg);
    }
}

.futuristic-contact-card {
    animation: fadeInUp3D 0.8s ease-out backwards;
}

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

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

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

/* Subtle glow pulse effect - disabled for professional look */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(91, 134, 229, 0.15);
    }
    50% {
        box-shadow: 0 2px 10px rgba(91, 134, 229, 0.2);
    }
}

.contact-icon-wrapper {
    /* animation: glowPulse 4s ease-in-out infinite; */
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(20px)) {
    .futuristic-contact-card {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .futuristic-contact-card:hover {
        background: rgba(255, 255, 255, 1);
    }
}

/* Optimize 3D rendering */
.futuristic-contact-card,
.contact-icon-wrapper {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* Responsive Design */

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .futuristic-contact-wrapper {
        padding: 0;
    }
    
    .futuristic-contact-wrapper .section-head h2 {
        font-size: 32px;
    }
    
    .futuristic-contact-card {
        padding: 18px 20px;
        gap: 16px;
    }
    
    .contact-icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon-wrapper svg {
        width: 22px;
        height: 22px;
    }
    
    .contact-content a,
    .contact-content p {
        font-size: 14px;
    }
}

/* Mobile (up to 767px) */
@media screen and (max-width: 767px) {
    .futuristic-contact-wrapper {
        padding: 0;
    }
    
    .futuristic-contact-wrapper .section-head {
        margin-bottom: 25px;
    }
    
    .futuristic-contact-wrapper .section-head h2 {
        font-size: 28px;
    }
    
    .futuristic-contact-cards {
        gap: 14px;
    }
    
    .futuristic-contact-card {
        padding: 16px 18px;
        gap: 14px;
        border-radius: 12px;
    }
    
    .contact-icon-wrapper {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }
    
    .contact-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-content h3 {
        font-size: 9px;
        letter-spacing: 1.3px;
    }
    
    .contact-content a,
    .contact-content p {
        font-size: 14px;
    }
    
    /* Reduce 3D effect intensity on mobile */
    .futuristic-contact-cards {
        perspective: 800px;
    }
    
    .futuristic-contact-card:hover {
        transform: translateY(-4px) translateZ(10px);
    }
    
    .futuristic-contact-card:hover .contact-icon-wrapper {
        transform: translateZ(15px) scale(1.03);
    }
}

/* Small Mobile (up to 480px) */
@media screen and (max-width: 480px) {
    .futuristic-contact-wrapper {
        padding: 0;
    }
    
    .futuristic-contact-wrapper .section-head h2 {
        font-size: 26px;
    }
    
    .futuristic-contact-card {
        padding: 16px;
        gap: 12px;
    }
    
    .contact-icon-wrapper {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }
    
    .contact-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-content h3 {
        font-size: 9px;
    }
    
    .contact-content a,
    .contact-content p {
        font-size: 13px;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .futuristic-contact-card,
    .contact-icon-wrapper,
    .contact-content a {
        animation: none;
        transition-duration: 0.01ms;
    }
    
    .futuristic-contact-card:hover {
        transform: translateY(-2px);
    }
    
    .futuristic-contact-card:hover .contact-icon-wrapper {
        transform: scale(1.05);
    }
    
    .futuristic-contact-cards {
        perspective: none;
    }
}

/* Focus states for accessibility */
.futuristic-contact-card:focus-within {
    outline: 2px solid rgba(102, 126, 234, 0.8);
    outline-offset: 3px;
}

.contact-content a:focus {
    outline: 2px solid rgba(102, 126, 234, 0.8);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    .futuristic-contact-wrapper,
    .futuristic-contact-card {
        background: white;
        border: 1px solid #000;
    }
    
    .contact-content h3,
    .contact-content a,
    .contact-content p {
        color: #000;
        -webkit-text-fill-color: initial;
    }
}
