/* =========================
   Musinga Advocates — Modern Styles
   Premium Law Firm Design System
   ========================= */

/* ===== ROOT VARIABLES ===== */
:root {
    /* Primary Colors - Refined Navy Palette */
    --musinga-navy: #0f172a;
    --musinga-navy-light: #1e293b;
    --musinga-navy-lighter: #334155;
    --musinga-navy-dark: #020617;

    /* Gold Accent - Premium Legal */
    --musinga-gold: #d4af37;
    --musinga-gold-dark: #b8961f;
    --musinga-gold-light: #f0d77e;

    /* Neutrals - Modern Palette */
    --off-white: #f8fafc;
    --soft-gray: #e2e8f0;
    --mid-gray: #cbd5e1;
    --text-muted: #64748b;
    --text-secondary: #475569;

    /* Semantic Colors */
    --text: #0f172a;
    --brand: var(--musinga-navy);
    --brand-2: var(--musinga-navy-dark);
    --gold: var(--musinga-gold);
    --accent: var(--musinga-gold);

    /* Shadows - Multi-level System */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.16);
    --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.20);

    /* Border Radius */
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 72px;
    /* Offset for fixed header */
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Times New Roman', Times, serif;
    color: var(--brand-2);
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

p {
    margin: 0 0 1rem;
    line-height: 1.7;
    text-align: justify;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.flex.between {
    justify-content: space-between;
}

.flex.center {
    justify-content: center;
}

.flex.even {
    justify-content: space-evenly;
}

.text-center {
    text-align: center;
}

.small {
    font-size: 0.9rem;
}

.muted {
    color: var(--text-muted);
}

/* Modern Card System */
.card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--soft-gray);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.shadow {
    box-shadow: var(--shadow);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: var(--radius-full);
    padding: 0.9rem 1.6rem;
    border: 2px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    text-transform: none;
}

.btn-primary {
    background: var(--musinga-gold);
    color: var(--musinga-navy);
    border-color: var(--musinga-gold);
}

.btn-primary:hover {
    background: var(--musinga-gold-dark);
    border-color: var(--musinga-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--brand);
    border-color: var(--mid-gray);
}

.btn-ghost:hover {
    background: var(--off-white);
    border-color: var(--musinga-gold);
    color: var(--musinga-gold-dark);
}

.btn-sm {
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
}

.btn-xs {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    background: #fff;
    padding: 0.6rem 1rem;
    z-index: 9999;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}

/* ===== TOPBAR (if uncommented) ===== */
.topbar {
    background: var(--off-white);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--soft-gray);
    font-size: 0.95rem;
}

.topbar .btn {
    border-color: #cbd5e1;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--soft-gray);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    transition: var(--transition);
}

.site-header:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0;
}

/* Brand with Logo */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.brand:hover {
    transform: translateY(-1px);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 65px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.1));
}

.brand:hover .brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.15));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

/* Hide brand text on desktop - show only logo */
@media (min-width: 769px) {
    .brand-text {
        display: none;
    }
}

.brand-name {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--musinga-navy);
    letter-spacing: -0.3px;
    transition: var(--transition);
}

.brand-suffix {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--musinga-gold);
    letter-spacing: 1px;
    margin-top: -2px;
    transition: var(--transition);
}

.brand:hover .brand-name {
    color: var(--musinga-gold-dark);
}

.brand:hover .brand-suffix {
    color: var(--musinga-navy);
}

/* Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: 0;
    cursor: pointer;
    gap: 0.35rem;
    padding: 0.5rem;
    position: relative;
    z-index: 1040;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--musinga-navy);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle:hover span {
    background: var(--musinga-gold);
}

/* Animated hamburger to X */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation List */
.nav-list {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    color: var(--musinga-navy);
    font-weight: 600;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* Modern hover effect with slide-in underline */
.nav-list a:not(.btn)::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--musinga-gold);
    transition: transform 0.3s ease;
}

