        :root {
            --bg-color: #0a0a0a;
            --card-bg: #161616;
            --card-hover: #1e1e1e;
            --border: #2a2a2a;
            --accent: #3b82f6;
            --text-main: #ffffff;
            --text-muted: #888888;
            --radius: 20px;
            --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
        }

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

        body {
            background-color: var(--bg-color);
            color: var(--text-main);
            font-family: 'Plus Jakarta Sans', sans-serif;
            min-height: 100vh;
            padding: 2rem;
            display: flex;
            justify-content: center;
            align-items: center;
            /* Center content vertically, prevents stretch */
        }

        /* --- Custom Premium Scrollbar --- */
        .description-card,
        .aux-card {
            /* Firefox */
            scrollbar-width: thin;
            scrollbar-color: #333 transparent;
        }

        /* Chrome, Edge, Safari */
        .description-card::-webkit-scrollbar,
        .aux-card::-webkit-scrollbar {
            width: 6px;
        }

        .description-card::-webkit-scrollbar-track,
        .aux-card::-webkit-scrollbar-track {
            background: transparent;
        }

        .description-card::-webkit-scrollbar-thumb,
        .aux-card::-webkit-scrollbar-thumb {
            background-color: #333;
            border-radius: 20px;
            border: 2px solid transparent;
            /* Creates padding around thumb */
            background-clip: content-box;
        }

        .description-card::-webkit-scrollbar-thumb:hover,
        .aux-card::-webkit-scrollbar-thumb:hover {
            background-color: #555;
        }

        /* --- Animation --- */
        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

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

        .animate-enter {
            animation: fadeUp 0.5s var(--ease-smooth) forwards;
        }

        /* --- Layout --- */
        .bento-container {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            align-content: start;
            /* Pack rows tightly, no stretching */
            gap: 1.25rem;
            max-width: 1100px;
            width: 100%;
        }

        /* --- Generic Card --- */
        .card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 1.5rem;
            transition: transform 0.4s var(--ease-smooth), border-color 0.4s ease;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        /* --- ROW 1: Hero --- */
        .hero-card {
            grid-column: span 6;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            min-height: 140px;
        }

        .profile-info h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
            letter-spacing: -0.02em;
        }

        .profile-info p {
            color: var(--text-muted);
            font-size: 1.1rem;
        }

        .location-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(255, 255, 255, 0.05);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.9rem;
            color: var(--text-muted);
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .location-badge:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-main);
            transform: translateY(-2px);
        }

        /* --- ROW 2: Compact Controls --- */
        .compact-row {
            height: 70px;
            padding: 0;
            align-items: center;
            justify-content: center;
        }

        .toggle-card {
            grid-column: span 3;
            padding: 0.5rem 1rem;
        }

        .toggle-wrapper {
            background: #0f0f0f;
            border: 1px solid var(--border);
            padding: 4px;
            border-radius: 50px;
            display: flex;
            position: relative;
            width: 100%;
            height: 100%;
            align-items: center;
        }

        .toggle-bg {
            position: absolute;
            left: 4px;
            top: 4px;
            bottom: 4px;
            width: calc((100% - 8px) / 3);
            background: var(--card-hover);
            border: 1px solid var(--accent);
            border-radius: 40px;
            transition: all 0.4s var(--ease-smooth);
            z-index: 1;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .role-btn {
            flex: 1;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 0.9rem;
            cursor: pointer;
            z-index: 2;
            font-weight: 600;
            transition: color 0.3s ease, text-shadow 0.3s ease;
            height: 100%;
        }

        .role-btn:hover {
            color: var(--text-main);
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
        }

        .role-btn.active {
            color: var(--text-main);
            text-shadow: none;
            /* No glow on active by default, or optional */
        }

        .contact-card {
            grid-column: span 3;
            flex-direction: row;
            justify-content: space-evenly;
            align-items: center;
        }

        .contact-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            color: var(--text-muted);
            padding: 0.5rem 1rem;
            border-radius: 8px;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            overflow: hidden;
        }

        .contact-link:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--text-main);
            transform: translateY(-4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .contact-link i {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }

        .contact-link:hover i {
            transform: scale(1.15) rotate(5deg);
        }

        /* --- ROW 3: Fixed Height Info --- */
        /* --- ROW 3: Fixed Height Info --- */
        .description-card {
            grid-column: span 2;
            height: 240px;
            /* Explicit height */
            padding: 1.5rem !important;
            /* Restore symmetry */
            padding-right: 0.5rem !important;
            /* Minimal right padding for scrollbar channel */
        }

        .aux-card {
            grid-column: span 4;
            height: 240px;
            /* Explicit height */
            padding: 1.5rem !important;
            /* Restore symmetry */
            padding-right: 0.5rem !important;
            /* Minimal right padding for scrollbar channel */
        }

        .inner-scroll {
            height: 100%;
            overflow-y: scroll;
            padding-right: 1rem;
            /* Push content away from scrollbar */
            /* Firefox: scrollbar-width handled in generic block? needs update */
            scrollbar-width: thin;
            scrollbar-color: #333 transparent;
        }

        /* --- Scrollbar Refinement --- */
        .inner-scroll::-webkit-scrollbar {
            width: 4px;
            /* Thinner */
        }

        .inner-scroll::-webkit-scrollbar-track {
            background: transparent;
            margin-top: 5px;
            margin-bottom: 5px;
        }

        .inner-scroll::-webkit-scrollbar-thumb {
            background-color: #333;
            border-radius: 10px;
        }

        .inner-scroll::-webkit-scrollbar-thumb:hover {
            background-color: #555;
        }

        .role-tag {
            text-transform: uppercase;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            margin-bottom: 0.75rem;
            color: var(--accent);
            display: block;
        }

        .aux-header {
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Certifications / Education Horizontal Scroll Layout */
        /* Certifications / Education Horizontal Scroll Layout */
        .aux-card .inner-scroll {
            overflow-y: hidden;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        #auxContent {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        #auxList {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: scroll;
            gap: 0.75rem;
            padding-bottom: 0.5rem;
            /* Space for scrollbar */
            flex: 1;
            /* Take remaining height */

            /* Horizontal Scrollbar Styling */
            scrollbar-width: thin;
            scrollbar-color: #333 transparent;
        }

        #auxList::-webkit-scrollbar {
            height: 8px;
            /* Horizontal height */
        }

        #auxList::-webkit-scrollbar-thumb {
            background-color: #666;
            border-radius: 20px;
            border: 2px solid transparent;
            background-clip: content-box;
        }

        #auxList::-webkit-scrollbar-thumb:hover {
            background-color: #888;
        }

        .info-card-grid {
            flex: 0 0 calc(50% - 0.375rem);
            /* Fit 2 items exactly with 0.75rem gap */
            height: 100%;
            /* Fill available height */
            display: flex;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid transparent;
            transition: 0.2s;
            cursor: pointer;
        }

        .info-card-grid:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.1);
        }

        .info-icon-strip {
            width: 150px;
            background: rgba(255, 255, 255, 0.02);
            display: flex;
            justify-content: center;
            align-items: center;
            border-right: 1px solid rgba(255, 255, 255, 0.03);
            flex-shrink: 0;
        }

        .local-icon-sm {
            width: 110px;
            height: 110px;
            object-fit: contain;
        }

        .info-content {
            padding: 0.8rem;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            flex: 1;
        }

        .info-title {
            font-weight: 600;
            font-size: 0.9rem;
            line-height: 1.3;
            margin-bottom: 3px;
            color: var(--text-main);
        }

        .info-detail {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .info-date-sm {
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: auto;
            opacity: 0.7;
        }

        /* --- ROW 4: Projects --- */
        .project-grid-area {
            grid-column: span 6;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.25rem;
            padding-bottom: calc(1rem + 8px);
            /* Reserve space for carousel dots stability */
        }

        .project-card {
            padding: 0;
            height: 100%;
            text-decoration: none;
            color: inherit;
            transition: transform 0.5s var(--ease-smooth),
                box-shadow 0.5s var(--ease-smooth),
                border-color 0.3s ease;
            overflow: visible;
            /* Allow tooltip to show */
        }

        .project-card:hover {
            transform: translateY(-6px) scale(1.005);
            border-color: var(--accent);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
            z-index: 5;
            /* Ensure tooltip stays on top of other elements */
        }

        .project-thumb {
            width: 100%;
            height: 180px;
            background-color: #222;
            background-size: cover;
            background-position: center;
            border-bottom: 1px solid var(--border);
            border-top-left-radius: var(--radius);
            border-top-right-radius: var(--radius);
        }

        .project-content {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .project-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 0.5rem;
        }

        .project-title {
            font-size: 1.2rem;
            font-weight: 600;
            line-height: 1.3;
        }

        .project-date {
            font-size: 0.8rem;
            color: var(--text-muted);
            white-space: nowrap;
            margin-left: 10px;
            margin-top: 3px;
        }

        .project-desc {
            font-size: 0.95rem;
            color: #999;
            margin-bottom: 1.25rem;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            height: 4.3rem;
            /* Force exact 3-line height (0.95 * 1.5 * 3 approx) */
        }

        .project-footer {
            margin-top: auto;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding-top: 1rem;
            flex-wrap: wrap;
            min-height: calc(35px + 1rem);
            /* Reserve space for icons even if empty */
            /* Allow icons to wrap to next line */
        }

        .tech-icon {
            width: 32px;
            height: 32px;
            object-fit: contain;
            opacity: 0.7;
            transition: opacity 0.3s;
            border-radius: 3px;
            /* Slight corner radius */
        }

        .project-card:hover .tech-icon {
            opacity: 1;
        }

        /* Mobile */
        @media (max-width: 768px) {
            body {
                padding: 1rem;
            }

            .bento-container {
                display: flex !important;
                flex-direction: column !important;
                gap: 1.5rem;
            }

            /* Override all spans to full width for mobile (Flexbox Method) */
            .hero-card,
            .toggle-card,
            .contact-card,
            .description-card,
            .aux-card,
            .project-grid-area,
            #projectsContainer {
                width: 100% !important;
                flex: 0 0 auto !important;
                height: auto !important;
            }

            /* Hero Card Mobile - Force Column */
            .hero-card {
                display: flex;
                flex-direction: column !important;
                align-items: flex-start !important;
                gap: 1.5rem;
                height: auto !important;
            }

            .location-badge {
                width: 100%;
                justify-content: center;
                margin-top: 0.5rem;
            }

            /* Compact Rows (Switch) */
            .compact-row {
                height: auto;
                padding: 1rem;
                flex-direction: column !important;
                gap: 1rem;
            }

            .toggle-wrapper {
                height: 50px;
                width: 100%;
            }

            /* Contact Card Mobile - Force Column */
            .contact-card {
                display: flex;
                flex-direction: column !important;
                gap: 1rem;
                height: auto !important;
                justify-content: center;
                padding: 1.25rem;
            }

            .contact-link {
                width: 100%;
                justify-content: center;
                background: rgba(255, 255, 255, 0.03);
            }

            /* Description & Aux Mobile */
            .inner-scroll {
                overflow: visible !important;
                height: auto !important;
            }

            #descContent {
                margin-bottom: 0;
            }

            /* Description/Aux Mobile */
            .description-card,
            .aux-card {
                height: auto !important;
                min-height: 200px;
            }

            /* Force Vertical Stack for Aux List (Critical) */
            #auxList {
                display: flex !important;
                flex-direction: column !important;
                flex-wrap: wrap !important;
                /* Ensure wrapping if row persists */
                overflow-x: visible !important;
                overflow-y: visible !important;
                gap: 1rem;
                padding-bottom: 0;
            }

            .info-card-grid {
                width: 100% !important;
                /* Force full width */
                flex: 0 0 auto !important;
                /* Don't shrink */
                margin-bottom: 0.5rem;
            }

            /* Adjust Icon Strip for Mobile Width */
            .info-icon-strip {
                width: 80px;
                /* Reduced to ensure more space for text */
            }

            .local-icon-sm {
                width: 50px;
                /* Reduced slightly */
                height: 50px;
            }

            .project-grid-area {
                grid-template-columns: 1fr;
                padding-bottom: 0;
            }
        }

        /* Ensure Projects Container always spans full width */
        #projectsContainer {
            grid-column: span 6;
        }

        /* --- Carousel Styles --- */
        .carousel-wrapper {
            position: relative;
            width: 100%;
            /* Removed grid-column span 6 since parent handles it now, but harmless to keep or remove. Let's keep transparent. */
        }

        .carousel-track-container {
            width: calc(100% + 40px);
            overflow: hidden;
            padding-top: 20px;
            /* Increased buffer for hover lift */
            padding-bottom: 40px;
            /* Increased buffer for shadow */
            padding-left: 20px;
            padding-right: 20px;
            margin-top: -20px;
            margin-bottom: -40px;
            margin-left: -20px;
            margin-right: -20px;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
            gap: 1.25rem;
            width: 100%;
            align-items: stretch;
            /* Force equal height */
        }

        /* Nav Arrows */
        .nav-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(20, 20, 20, 0.8);
            border: 1px solid var(--border);
            color: var(--text-muted);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s;
            font-size: 1.2rem;
            opacity: 1;
            visibility: visible;
        }

        /* --- Carousel Animation States --- */
        .project-card {
            transition: transform 0.5s var(--ease-smooth),
                box-shadow 0.5s var(--ease-smooth),
                border-color 0.3s ease,
                opacity 0.6s ease,
                filter 0.6s ease;
        }

        /* State for cards initially out of view or leaving view */
        .project-card.non-visible {
            opacity: 0.4;
            transform: scale(0.95);
            filter: blur(2px);
            pointer-events: none;
            /* Prevent clicking when dimmed */
        }

        .nav-arrow.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .nav-arrow:hover {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }

        .nav-arrow.left {
            left: -50px;
        }

        .nav-arrow.right {
            right: -50px;
        }

        /* Dots */
        .carousel-dots {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1rem;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #333;
            cursor: pointer;
            transition: all 0.3s;
        }

        .dot.active {
            background: var(--accent);
            transform: scale(1.2);
        }

        /* Mobile override for Arrows */
        @media (max-width: 1200px) {
            .nav-arrow {
                display: none;
                /* Hide arrows on smaller screens, rely on swipe/scroll? Or adjust pos */
            }

            .carousel-track {
                overflow-x: auto;
                /* Native scroll on mobile */
                scroll-snap-type: x mandatory;
            }
        }

        /* Mobile Phone Carousel & Aux Sizing */
        @media (max-width: 768px) {

            /* Vertical Stack for Carousel Projects (Consistency with Cloud) */
            .carousel-track-container {
                width: 100%;
                margin: 0;
                padding: 0;
                overflow: visible;
                /* Allow vertical flow */
            }

            .carousel-track {
                flex-direction: column;
                transform: none !important;
                /* Disable JS positioning */
                gap: 1rem;
                padding-bottom: 0;
            }

            .carousel-track .project-card {
                width: 100% !important;
                /* Full width stack */
                flex: 0 0 auto !important;
            }

            /* Hide Dots on Mobile */
            .carousel-dots {
                display: none;
            }
        }

        /* --- Modal Styles --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s var(--ease-smooth);
            padding: 1rem;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 0;
            width: 100%;
            max-width: 600px;
            position: relative;
            transform: scale(0.95) translateY(20px);
            transition: all 0.4s var(--ease-smooth);
            max-height: 90vh;
            overflow-y: auto;
            /* Scrollbar for modal */
            scrollbar-width: thin;
            scrollbar-color: #333 transparent;
        }

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

        .modal-content::-webkit-scrollbar-thumb {
            background-color: #333;
            border-radius: 20px;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1) translateY(0);
        }

        .close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: white;
            font-size: 1.2rem;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
            z-index: 10;
            backdrop-filter: blur(4px);
        }

        .close-btn:hover {
            background: rgba(0, 0, 0, 0.7);
            color: white;
        }

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

        /* Modal Dynamic Content Styles */
        .modal-img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            border-radius: var(--radius) var(--radius) 0 0;
            margin-bottom: 0;
            border-bottom: 1px solid var(--border);
            display: block;
        }

        .modal-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--text-main);
        }

        .modal-meta {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            color: var(--accent);
            font-weight: 500;
        }

        .modal-desc-rich {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.6;
            margin-bottom: 2rem;
        }

        .modal-desc-rich p {
            margin-bottom: 1rem;
        }

        .modal-desc-rich ul {
            padding-left: 1.2rem;
            margin-bottom: 1rem;
            list-style-type: disc;
        }

        .modal-desc-rich li {
            margin-bottom: 0.5rem;
        }

        .modal-desc-rich strong {
            color: white;
            font-weight: 600;
        }

        .modal-desc {
            color: #ccc;
            line-height: 1.6;
            margin-bottom: 2rem;
        }

        .modal-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--accent);
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: opacity 0.3s;
        }


        .modal-action-btn:hover {
            opacity: 0.9;
        }

        /* --- Tech Tooltip & Animation --- */
        .tech-item {
            position: relative;
            display: inline-flex;
            justify-content: center;
            align-items: center;
        }

        .tech-item .tech-icon {
            transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
        }

        .tech-item:hover .tech-icon {
            transform: translateY(-3px) scale(1.2);
            opacity: 1;
        }

        /* Tooltip */
        .tech-item::after {
            content: attr(data-tooltip);
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%) translateY(-5px) scale(0.9);
            padding: 0.4rem 0.8rem;
            background: rgba(10, 10, 10, 0.85);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 0.95rem;
            font-weight: 500;
            letter-spacing: 0.02em;
            border-radius: 6px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            z-index: 10;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            margin-top: 8px;
        }

        .tech-item:hover::after {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0) scale(1);
        }