:root {
    --navy: #0A1A3A;
    --gold: #B8973B;
    --charcoal: #2A2A2A;
    --white: #FFFFFF;
    --light-gray: #F5F5F7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--navy);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--navy);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    color: var(--gold);
    font-size: 2rem;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo-subtext {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.733);
    display: block;
    margin-top: -5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--gold);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--gold);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--gold);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background-color: #9c8030;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gold);
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    color: var(--white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 10s ease-out, opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 26, 58, 0.7) 0%,
        rgba(10, 26, 58, 0.5) 50%,
        rgba(10, 26, 58, 0.8) 100%
    );
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    width: 100%;
}

.hero h1 {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.typewriter-container {
    min-height: 60px;
    margin-bottom: 2rem;
}

.typewriter {
    font-size: 1.8rem;
    font-weight: 300;
    display: inline-block;
    position: relative;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -10px;
    animation: blink 1s infinite;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-buttons .cta-button {
    background-color: transparent;
    border: 2px solid var(--gold);
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.hero-buttons .cta-button:first-child {
    background-color: var(--gold);
}

.hero-buttons .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

.slide-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slide-indicator.active {
    background-color: var(--gold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--navy);
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.about-content {
    flex: 1;
}

.about-intro {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gold);
    font-weight: 500;
}

.about-image {
    flex: 0 0 400px;
    position: relative;
}

.partner-image {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.image-frame {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 8px;
    z-index: 1;
}

.image-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background-color: var(--navy);
    z-index: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 3rem;
}

.about-text {
    margin-bottom: 2rem;
    color: var(--white);
}

.firm-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: rgba(184, 151, 59, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.highlight-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.highlight-content p {
    font-size: 0.95rem;
    color: var(--white);
}

.partner-info {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    position: relative;
}

.partner-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--gold);
    border-radius: 8px 0 0 8px;
}

.partner-name {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.partner-name h3 {
    margin-bottom: 0;
    color: var(--navy);
}

.partner-role {
    color: var(--gold);
    font-weight: 500;
    font-size: 1.1rem;
}

.partner-quote {
    font-style: italic;
    color: var(--charcoal);
    position: relative;
    padding-left: 1.5rem;
}

.partner-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    font-family: serif;
}

.signature {
    margin-top: 1.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--navy);
    font-size: 1.2rem;
}

/* Mission & Values */
.mission-values {
    background-color: var(--light-gray);
    padding: 80px 0;
    margin-top: 80px;
    width: 100%;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background-color: var(--navy);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    color: #ddd;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(184, 151, 59, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gold);
    font-size: 1.5rem;
}

.value-card h4 {
    margin-bottom: 1rem;
    color: var(--gold);
}

/* Stats Section */
.stats {
    background-color: var(--navy);
    padding: 80px 0;
    width: 100%;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    width: 100%;
}

.stat-item {
    flex: 1;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
}

.section-header {
    color: var(--gold);
}

/* Animation for the numbers */
@keyframes countUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.counting {
    animation: countUp 0.5s ease-out;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--navy);
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.section-header h2::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 2rem;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

/* Team Slider */
.team-slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
}

.team-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.team-member {
    flex: 0 0 calc(33.333% - 20px);
    margin: 0 10px;
    background-color: var(--navy);
    color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-photo {
    height: 250px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
}

.member-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 26, 58, 0.7), transparent);
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.member-role {
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.member-specialty {
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 1rem;
    padding: 5px 10px;
    background-color: rgba(184, 151, 59, 0.1);
    border-radius: 20px;
    display: inline-block;
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.slider-btn {
    background-color: var(--navy);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: var(--gold);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(10, 26, 58, 0.3);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: var(--gold);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-gray);
    width: 100%;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.section-header p {
    color: var(--charcoal);
}

.testimonial {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin: 0 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -20px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--navy);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--charcoal);
}

/* Contact Section */
.contact {
    background-color: var(--navy);
    color: var(--white);
    padding: 100px 0;
    width: 100%;
}

.contact h2 {
    color: var(--gold);
}