.nav-list a:not(.btn):hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* Glow effect on hover */
.nav-list a:not(.btn):hover {
    color: var(--musinga-gold-dark);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.1));
    transform: translateY(-2px);
}

/* Active link state */
.nav-list a:not(.btn).active {
    color: var(--musinga-gold-dark);
    background: rgba(212, 175, 55, 0.1);
}

.nav-list a:not(.btn).active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Contact button - special styling */
.nav-list a.btn {
    padding: 0.65rem 1.4rem;
    margin-left: 0.5rem;
}

.nav-list a.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 0;
    position: relative;
}

.section.alt {
    background: var(--off-white);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.sub {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 160px 20px;
    background: url("assets/hero-bg.png") center/cover no-repeat;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated overlay with gradient */
.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 46, 0.50) 0%,
            rgba(30, 42, 68, 0.55) 50%,
            rgba(15, 23, 46, 0.60) 100%);
    animation: overlayPulse 8s ease-in-out infinite;
}

@keyframes overlayPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }
}

/* Floating decorative elements */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent);
    animation: float 20s ease-in-out infinite;
}

.hero::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero::after {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(20px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-15px, 15px) scale(0.95);
    }

    75% {
        transform: translate(15px, 20px) scale(1.02);
    }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    animation: heroFadeIn 1.2s ease-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero p {
    text-align: center;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Eyebrow - Animated entrance */
.hero .eyebrow {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--musinga-gold-light);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: slideInDown 0.8s ease-out 0.3s forwards;
    position: relative;
    display: inline-block;
}

.hero .eyebrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--musinga-gold);
    animation: lineExpand 0.6s ease-out 1s forwards;
    transform-origin: center;
    scale: 0 1;
}

@keyframes lineExpand {
    to {
        scale: 1 1;
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* Brandline - Staggered word animation */
.hero .brandline {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    margin: 2rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5ch;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.brandline .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    animation: wordReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.brandline .word:nth-child(1) {
    animation-delay: 0.6s;
}

.brandline .word:nth-child(2) {
    animation-delay: 0.8s;
    color: var(--musinga-gold);
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

.brandline .suffix {
    animation-delay: 1s;
    font-size: 0.7em;
    color: var(--musinga-gold-light);
}

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

/* Tagline - Fade in with slight delay */
.hero .tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin: 1.5rem auto 1rem;
    max-width: 800px;
    line-height: 1.6;
    opacity: 0;
    animation: textReveal 1s cubic-bezier(0.77, 0, 0.175, 1) 1.2s forwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* Sub text - Animated entrance */
.hero .sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.4s forwards;
    letter-spacing: 1px;
    text-align: center;
}

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

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

/* CTA - Dramatic entrance with pulse */
.hero .cta {
    margin-top: 2.5rem;
    opacity: 0;
    animation: ctaEntrance 1s ease-out 1.6s forwards;
    text-align: center;
}

@keyframes ctaEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }

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

.hero .cta .btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow:
        0 10px 30px rgba(212, 175, 55, 0.3),
        0 0 0 0 rgba(212, 175, 55, 0.4);
    animation: buttonPulse 2s ease-in-out 3s infinite;
    transition: all 0.3s ease;
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow:
            0 10px 30px rgba(212, 175, 55, 0.3),
            0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow:
            0 10px 40px rgba(212, 175, 55, 0.4),
            0 0 0 10px rgba(212, 175, 55, 0);
    }
}

.hero .cta .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 15px 40px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3);
}

/* Scroll indicator - Animated bounce */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 2.5s forwards;
    cursor: pointer;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-indicator .mouse {
    width: 28px;
    height: 45px;
    border-radius: 20px;
    border: 2px solid rgba(212, 175, 55, 0.8);
    position: relative;
    background: rgba(255, 255, 255, 0.05);
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--musinga-gold);
    border-radius: 4px;
    animation: mouseScroll 1.5s ease-in-out infinite;
}

