:root {
    /* Brand Colors based on Reference */
    --color-primary: #003366;
    /* Deep Corporate Blue */
    --color-secondary: #004080;
    /* Lighter Blue for gradients/hover */
    --color-accent: #00cc66;
    /* WhatsApp Green for CTA */
    --color-text: #333333;
    /* Dark Grey for body text */
    --color-text-light: #666666;
    /* Light Grey for subtitles */
    --color-white: #ffffff;
    --color-light-bg: #f8f9fa;
    /* Very light grey for section contrast */

    --font-heading: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --container-width: 1200px;
    --border-radius: 8px;
    /* Clean, slightly rounded corners */
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-white) !important;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-whatsapp {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 204, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #00b359;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 204, 102, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-grey {
    background-color: var(--color-light-bg);
}

.section-blue {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.section-blue .section-title {
    color: var(--color-white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-blue .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Navbar */
.navbar {
    background-color: var(--color-primary);
    padding: 15px 0;
    position: sticky;
    /* Sticky, but check implementation in JS for background changes if needed */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-text {
    font-size: 1.5rem;
    color: var(--color-white);
    font-weight: 700;
    font-family: var(--font-heading);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-white);
}

.btn-nav-cta {
    padding: 8px 20px;
    border: 1px solid var(--color-white);
    border-radius: 4px;
    color: var(--color-white);
    font-size: 0.9rem;
}

.btn-nav-cta:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section - Split Layout */
.hero {
    position: relative;
    background-color: #0b0f19;
    /* Deep dark background */
    min-height: 100vh;
    /* Full screen height to match reference */
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Remove gap for seamless blend */
    align-items: center;
    height: 100%;
    max-width: 1400px;
    /* Wider container for the full look */
    padding: 0 40px;
}

.hero-content {
    text-align: left;
    z-index: 10;
    max-width: 600px;
    /* Limit text width */
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    /* Occupy right side */
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Center the subject */

    /* Key: Linear Gradient Mask for seamless blending */
    /* This fades the image out on the left side, revealing the section background */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);

    /* Restore opacity */
    opacity: 1;

    /* Animation */
    transform: translateX(50px);
    animation: slideInRightHero 1s ease forwards 0.3s;
}

/* Custom animation for Hero - Full Opacity */
@keyframes slideInRightHero {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero h1 {
    font-size: 3.8rem;
    /* Larger title */
    color: var(--color-white);
    margin-bottom: 25px;
    line-height: 1.1;

    /* Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero p {
    color: #e2e8f0;
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
    max-width: 500px;
}

.hero .btn-whatsapp {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
    padding: 15px 35px;
    /* Larger button */
    font-size: 1.1rem;
}

/* Closing CTA Section - Cinematic Left Blend */
.closing-cta {
    background-color: #0b0f19;
    /* Deep dark background */
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 80vh;
    /* Taller section for impact */
    display: flex;
    align-items: center;
}

.closing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

.closing-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    /* Occupy left side */
    height: 100%;
    z-index: 1;
}

.closing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

    /* Key: Linear Gradient Mask - Fades out the RIGHT side */
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 30%, black 100%);
    mask-image: linear-gradient(to left, transparent 0%, black 30%, black 100%);

    opacity: 1;
    /* Full opacity */

    /* Gentle Zoom Animation */
    transform: scale(1);
    transition: transform 10s ease;
}

.closing-cta:hover .closing-image img {
    transform: scale(1.05);
    /* Subtle zoom on hover */
}

.closing-text {
    grid-column: 2;
    /* Force text to the right column */
    padding: 60px 40px;
    text-align: left;
    z-index: 10;
    position: relative;
    max-width: 650px;
}

.closing-text h2 {
    color: white;
    font-size: 3.5rem;
    /* Large premium heading */
    margin-bottom: 25px;
    line-height: 1.1;
}

