/*
===============================================
WORKFAST - CTA Button Enhancement
Version: 1.0
Date: 30/12/2024
===============================================
Mục tiêu: Làm nổi bật nút Liên hệ/CTA để không bị chìm trong tone màu
*/

/* ==========================
   PRIMARY CTA BUTTON - NỔI BẬT
   ========================== */

.btn-primary {
    position: relative;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8A80 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.5), 
                0 0 30px rgba(255, 107, 107, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    animation: button-pulse-glow 2s ease-in-out infinite !important;
}

/* Animation nhấp nháy nhẹ để thu hút sự chú ý */
@keyframes button-pulse-glow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.5), 
                    0 0 30px rgba(255, 107, 107, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 12px 32px rgba(255, 107, 107, 0.7), 
                    0 0 50px rgba(255, 107, 107, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.5);
        transform: scale(1.02);
    }
}

/* Hover state - Nổi bật hơn */
.btn-primary:hover {
    background: linear-gradient(135deg, #FF5252 0%, #FF6B6B 100%) !important;
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 16px 40px rgba(255, 107, 107, 0.6), 
                0 0 60px rgba(255, 107, 107, 0.5),
                inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    animation: none !important;
}

/* Active state */
.btn-primary:active {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.7) !important;
}

/* ==========================
   SECONDARY BUTTON - Tinh tế hơn
   ========================== */

.btn-secondary {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #FF6B6B !important;
    font-weight: 600 !important;
    font-size: 17px !important;
    padding: 15px 36px !important;
    border-radius: 50px !important;
    border: 2px solid rgba(255, 107, 107, 0.3) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #FF5252 !important;
    border-color: rgba(255, 107, 107, 0.6) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.2) !important;
}

/* ==========================
   CTA SECTION BUTTONS
   ========================== */

/* CTA Section với nút nổi bật hơn */
.cta-section .btn-primary,
.cta-content .btn-primary {
    font-size: 20px !important;
    padding: 18px 48px !important;
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6), 
                0 0 40px rgba(255, 107, 107, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.4) !important;
}

/* ==========================
   HERO BUTTONS
   ========================== */

.hero-buttons .btn-primary {
    font-size: 19px !important;
    padding: 17px 44px !important;
}

/* Đảm bảo nút luôn nổi bật trên mọi nền */
.hero .btn-primary,
.section-gradient-bg .btn-primary,
[style*="background"] .btn-primary {
    position: relative;
    z-index: 10;
}

/* Thêm hiệu ứng shine */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s ease;
    border-radius: 50px;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ==========================
   SERVICE LINK BUTTONS
   ========================== */

.service-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #FF6B6B !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 12px 24px !important;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 138, 128, 0.1)) !important;
    border: 2px solid rgba(255, 107, 107, 0.3) !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.service-link:hover {
    background: linear-gradient(135deg, #FF6B6B, #FF8A80) !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateX(8px) !important;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4) !important;
}

.service-link i {
    transition: transform 0.3s ease !important;
}

.service-link:hover i {
    transform: translateX(4px) !important;
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 768px) {
    .btn-primary {
        font-size: 16px !important;
        padding: 14px 32px !important;
    }
    
    .btn-secondary {
        font-size: 15px !important;
        padding: 13px 28px !important;
    }
    
    .cta-section .btn-primary,
    .cta-content .btn-primary {
        font-size: 17px !important;
        padding: 15px 36px !important;
    }
    
    .hero-buttons .btn-primary {
        font-size: 16px !important;
        padding: 14px 32px !important;
    }
}

@media (max-width: 480px) {
    .btn-primary {
        font-size: 15px !important;
        padding: 12px 28px !important;
    }
    
    .btn-secondary {
        font-size: 14px !important;
        padding: 11px 24px !important;
    }
}

/* ==========================
   ACCESSIBILITY
   ========================== */

/* Đảm bảo contrast ratio đủ cao */
.btn-primary:focus,
.btn-secondary:focus {
    outline: 3px solid rgba(255, 107, 107, 0.5) !important;
    outline-offset: 3px !important;
}

/* Tắt animation cho người dùng không thích chuyển động */
@media (prefers-reduced-motion: reduce) {
    .btn-primary {
        animation: none !important;
    }
    
    .btn-primary::before {
        transition: none !important;
    }
    
    .btn-primary:hover::before {
        display: none !important;
    }
}

/* ==========================
   ADDITIONAL ENHANCEMENTS
   ========================== */

/* Icon trong nút */
.btn-primary i,
.btn-secondary i {
    transition: transform 0.3s ease !important;
}

.btn-primary:hover i,
.btn-secondary:hover i {
    transform: translateX(4px) !important;
}

/* Thêm gradient text cho nút secondary */
.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(255, 138, 128, 0.15)) !important;
}

/* Loading state cho nút (optional) */
.btn-primary.loading,
.btn-secondary.loading {
    pointer-events: none !important;
    opacity: 0.7 !important;
}

.btn-primary.loading::after,
.btn-secondary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