@keyframes mouseScroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

.scroll-indicator span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

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

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

/* ===== RIBBON ===== */
.ribbon {
    background: var(--musinga-navy);
    color: #e9eef6;
    padding: 1.5rem 0;
}

.ribbon .r-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    font-weight: 500;
    font-size: 0.95rem;
}

.ribbon i {
    color: var(--gold);
    font-size: 1.4rem;
}

/* ===== ABOUT SECTION ===== */
.about-image,
.standards-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover,
.standards-image:hover {
    box-shadow: var(--shadow-lg);
}

/* ===== MISSION & VISION ===== */
#mission .card {
    border: 2px solid var(--soft-gray);
    transition: var(--transition);
}

#mission .card:hover {
    border-color: var(--musinga-gold);
    box-shadow: var(--shadow-lg);
}

#mission .card h3 {
    color: var(--brand);
    margin-bottom: 1rem;
}

#mission .card i {
    color: var(--gold);
    margin-right: 0.8rem;
    font-size: 1.6rem;
}

/* ===== SERVICE STANDARDS ===== */
.sla.card h3,
.assurance.card h3 {
    margin-bottom: 0.8rem;
    color: var(--brand);
}

.sla ul {
    list-style: none;
    padding: 0;
}

.sla li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.6;
}

.sla li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--musinga-gold);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===== PRACTICE AREAS ===== */
.filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.chip {
    border: 2px solid var(--soft-gray);
    background: #fff;
    border-radius: var(--radius-full);
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.chip:hover {
    background: var(--off-white);
    border-color: var(--musinga-gold-dark);
    color: var(--musinga-gold-dark);
}

.chip.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

#practice .cards {
    justify-content: center;
}

#practice .card {
    border: 2px solid var(--soft-gray);
    transition: var(--transition);
    text-align: center;
}

#practice .card:hover {
    border-color: var(--musinga-gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

#practice .card .icon {
    font-size: 2.5rem;
    color: var(--musinga-gold);
    margin-bottom: 1rem;
}

#practice .card h3 {
    margin-bottom: 0.8rem;
    color: var(--brand);
}

#practice .card p {
    text-align: center;
}

/* ===== PRACTICE DEPARTMENTS ===== */
.practice-departments {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-top: 3rem;
}

.practice-department {
    background: #fff;
    border: 2px solid var(--soft-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-slow);
    position: relative;
}

.practice-department::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--musinga-gold);
    opacity: 0;
    transition: var(--transition);
}

.practice-department:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--musinga-gold);
    transform: translateY(-4px);
}

.practice-department:hover::before {
    opacity: 1;
}

