/* ==========================================
           COLOR PALETTE - Easy to edit
           ========================================== */
        :root {
            /* Primary blues and grays from logo */
            --primary-blue: rgb(47, 85, 137);
            --dark-blue: rgb(31, 58, 97);
            --light-gray: rgb(213, 212, 210);
            --medium-gray: rgb(175, 175, 175);
            --dark-navy: rgb(16, 25, 58);
            --charcoal: rgb(130, 129, 129);
            --steel: rgb(114, 115, 115);
            
            /* Accent color - purple from portrait */
            --accent-purple: rgb(109, 85, 219);
            --accent-purple-light: rgba(109, 85, 219, 0.1);
            
            /* 
            ==========================================
            PURPLE ACCENT TOGGLE INSTRUCTIONS:
            ==========================================
            
            TO DISABLE PURPLE ACCENTS:
            Comment out the line below and uncomment the line after it:
            */
            --accent-active: var(--accent-purple);
            /* --accent-active: transparent; */
            
            /*
            TO ENABLE PURPLE ACCENTS:
            Comment out the line above and uncomment this line:
            --accent-active: var(--accent-purple);
            */
            
            /* Typography - Harmonized with Avenir logo */
            --font-heading: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            --font-accent: 'Lora', Georgia, serif;
        }
        
        /* ==========================================
           RESET & BASE STYLES
           ========================================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* Skip to content link for accessibility */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 0;
            background: var(--primary-blue);
            color: white;
            padding: 8px;
            text-decoration: none;
            z-index: 100;
            border-radius: 0 0 4px 0;
        }
        
        .skip-link:focus {
            top: 0;
        }
        
        /* Enhanced focus styles for accessibility */
        *:focus-visible {
            outline: 2px solid var(--accent-active);
            outline-offset: 2px;
            border-radius: 2px;
        }
        
        button:focus-visible,
        a:focus-visible {
            outline: 2px solid var(--accent-active);
            outline-offset: 2px;
        }
        
        html {
            /* Removed scroll-behavior: smooth to prevent conflict with JS smooth scrolling */
            scroll-behavior: auto;
        }
        
        body {
            font-family: var(--font-body);
            font-size: 16px;
            line-height: 1.65;
            color: var(--dark-navy);
            background: #ffffff;
            font-weight: 400;
            letter-spacing: -0.011em;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        /* ==========================================
           TYPOGRAPHY
           ========================================== */
        h1 {
            font-family: var(--font-heading);
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-weight: 300;
            line-height: 1.15;
            letter-spacing: -0.028em;
            margin-bottom: 1.5rem;
        }
        
        h2 {
            font-family: var(--font-heading);
            font-size: clamp(1.8rem, 4vw, 2.5rem);
            font-weight: 400;
            line-height: 1.25;
            letter-spacing: -0.018em;
            margin-bottom: 2rem;
            color: var(--dark-blue);
        }
        
        h3 {
            font-family: var(--font-heading);
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-blue);
            letter-spacing: -0.012em;
        }
        
        p {
            margin-bottom: 1.2rem;
            color: var(--charcoal);
            font-weight: 400;
            line-height: 1.7;
        }
        
        .lead {
            font-size: 1.125rem;
            line-height: 1.75;
            font-weight: 400;
            color: var(--steel);
            letter-spacing: -0.008em;
        }
        
        /* ==========================================
           LAYOUT COMPONENTS
           ========================================== */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }
        
        section {
            padding: 3.5rem 0;
            position: relative;
        }
        
        /* ==========================================
           HEADER & NAVIGATION
           ========================================== */
        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(175, 175, 175, 0.2);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        header.scrolled {
            box-shadow: 0 2px 20px rgba(16, 25, 58, 0.08);
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.2rem 0;
        }
        
        .logo-container {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .logo {
            height: 40px;
            width: 40px;
            transition: transform 0.3s ease;
        }
        
        .logo:hover {
            transform: scale(1.05);
        }
        
        .nav-links {
            display: flex;
            gap: 2.5rem;
            align-items: center;
        }
        
        .nav-links a {
            color: var(--steel);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9375rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            position: relative;
            transition: color 0.3s ease;
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent-active);
            transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .nav-links a:hover {
            color: var(--primary-blue);
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        /* Mobile menu button */
        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            align-items: center;
            gap: 0.5rem;
            color: var(--steel);
            font-family: var(--font-heading);
            font-weight: 500;
            font-size: 0.9375rem;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            transition: color 0.3s ease;
        }
        
        .mobile-menu-toggle:hover {
            color: var(--primary-blue);
        }
        
        .hamburger-icon {
            width: 20px;
            height: 20px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .hamburger-line {
            width: 100%;
            height: 2px;
            background: var(--accent-active);
            border-radius: 1px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        /* Hamburger animation to X */
        .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }
        
        .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }
        
        .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }
        
        /* Mobile navigation overlay */
        .mobile-nav-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(16, 25, 58, 0.95);
            z-index: 999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .mobile-nav-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .mobile-nav-menu {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            width: 100%;
            max-width: 400px;
            padding: 2rem;
        }
        
        .mobile-nav-menu ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .mobile-nav-menu li {
            margin-bottom: 2rem;
        }
        
        .mobile-nav-menu a {
            color: white;
            text-decoration: none;
            font-family: var(--font-heading);
            font-size: 1.5rem;
            font-weight: 400;
            letter-spacing: -0.015em;
            transition: all 0.3s ease;
            display: block;
            padding: 0.5rem;
            border-radius: 8px;
            position: relative;
        }
        
        .mobile-nav-menu a:hover {
            color: var(--accent-purple);
            background: rgba(255, 255, 255, 0.05);
        }
        
        /* Contact button - always visible */
        .nav-contact-btn {
            background: var(--accent-active);
            color: white !important;
            padding: 0.6rem 1.5rem;
            border-radius: 25px;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .nav-contact-btn::after {
            display: none;
        }
        
        .nav-contact-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .nav-contact-btn:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .nav-contact-btn:hover {
            color: white !important;
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(109, 85, 219, 0.3);
        }
        
        /* ==========================================
           HERO SECTION - Begin main content area
           ========================================== */
        #hero {
            padding-top: 5rem;
            padding-bottom: 2.5rem;
            background: linear-gradient(135deg, rgba(213, 212, 210, 0.1) 0%, rgba(47, 85, 137, 0.05) 100%);
            position: relative;
            overflow: hidden;
        }
        
        /* Subtle animated background pattern */
        #hero::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -10%;
            width: 60%;
            height: 150%;
            background: radial-gradient(circle, var(--accent-purple-light) 0%, transparent 70%);
            opacity: 0.3;
            animation: float 20s ease-in-out infinite;
            pointer-events: none;
        }
        
        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }
        
        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }
        
        .hero-logo {
            width: 280px;
            height: auto;
            margin: 0 auto 1.2rem auto;
            display: block;
            opacity: 0.95;
            filter: drop-shadow(0 4px 12px rgba(16, 25, 58, 0.1));
            animation: fadeInScale 0.8s ease-out;
        }
        
        @keyframes fadeInScale {
            from {
                opacity: 0;
                transform: scale(0.95);
            }
            to {
                opacity: 0.95;
                transform: scale(1);
            }
        }
        
        .hero-text h1 {
            background: linear-gradient(135deg, var(--dark-navy) 0%, var(--primary-blue) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
            margin-bottom: 1rem;
        }
        
        .hero-text .tagline {
            font-size: 1.25rem;
            color: var(--steel);
            margin-bottom: 2rem;
            font-weight: 400;
            font-family: var(--font-accent);
            font-style: italic;
            letter-spacing: 0.01em;
            line-height: 1.4;
        }
        
        .portrait-container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .portrait {
            width: 100%;
            max-width: 400px;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 20px 60px rgba(16, 25, 58, 0.15);
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            animation: fadeInUp 1s ease-out 0.3s backwards;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .portrait:hover {
            transform: scale(1.01);
        }
        
        /* ==========================================
           SERVICES SECTION - Practice areas
           ========================================== */
        #services {
            background: #fafafa;
        }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }
        
        .service-card {
            background: white;
            padding: 2rem;
            border-radius: 8px;
            border: 1px solid var(--accent-purple);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            display: block;
        }
        
        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--accent-purple), var(--accent-active));
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }
        
        .service-card::after {
            content: '→';
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            color: var(--accent-active);
            font-size: 1.2rem;
            font-weight: bold;
            opacity: 0;
            transition: all 0.3s ease;
        }
        
        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(109, 85, 219, 0.12);
            border-color: var(--accent-purple);
        }
        
        .service-card:hover::before {
            transform: translateX(0);
        }
        
        .service-card:hover::after {
            opacity: 1;
            transform: translateX(-5px);
        }
        
        .service-icon {
            width: 40px;
            height: 40px;
            margin-bottom: 1rem;
            fill: var(--primary-blue);
        }
        
        /* ==========================================
           EXPERTISE SECTION - Detailed experience
           ========================================== */
        #expertise {
            position: relative;
        }
        
        .expertise-content {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 4rem;
            align-items: start;
        }
        
        .expertise-intro {
            position: sticky;
            top: 120px;
        }
        
        .expertise-list h3 {
            margin-top: 2rem;
            padding: 0.8rem 1rem;
            background: linear-gradient(135deg, rgba(109, 85, 219, 0.05) 0%, rgba(47, 85, 137, 0.03) 100%);
            border-radius: 6px;
            border-left: 3px solid var(--accent-purple);
            margin-bottom: 1rem;
        }
        
        .expertise-list ul {
            list-style: none;
            padding: 0;
        }
        
        .expertise-list li {
            padding: 0.8rem 0;
            padding-left: 1.5rem;
            position: relative;
            color: var(--charcoal);
            transition: all 0.2s ease;
        }
        
        .expertise-list li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--accent-active);
            transition: transform 0.2s ease;
        }
        
        .expertise-list li:hover {
            padding-left: 2rem;
            color: var(--dark-navy);
        }
        
        .expertise-list li:hover::before {
            transform: translateX(5px);
        }
        
        /* ==========================================
           AI INTEGRATION SECTION - Modern capabilities
           ========================================== */
        #ai-integration {
            background: linear-gradient(135deg, rgba(109, 85, 219, 0.03) 0%, rgba(47, 85, 137, 0.05) 100%);
            position: relative;
            overflow: hidden;
        }
        
        #ai-integration::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 20% 80%, rgba(109, 85, 219, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(47, 85, 137, 0.1) 0%, transparent 50%);
            pointer-events: none;
        }
        
        .ai-badge {
            display: inline-block;
            background: var(--accent-active);
            color: white;
            padding: 0.35rem 1.1rem;
            border-radius: 20px;
            font-family: var(--font-heading);
            font-size: 0.8125rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: 1rem;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }
        
        .ai-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }
        
        .ai-feature {
            padding: 1.5rem;
            background: white;
            border-radius: 8px;
            text-align: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: default;
            border: 1px solid rgba(109, 85, 219, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        .ai-feature::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-purple), var(--primary-blue));
            transform: translateX(-100%);
            transition: transform 0.3s ease;
        }
        
        .ai-feature:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(109, 85, 219, 0.12);
            border-color: var(--accent-purple);
        }
        
        .ai-feature:hover::before {
            transform: translateX(0);
        }
        
        /* ==========================================
           CONTACT SECTION - Call to action
           ========================================== */
        #contact {
            background: linear-gradient(135deg, rgba(213, 212, 210, 0.1) 0%, rgba(47, 85, 137, 0.03) 100%);
            text-align: center;
        }
        
        #contact h2 {
            color: var(--dark-blue);
            margin-bottom: 1rem;
        }
        
        #contact p {
            color: var(--steel);
            margin-bottom: 3rem;
            font-size: 1.125rem;
        }
        
        .contact-buttons {
            display: flex;
            gap: 2rem;
            justify-content: center;
            flex-wrap: wrap;
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem 2rem;
            border-radius: 30px;
            text-decoration: none;
            font-family: var(--font-heading);
            font-weight: 600;
            font-size: 0.95rem;
            letter-spacing: 0.025em;
            text-transform: uppercase;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .btn-primary {
            background: var(--accent-active);
            color: white;
            border: 2px solid var(--accent-active);
        }
        
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .btn-primary:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(109, 85, 219, 0.3);
        }
        
        .btn-secondary {
            background: transparent;
            color: var(--primary-blue);
            border: 2px solid var(--primary-blue);
        }
        
        .btn-secondary:hover {
            background: var(--primary-blue);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(47, 85, 137, 0.2);
        }
        
        /* ==========================================
           FOOTER
           ========================================== */
        footer {
            background: var(--dark-navy);
            color: var(--medium-gray);
            text-align: center;
            padding: 2.5rem 0;
        }
        
        footer .contact-details {
            color: var(--light-gray);
            font-size: 1rem;
            margin-bottom: 1.5rem;
        }
        
        footer .contact-details a {
            color: var(--light-gray);
            text-decoration: none;
            letter-spacing: 0.01em;
            transition: color 0.3s ease;
        }
        
        footer .contact-details a:hover {
            color: white;
        }
        
        footer .footer-logo-container {
            margin: 1rem 0;
        }
        
        footer .footer-logo {
            height: 30px;
            width: 30px;
            opacity: 0.6;
            transition: opacity 0.3s ease;
        }
        
        footer .footer-logo:hover {
            opacity: 0.8;
        }
        
        footer .copyright {
            color: var(--medium-gray);
            font-size: 0.875rem;
            letter-spacing: 0.01em;
            margin: 0;
        }
        
        /* ==========================================
           RESPONSIVE DESIGN
           ========================================== */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            
            .mobile-menu-toggle {
                display: flex;
            }
            
            .mobile-nav-overlay {
                display: block;
            }
            
            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .hero-logo {
                width: 200px;
            }
            
            .portrait-container {
                order: 1;
                margin-top: 2rem;
                margin-bottom: 1rem;
                max-width: 250px;
                margin-left: auto;
                margin-right: auto;
            }
            
            .portrait {
                max-width: 250px;
                border-radius: 12px;
                object-fit: cover;
                object-position: top;
                aspect-ratio: 3/4;
            }
            
            .expertise-content {
                grid-template-columns: 1fr;
            }
            
            .expertise-intro {
                position: static;
            }
            
            section {
                padding: 3rem 0;
            }
            
            #hero {
                padding-top: 4rem;
                padding-bottom: 1.5rem;
            }
        }
        
        /* Extra small mobile screens */
        @media (max-width: 400px) {
            .hero-logo {
                width: 160px;
            }
            
            .portrait-container {
                max-width: 200px;
            }
            
            .portrait {
                max-width: 200px;
                aspect-ratio: 1/1;
                object-position: top center;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            h2 {
                font-size: 1.5rem;
            }
            
            .container {
                padding: 0 1rem;
            }
        }
        
        /* ==========================================
           LOADING ANIMATION
           ========================================== */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeIn 0.8s ease forwards;
        }
        
        @keyframes fadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Stagger animation delays */
        .fade-in:nth-child(1) { animation-delay: 0.1s; }
        .fade-in:nth-child(2) { animation-delay: 0.2s; }
        .fade-in:nth-child(3) { animation-delay: 0.3s; }
        .fade-in:nth-child(4) { animation-delay: 0.4s; }
        
        /* ==========================================
           REDUCED MOTION SUPPORT
           ========================================== */
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            
            .fade-in {
                opacity: 1;
                transform: none;
            }
            
            .portrait,
            .hero-logo {
                animation: none;
            }
            
            #hero::before {
                animation: none;
            }
            
            .ai-badge {
                animation: none;
            }
        }