/* ========================================
   ADVANCED UI COMPONENTS STYLES
   ======================================== */

/* 1. ANIMATED STATISTICS */
.stats-section {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-gold) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.stat-item {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* 2. TESTIMONIALS CAROUSEL */
.testimonials-carousel {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}

.testimonial-item {
    display: none;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-item.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: slideIn 0.6s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 120px;
    color: var(--accent-gold);
    font-family: Georgia, serif;
    opacity: 0.2;
    line-height: 1;
}

.testimonial-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.testimonial-info h4 {
    margin: 0;
    color: var(--primary-navy);
    font-size: 1.1rem;
}

.testimonial-info p {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: var(--accent-gold);
    margin-top: 0.25rem;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
}

.carousel-nav:hover {
    background: var(--accent-red);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    width: 30px;
    border-radius: 6px;
    background: var(--accent-red);
}

/* 3. TOAST NOTIFICATIONS */
#toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast i {
    font-size: 1.5rem;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success i {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error i {
    color: #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning i {
    color: #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info i {
    color: #3b82f6;
}

.toast span {
    flex: 1;
    color: var(--text-dark);
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: rgba(0, 0, 0, 0.8);
}

/* 4. FLOATING ACTION BUTTON (FAB) */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.fab-main:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.5);
}

.fab-container.active .fab-main {
    transform: rotate(45deg);
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
}

.fab-container.active .fab-menu {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.fab-container.active .fab-option {
    transform: translateY(0);
}

.fab-whatsapp {
    background: #25D366;
    transition-delay: 0.05s;
}

.fab-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1);
}

.fab-call {
    background: var(--accent-gold);
    transition-delay: 0.1s;
}

.fab-call:hover {
    background: #d97706;
    transform: scale(1.1);
}

.fab-track {
    background: var(--primary-navy);
    transition-delay: 0.15s;
}

.fab-track:hover {
    background: var(--primary-navy-light);
    transform: scale(1.1);
}

/* 5. FORM VALIDATION */
.form-control.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

.form-control.valid {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.05) !important;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: shake 0.3s ease;
}

.error-message::before {
    content: '!';
    width: 16px;
    height: 16px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* 6. PAGE LOADER */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10000;
    gap: 2rem;
}

#page-loader.active {
    display: flex;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 7. SCROLL PROGRESS BAR */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* 8. HOVER ELEVATE EFFECT */
.hover-elevate {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-elevate:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}

/* 9. ANIMATED BACKGROUND GRADIENTS */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(-45deg, #0f172a, #1e293b, var(--accent-red), var(--accent-gold));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* 10. GLASSMORPHISM ENHANCED */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 11. BACK TO TOP BUTTON - Fluid */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                visibility 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                box-shadow 0.3s ease;
    z-index: 999;
    will-change: transform, opacity;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.5);
}

/* 12. RIPPLE EFFECT */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.8s;
}

.btn-ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* 13. SKELETON LOADING */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-image {
    width: 100%;
    height: 200px;
}

.skeleton-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

/* 14. PULSE ANIMATION FOR LIVE ELEMENTS */
.pulse-live {
    position: relative;
}

.pulse-live::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* 15. MAGNETIC BUTTON EFFECT */
.btn-magnetic {
    transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}

/* 16. REVEAL ON SCROLL ANIMATIONS - Ultra Fluid */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* 17. GRADIENT TEXT */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 18. ENHANCED CARD HOVER EFFECTS */
.card-3d {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateZ(10px);
}

/* 19. GLOW BORDER ANIMATION */
.glow-border {
    position: relative;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-red), var(--accent-gold), var(--accent-red));
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    animation: glowRotate 3s linear infinite;
}

@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 20. FLOATING LABEL INPUT */
.floating-label-group {
    position: relative;
    margin-bottom: 2rem;
}

.floating-label-group input,
.floating-label-group textarea {
    width: 100%;
    padding: 1.5rem 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.floating-label-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.floating-label-group input:focus,
.floating-label-group textarea:focus {
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.12);
}