.practice-department-header {
    background: linear-gradient(135deg, var(--brand) 0%, var(--musinga-navy-light) 100%);
    color: #fff;
    padding: 2.5rem;
    border-bottom: 4px solid var(--musinga-gold);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.department-icon {
    font-size: 3rem;
    color: var(--musinga-gold);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.department-title-wrapper {
    flex: 1;
}

.practice-department-header h3 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.department-head {
    color: var(--musinga-gold-light);
    font-size: 0.95rem;
    margin: 0.5rem 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.department-head-with-image {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.department-head-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--musinga-gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
    transition: var(--transition);
}

.department-head-with-image:hover .department-head-image {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.department-head-with-image .department-head {
    margin: 0;
}

.department-head-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.department-location {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--musinga-gold);
    width: fit-content;
}

.department-location i {
    color: var(--musinga-gold);
    font-size: 0.85rem;
}

.practice-department-content {
    padding: 3rem;
    line-height: 1.9;
    background: linear-gradient(to bottom, #fff 0%, var(--off-white) 100%);
}

.department-intro {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 2.5rem !important;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--soft-gray);
    font-weight: 500;
}

.practice-subsection {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--musinga-gold);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.practice-subsection:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.practice-subsection:last-child {
    margin-bottom: 0;
}

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

.subsection-number {
    background: var(--musinga-gold);
    color: var(--brand);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.subsection-header h4 {
    color: var(--brand);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
}

.practice-subsection p {
    margin-bottom: 1.2rem;
    text-align: left;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
}

.practice-subsection p:last-child {
    margin-bottom: 0;
}

.debt-services-list {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.debt-services-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text);
    line-height: 1.7;
    border-bottom: 1px solid var(--soft-gray);
}

.debt-services-list li:last-child {
    border-bottom: none;
}

/* ===== OFFICE LOCATIONS LIST ===== */
.office-locations {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem 0;
}

.office-locations li {
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--off-white) 0%, #fff 100%);
    border-left: 4px solid var(--musinga-gold);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    padding-left: 2.5rem;
}

.office-locations li::before {
    content: '📍';
    position: absolute;
    left: 1rem;
    top: 1rem;
    font-size: 1.2rem;
}

.office-locations li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-left-color: var(--musinga-gold-dark);
}

.office-locations li strong {
    color: var(--musinga-navy);
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-block;
    min-width: 120px;
}

.office-locations li:last-child {
    margin-bottom: 0;
}

/* Responsive Office Locations */
@media (max-width: 768px) {
    .office-locations li {
        padding: 0.9rem 1.2rem;
        padding-left: 2.2rem;
    }

    .office-locations li strong {
        display: block;
        margin-bottom: 0.3rem;
        min-width: auto;
    }
}

.debt-services-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--musinga-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== RESPONSIBILITY LAYOUT ===== */
.responsibility-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.responsibility-image {
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.responsibility-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.responsibility-cards .card {
    flex: 1;
    height: auto;
}

/* Responsive adjustments for practice departments */
@media (max-width: 1024px) {
    .practice-department-header {
        padding: 2rem;
    }

    .practice-department-content {
        padding: 2rem;
    }

    .responsibility-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .responsibility-cards {
        order: 1;
    }
}

@media (max-width: 768px) {
    .practice-departments {
        gap: 2.5rem;
        margin-top: 2rem;
    }

    .practice-department-header {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .department-icon {
        font-size: 2.5rem;
        margin-top: 0;
    }

    .practice-department-header h3 {
        font-size: 1.3rem;
    }

    .practice-department-content {
        padding: 1.5rem;
    }

    .practice-subsection {
        padding: 1.2rem;
        margin-bottom: 2rem;
    }

    .subsection-header {
        flex-wrap: wrap;
    }

    .subsection-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }

    .subsection-header h4 {
        font-size: 1.1rem;
    }

    .practice-department-content p,
    .practice-subsection p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .department-intro {
        font-size: 1rem;
        margin-bottom: 2rem !important;
        padding-bottom: 1.5rem;
    }

    .department-head-image {
        width: 70px;
        height: 70px;
    }

    .department-head-with-image {
        gap: 0.8rem;
    }

    .department-location {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .practice-department-header {
        padding: 1.2rem;
    }

    .practice-department-header h3 {
        font-size: 1.2rem;
    }

    .practice-department-content {
        padding: 1.2rem;
    }

    .practice-subsection {
        padding: 1rem;
    }

    .department-head {
        font-size: 0.85rem;
    }

    .department-head-image {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }

    .department-head-with-image {
        gap: 0.7rem;
    }

    .department-location {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .responsibility-image {
        min-height: 300px;
    }
}

/* ===== TEAM ===== */
#team .cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.team-card {
    background: #fff;
    border: 2px solid var(--soft-gray);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--musinga-gold);
}

.team-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--soft-gray);
    margin: 1.5rem auto 1rem;
    transition: var(--transition);
}

.team-card:hover img {
    border-color: var(--musinga-gold);
}

.team-card .meta {
    padding: 0 1.2rem 0.8rem;
}

