/* Custom CSS for Alro 360 Digital Solutions */

/* Gradient Backgrounds */
.bg-gradient-light {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
}

.bg-dark {
    background-color: #111827;
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Custom Shadows */
.shadow-custom {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.shadow-hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: all 0.3s ease;
}

.btn-primary:hover:before {
    transform: translateX(0);
}

.glow {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(79, 70, 229, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
    }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top: 4px solid #4F46E5;
}

/* Navigation Active State */
nav a.active {
    color: #4F46E5;
    font-weight: 600;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.animate-fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Parallax Effect */
.parallax {
    transition: transform 0.2s ease-out;
}

/* Stats Counter Animation */
.counter {
    display: inline-block;
    font-weight: 700;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .text-gradient {
        background-size: 200% auto;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3730a3 0%, #0891b2 100%);
}

/* Floating Elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Image Effects */
.img-hover-zoom {
    overflow: hidden;
    border-radius: 0.5rem;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.1);
}

/* Form Focus Effects */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Enhanced WhatsApp Button Styling */
.whatsapp-btn {
    animation: pulse-slow 2s infinite;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    overflow: visible;
    background: linear-gradient(135deg, #25d366 0%, #128C7E 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease !important;
}

.whatsapp-btn i {
    font-size: 30px !important;
    color: white !important;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

@keyframes pulse-slow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    margin-left: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent #333 transparent transparent;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%) !important;
    transform: translateY(-2px);
}

/* Mobile Responsiveness Fixes */
@media (max-width: 640px) {
    .whatsapp-btn {
        width: 50px !important;
        height: 50px !important;
        bottom: 70px !important;
        right: 15px !important;
    }
    
    .whatsapp-btn i {
        font-size: 24px !important;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    /* Smaller animation for mobile */
    @keyframes pulse-slow {
        0% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        }
        
        70% {
            transform: scale(1);
            box-shadow: 0 0 0 7px rgba(37, 211, 102, 0);
        }
        
        100% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        }
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    h1, h2, h3 {
        word-break: break-word;
    }
    
    .text-4xl {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }
    
    .text-3xl {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }
    
    .animated-bg {
        padding-top: 6rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    
    .text-sm {
        font-size: 0.75rem !important;
    }
}