.closing-text p {
    color: #cbd5e1;
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Specific button style for this section */
.closing-text .btn-whatsapp {
    padding: 18px 40px;
    font-size: 1.1rem;
    box-shadow: 0 0 30px rgba(0, 204, 102, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .closing-cta {
        min-height: auto;
        padding: 60px 0;
    }

    .closing-container {
        grid-template-columns: 1fr;
    }

    .closing-image {
        position: relative;
        width: 100%;
        height: 400px;
        order: 1;
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 100%);
        mask-image: linear-gradient(to bottom, transparent, black 20%, black 100%);
    }

    .closing-image img {
        object-position: top center;
        /* Focus on face */
    }

    .closing-text {
        grid-column: 1;
        order: 2;
        padding: 40px 20px;
        text-align: center;
    }

    .closing-text h2 {
        font-size: 2.5rem;
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive for Split Hero */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 0;
    }

    .hero-content {
        order: 1;
        text-align: center;
        padding-bottom: 40px;
    }

    .hero-image {
        order: 2;
        justify-content: center;
        position: relative;
        width: 100%;
        height: auto;
        right: auto;
        top: auto;
        margin-top: 20px;
    }

    .hero-image img {
        max-height: 400px;
        width: auto;
        position: relative;
        -webkit-mask-image: linear-gradient(to top, transparent 0%, black 20%, black 100%);
        mask-image: linear-gradient(to top, transparent 0%, black 20%, black 100%);
        transform: translateX(0);
        /* Reset animation transform */
        animation: none;
        /* Disable complex animation on mobile for stability */
        opacity: 1;
    }

    .closing-container {
        grid-template-columns: 1fr;
    }

    .closing-image {
        height: 400px;
        order: 2;
    }

    .closing-text {
        order: 1;
        padding: 40px 20px;
        text-align: center;
    }
}

/* Areas of Practice */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.area-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.area-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
}

.area-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.area-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.area-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.area-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Team Section Blended */
#about {
    background-color: #0b0f19;
    /* Dark background matching photo env */
    color: white;
    position: relative;
    overflow: hidden;
}

.team-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Minimized gap for blending */
    align-items: center;
    max-width: 1200px;
}

.team-image-wrapper {
    position: relative;
    box-shadow: none;
    background: transparent;
    /* Gradient mask to blend image left edge into the dark background */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
    margin-left: -50px;
    /* Overlap slightly */
}

.team-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    /* No border radius for blending */
}

.team-info {
    padding: 60px 40px 60px 0;
    z-index: 2;
}

.team-info h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;

    /* Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.team-info .role {
    color: var(--color-accent);
    /* Green accent */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 30px;

    /* Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.team-info p {
    color: #e2e8f0;
    /* Light grey/white text */
    font-size: 1.1rem;
    margin-bottom: 1.5rem;

    /* Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.team-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: white;
    font-family: var(--font-heading);
}

.stat-item span {
    color: #94a3b8;
    font-size: 0.9rem;
}

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

/* Responsive tweaks for blending */
@media (max-width: 968px) {
    .team-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .team-image-wrapper {
        margin-left: 0;
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%);
        mask-image: linear-gradient(to bottom, transparent, black 10%);
    }

    .team-info {
        padding: 40px 20px 0;
    }
}

/* Differentials */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.diff-item {
    background: var(--color-white);
    padding: 40px 20px;
    border-radius: var(--border-radius);
}

.diff-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 51, 102, 0.05);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.testimonial-card {
    background: var(--color-white);
    color: var(--color-text);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card i {
    font-size: 3rem;
    color: #ffd700;
    /* Gold star color */
    margin-bottom: 20px;
    display: block;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: #002244;
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer h3 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

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

.footer-link {
    color: #ccc;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact-btn {
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
}

/* Responsive */
/* Responsive Navigation */
@media (max-width: 968px) {

    /* Increased breakpoint for mobile menu */
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
        /* Above mobile menu */
        position: relative;
    }

    /* Hero adjustments for tablet/mobile crossover */
    .hero h1 {
        font-size: 2.8rem;
    }

    .team-container {
        grid-template-columns: 1fr;
    }

    .diff-grid {
        grid-template-columns: 1fr;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(11, 15, 25, 0.98);
        /* Proper dark branding color */
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        padding: 20px;
        gap: 30px;
        z-index: 1000;
        animation: fadeInMenu 0.3s ease forwards;
    }

    .nav-links.active .nav-link {
        font-size: 1.5rem;
        color: var(--color-white);
        opacity: 0;
        animation: fadeInUpMenu 0.4s ease forwards;
    }

    /* Staggered animation for links */
    .nav-links.active .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links.active .nav-link:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-links.active .nav-link:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-links.active .btn-nav-cta {
        animation-delay: 0.4s;
    }

    .nav-links.active .btn-nav-cta {
        font-size: 1.2rem;
        padding: 15px 30px;
        margin-top: 20px;
        background: var(--color-accent);
        border-color: var(--color-accent);
        opacity: 0;
        animation: fadeInUpMenu 0.4s ease forwards;
    }

    @keyframes fadeInMenu {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

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

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}