.team-card .meta h3 {
    margin: 0.5rem 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.team-card .meta p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.team-card .actions {
    display: flex;
    justify-content: center;
    padding: 0.8rem 1.2rem 1.5rem;
}

.team-card .btn-bio {
    border: 2px solid var(--musinga-gold);
    background: transparent;
    color: var(--musinga-gold-dark);
    border-radius: var(--radius-full);
    padding: 0.6rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.team-card .btn-bio:hover {
    background: var(--musinga-gold);
    color: var(--musinga-navy);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

/* ===== TEAM GROUP PHOTOS SECTION ===== */
#team-photos {
    background: linear-gradient(to bottom, var(--off-white) 0%, #fff 100%);
}

.team-photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.team-photo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-slow);
    background: #fff;
}

.team-photo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.team-photo-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: var(--soft-gray);
}

.team-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

/* Specific styling for Mombasa photo to fit perfectly without cutting faces */
.mombasa-photo {
    object-fit: contain !important; /* Show full image without cropping */
    object-position: center center !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--soft-gray); /* Background color for any empty space */
}

/* Adjust wrapper for Mombasa to accommodate full photo - taller aspect ratio */
.team-photo-card:last-child .team-photo-wrapper {
    background: var(--soft-gray);
    padding-top: 110%; /* Even taller to accommodate portrait-oriented group photo */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure both photos maintain consistent height and alignment */
.team-photos-grid .team-photo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-photos-grid .team-photo-wrapper {
    flex: 1;
    min-height: 0;
}

.team-photo-card:hover .team-photo {
    transform: scale(1.05);
}

/* Prevent scaling on Mombasa photo to avoid cropping */
.team-photo-card:last-child:hover .mombasa-photo {
    transform: scale(1) !important;
}

.team-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, transparent 100%);
    padding: 2rem;
    transform: translateY(0);
    transition: var(--transition-slow);
}

.team-photo-card:hover .team-photo-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.team-photo-info {
    color: #fff;
}

.team-photo-info h3 {
    color: var(--musinga-gold);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.team-photo-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Team Photos */
@media (max-width: 768px) {
    .team-photos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .team-photo-wrapper {
        padding-top: 70%; /* Slightly taller on mobile */
    }

    /* Mombasa photo adjustments for mobile */
    .team-photo-card:last-child .team-photo-wrapper {
        padding-top: 100%; /* Adjust for mobile */
    }

    .team-photo-overlay {
        padding: 1.5rem;
    }

    .team-photo-info h3 {
        font-size: 1.5rem;
    }

    .team-photo-info p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .team-photo-overlay {
        padding: 1.2rem;
    }

    .team-photo-info h3 {
        font-size: 1.3rem;
    }

    .team-photo-info p {
        font-size: 0.9rem;
    }
}

/* ===== CLIENTS SECTION ===== */
#clients {
    background: linear-gradient(135deg, #0f172a 0%, #1e2a44 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

#clients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(212,175,55,0.1)"/></svg>');
    opacity: 0.3;
}

#clients .section-head {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

#clients h2 {
    color: white;
}

#clients .lead {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    margin-top: 0.5rem;
}

/* Marquee Wrapper */
.clients-marquee-wrapper {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
}

/* Marquee Container */
.clients-marquee {
    display: flex;
    gap: 2rem;
    animation: marqueeScroll 60s linear infinite;
    width: max-content;
}

.clients-marquee:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }


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

/* Client Card */
.client-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-width: 200px;
    max-width: 200px;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--musinga-gold);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
    transform: translateY(-4px);
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(212, 175, 55, 0.15),
            transparent);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.client-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 1);
    border-color: var(--musinga-gold);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(212, 175, 55, 0.4);
}

.client-card:hover::before {
    opacity: 1;
}

/* Client Icon/Logo */
.client-icon,
.client-logo {
    width: 90px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.4s ease;
    object-fit: contain;
    background: white;
    border-radius: 12px;
    padding: 0.6rem;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
}

