.legal-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
}

.legal-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.legal-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Legal Mini Slider */
.legal-mini-slider {
    background: linear-gradient(135deg, hsl(var(--primary-dark)), hsl(var(--primary)));
    color: white;
    padding: 2rem 0;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.legal-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.legal-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.legal-slide.active {
    display: block;
    opacity: 1;
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

.slide-text h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
}

.slide-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    min-width: 120px;
    transition: all var(--transition-fast);
}

.stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: hsl(var(--accent));
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Legal Slider Controls */
.legal-slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 0 2rem;
}

.legal-slider-dots {
    display: flex;
    gap: 0.5rem;
}

.legal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.legal-dot.active {
    background: hsl(var(--accent));
    border-color: hsl(var(--accent));
    box-shadow: 0 0 10px hsla(var(--accent), 0.5);
}

.legal-dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.legal-slider-arrows {
    display: flex;
    gap: 0.5rem;
}

.legal-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.legal-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    color: hsl(var(--accent));
}

/* Enhanced Legal Team Section */
.legal-team {
    padding: 6rem 0;
    background: var(--background);
}

.legal-team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary);
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lawyer-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.lawyer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.lawyer-card:hover::before {
    transform: scaleX(1);
}

.lawyer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: hsla(var(--primary), 0.2);
}

.lawyer-card img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid hsl(var(--accent));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.lawyer-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.lawyer-card .title {
    color: hsl(var(--accent));
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.lawyer-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.credentials span {
    background: hsl(var(--muted));
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.credentials span:hover {
    background: hsla(var(--accent), 0.1);
    color: hsl(var(--accent));
}

/* Enhanced Legal Services */
.legal-services {
    padding: 6rem 0;
    background: hsl(var(--muted));
}

.legal-services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary);
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, hsla(var(--accent), 0.05), transparent);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.service-card:hover::after {
    width: 300px;
    height: 300px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: hsla(var(--accent), 0.2);
}

.service-card i {
    font-size: 3rem;
    color: hsl(var(--accent));
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Enhanced Testimonials */
.testimonials {
    padding: 6rem 0;
    background: white;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary);
    font-weight: 700;
}

.testimonials-slider {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    height: 250px;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s ease;
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-content {
    background: hsl(var(--muted));
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid hsl(var(--accent));
    text-align: center;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    line-height: 1.6;
}

.testimonial-author strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: hsla(var(--primary), 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-dot.active,
.nav-dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* Enhanced Legal Contact */
.legal-contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, hsl(var(--primary-dark)), hsl(var(--primary)));
    color: white;
    text-align: center;
}

.legal-contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-contact p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent-dark)));
    color: white;
    box-shadow: 0 4px 15px hsla(var(--accent), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px hsla(var(--accent), 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .slide-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .legal-mini-slider {
        padding: 1.5rem 0;
    }
    
    .slide-content {
        padding: 2rem 0;
    }
    
    .slide-text h1 {
        font-size: 2rem;
    }
    
    .slide-text p {
        font-size: 1rem;
    }
    
    .slide-stats {
        gap: 1rem;
    }
    
    .stat {
        min-width: 100px;
        padding: 1rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .legal-slider-controls {
        padding: 0 1rem;
        margin-top: 1.5rem;
    }
    
    .team-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-team h2,
    .legal-services h2,
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonials-slider {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .slide-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat {
        width: 100%;
        max-width: 200px;
    }
}