/**
 * Slider Enhancements - Improved Design & Animations
 * This file overrides and enhances the slider styles with smooth animations
 */

/* ============================================
   ENHANCED SLIDER TRANSITIONS
   ============================================ */

/* Smoother slider grid movement */
.legal-services-grid {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ENHANCED CARD ANIMATIONS */
============================================*/ .legal-services .legal-service-card {
    padding: 0 20px !important;
    /* Increased gap between cards */
}

.legal-service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateY(0);
    margin-bottom: 20px;
    /* Add bottom margin for better spacing */
}

.legal-service-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Enhanced icon animation */
.legal-service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-service-card:hover .legal-service-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(197, 154, 68, 0.4);
}

.legal-service-icon svg {
    transition: transform 0.3s ease;
}

.legal-service-card:hover .legal-service-icon svg {
    transform: scale(1.1);
}

/* Title color change on hover */
.legal-service-title {
    transition: color 0.3s ease;
}

.legal-service-card:hover .legal-service-title {
    color: var(--gold-primary);
}

/* ============================================
   ENHANCED SLIDER ARROWS
   ============================================ */

.legal-slider-arrow {
    width: 50px !important;
    height: 50px !important;
    background: linear-gradient(135deg, var(--dark-bg), rgba(20, 33, 61, 0.95)) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.legal-slider-arrow:hover {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary)) !important;
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 6px 25px rgba(197, 154, 68, 0.5) !important;
}

.legal-slider-arrow:active {
    transform: translateY(-50%) scale(1.05) !important;
}

/* Pulse animations for arrows */
.legal-slider-arrow.prev {
    animation: pulse-left 2s ease-in-out infinite;
}

.legal-slider-arrow.next {
    animation: pulse-right 2s ease-in-out infinite;
}

@keyframes pulse-left {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(-5px);
    }
}

@keyframes pulse-right {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(5px);
    }
}

/* Stop pulse on hover */
.legal-slider-arrow:hover {
    animation: none !important;
}

/* Larger arrow icons */
.legal-slider-arrow svg {
    width: 22px !important;
    height: 22px !important;
    transition: transform 0.3s ease;
}

.legal-slider-arrow:hover svg {
    transform: scale(1.2);
}

/* ============================================
   ENHANCED SLIDER DOTS
   ============================================ */

.legal-slider-dots {
    gap: 12px !important;
    margin-top: var(--spacing-xl) !important;
}

.legal-slider-dots .dot {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Ripple effect on hover */
.legal-slider-dots .dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(197, 154, 68, 0.2);
    transition: transform 0.3s ease;
    z-index: -1;
}

.legal-slider-dots .dot:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.legal-slider-dots .dot:hover {
    background-color: rgba(197, 154, 68, 0.6) !important;
    transform: scale(1.3) !important;
}

.legal-slider-dots .dot.active {
    background-color: var(--gold-primary) !important;
    transform: scale(1.4) !important;
    box-shadow: 0 0 15px rgba(197, 154, 68, 0.6);
    animation: dot-pulse 1.5s ease-in-out infinite;
}

@keyframes dot-pulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(197, 154, 68, 0.6);
    }

    50% {
        box-shadow: 0 0 25px rgba(197, 154, 68, 0.8);
    }
}

/* ============================================
   SMOOTH PAGE ENTRANCE ANIMATIONS
   ============================================ */

/* Page load fade-in */
body {
    animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SMOOTH NAVBAR ANIMATIONS
   ============================================ */

.legal-navbar-item {
    animation: navItemFade 0.5s ease-out backwards;
}

.legal-navbar-item:nth-child(1) {
    animation-delay: 0.1s;
}

.legal-navbar-item:nth-child(2) {
    animation-delay: 0.2s;
}

.legal-navbar-item:nth-child(3) {
    animation-delay: 0.3s;
}

.legal-navbar-item:nth-child(4) {
    animation-delay: 0.4s;
}

.legal-navbar-item:nth-child(5) {
    animation-delay: 0.5s;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   WHATSAPP BUTTON ANIMATION
   ============================================ */

.legal-whatsapp-float {
    animation: whatsappEntrance 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s backwards;
}

@keyframes whatsappEntrance {
    from {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ============================================
   FOOTER SOCIAL ICONS ANIMATION
   ============================================ */

.legal-footer-social-link {
    animation: socialIconFade 0.5s ease-out backwards;
}

.legal-footer-social-link:nth-child(1) {
    animation-delay: 0.1s;
}

.legal-footer-social-link:nth-child(2) {
    animation-delay: 0.2s;
}

.legal-footer-social-link:nth-child(3) {
    animation-delay: 0.3s;
}

.legal-footer-social-link:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes socialIconFade {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(-90deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* ============================================
   GLOBAL SMOOTH TRANSITIONS
   ============================================ */

/* All interactive elements */
a,
button,
input,
textarea,
select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth image hover */
img {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Button ripple effect */
button,
.legal-cta-button {
    position: relative;
    overflow: hidden;
}

button::before,
.legal-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:active::before,
.legal-cta-button:active::before {
    width: 300px;
    height: 300px;
}

/* Form input focus animation */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(197, 154, 68, 0.1);
    transform: translateY(-2px);
}
/* ============================================
   IMPROVED CARD SPACING IN SLIDERS
   ============================================ */

/* Add more breathing room in slider wrapper */
.legal-services-slider-wrapper {
    padding: 20px 70px !important; /* More padding on sides */
}

/* Increase gap between cards */
.legal-services .legal-service-card {
    padding: 0 20px !important; /* 20px on each side = 40px gap between cards */
}

/* Add spacing below cards */
.legal-service-card {
    margin-bottom: 20px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-services-slider-wrapper {
        padding: 15px 55px !important;
    }
    
    .legal-services .legal-service-card {
        padding: 0 15px !important;
    }
}

/* ============================================
   FIX WHATSAPP BUTTON POSITIONING
   ============================================ */

.legal-whatsapp-float {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    z-index: 99999 !important; /* Above everything */
}

/* Responsive positioning */
@media (max-width: 768px) {
    .legal-whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
    }
    
    .legal-whatsapp-float svg {
        width: 28px !important;
        height: 28px !important;
    }
}

/* ============================================
   FIX FOOTER LAYOUT
   ============================================ */

.legal-footer {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 0 !important;
}

.legal-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2rem !important;
}

/* Ensure footer stays at bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Responsive footer */
@media (max-width: 1024px) {
    .legal-footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .legal-footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .legal-footer-contact-item {
        justify-content: center !important;
    }
    
    .legal-footer-social {
        justify-content: center !important;
    }
}

/* ============================================
   CRITICAL FIX - FOOTER BOTTOM MUST BE VISIBLE
   ============================================ */

.legal-footer-bottom,
.legal-footer-copyright,
.legal-footer-bottom * {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.legal-footer-copyright {
    display: block !important;
    text-align: center !important;
}

.legal-footer-bottom {
    padding: 2rem 0 1rem 0 !important;
    margin-top: 2rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Prevent animations from hiding footer */
.legal-footer,
.legal-footer * {
    animation: none !important;
}

.legal-footer-bottom {
    transform: none !important;
}