.client-card:hover .client-logo {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

/* Client Name */
.client-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand);
    text-align: center;
    line-height: 1.4;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    padding-top: 0.5rem;
}

.client-card:hover .client-name {
    color: var(--musinga-gold-dark);
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(212, 175, 55, 0.3);
}

.marquee:hover {
    animation-play-state: paused;
}


/* ===== BRANCHES/OFFICES ===== */
.map-holder {
    margin-top: 0.8rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--soft-gray);
}

.map-holder iframe {
    width: 100%;
    height: 250px;
    border: 0;
    display: block;
}

/* ===== GALLERY (if used) ===== */
.masonry {
    columns: 1 340px;
    column-gap: 1.5rem;
}

.masonry .m-item {
    break-inside: avoid;
    margin: 0 0 1.5rem;
}

.masonry img {
    width: 100%;
    border-radius: var(--radius);
    border: 2px solid var(--soft-gray);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.masonry img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ===== CONTACT ===== */
.contact form label {
    display: block;
    font-weight: 600;
    color: var(--brand-2);
    margin-bottom: 0.4rem;
}

.contact input,
.contact select,
.contact textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--soft-gray);
    border-radius: var(--radius-sm);
    margin-top: 0.4rem;
    font: inherit;
    transition: var(--transition);
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
    outline: none;
    border-color: var(--musinga-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

#formStatus {
    color: var(--musinga-gold-dark);
    font-weight: 700;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--musinga-navy);
    color: #c9d3e8;
    padding: 3rem 0 2rem;
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.linklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.linklist li {
    margin-bottom: 0.5rem;
}

.linklist a {
    color: #e6ecfa;
    transition: var(--transition);
}

.linklist a:hover {
    color: var(--musinga-gold);
    text-decoration: underline;
}

.ticks {
    list-style: none;
    padding: 0;
}

.ticks li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.ticks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--musinga-gold);
    font-weight: 700;
}

.slogan {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--musinga-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.socials a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--soft-gray);
    margin-right: 0.5rem;
    color: #fff;
    transition: var(--transition);
}

.socials a:hover {
    background: var(--musinga-gold);
    border-color: var(--musinga-gold);
    color: var(--musinga-navy);
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--soft-gray);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--musinga-navy);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--musinga-gold);
    border-color: var(--musinga-gold);
    color: var(--musinga-navy);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal .bio-head {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--soft-gray);
}

.modal .bio-head img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--musinga-gold);
}

.modal .bio-head h3 {
    margin: 0.2rem 0 0.5rem;
    font-size: 1.6rem;
}

.modal .bio-body p {
    margin: 0.8rem 0 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 1020px) {
    .grid.two {
        grid-template-columns: 1fr;
    }

    .grid.three {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .grid.three {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        inset: 58px 0 auto 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--soft-gray);
        display: none;
        box-shadow: var(--shadow);
    }

    .nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 0.2rem;
    }

    .nav-list a {
        display: block;
        width: 100%;
        padding: 0.8rem 1rem;
    }

    /* Fix Our Evolution section - stack zigzag rows vertically */
    .zigzag-row {
        flex-direction: column !important;
    }

    /* Override inline styles for zigzag rows on mobile */
    .zigzag-row[style*="flex-direction: row-reverse"] {
        flex-direction: column !important;
    }

    .zigzag-text,
    .zigzag-image {
        width: 100% !important;
        flex: none !important;
    }

    .zigzag-row img {
        height: auto !important;
        max-height: 300px;
    }

    /* Make Core Practice Departments cards full width on mobile (like Mission cards) */
    #practice .cards.grid.three {
        grid-template-columns: 1fr !important;
    }

    #practice .card.practice-card {
        width: 100%;
        max-width: 100%;
    }

    /* Speed up client marquee on mobile - faster and closer together */
    .clients-marquee-wrapper {
        padding: 1.5rem 0;
        mask-image: linear-gradient(to right,
                transparent 0%,
                black 5%,
                black 95%,
                transparent 100%);
        -webkit-mask-image: linear-gradient(to right,
                transparent 0%,
                black 5%,
                black 95%,
                transparent 100%);
    }

    .clients-marquee {
        gap: 0.75rem !important;
        animation: marqueeScroll 20s linear infinite !important;
    }

    /* Adjust client card size for mobile - smaller so multiple cards are visible */
    .client-card {
        min-width: 140px !important;
        max-width: 140px !important;
        padding: 1rem 0.75rem;
        flex-shrink: 0;
    }

    .client-logo {
        width: 70px;
        height: 60px;
        padding: 0.5rem;
    }

    .client-name {
        font-size: 0.85rem;
    }

    /* Fix scroll indicator - ensure it's not hidden by Learn More button */
    .hero .cta {
        margin-bottom: 0;
    }

    .scroll-indicator {
        bottom: 20px !important;
        z-index: 10;
        position: absolute !important;
    }
}