.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label,
.floating-label-group textarea:focus + label,
.floating-label-group textarea:not(:placeholder-shown) + label {
    top: 0.5rem;
    transform: translateY(0);
    font-size: 0.75rem;
    color: var(--accent-gold);
}

/* 21. BADGE STYLES */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* 22. TOOLTIP - Fluid */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.9);
    padding: 0.5rem 1rem;
    background: var(--primary-navy);
    color: white;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(2px);
    border: 6px solid transparent;
    border-top-color: var(--primary-navy);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.tooltip:hover::before {
    transform: translateX(-50%) translateY(-5px) scale(1);
}

.tooltip:hover::after {
    transform: translateX(-50%) translateY(7px);
}

/* 23. TYPING INDICATOR */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* 24. PROGRESS STEPS */
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 2rem 0;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-navy-light);
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
}

.progress-step.active .progress-step-circle {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.progress-step.completed .progress-step-circle {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-navy);
}

.progress-step-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.progress-step.active .progress-step-label {
    color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: 100%;
    }

    .fab-container {
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .testimonial-card {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        transform: translateY(20px);
    }

    .card-3d:hover {
        transform: none;
    }
}

/* ========================================
   LIGHT MODE THEME
   ======================================== */
.light-mode {
    --bg-dark: #f5f7fa;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --glass-dark: rgba(255, 255, 255, 0.8);
    --glass-light: rgba(255, 255, 255, 0.9);
}

.light-mode body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%) !important;
    color: var(--text-primary);
}

.light-mode header {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

.light-mode .logo {
    color: var(--text-primary) !important;
}

.light-mode .nav-links a {
    color: var(--text-secondary) !important;
}

.light-mode .nav-links a:hover {
    color: var(--accent-red) !important;
}

.light-mode .glass-card,
.light-mode .service-card,
.light-mode .step {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
}

.light-mode .glass-card h1,
.light-mode .glass-card h2,
.light-mode .glass-card h3,
.light-mode .glass-card p,
.light-mode .service-card h3,
.light-mode .service-card p,
.light-mode h1, .light-mode h2, .light-mode h3 {
    color: var(--text-primary) !important;
}

.light-mode section p,
.light-mode .section-subtitle {
    color: var(--text-secondary) !important;
}

.light-mode footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: white !important;
}

.light-mode footer h3, 
.light-mode footer h4,
.light-mode footer p,
.light-mode footer a {
    color: white !important;
}

.light-mode .hero {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(251, 191, 36, 0.08) 100%) !important;
}

.light-mode input,
.light-mode select,
.light-mode textarea {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: var(--text-primary) !important;
}

.light-mode input::placeholder,
.light-mode textarea::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

.light-mode .section-title {
    color: var(--text-primary) !important;
}

.light-mode .mobile-menu-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
}

.light-mode .mobile-menu-overlay a {
    color: var(--text-primary) !important;
}

/* ========================================
   ADVANCED KEYFRAME ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-15px); }
    70% { transform: translateY(-7px); }
    90% { transform: translateY(-3px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes swing {
    20% { transform: rotate3d(0, 0, 1, 15deg); }
    40% { transform: rotate3d(0, 0, 1, -10deg); }
    60% { transform: rotate3d(0, 0, 1, 5deg); }
    80% { transform: rotate3d(0, 0, 1, -5deg); }
    100% { transform: rotate3d(0, 0, 1, 0deg); }
}

@keyframes morphGradient {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px var(--accent-gold), 0 0 10px var(--accent-gold); }
    50% { box-shadow: 0 0 20px var(--accent-gold), 0 0 30px var(--accent-gold); }
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes borderDance {
    0%, 100% { border-color: var(--accent-red); }
    25% { border-color: var(--accent-gold); }
    50% { border-color: var(--accent-green); }
    75% { border-color: var(--accent-blue); }
}

/* ========================================
   ANIMATED BORDERS & EFFECTS
   ======================================== */
