/* styles.css */

/* Base Styles */
.bg-texture {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%237209b7' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.text-gold-gradient {
    background: linear-gradient(to right, #f72585, #7209b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.diagonal-divider {
    position: relative;
    height: 4rem;
    overflow: hidden;
}

.diagonal-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3a0ca3;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

/* Border animation */
.border-animation {
    position: relative;
}

.border-animation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #f72585;
    transition: width 0.3s ease;
}

.border-animation:hover::after {
    width: 100%;
}

/* Modern gradient backgrounds */
.bg-modern-gradient {
    background: linear-gradient(135deg, #3a0ca3, #7209b7);
}

.bg-accent-gradient {
    background: linear-gradient(135deg, #f72585, #7209b7);
}

/* Glass effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Service Area Tags */
.service-areas-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.service-areas-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3a0ca3, #f72585, #7209b7);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.area-tag {
    background: white;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.area-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 37, 133, 0.1), transparent);
    transition: left 0.5s ease;
}

.area-tag:hover::before {
    left: 100%;
}

.area-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #f72585;
    border-left: 4px solid #f72585;
}

.area-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #f72585, #7209b7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.area-tag:hover .area-icon {
    transform: scale(1.1) rotate(5deg);
}

.area-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(249, 115, 22, 0.2);
    border-top-color: #f97316;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-out {
    opacity: 0;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(45deg, rgba(255,255,255,0.3), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.call-btn {
    background: linear-gradient(135deg, #f72585, #7209b7);
    animation: pulse-call 2s infinite 1s;
}

.call-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(247, 37, 133, 0.4);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-call {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(247, 37, 133, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(247, 37, 133, 0);
    }
}

/* Tooltip */
.floating-btn .tooltip {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn .tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #1e293b;
}

.floating-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: 4.5rem;
}

/* FAQ Accordion Styles */
.faq-accordion {
    max-width: 4xl;
    margin: 0 auto;
    space-y: 1rem;
}

.faq-item {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
    color: #3a0ca3;
}

.faq-question.active {
    background: linear-gradient(135deg, #3a0ca3, #7209b7);
    color: white;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question:hover .faq-icon {
    background: #3a0ca3;
    color: white;
}

.faq-question.active .faq-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f8fafc;
}

.faq-answer.active {
    max-height: 500px;
    padding: 1.5rem 2rem;
}

.faq-answer p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .service-areas-container {
        padding: 1.5rem;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .area-tag {
        padding: 0.875rem 1rem;
    }
    
    .area-icon {
        width: 2rem;
        height: 2rem;
        margin-right: 0.75rem;
    }

    .floating-buttons {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .floating-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
    }
    
    .floating-btn .tooltip {
        display: none;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer.active {
        padding: 1.25rem 1.5rem;
    }
}