/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/
        /* Note: Removed @import. Google Fonts should be enqueued via functions.php */
        :root {
            --kc-tech-blue: #0A84FF;
            --kc-light-gray: #B3B3B3;
        }

        .kc-experience-section-v10 {
            font-family: 'Inter', sans-serif;
            padding: 120px 20px;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }
        .kc-experience-section-v10 .section-title {
            font-size: clamp(36px, 5vw, 48px);
            font-weight: 600;
            color: #FFFFFF;
            margin-bottom: 60px;
            text-align: center;
        }

        .kc-experience-wrapper-v10 { display: flex; gap: 40px; min-height: 550px; }
        .kc-drawer-nav-v10 { flex: 0 0 35%; display: flex; flex-direction: column; gap: 15px; }

        .kc-drawer-nav-v10 button,
        .kc-content-area-v10 {
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .kc-drawer-nav-v10 button {
            display: flex; align-items: center; gap: 15px; width: 100%;
            border-radius: 16px; padding: 20px; text-align: left;
            cursor: pointer; transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
        }
        .kc-drawer-nav-v10 button:hover {
            border-color: rgba(10, 132, 255, 0.4);
            transform: translateY(-5px);
        }
        .kc-drawer-nav-v10 button.active {
            background: rgba(10, 132, 255, 0.1);
            border-color: rgba(10, 132, 255, 0.5);
            box-shadow: 0 5px 25px rgba(10, 132, 255, 0.1);
        }
        
        .kc-drawer-nav-v10 .logo-container { flex-shrink: 0; width: 60px; height: 60px; background-color: #FFFFFF; border-radius: 12px; display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 8px; box-sizing: border-box; }
        .kc-drawer-nav-v10 .logo-container img { width: 100%; height: 100%; object-fit: contain; }
        .kc-drawer-nav-v10 .job-info .company-name { font-size: 18px; font-weight: 600; color: #FFFFFF; margin: 0; }
        .kc-drawer-nav-v10 .job-info .job-title, .kc-drawer-nav-v10 .job-info .job-dates { font-size: 14px; color: var(--kc-light-gray); margin: 2px 0 0 0; }

        .kc-content-area-v10 {
            flex: 1; position: relative;
            border-radius: 24px; padding: 40px;
        }

        .kc-content-card-v10 { position: absolute; top: 40px; right: 40px; bottom: 40px; left: 40px; opacity: 0; visibility: hidden; transform: translateY(15px); transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s; overflow-y: auto; }
        .kc-content-card-v10.active { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
        .kc-content-card-v10 .card-title { font-size: 24px; font-weight: 600; color: #FFFFFF; margin: 0 0 20px 0; }
        .kc-content-card-v10 ul { list-style: none; padding-left: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
        .kc-content-card-v10 ul li { padding-left: 25px; position: relative; font-size: 16px; line-height: 1.6; color: var(--kc-light-gray); }
        .kc-content-card-v10 ul li::before { content: '›'; font-family: monospace; position: absolute; left: 0; top: 0; font-size: 24px; line-height: 1; color: var(--kc-tech-blue); }
        .kc-content-card-v10 ul li strong { color: #FFFFFF; font-weight: 600; }

        @media (max-width: 991px) {
            .kc-experience-section-v10 { padding: 100px 20px; }
            .kc-experience-wrapper-v10 { flex-direction: column; }
            .kc-drawer-nav-v10 { flex-direction: row; overflow-x: auto; padding-bottom: 20px; gap: 10px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
            .kc-drawer-nav-v10::-webkit-scrollbar { display: none; }
            .kc-drawer-nav-v10 button { flex: 0 0 280px; }
            .kc-content-area-v10 { min-height: 400px; height: auto; padding: 20px; }
            .kc-content-card-v10 { top: 20px; right: 20px; bottom: 20px; left: 20px; }
        }
        @media (max-width: 767px) {
            .kc-experience-section-v10 { padding: 80px 20px; }
            .kc-experience-section-v10 .section-title { font-size: 36px; }
            .kc-drawer-nav-v10 button { flex: 0 0 240px; padding: 15px; }
            .kc-drawer-nav-v10 .logo-container { width: 50px; height: 50px; }
            .kc-drawer-nav-v10 .job-info .company-name { font-size: 16px; }
            .kc-drawer-nav-v10 .job-info .job-title, .kc-drawer-nav-v10 .job-info .job-dates { font-size: 12px; }
            .kc-drawer-nav-v10 button.active, .kc-drawer-nav-v10 button:hover { transform: none; } /* Disable transform on mobile */
            .kc-drawer-nav-v10 button.active { box-shadow: 0 0 15px rgba(10, 132, 255, 0.2); }
            .kc-content-card-v10 .card-title { font-size: 20px; }
            .kc-content-card-v10 ul li { font-size: 14px; }
        }
        
                .karl-testimonial-section { padding: 120px 20px; box-sizing: border-box; }
        .karl-testimonial-section .section-title { font-size: clamp(36px, 5vw, 48px); font-weight: 600; color: #FFFFFF; margin-bottom: 60px; text-align: center; }
        .karl-testimonial-card {
            max-width: 1100px; margin: 0 auto; display: grid;
            grid-template-columns: 1fr 1.2fr; gap: 60px; padding: 48px;
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px;
            position: relative; overflow: hidden; transition: all 0.4s ease;
        }
        .karl-testimonial-card::before {
            content: ''; position: absolute; width: 400px; height: 400px;
            background: radial-gradient(circle, rgba(10, 132, 255, 0.1) 0%, rgba(10, 132, 255, 0) 65%);
            border-radius: 50%; left: var(--x, 50%); top: var(--y, 50%);
            transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
            transition: opacity 0.4s ease-out;
        }
        .karl-testimonial-card:hover {
            border-color: rgba(10, 132, 255, 0.4);
            transform: translateY(-8px) scale(1.01);
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }
        .karl-testimonial-card:hover::before { opacity: 1; }
        .karl-testimonial-profile, .karl-testimonial-performance { position: relative; z-index: 2; }
        .karl-avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid #0A84FF; margin-bottom: 20px; object-fit: cover; box-shadow: 0 0 15px rgba(10, 132, 255, 0.3); }
        .karl-name { font-size: 24px; font-weight: 600; color: #FFFFFF; margin: 0; }
        .karl-title { font-size: 16px; color: #B3B3B3; margin: 4px 0 24px 0; }
        .karl-pull-quote { margin: 0; padding-left: 20px; border-left: 3px solid #0A84FF; font-size: 17px; font-style: italic; color: #E0E0E0; line-height: 1.6; }
        .karl-subtitle { font-size: 14px; font-weight: 500; color: #B3B3B3; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 32px 0; }
        
        /* Desktop KPI Layout */
        .karl-kpi-list { list-style: none; padding: 0; margin: 0; }
        .karl-kpi-list li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 20px; margin-bottom: 24px; }
        .karl-kpi-list li:last-child { margin-bottom: 0; }
        .karl-kpi-description { font-size: 16px; color: #B3B3B3; line-height: 1.5; text-align: left; }
        .karl-kpi-number { font-family: 'Inter', sans-serif; font-size: 40px; font-weight: 600; color: #38BDF8; line-height: 1; text-align: right; min-width: 120px; }
        
        .karl-cta-wrapper { margin-top: 40px; text-align: left; }
        .karl-cta-link { display: inline-block; padding: 12px 24px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; color: #E0E0E0; text-decoration: none; font-weight: 500; font-size: 15px; transition: all 0.3s ease; }
        .karl-cta-link:hover { background-color: #FFFFFF; color: #000000; }

        /* PDF Lightbox (Unchanged) */
        .pdf-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; z-index: 9999; }
        .pdf-lightbox.active { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
        .pdf-container { width: 90%; max-width: 1000px; height: 90vh; background-color: #14141F; border-radius: 16px; overflow: hidden; position: relative; display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.3s ease; }
        .pdf-lightbox.active .pdf-container { transform: scale(1); }
        .pdf-header { padding: 16px 24px; background-color: #1A1A26; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
        .pdf-title { font-size: 1.1rem; color: #FFFFFF; margin: 0; }
        .close-pdf { background: none; border: none; color: #B3B3B3; font-size: 1.75rem; cursor: pointer; transition: all 0.2s ease; line-height: 1; padding: 4px; }
        .close-pdf:hover { color: #FFFFFF; transform: rotate(90deg); }
        .pdf-content { flex: 1; position: relative; }
        .pdf-content iframe { width: 100%; height: 100%; border: none; }
        
        /* === THE FINAL MOBILE POLISH IS HERE === */
        @media (max-width: 991px) {
            .karl-testimonial-card { grid-template-columns: 1fr; gap: 40px; padding: 32px; }
            .karl-testimonial-profile { text-align: center; }
            .karl-avatar { margin-left: auto; margin-right: auto; }
            .karl-pull-quote { border-left: none; border-top: 3px solid #0A84FF; padding-left: 0; padding-top: 16px; text-align: center; font-size: 18px; }
            .karl-cta-wrapper { text-align: center; }

            /* New robust layout for mobile KPI */
            .karl-testimonial-performance { text-align: center; } /* Center align the whole block */
            .karl-kpi-list li {
                display: block; /* Stack items vertically */
                margin-bottom: 32px;
            }
            .karl-kpi-description {
                display: block;
                margin-bottom: 8px;
                font-size: 14px; /* Slightly smaller font to prevent wrapping */
                text-align: center;
            }
            .karl-kpi-number {
                display: block;
                font-size: 36px;
                text-align: center;
                min-width: 0; /* Reset min-width */
            }
        }
        
        /* === STYLE FIXES & ENHANCEMENTS v11 === */

        /* Main Container & Layout */
        .karl-contact-section { padding: 120px 0; max-width: 1200px; margin: 0 auto; }
        .karl-contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
        .karl-contact-intro h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 24px 0; background: linear-gradient(90deg, #FFFFFF, #A78BFA); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
        .karl-contact-intro p { font-size: clamp(18px, 2vw, 20px); color: #B3B3B3; line-height: 1.7; max-width: 500px; margin: 0 0 40px 0; }
        .karl-contact-direct-links a { display: flex; align-items: center; gap: 16px; color: #E0E0E0; text-decoration: none; font-size: 18px; margin-bottom: 20px; transition: color 0.3s ease; }
        .karl-contact-direct-links a:hover { color: #38BDF8; }
        .karl-contact-direct-links svg { width: 24px; height: 24px; flex-shrink: 0; }
        
        /* Form Wrapper */
        .karl-contact-form-wrapper { padding: 40px; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; text-align: center;}
        
        /* Form Group & Input Fields (Classic Layout) */
        .karl-form-group {
            position: relative;
            margin-bottom: 24px;
            text-align: left;
        }
        
        .karl-form-label {
            display: block;
            font-size: 15px;
            color: #B3B3B3;
            margin-bottom: 8px;
            font-weight: 500;
        }

        .karl-form-input, .karl-form-textarea {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 14px 16px;
            font-size: 16px;
            color: #FFFFFF;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }
        .karl-form-input:focus, .karl-form-textarea:focus {
            outline: none;
            border-color: #0A84FF;
            background: rgba(10, 132, 255, 0.1);
            box-shadow: 0 0 0 2px rgba(10, 132, 255, 0.3);
        }
        
        .karl-form-textarea { min-height: 120px; resize: vertical; }
        
        /* Submit Button */
        .karl-submit-button-wrapper { display: inline-block; position: relative; margin-top: 10px; }
        .karl-submit-button { display: flex; align-items: center; justify-content: center; background: linear-gradient(90deg, #0A84FF, #38BDF8); color: #FFFFFF; padding: 16px 32px; border-radius: 8px; font-size: 18px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(10, 132, 255, 0.2); }
        .karl-submit-button:hover { box-shadow: 0 8px 25px rgba(10, 132, 255, 0.4); transform: translateY(-2px); }
        .karl-submit-button:active { transform: translateY(0); }
        .karl-submit-button.loading { opacity: 0.7; pointer-events: none; }
        .karl-submit-button.loading::after {
            content: "";
            display: inline-block;
            width: 16px;
            height: 16px;
            margin-left: 10px;
            border: 2px solid #fff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s linear infinite;
        }
        
        /* Form Messages */
        .karl-form-message { padding: 15px; border-radius: 8px; text-align: center; margin-bottom: 20px; font-size: 15px; }
        .karl-form-message.success { background-color: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: #A7F3D0; }
        .karl-form-message.error { background-color: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.3); color: #FECACA; }
        .karl-form-error-field { color: #F87171; font-size: 14px; margin-top: 5px; }
        
        /* reCAPTCHA Notice */
        .karl-recaptcha-notice { margin-top: 15px; font-size: 12px; color: #888; text-align: center; }
        
        /* Responsive Adjustments */
@media (max-width: 991px) {
    .karl-contact-grid { grid-template-columns: 1fr; gap: 60px; }
    .karl-contact-intro { text-align: center; }
    .karl-contact-direct-links { justify-content: center; }
    .karl-contact-form-wrapper { text-align: center; }
}
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Hide honeypot field from humans */
        .karl-honeypot { display: none !important; }
        
        .karl-portfolio-section-v2 { padding: 120px 20px; box-sizing: border-box; }
        .karl-portfolio-container-v2 { max-width: 1200px; margin: 0 auto; }
        .karl-portfolio-title-v2 { text-align: center; margin-bottom: 60px; }
        .karl-portfolio-title-v2 h2 { font-size: clamp(36px, 5vw, 48px); font-weight: 600; color: #FFFFFF; margin-bottom: 12px; }
        .karl-portfolio-title-v2 p { font-size: clamp(18px, 2.5vw, 20px); color: #B3B3B3; line-height: 1.6; max-width: 650px; margin: 0 auto; }

        .karl-accordion-wrapper-v2 { display: flex; gap: 16px; height: 600px; }
        .karl-accordion-item-v2 {
            flex: 1; border-radius: 16px; overflow: hidden; position: relative;
            cursor: pointer; transition: flex 0.7s cubic-bezier(0.65, 0, 0.35, 1);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .karl-accordion-item-v2:hover { flex: 6; }

        .karl-accordion-item-v2 .item-image {
            width: 100%; height: 100%; position: relative;
        }
        .karl-accordion-item-v2 .item-image::after {
            content: ''; position: absolute; bottom: 0; left: 0;
            width: 100%; height: 60%;
            background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
            transition: opacity 0.5s ease;
        }
        .karl-accordion-item-v2:hover .item-image::after { opacity: 0.9; }
        .karl-accordion-item-v2 .item-image img {
            width: 100%; height: 100%; object-fit: cover;
            transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
        }
        .karl-accordion-item-v2:hover .item-image img { transform: scale(1.05); }
        
        /* New Subtle Interaction Cue */
        .karl-accordion-item-v2 .item-cue {
            position: absolute; bottom: 32px; right: 32px;
            width: 40px; height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            display: flex; align-items: center; justify-content: center;
            transition: opacity 0.5s ease, transform 0.5s ease;
        }
        .karl-accordion-item-v2 .item-cue svg { width: 20px; height: 20px; color: #FFFFFF; }
        .karl-accordion-item-v2:hover .item-cue { opacity: 0; transform: scale(0.5); }

        .karl-accordion-item-v2 .item-content {
            position: absolute; bottom: 0; left: 0; width: 100%;
            padding: 32px; color: #FFFFFF; box-sizing: border-box;
            transform: translateY(80px); /* Initially partially hidden */
            transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.1s, opacity 0.5s ease 0.1s;
            opacity: 0;
        }
        .karl-accordion-item-v2:hover .item-content { transform: translateY(0); opacity: 1; }
        
        .karl-accordion-item-v2 .item-content .item-category {
            font-size: 14px; font-weight: 500; text-transform: uppercase;
            letter-spacing: 0.1em; color: #38BDF8; margin-bottom: 8px;
        }
        .karl-accordion-item-v2 .item-content h3 { font-size: 28px; font-weight: 600; margin: 0; line-height: 1.3; }
        
        @media (max-width: 991px) {
            .karl-accordion-wrapper-v2 { flex-direction: column; height: auto; gap: 24px; }
            .karl-accordion-item-v2 { height: 300px; flex-basis: 300px; }
            .karl-accordion-item-v2:hover { flex: 1; }
            .karl-accordion-item-v2 .item-cue { display: none; } /* Hide cue on mobile */
            .karl-accordion-item-v2 .item-content {
                opacity: 1; transform: translateY(0);
                padding: 24px;
                /* On mobile, content is always visible with a stronger gradient */
                background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
            }
             .karl-accordion-item-v2 .item-image::after { display: none; /* Mobile uses the background on item-content */ }
        }
        
        .karl-header-v6 {
            position: fixed; top: 0; left: 0; width: 100%;
            padding: 20px 40px; box-sizing: border-box;
            display: flex; justify-content: space-between; align-items: center;
            z-index: 1000;
            background: transparent;
            transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.4s ease, backdrop-filter 0.4s ease;
        }
        .karl-header-v6.is-scrolled {
            background: rgba(18, 18, 18, 0.7);
            backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .karl-header-v6.is-hidden { transform: translateY(-100%); }

        .karl-header-logo-v6 img { height: 40px; width: auto; display: block; transition: transform 0.3s ease; }
        .karl-header-logo-v6 a:hover img { transform: scale(1.05); }

        /* Navigation container to group links and CTA */
        .karl-header-nav-container { display: flex; align-items: center; gap: 40px; }

        .karl-header-nav-v6 { display: flex; gap: 32px; }
        .karl-header-nav-v6 a {
            position: relative; color: #B3B3B3; text-decoration: none;
            font-size: 15px; font-weight: 500;
            transition: color 0.3s ease;
        }
        .karl-header-nav-v6 a:hover { color: #FFFFFF; }
        .karl-header-nav-v6 a::after {
            content: ''; position: absolute; width: 100%;
            transform: scaleX(0); height: 1px; bottom: -5px; left: 0;
            background-color: #0A84FF;
            transform-origin: bottom right;
            transition: transform 0.3s ease-out;
        }
        .karl-header-nav-v6 a:hover::after { transform: scaleX(1); transform-origin: bottom left; }

        /* NEW: Download Resume CTA Button */
        .karl-header-cta-btn {
            display: inline-block;
            padding: 10px 20px;
            border: 1px solid #0A84FF;
            border-radius: 8px;
            color: #0A84FF;
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            transition: all 0.3s ease;
        }
        .karl-header-cta-btn:hover { background-color: #0A84FF; color: #FFFFFF; }

        .karl-hamburger-v6, .karl-mobile-nav-v6, .karl-close-button { display: none; }

        /* Responsive */
        @media (max-width: 1024px) { /* Adjust breakpoint for CTA button */
            .karl-header-nav-container { display: none; }
            .karl-hamburger-v6 {
                display: block; cursor: pointer; background: none; border: none; padding: 10px; z-index: 1002; position: relative;
            }
            .karl-hamburger-v6 .bar { display: block; width: 28px; height: 2px; background-color: #FFFFFF; margin: 6px 0; }
            
            /* NEW: Close button */
            .karl-close-button {
                position: fixed;
                top: 20px;
                right: 40px;
                z-index: 1003;
                display: none;
                cursor: pointer;
                background: none;
                border: none;
                padding: 10px;
            }
            
            .karl-close-button span {
                display: block;
                width: 28px;
                height: 2px;
                background-color: #FFFFFF;
                margin: 6px 0;
            }
            
            .karl-close-button span:nth-child(1) {
                transform: translateY(8px) rotate(45deg);
            }
            
            .karl-close-button span:nth-child(2) {
                transform: translateY(0) rotate(-45deg);
            }
            
            .karl-mobile-nav-v6.is-open ~ .karl-close-button {
                display: block;
            }
        }
        @media (max-width: 991px) {
            .karl-header-v6 { padding: 15px 20px; }
            .karl-header-logo-v6 img { height: 32px; }
            
            .karl-mobile-nav-v6 {
                position: fixed; top: 0; left: 0;
                width: 100%; height: 100dvh;
                background: rgba(10, 10, 10, 0.9);
                backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
                display: flex; flex-direction: column; justify-content: center; align-items: center;
                gap: 40px;
                transform: translateX(100%);
                transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
                z-index: 1001;
            }
            .karl-mobile-nav-v6.is-open { transform: translateX(0); }
            .karl-mobile-nav-v6 a {
                color: #FFFFFF; text-decoration: none; font-size: 24px; font-weight: 600;
                opacity: 0; transform: translateY(20px);
                transition: opacity 0.4s ease, transform 0.4s ease;
            }
            .karl-mobile-nav-v6.is-open a {
                opacity: 1; transform: translateY(0);
                <?php
                $all_mobile_links = array_merge($nav_links, ['resume' => 'Download Resume']);
                foreach (array_keys($all_mobile_links) as $i => $key) {
                    $href = ($key === 'resume') ? $resume_url : array_keys($nav_links)[$i];
                    echo ".karl-mobile-nav-v6.is-open a[data-nav-key='{$key}'] { transition-delay: " . (0.2 + $i * 0.05) . "s; } ";
                }
                ?>
            }
            /* CTA style for mobile menu */
            .karl-mobile-nav-v6 .karl-header-cta-btn {
                font-size: 24px;
                padding: 12px 28px;
            }
            
            /* Adjust close button position for smaller screens */
            .karl-close-button {
                top: 15px;
                right: 20px;
            }
        }
        
        .karl-about-v3-section { padding: 120px 20px; text-align: center; box-sizing: border-box; }
        .karl-about-container-v3 { max-width: 1100px; margin: 0 auto; }
        .karl-about-v3-section-title { color: #FFFFFF; font-family: 'Inter', sans-serif; font-size: clamp(36px, 5vw, 48px); font-weight: 600; margin-bottom: 12px; }
        .karl-about-v3-section-subtitle { color: #B3B3B3; font-size: clamp(18px, 2.5vw, 20px); font-weight: 400; line-height: 1.6; max-width: 650px; margin: 0 auto 80px auto; }
        .karl-about-v3-main { display: flex; align-items: flex-start; gap: 40px; text-align: left; margin-bottom: 100px; }
        .karl-about-v3-left { flex: 0 0 250px; }
        .karl-about-v3-headshot-wrapper { width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; border: 3px solid rgba(10, 132, 255, 0.3); box-shadow: 0 0 25px rgba(10, 132, 255, 0.1); }
        .karl-about-v3-headshot-wrapper img { width: 100%; height: 100%; object-fit: cover; }
        .karl-about-v3-right { flex: 1; }
        .karl-about-v3-personal-statement p { color: #E0E0E0; font-size: 18px; line-height: 1.7; margin-bottom: 20px; }
        .karl-capabilities-grid-v3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 100px; text-align: left; }
        .karl-capability-card-v3 { padding: 32px; background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; transition: all 0.3s ease; position: relative; overflow: hidden; }
        .karl-capability-card-v3::before { content: ''; position: absolute; width: 300px; height: 300px; background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, rgba(10, 132, 255, 0) 70%); border-radius: 50%; left: var(--x, 50%); top: var(--y, 50%); transform: translate(-50%, -50%); pointer-events: none; opacity: 0; transition: opacity 0.4s ease-out; }
        .karl-capability-card-v3:hover { transform: translateY(-8px); border-color: rgba(10, 132, 255, 0.4); }
        .karl-capability-card-v3:hover::before { opacity: 1; }
        .karl-capability-title-v3, .karl-capability-desc-v3, .karl-capability-tags-v3 { position: relative; z-index: 2; }
        .karl-capability-title-v3 { font-size: 22px; font-weight: 600; color: #FFFFFF; margin: 0 0 12px 0; }
        .karl-capability-desc-v3 { font-size: 16px; color: #B3B3B3; line-height: 1.6; margin: 0 0 24px 0; min-height: 80px; }
        .karl-capability-tags-v3 { display: flex; flex-wrap: wrap; gap: 8px; }
        .karl-capability-tag-v3 { background-color: rgba(255, 255, 255, 0.1); color: #C0C0C0; padding: 6px 14px; border-radius: 15px; font-size: 13px; font-weight: 500; }
        .karl-qualifications-v3 { margin-bottom: 80px; }
        .karl-subsection-title-v3 { font-size: clamp(28px, 4vw, 36px); font-weight: 600; color: #FFFFFF; }
        .karl-certs-grid-v3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-top: 40px; }
        .karl-cert-item-v3 { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; padding: 20px; background-color: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; transition: all 0.3s ease; }
        .karl-cert-item-v3:hover { transform: translateY(-5px); background-color: rgba(255, 255, 255, 0.05); border-color: rgba(10, 132, 255, 0.3); }
        
        /* === THE FIX IS HERE === */
        .karl-cert-logo-v3 {
            height: 50px; width: 50px; /* Enforce a square aspect ratio */
            max-width: 150px; object-fit: cover; /* Use cover to fill the space */
            filter: grayscale(80%) brightness(1.2); opacity: 0.7;
            transition: all 0.3s ease;
            border-radius: 10px; /* Add the border radius */
        }
        .karl-cert-item-v3:hover .karl-cert-logo-v3 { filter: none; opacity: 1; }
        
        .karl-cert-name-v3 { color: #B3B3B3; font-size: 15px; line-height: 1.5; }
        .karl-resume-button-v3 { display: inline-flex; align-items: center; gap: 12px; background: linear-gradient(90deg, #0A84FF, #38BDF8); color: #FFFFFF; padding: 16px 32px; border-radius: 8px; font-size: 18px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(10, 132, 255, 0.2); }
        .karl-resume-button-v3:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(10, 132, 255, 0.4); }

        @media (max-width: 991px) {
            .karl-about-v3-main { flex-direction: column; align-items: center; }
            .karl-about-v3-left { flex: 0 0 auto; width: 200px; }
            .karl-about-v3-right, .karl-capability-card-v3 { text-align: center; }
            .karl-capability-tags-v3 { justify-content: center; }
        }
        @media (max-width: 767px) {
            .karl-capabilities-grid-v3 { grid-template-columns: 1fr; }
            .karl-capability-desc-v3 { min-height: auto; }
        }
        
        :root {
            --header-height-desktop: 84px;
            --header-height-mobile: 62px;
        }
        .karl-hero-v5-container {
            display: grid;
            grid-template-columns: 1fr 0.8fr;
            gap: 40px;
            align-items: center;
            box-sizing: border-box;
            min-height: 80vh;
            padding-top: var(--header-height-desktop);
            padding-left: 40px;
            padding-right: 40px;
            padding-bottom: 60px;
        }
        .karl-hero-v5-content { display: flex; flex-direction: column; align-items: flex-start; }
        .karl-hero-v5-eyebrow, .karl-hero-v5-subtitle, .karl-hero-v5-availability span { font-family: 'Inter', sans-serif; color: #B3B3B3; }
        .karl-hero-v5-eyebrow { font-weight: 500; font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
        .karl-hero-v5-subtitle { font-size: clamp(18px, 2vw, 20px); line-height: 1.7; max-width: 550px; margin: 0 0 40px 0; }
        .karl-hero-v5-heading {
            font-family: "Inter", sans-serif; font-weight: 600;
            font-size: clamp(40px, 5.5vw, 72px);
            line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 24px 0;
            background: linear-gradient(90deg, #0A84FF, #38BDF8, #A78BFA, #38BDF8, #0A84FF);
            background-size: 300% 100%;
            animation: karl-gradient-animation-v5 8s linear infinite;
            -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
        }
        @keyframes karl-gradient-animation-v5 { 0% { background-position: 150% 50%; } 100% { background-position: -150% 50%; } }
        .karl-hero-v5-cta-group { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
        .karl-hero-v5-cta-button { display: inline-block; padding: 12px 24px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; color: #E0E0E0; text-decoration: none; font-weight: 500; transition: all 0.3s ease; }
        .karl-hero-v5-cta-button:hover { background-color: #FFFFFF; color: #000000; }
        .karl-hero-v5-availability { display: flex; align-items: center; gap: 10px; font-size: 15px; }
        .karl-pulsing-dot-v5 { width: 10px; height: 10px; background-color: #34D399; border-radius: 50%; animation: karl-pulse-animation-v5 2s infinite; }
        @keyframes karl-pulse-animation-v5 { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
        .karl-hero-v5-lottie { display: flex; }
        
        @media (max-width: 991px) {
            .karl-hero-v5-container {
                grid-template-columns: 1fr;
                text-align: center;
                min-height: 80dvh;
                padding-top: calc(var(--header-height-mobile) + 40px);
                padding-left: 20px;
                padding-right: 20px;
                padding-bottom: 80px;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }
            .karl-hero-v5-content { align-items: center; }
            .karl-hero-v5-heading { text-align: center; }
            .karl-hero-v5-cta-group { justify-content: center; }
            .karl-hero-v5-lottie { display: none; }
        }
        
        .karl-footer {
            padding: 80px 40px 40px 40px;
            max-width: 1200px; margin: 0 auto;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #888888;
        }
        .karl-footer-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 60px; }
        .karl-footer-brand { flex-basis: 40%; }
        
        /* === LOGO SIZE FIX === */
        .karl-footer-brand img {
            height: 48px; /* Increased from 40px */
            width: auto;
            margin-bottom: 20px;
        }
        .karl-footer-brand p { font-size: 16px; line-height: 1.7; margin: 0; max-width: 350px; }
        
        .karl-footer-nav { flex-basis: 50%; display: flex; justify-content: space-between; gap: 40px; }
        .karl-footer-nav h4 { font-size: 14px; font-weight: 500; color: #FFFFFF; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 20px 0; }
        .karl-footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
        .karl-footer-nav a { color: #888888; text-decoration: none; font-size: 16px; transition: color 0.3s ease; }
        .karl-footer-nav a:hover { color: #FFFFFF; }
        .karl-footer-socials a { display: inline-flex; align-items: center; gap: 8px; }
        .karl-footer-socials svg { width: 20px; height: 20px; }
        
        .karl-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }
        .karl-footer-bottom .built-with { display: flex; align-items: center; gap: 6px; }
        .karl-footer-bottom .built-with svg { width: 14px; height: 14px; } /* 移除颜色设置 */
        .karl-footer-bottom .back-to-top { color: #888888; text-decoration: none; transition: color 0.3s ease; }
        .karl-footer-bottom .back-to-top:hover { color: #FFFFFF; }
        
        /* 新添加的爱心图标样式 */
        .love-icon { color: #e74c3c; }

        /* Responsive */
        @media (max-width: 767px) {
            .karl-footer { padding: 60px 20px 30px 20px; }
            .karl-footer-main { flex-direction: column; }
            .karl-footer-brand { margin-bottom: 50px; }
            .karl-footer-brand img { height: 40px; /* Adjust mobile size too */ }
            
            /* === MOBILE NAV LAYOUT FIX === */
            .karl-footer-nav {
                width: 100%;
                justify-content: space-around; /* Distribute space evenly */
            }
            .karl-footer-links, .karl-footer-socials {
                flex-basis: auto; /* Allow them to take natural width */
            }

            .karl-footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
        }