.animated-border {
    position: relative;
    background: var(--glass-dark);
    overflow: hidden;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: conic-gradient(from 0deg, var(--accent-red), var(--accent-gold), var(--accent-green), var(--accent-blue), var(--accent-red));
    animation: rotateGradient 3s linear infinite;
    z-index: -1;
    border-radius: inherit;
}

.animated-border::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-dark);
    border-radius: inherit;
    z-index: -1;
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 
        0 0 5px var(--accent-red),
        0 0 10px var(--accent-red),
        0 0 20px var(--accent-red),
        0 0 40px var(--accent-red);
}

.neon-glow-gold {
    text-shadow: 
        0 0 5px var(--accent-gold),
        0 0 10px var(--accent-gold),
        0 0 20px var(--accent-gold);
}

/* ========================================
   ENHANCED BUTTONS
   ======================================== */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-animated:hover::before {
    width: 300px;
    height: 300px;
}

.btn-3d {
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.3s ease;
}

.btn-3d:hover {
    transform: perspective(1000px) rotateX(10deg);
}

.btn-3d:active {
    transform: perspective(1000px) rotateX(10deg) translateY(2px);
}

/* Liquid Button */
.btn-liquid {
    position: relative;
    overflow: hidden;
}

.btn-liquid::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.6s ease;
}

.btn-liquid:hover::after {
    transform: scale(3);
}

/* ========================================
   TEXT EFFECTS
   ======================================== */
.text-stroke {
    -webkit-text-stroke: 2px var(--accent-gold);
    -webkit-text-fill-color: transparent;
}

.text-shadow-3d {
    text-shadow: 
        1px 1px 0 var(--accent-red),
        2px 2px 0 #dc2626,
        3px 3px 0 #b91c1c,
        4px 4px 0 #991b1b,
        5px 5px 10px rgba(0, 0, 0, 0.3);
}

.text-glitch {
    position: relative;
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 2px 0 var(--accent-red), -2px 0 var(--accent-blue); }
    25% { text-shadow: -2px 0 var(--accent-red), 2px 0 var(--accent-blue); }
    50% { text-shadow: 2px 0 var(--accent-blue), -2px 0 var(--accent-red); }
    75% { text-shadow: -2px 0 var(--accent-blue), 2px 0 var(--accent-red); }
}

/* Underline Animation */
.underline-hover {
    position: relative;
    display: inline-block;
}

.underline-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    transition: width 0.3s ease;
}

.underline-hover:hover::after {
    width: 100%;
}

/* ========================================
   SCROLL INDICATORS
   ======================================== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    z-index: 10000;
    transition: width 0.1s ease;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.scroll-down-arrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(15px); opacity: 0.3; }
}

/* ========================================
   INTERACTIVE ELEMENTS
   ======================================== */
.interactive-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-dark);
    color: var(--accent-gold);
    transition: all 0.3s ease;
    cursor: pointer;
}

.interactive-icon:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
    transform: scale(1.2) rotate(10deg);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-switch.active {
    background: var(--accent-green);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: left 0.3s ease;
}

.toggle-switch.active::after {
    left: 33px;
}

/* ========================================
   NOTIFICATION BADGES
   ======================================== */
.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* ========================================
   SKELETON LOADING ENHANCED
   ======================================== */
.skeleton-wave {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-wave::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmerWave 1.5s infinite;
}

@keyframes shimmerWave {
    100% { left: 100%; }
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 10001;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left;
}

.page-transition.active {
    animation: pageWipe 0.8s ease-in-out;
}

@keyframes pageWipe {
    0% { transform: scaleX(0); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
    50.1% { transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* ========================================
   LIGHTBOX - Fluid
   ======================================== */
.lightbox-overlay {
    animation: lightboxFadeIn 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.lightbox-overlay img {
    animation: lightboxZoomIn 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========================================
   MOBILE LIGHT MODE
   ======================================== */
@media (max-width: 768px) {
    .dark-mode-toggle {
        bottom: 20px !important;
        left: 20px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .sticky-cta-bar {
        padding: 0.75rem !important;
    }
    
    .sticky-cta-bar .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Disable heavy effects on mobile */
    .particle-container {
        display: none !important;
    }
}