@media (max-width: 460px) {
    .section {
        padding: 3rem 0;
    }

    .hero {
        padding: 120px 20px 80px;
        min-height: 70vh;
    }
}

/* ===== TEAM BIO MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Overlay */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 46, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Container */
.modal-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: white;
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.1);
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--musinga-navy);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: var(--musinga-gold);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Modal Content */
.modal-content {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: 85vh;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--off-white);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--musinga-gold);
    border-radius: 10px;
}

/* Bio Header */
.bio-head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--soft-gray);
    margin-bottom: 2rem;
    animation: slideInDown 0.5s ease 0.1s both;
}

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

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

.bio-head img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--musinga-gold);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 0 0 8px rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.bio-head:hover img {
    transform: scale(1.05);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 0 8px rgba(212, 175, 55, 0.2);
}

.bio-head div {
    flex: 1;
}

.bio-head h3 {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.8rem;
    color: var(--musinga-navy);
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.bio-head .muted {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bio-head .small {
    font-size: 0.95rem;
}

/* Bio Body */
.bio-body {
    animation: fadeInUp 0.6s ease 0.2s both;
}

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

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

.bio-body p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.bio-body p:last-child {
    margin-bottom: 0;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }

    .bio-head {
        flex-direction: column;
        text-align: center;
        padding-bottom: 1.5rem;
    }

    .bio-head img {
        width: 80px;
        height: 80px;
    }

    .bio-head h3 {
        font-size: 1.5rem;
    }

    .bio-body p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .modal-content {
        padding: 1.5rem 1rem;
    }

    .bio-head img {
        width: 70px;
        height: 70px;
    }

    .bio-head h3 {
        font-size: 1.3rem;
    }
}

/* ===== CONTACT FORM STATUS MESSAGES ===== */
.form-status {
    padding: 1.25rem 1.5rem 1.25rem 3.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
    animation: slideDown 0.4s ease-out;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.form-status.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #166534;
    border: 1px solid #86efac;
}

.form-status.success::before {
    background: #22c55e;
}

.form-status.success::after {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    animation: checkmarkPop 0.5s ease-out 0.2s both;
}

.form-status.error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.form-status.error::before {
    background: #ef4444;
}

.form-status.error::after {
    content: '✕';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    animation: checkmarkPop 0.5s ease-out 0.2s both;
}

/* Success Animation - Slide Down */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkmark Pop Animation */
@keyframes checkmarkPop {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0) rotate(-180deg);
    }
    50% {
        transform: translateY(-50%) scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1) rotate(0deg);
    }
}

/* Success Message Celebration Effect */
.form-status.success {
    animation: slideDown 0.4s ease-out, successPulse 2s ease-in-out 0.5s;
}

@keyframes successPulse {
    0%, 100% {
        box-shadow: var(--shadow-md);
    }
    50% {
        box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
    }
}

/* Button Loading State */
#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Form Status */
@media (max-width: 768px) {
    .form-status {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .form-status::after {
        font-size: 1.3rem;
    }
}