.contact p {
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-icon {
    color: var(--gold);
    margin-right: 1rem;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form button {
    width: 100%;
}

.practice-area {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 4px;
    background-color: var(--navy);
    color: black;
}

/* Footer */
footer {
    background-color: black;
    color: var(--white);
    padding: 60px 0 30px;
    width: 100%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========== COMPREHENSIVE MOBILE RESPONSIVE STYLES ========== */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Medium devices (tablets, 992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .typewriter {
        font-size: 1.5rem;
    }
    
    .about-container {
        gap: 3rem;
    }
}

/* Small devices (landscape phones, 768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Header adjustments */
    nav ul {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .header-container {
        padding: 0.8rem 15px;
    }
    
    /* Hero section */
    .hero {
        min-height: 600px;
        padding-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .typewriter {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .cta-button {
        width: 100%;
        max-width: 280px;
    }
    
    /* About section */
    .about-container {
        flex-direction: column-reverse;
        gap: 3rem;
    }
    
    .about-image {
        flex: 0 0 auto;
        width: 80%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .firm-highlights {
        grid-template-columns: 1fr;
    }
    
    /* Stats section */
    .stats-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .stat-item {
        padding: 0 10px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    /* Services section */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    /* Team slider */
    .team-member {
        flex: 0 0 calc(50% - 20px);
    }
    
    /* Contact section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Extra small devices (portrait phones, less than 768px) */
@media (max-width: 767px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    /* Header */
    .header-container {
        padding: 0.7rem 15px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        font-size: 1.7rem;
    }
    
    /* Hero section */
    .hero {
        min-height: 500px;
        padding-top: 70px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        padding: 0 10px;
    }
    
    .typewriter {
        font-size: 1.2rem;
    }
    
    .typewriter-container {
        min-height: 50px;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 15px;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .hero-buttons .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .slide-indicators {
        bottom: 60px;
    }
    
    .scroll-indicator {
        bottom: 20px;
        font-size: 1.2rem;
    }
    
    /* About section */
    .about {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .about-image {
        width: 100%;
        max-width: 350px;
    }
    
    .partner-image {
        height: 400px;
    }
    
    .image-decoration {
        width: 100px;
        height: 100px;
        bottom: -15px;
        right: -15px;
        font-size: 2rem;
    }
    
    .about-intro {
        font-size: 1.1rem;
    }
    
    .about-text {
        font-size: 0.95rem;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .highlight-icon {
        margin: 0 auto;
    }
    
    .partner-info {
        padding: 1.5rem;
    }
    
    .partner-quote {
        font-size: 0.9rem;
    }
    
    /* Stats section */
    .stats {
        padding: 60px 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-text {
        font-size: 1rem;
    }
    
    /* Services section */
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    /* Team section */
    .team {
        padding: 60px 0;
    }
    
    .team-member {
        flex: 0 0 calc(100% - 20px);
    }
    
    .member-photo {
        height: 200px;
    }
    
    .member-info {
        padding: 1.2rem;
    }
    
    .slider-nav {
        margin-top: 1.5rem;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonial {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    /* Contact section */
    .contact {
        padding: 60px 0;
    }
    
    .contact-form input,
    .contact-form textarea,
    .practice-area {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    /* Mission & Values */
    .mission-values {
        padding: 60px 0;
        margin-top: 60px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    /* Footer */
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* WhatsApp float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Very small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        min-height: 450px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .typewriter {
        font-size: 1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-buttons .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .member-info {
        padding: 1rem;
    }
    
    .partner-image {
        height: 350px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .team-member:hover,
    .service-card:hover,
    .value-card:hover {
        transform: none;
    }
    
    .cta-button:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Increase tap target sizes for mobile */
    .slider-btn,
    .slider-dot,
    nav ul li a {
        min-height: 44px;
        min-width: 44px;
    }
    
    .slider-dot {
        width: 16px;
        height: 16px;
    }
    
    .cta-button {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-slide {
        background-size: cover;
    }
}

/* Print styles */
@media print {
    .hero, .whatsapp-float, .mobile-menu {
        display: none !important;
    }
}
/* ========== CRITICAL MOBILE FIXES ========== */

/* Reset all containers to full width with proper padding */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Ensure all sections take full width */
section {
    width: 100%;
    overflow: hidden;
}

/* Fix team slider container */
.team-slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
    margin: 0;
}

.team-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* Fix team member widths for mobile */
@media (max-width: 767px) {
    .team-member {
        flex: 0 0 100% !important;
        margin: 0 10px;
        min-width: calc(100% - 20px);
    }
    
    .team-slider {
        gap: 0;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .team-member {
        flex: 0 0 calc(50% - 20px) !important;
        margin: 0 10px;
        min-width: calc(50% - 20px);
    }
}

/* Fix about section image container */
@media (max-width: 991px) {
    .about-image {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-container {
        gap: 2rem !important;
    }
}

/* Fix services grid */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        width: 100%;
    }
    
    .service-card {
        margin: 0;
        width: 100%;
    }
}

/* Fix stats section */
@media (max-width: 767px) {
    .stats-container {
        flex-direction: column;
        gap: 2rem;
        padding: 0 10px;
    }
    
    .stat-item {
        padding: 0;
        width: 100%;
    }
}

/* Fix contact section */
@media (max-width: 767px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
    }
    
    .contact-form {
        width: 100%;
    }
}

/* Fix footer */
@media (max-width: 767px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        width: 100%;
    }
}

/* Fix values grid */
@media (max-width: 767px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
}

/* Fix firm highlights */
@media (max-width: 767px) {
    .firm-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    
    .highlight-item {
        width: 100%;
    }
}

/* Ensure no horizontal overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

* {
    max-width: 100%;
}

/* Fix testimonial slider */
@media (max-width: 767px) {
    .testimonial {
        margin: 0 5px;
        width: calc(100% - 10px);
    }
    
    .testimonial-slider {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Fix hero section padding */
@media (max-width: 767px) {
    .hero-content {
        padding: 0 15px;
    }
    
    .hero h1,
    .hero p {
        padding: 0;
    }
}

/* Fix navigation menu for mobile */
@media (max-width: 991px) {
    nav ul {
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
    }
    
    nav ul li {
        margin: 0 !important;
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        padding: 0.8rem 0;
    }
}