/* AFAQ Maintenance Company - Premium UI Styles */

/* Advanced Animations */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

.animate-gradient {
    animation: gradient 3s ease infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Navigation */
.nav-link {
    @apply text-gray-700 hover:text-[#006699] transition font-medium text-sm;
    position: relative;
}

.nav-link.active {
    @apply text-[#006699];
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #006699, #F89E1B);
}

.mobile-nav-link {
    @apply text-gray-700 hover:text-[#006699] transition font-medium py-2 px-4 rounded-lg hover:bg-gray-100;
}

/* Buttons - Blue Theme */
.btn-primary {
    background: linear-gradient(135deg, #006699 0%, #004d73 100%);
    @apply text-white px-6 py-2.5 rounded-lg hover:shadow-xl transition font-medium inline-flex items-center justify-center;
    box-shadow: 0 4px 15px rgba(0, 102, 153, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #004d73 0%, #006699 100%);
    box-shadow: 0 6px 20px rgba(0, 102, 153, 0.5);
}

.btn-outline {
    @apply border-2 border-[#006699] text-[#006699] px-6 py-2.5 rounded-lg hover:bg-[#006699] hover:text-white transition font-medium inline-flex items-center justify-center;
}

/* Buttons - Orange Theme */
.btn-secondary {
    background: linear-gradient(135deg, #F89E1B 0%, #e68a00 100%);
    @apply text-white px-6 py-2.5 rounded-lg hover:shadow-xl transition font-medium inline-flex items-center justify-center;
    box-shadow: 0 4px 15px rgba(248, 158, 27, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #e68a00 0%, #F89E1B 100%);
    box-shadow: 0 6px 20px rgba(248, 158, 27, 0.5);
}

.btn-orange {
    background: linear-gradient(135deg, #F89E1B 0%, #e68a00 100%);
    @apply text-white px-6 py-2.5 rounded-lg hover:shadow-xl transition font-medium inline-flex items-center justify-center;
    box-shadow: 0 4px 15px rgba(248, 158, 27, 0.3);
}

.btn-outline-orange {
    @apply border-2 border-[#F89E1B] text-[#F89E1B] px-6 py-2.5 rounded-lg hover:bg-[#F89E1B] hover:text-white transition font-medium inline-flex items-center justify-center;
}

.btn-danger {
    @apply bg-red-600 text-white px-4 py-2 rounded-lg hover:bg-red-700 transition font-medium;
}

.btn-success {
    @apply bg-green-600 text-white px-4 py-2 rounded-lg hover:bg-green-700 transition font-medium;
}

/* Cards */
.card {
    @apply bg-white rounded-xl shadow-lg hover:shadow-2xl transition-all duration-300 overflow-hidden;
}

.service-card {
 
.service-card-icon-orange {
    @apply text-5xl mb-4 text-orange-600 group-hover:text-orange-700 transition-colors duration-300;
}}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card-icon {
    @apply text-5xl mb-4 text-blue-600 group-hover:text-orange-500 transition-colors duration-300;
}

/* Forms */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent transition;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

.form-error {
    @apply text-red-500 text-sm mt-1;
}

.form-group {
    @apply mb-4;
}

/* Alerts */
.alert {
    @apply px-6 py-4 rounded-lg mb-4 flex items-start;
}

.alert-success {
    @apply bg-green-100 border-l-4 border-green-500 text-green-700;
}

.alert-error {
    @apply bg-red-100 border-l-4 border-red-500 text-red-700;
}

.alert-warning {
    @apply bg-yellow-100 border-l-4 border-yellow-500 text-yellow-700;
}

.alert-info {
    @apply bg-blue-100 border-l-4 border-blue-500 text-blue-700;
/* Footer - Blue Theme */
.social-icon {
    @apply w-10 h-10 rounded-full bg-blue-700 hover:bg-blue-600 flex items-center justify-center transition-all duration-300;
}

.footer-link {
    @apply text-gray-300 hover:text-blue-400 transition text-sm;
}

/* Footer - Orange Theme */
.social-icon-orange {
    @apply w-10 h-10 rounded-full bg-orange-700 hover:bg-orange-600 flex items-center justify-center transition-all duration-300;
}

.footer-link-orange {
    @apply text-gray-300 hover:text-orange-400 transition text-sm;
.footer-link {
    @apply text-gray-300 hover:text-orange-400 transition text-sm;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.5);
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.scroll-top-btn:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 6px 30px rgba(249, 115, 22, 0.7);
    background: linear-gradient(135deg, #fb923c, #f97316);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, #0c1e3d 0%, #1e3a5f 25%, #2563eb 75%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-20px) translateX(20px); }
}

/* Stats */
.stat-card {
    @apply bg-white rounded-xl shadow-lg p-6 text-center transform hover:scale-105 transition-all duration-300;
}

/* Testimonials */
.testimonial-card {
    @apply bg-white rounded-xl shadow-lg p-6 relative;
}

.rating-stars {
    @apply flex justify-center space-x-1 text-orange-500 mb-3;
}

/* Gallery */
.gallery-item {
    @apply relative overflow-hidden rounded-lg shadow-lg group cursor-pointer;
}

.gallery-item:hover .gallery-overlay {
    @apply opacity-100;
}

.gallery-overlay {
    @apply absolute inset-0 bg-black bg-opacity-60 flex items-center justify-center opacity-0 transition-opacity duration-300;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    border-top-color: #2563eb;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Badge */
.badge {
    @apply px-3 py-1 rounded-full text-xs font-semibold inline-block;
}

.badge-pending {
    @apply bg-yellow-100 text-yellow-800;
}

.badge-confirmed {
    @apply bg-blue-100 text-blue-800;
}

.badge-in-progress {
    @apply bg-purple-100 text-purple-800;
}

.badge-completed {
    @apply bg-green-100 text-green-800;
}

.badge-cancelled {
    @apply bg-red-100 text-red-800;
}

/* Table */
.table-container {
    @apply overflow-x-auto bg-white rounded-lg shadow;
}

.table {
    @apply min-w-full divide-y divide-gray-200;
}

.table thead {
    @apply bg-gray-50;
}

.table th {
    @apply px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider;
}

.table td {
    @apply px-6 py-4 whitespace-nowrap text-sm;
}

/* Pagination */
.pagination {
    @apply flex space-x-2 justify-center mt-6;
}

.pagination-btn {
    @apply px-4 py-2 border border-gray-300 rounded-lg hover:bg-gray-100 transition;
}

.pagination-btn.active {
    @apply bg-blue-600 text-white border-blue-600;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-top-btn {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

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

::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 10px;
    border: 2px solid #f9f9f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
