/* ==================== Custom Styles ==================== */

/* Glassmorphism */
.glass {
    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);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    border-radius: 4px;
}
.dark ::-webkit-scrollbar-track {
    background: #1e293b;
}

/* ==================== Header & Navigation ==================== */

.navbar-transparent {
    background: transparent;
    transition: all 0.3s ease;
}
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.dark .navbar-scrolled {
    background: rgba(15, 23, 42, 0.95);
}

/* Mega Menu */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.mega-menu-trigger:hover .mega-menu,
.mega-menu-trigger.active .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ==================== Hero Slider ==================== */

.hero-slider .swiper-slide {
    position: relative;
}
.hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}
.hero-slider .slide-content {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 600px;
}

/* Video Background */
.video-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Statistics ==================== */

.stat-item {
    position: relative;
}
.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
}
.stat-item:last-child::after {
    display: none;
}

/* ==================== Service Cards ==================== */

.service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}
.service-card .icon-wrapper {
    transition: all 0.4s ease;
}
.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotateY(180deg);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
}
.service-card .icon-wrapper i {
    transition: all 0.4s ease;
}
.service-card:hover .icon-wrapper i {
    color: white !important;
}

/* ==================== Product Cards ==================== */

.product-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}
.product-card .product-image img {
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.08);
}
.product-card .product-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-card:hover .product-overlay {
    opacity: 1;
}

/* ==================== Brand Logo Slider ==================== */

.brand-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}
.brand-slider .swiper-slide:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ==================== Why Choose Us Cards ==================== */

.why-card {
    transition: all 0.4s ease;
}
.why-card:hover {
    transform: translateY(-5px);
}
.why-card .why-icon {
    transition: all 0.4s ease;
}
.why-card:hover .why-icon {
    animation: pulse-icon 0.6s ease;
}

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

/* ==================== FAQ Accordion ==================== */

.faq-accordion .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.faq-accordion .faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
}
.faq-accordion .faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}
.faq-accordion .faq-toggle i {
    transition: transform 0.3s ease;
}

/* ==================== Animated Counter ==================== */

.counter-number {
    font-variant-numeric: tabular-nums;
}

/* ==================== Back to Top ==================== */

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* ==================== Floating Buttons ==================== */

.floating-whatsapp {
    position: fixed;
    bottom: 75px;
    right: 20px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2s infinite;
    transition: all 0.3s ease;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-call {
    position: fixed;
    bottom: 135px;
    right: 20px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}
.floating-call:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==================== Scroll Progress Bar ==================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s ease;
    width: 0%;
}

/* ==================== Skeleton Loader ==================== */

.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}
.dark .skeleton {
    background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== Toast Notifications ==================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: toast-in 0.3s ease, toast-out 0.3s ease 3.7s forwards;
    min-width: 280px;
}
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
.toast-info { background: #3b82f6; }
.toast-warning { background: #f59e0b; }

@keyframes toast-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ==================== Loading Animation ==================== */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Cookie Consent ==================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 24px;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-consent.show {
    transform: translateY(0);
}

/* ==================== Image Zoom ==================== */

.image-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.image-zoom-overlay.active {
    opacity: 1;
    visibility: visible;
}
.image-zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ==================== Dark Mode ==================== */

.dark {
    color-scheme: dark;
}
.dark body {
    background: #0f172a;
    color: #e2e8f0;
}
.dark .bg-white { background-color: #1e293b; }
.dark .text-gray-900 { color: #f1f5f9; }
.dark .text-gray-700 { color: #cbd5e1; }
.dark .text-gray-600 { color: #94a3b8; }
.dark .text-gray-500 { color: #64748b; }
.dark .border-gray-200 { border-color: #334155; }
.dark .shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.dark .shadow-xl { box-shadow: 0 20px 40px rgba(0,0,0,0.4); }

/* ==================== Responsive Fixes ==================== */

@media (max-width: 768px) {
    .hero-slider .slide-content {
        left: 5%;
        right: 5%;
        max-width: 100%;
    }
    .stat-item::after {
        display: none;
    }
    .floating-whatsapp,
    .floating-call {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .floating-call { bottom: 120px; }
    .floating-whatsapp { bottom: 70px; }
    .back-to-top { bottom: 15px; right: 15px; width: 40px; height: 40px; }
}
