/* ============================================
   Connect With Us Section - Zencia.AI
   ============================================ */

/* ===== CONNECT WITH US SECTION ===== */
.connect-with-us-section {
    background: linear-gradient(135deg, #082928 0%, #0f1419 50%, #1a1a1a 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -1px;
    margin-bottom: 0;
}

/* Background image layer */
.connect-with-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/ai-services-background.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

/* Gradient overlays */
.connect-with-us-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 217, 213, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 139, 139, 0.06) 0%, transparent 50%),
        rgba(8, 41, 40, 0.3);
    z-index: 2;
    pointer-events: none;
}

.connect-with-us-section .container {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* ===== SECTION HEADER ===== */
.connect-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.connect-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #FFFFFF 0%, #00D9D5 50%, #40E0D0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.connect-subtitle {
    font-size: clamp(1.1rem, 1.3vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== CONTACT METHODS GRID ===== */
.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 60px;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.08) 0%, rgba(0, 139, 139, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0;
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.1) 0%, rgba(0, 139, 139, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.contact-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 217, 213, 0.3);
    box-shadow: 0 25px 50px rgba(0, 217, 213, 0.2);
}

.contact-card-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ===== CONTACT ICONS ===== */
.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.contact-icon svg {
    width: 36px;
    height: 36px;
    color: #FFFFFF;
}

/* Updated to use Zencia's teal/cyan theme colors */
.phone-icon {
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 50%, #00CED1 100%);
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
}

.email-icon {
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 50%, #00CED1 100%);
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
}

.whatsapp-icon {
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 50%, #00CED1 100%);
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 217, 213, 0.4);
}

/* ===== CONTACT CONTENT ===== */
.contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-method-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.contact-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}

/* ===== CONTACT DETAILS ===== */
.contact-details {
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    color: #FFFFFF;
    font-weight: 600;
}

/* Online Status */
.online-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00D9D5 !important;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00D9D5;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== CONTACT CTAs ===== */
.contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    width: 100%;
    margin-top: auto;
}

.cta-icon {
    width: 20px;
    height: 20px;
}

/* Updated CTA buttons to use Zencia's teal/cyan theme */
.phone-cta {
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
}

.phone-cta:hover {
    background: linear-gradient(135deg, #40E0D0 0%, #00D9D5 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 213, 0.5);
    color: #FFFFFF;
}

.email-cta {
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
}

.email-cta:hover {
    background: linear-gradient(135deg, #40E0D0 0%, #00D9D5 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 213, 0.5);
    color: #FFFFFF;
}

.whatsapp-cta {
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    color: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.3);
}

.whatsapp-cta:hover {
    background: linear-gradient(135deg, #40E0D0 0%, #00D9D5 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 213, 0.5);
    color: #FFFFFF;
}

/* ===== CONNECT FOOTER ===== */
.connect-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.connect-footer-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ANIMATIONS ===== */
.contact-methods-grid {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.connect-footer {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

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

/* Stagger animation for cards */
.contact-card:nth-child(1) {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.contact-card:nth-child(2) {
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.contact-card:nth-child(3) {
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .connect-with-us-section {
        padding: 100px 0;
    }
    
    .contact-methods-grid {
        gap: 1.5rem;
        margin-bottom: 50px;
    }
    
    .contact-card-content {
        padding: 2rem;
    }
}

@media (max-width: 1024px) {
    .connect-with-us-section .container {
        padding: 0 1.5rem;
    }
    
    .connect-header {
        margin-bottom: 60px;
    }
    
    .contact-methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .connect-with-us-section {
        padding: 80px 0;
    }
    
    .connect-with-us-section .container {
        padding: 0 1rem;
    }
    
    .connect-header {
        margin-bottom: 50px;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 40px;
    }
    
    .contact-card-content {
        padding: 2rem 1.5rem;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
    }
    
    .contact-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .contact-details {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-card-content {
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .contact-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .contact-method-title {
        font-size: 1.25rem;
    }
    
    .contact-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-details {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 1rem;
    }
    
    .detail-value {
        font-size: 0.95rem;
    }
    
    .contact-cta {
        padding: 0.875rem 1.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .contact-card,
    .contact-icon,
    .contact-cta {
        transition: none !important;
    }
    
    .contact-card:hover {
        transform: none;
    }
    
    .contact-icon:hover {
        transform: none;
    }
    
    .status-indicator {
        animation: none !important;
    }
    
    .contact-methods-grid,
    .connect-footer,
    .contact-card {
        animation: none !important;
    }
}

/* Focus states */
.contact-card:focus-within,
.contact-cta:focus-visible {
    outline: 2px solid #00D9D5;
    outline-offset: 4px;
}

/* High contrast support */
@media (prefers-contrast: high) {
    .contact-card {
        border-width: 2px;
        border-color: #00D9D5;
    }
    
    .contact-icon {
        border: 2px solid #FFFFFF;
    }
    
    .contact-details {
        border-width: 2px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .connect-with-us-section {
        background: white !important;
        padding: 2rem 0;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .connect-with-us-section::before,
    .connect-with-us-section::after {
        display: none !important;
    }
    
    .connect-title {
        color: #333 !important;
        background: none !important;
        -webkit-text-fill-color: #333 !important;
    }
    
    .connect-subtitle,
    .contact-description {
        color: #666 !important;
    }
    
    .contact-method-title {
        color: #333 !important;
    }
    
    .contact-card {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none !important;
    }
    
    .contact-icon {
        background: #00D9D5 !important;
        box-shadow: none !important;
    }
    
    .contact-cta {
        background: #00D9D5 !important;
        color: white !important;
        box-shadow: none !important;
    }
    
    .status-indicator {
        background: #00D9D5 !important;
    }
}