        /* Enhanced Global Styles with Glass Morphism */
        :root {
            /* Sophisticated Navy Color Palette */
            --background-primary: #0A0E1A;
            --background-secondary: #1A202C;
            --surface-primary: rgba(26, 32, 44, 0.85);
            --surface-secondary: rgba(45, 55, 72, 0.6);
            --surface-tertiary: rgba(45, 55, 72, 0.4);
            
            /* Accent Colors */
            --accent-primary: #63B3ED;
            --accent-secondary: #4FD1C7;
            --accent-primary-alpha: rgba(99, 179, 237, 0.8);
            --accent-secondary-alpha: rgba(79, 209, 199, 0.8);
            
            /* Text Colors */
            --text-primary: #F7FAFC;
            --text-secondary: #CBD5E0;
            --text-muted: #A0AEC0;
            --text-accent: #B8C5D1;
            
            /* Glass Morphism Variables */
            --glass-blur: blur(20px);
            --glass-blur-small: blur(12px);
            --glass-blur-medium: blur(15px);
            --glass-border: rgba(255, 255, 255, 0.1);
            --glass-border-hover: rgba(99, 179, 237, 0.3);
            
            /* Shadow Variables */
            --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.6);
            --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.8);
            --shadow-glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        
        *, *::before, *::after {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font */
            background: linear-gradient(135deg, var(--background-primary) 0%, var(--background-secondary) 50%, #0F1419 100%);
            background-attachment: fixed;
            color: var(--text-primary);
            margin: 0;
            padding: 0; /* Remove default body padding */
            overflow-x: hidden;
            line-height: 1.65; /* Enhanced readability */
            min-height: 100vh;
        }

        /* Enhanced focus styles for accessibility */
        *:focus {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }

        a:focus,
        button:focus {
            outline: 2px solid var(--accent-primary);
            outline-offset: 4px;
            border-radius: 4px;
        }

        /* Add subtle animated background pattern */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                radial-gradient(circle at 25% 25%, rgba(99, 179, 237, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(79, 209, 199, 0.015) 0%, transparent 50%);
            /* animation removed */
            pointer-events: none;
            z-index: -1;
        }

        @keyframes subtleFloat {
            0% { transform: translateY(0px) scale(1); opacity: 0.5; }
            100% { transform: translateY(-10px) scale(1.02); opacity: 0.3; }
        }

        .container {
            max-width: 1200px; /* Slightly smaller container */
            margin: 2rem auto; /* Centered with more top/bottom spacing */
            padding: 2rem;
            background: var(--surface-primary); /* Glass morphism background */
            backdrop-filter: var(--glass-blur); /* Glass blur effect */
            -webkit-backdrop-filter: var(--glass-blur); /* Safari support */
            border: 1px solid var(--glass-border); /* Subtle border */
            border-radius: 16px; /* More rounded corners */
            box-shadow: 
                var(--shadow-primary), 
                var(--shadow-glass-inset), 
                0 0 0 1px rgba(255, 255, 255, 0.05); /* Enhanced glass shadow */
            overflow: hidden; /* Added to contain floating elements */
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
            position: relative;
        }

        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(99, 179, 237, 0.5) 20%, 
                var(--accent-primary-alpha) 50%, 
                rgba(99, 179, 237, 0.5) 80%, 
                transparent 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .container:hover { background: rgba(45, 55, 72, 0.9); }

        .container:hover::before {
            opacity: 1;
        }

        h1, h2 {
            font-weight: 700; /* Bold font weight */
            color: var(--accent-primary); /* Professional blue accent color */
            text-shadow: 
                0 0 12px rgba(99, 179, 237, 0.8),
                0 0 24px rgba(99, 179, 237, 0.4),
                0 1px 3px rgba(0, 0, 0, 0.5); /* Enhanced glow with depth */
            margin-bottom: 0.5rem; /* Spacing below headings */
            letter-spacing: 0.5px; /* Improved spacing */
            position: relative;
        }

        h1 {
            font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font sizing */
        }

        h2 {
            font-size: clamp(1.5rem, 3vw, 2rem); /* Responsive font sizing */
        }

        a {
            color: var(--text-secondary); /* Light gray-blue links */
            text-decoration: none; /* Remove underlines */
            transition: color 0.3s ease;
        }

        a:hover {
            color: var(--accent-primary); /* Professional blue on hover */
        }

        /* Enhanced section styling with glass morphism */
        section {
            padding: 2rem;
            margin-bottom: 2rem;
            background: var(--surface-tertiary); /* Glass background */
            backdrop-filter: var(--glass-blur-small); /* Glass blur */
            -webkit-backdrop-filter: var(--glass-blur-small); /* Safari support */
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            border-bottom: 2px solid rgba(99, 179, 237, 0.2);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            border-left: 4px solid transparent;
        }

        section:hover {
            background: var(--surface-secondary);
            border-left-color: var(--accent-primary);
            border-color: var(--glass-border-hover);
        }

        /* Animated Border */
        section::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
            transform: translateX(-100%);
            transition: transform 0.5s ease-in-out;
        }

        section:hover::after {
            transform: translateX(0);
        }

        /* Enhanced Header Section with glass morphism */
        .header-section {
            text-align: center;
            padding: 4rem 2rem;
            position: relative;
            overflow: hidden;
            background: var(--surface-secondary);
            backdrop-filter: var(--glass-blur-medium);
            -webkit-backdrop-filter: var(--glass-blur-medium);
            border-radius: 16px;
            margin-bottom: 0;
        }

        .header-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                linear-gradient(135deg, rgba(99, 179, 237, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at center, rgba(79, 209, 199, 0.1) 0%, transparent 70%);
            z-index: -1;
            opacity: 1;
            animation: headerGlow 8s ease-in-out infinite alternate;
        }

        @keyframes headerGlow {
            0% { opacity: 0.8; transform: scale(1); }
            100% { opacity: 1; transform: scale(1.02); }
        }

        .header-section::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 2px;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(99, 179, 237, 0.6) 20%, 
                var(--accent-primary) 50%, 
                rgba(99, 179, 237, 0.6) 80%, 
                transparent 100%);
            border-radius: 2px;
        }

        .header-section h1 {
            font-size: clamp(2.5rem, 6vw, 4rem); /* Enhanced responsive sizing */
            margin-bottom: 1rem;
            letter-spacing: 2px; /* Increased letter spacing */
            background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: none; /* Remove text shadow for gradient effect */
            position: relative;
        }

        .header-section .tagline {
            font-size: clamp(1rem, 2.5vw, 1.4rem);
            color: var(--text-accent);
            font-style: italic;
            font-weight: 300;
            margin-bottom: 0.5rem;
            opacity: 0.9;
        }

        /* Contact Section */
        #contact .contact-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        #contact .contact-item {
            padding: 1.5rem;
            background: var(--surface-secondary);
            backdrop-filter: var(--glass-blur-small);
            -webkit-backdrop-filter: var(--glass-blur-small);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        #contact .contact-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(99, 179, 237, 0.1) 50%, 
                transparent 100%);
            transition: left 0.6s ease;
        }

        #contact .contact-item:hover {
            background: rgba(45, 55, 72, 0.8);
            border-color: var(--glass-border-hover);
        }

        #contact .contact-item:hover::before {
            left: 100%;
        }

        #contact .contact-item .material-icons {
            color: var(--accent-primary);
            font-size: 1.5rem;
            transition: transform 0.3s ease; /* Icon hover effect */
        }

        #contact .contact-item:hover .material-icons {
            transform: rotate(360deg);
        }

        /* Enhanced Experience & Education with glass morphism */
        .timeline-card {
            background: var(--surface-secondary);
            backdrop-filter: var(--glass-blur-small);
            -webkit-backdrop-filter: var(--glass-blur-small);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 2rem;
            border-radius: 16px;
            margin-bottom: 1.5rem;
            position: relative;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }

        .timeline-card::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 2px;
            height: 0;
            background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
            transition: height 0.4s ease;
        }

        /* Enhanced Timeline visual */
        .timeline-card::before {
            content: '';
            position: absolute;
            top: 2rem;
            left: -16px;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
            box-shadow: 
                0 0 16px rgba(99, 179, 237, 0.8),
                0 0 32px rgba(99, 179, 237, 0.4);
            z-index: 2;
            border: 3px solid var(--background-secondary);
            transition: all 0.3s ease;
        }

        .timeline-card:hover::before {
            transform: scale(1.2);
            box-shadow: 
                0 0 20px var(--accent-primary-alpha),
                0 0 40px rgba(99, 179, 237, 0.6);
        }

        /* Enhanced timeline line with gradient stops */
        .timeline-card:not(:last-child)::after {
            content: '';
            position: absolute;
            top: 2.8rem;
            left: -10px;
            width: 3px;
            height: calc(100% - 1rem);
            background: linear-gradient(to bottom, 
                var(--accent-primary) 0%, 
                rgba(99, 179, 237, 0.6) 50%, 
                rgba(99, 179, 237, 0.2) 100%);
            z-index: 1;
            border-radius: 2px;
        }

        .timeline-card:hover {
            background: rgba(45, 55, 72, 0.8);
            border-color: var(--glass-border-hover);
        }

        .timeline-card:hover::after {
            height: 100%;
        }

        .timeline-card h3 {
            margin-bottom: 0.8rem;
            color: var(--accent-primary);
            font-size: clamp(1.1rem, 2.5vw, 1.4rem);
            position: relative;
            padding-bottom: 0.5rem;
        }

        .timeline-card h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
            transition: width 0.4s ease;
        }

        .timeline-card:hover h3::after {
            width: 40%;
        }

        .timeline-card .company {
            font-style: italic;
            color: var(--text-muted);
            margin-bottom: 1rem;
            display: block;
        }

        .timeline-card ul {
            padding-left: 1.5rem;
            list-style-type: none; /* Remove bullet points */
        }

        .timeline-card .job-responsibilities li {
            display: block;
            position: relative;
            padding-left: 1.25rem;
            margin-bottom: 0.5rem;
        }

        .timeline-card .job-responsibilities li::before {
            content: "\25B8";
            position: absolute;
            left: 0.1rem;
            top: 0.05em;
            color: var(--accent-primary);
            font-size: 0.95rem;
            line-height: inherit;
            opacity: 0.9;
        }

        .timeline-card .job-responsibilities li code {
            display: inline;
            vertical-align: baseline;
        }

        /* Enhanced Skills with glass morphism */
        #skills .skill-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1.5rem;
            margin-top: 1rem;
        }

        #skills .skill-item {
            background: var(--surface-tertiary);
            backdrop-filter: var(--glass-blur-small);
            -webkit-backdrop-filter: var(--glass-blur-small);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 1.8rem;
            border-radius: 12px;
            text-align: center;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        #skills .skill-item:hover {
            background: rgba(45, 55, 72, 0.7);
            border-color: var(--glass-border-hover);
        }

        /* Enhanced gradient overlay with glass effect */
        #skills .skill-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                linear-gradient(135deg, rgba(99, 179, 237, 0.05) 0%, transparent 50%),
                radial-gradient(circle at center, rgba(79, 209, 199, 0.08) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        #skills .skill-item:hover::before {
            opacity: 1;
        }

        /* Add subtle pulse animation */
        #skills .skill-item::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: radial-gradient(circle, rgba(99, 179, 237, 0.3) 0%, transparent 70%);
            transform: translate(-50%, -50%);
            transition: all 0.4s ease;
            border-radius: 50%;
        }

        #skills .skill-item:hover::after {
            width: 100%;
            height: 100%;
        }

        /* Footer */
        footer {
            text-align: center;
            padding: 2rem;
            color: var(--text-muted);
            border-top: 2px solid var(--background-secondary);
            font-size: 0.9rem; /* Slightly smaller font size */
        }

        /* Enhanced Responsive Design */
        @media (max-width: 1024px) {
            .container {
                margin: 1rem;
                padding: 1.5rem;
            }
            
            .header-section {
                padding: 3rem 1.5rem;
            }
            
            section {
                padding: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .container {
                margin: 0.5rem;
                padding: 1rem;
                border-radius: 12px;
            }

            .header-section {
                padding: 2rem 1rem;
            }

            section {
                padding: 1rem;
                margin-bottom: 1.5rem;
            }

            h1 {
                font-size: clamp(2rem, 8vw, 2.5rem) !important;
                letter-spacing: 1px;
            }

            h2 {
                font-size: clamp(1.3rem, 5vw, 1.6rem) !important;
            }

            #contact .contact-info {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .timeline-card {
                padding: 1.5rem;
            }

            .skills-container {
                flex-direction: column;
                gap: 1rem;
            }

            .skills-category {
                padding: 1.5rem;
            }

            .pdf-button {
                top: 16px;
                right: 16px;
                padding: 10px 16px;
                font-size: 14px;
                gap: 8px;
            }
        }

        @media (max-width: 480px) {
            .container {
                margin: 0.25rem;
                padding: 0.75rem;
            }

            .header-section {
                padding: 1.5rem 0.75rem;
            }

            section {
                padding: 0.75rem;
            }

            .timeline-card {
                padding: 1rem;
            }

            .skills-category {
                padding: 1rem;
            }

            #contact .contact-item {
                padding: 1rem;
            }
        }

        /* Add these styles to your existing stylesheet */
        .skills-container {
            display: flex;
            gap: 2rem;
            margin-top: 1.5rem;
        }
        
        .skills-column {
            flex: 1;
        }
        
        .skills-category {
            margin-bottom: 2rem;
            background: var(--surface-secondary);
            backdrop-filter: var(--glass-blur-small);
            -webkit-backdrop-filter: var(--glass-blur-small);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 2rem;
            border-radius: 14px;
            box-shadow: 
                0 8px 24px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .skills-category::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, 
                rgba(99, 179, 237, 0.6) 0%, 
                rgba(79, 209, 199, 0.6) 50%, 
                rgba(99, 179, 237, 0.6) 100%);
            transform: scaleX(0);
            transition: transform 0.4s ease;
            transform-origin: left;
        }
        
        .skills-category:hover {
            background: rgba(45, 55, 72, 0.8);
            border-color: rgba(99, 179, 237, 0.2);
        }

        .skills-category:hover::before {
            transform: scaleX(1);
        }
        
        /* Enhanced skill items with better visual hierarchy */
        .skills-category h3 {
            color: var(--accent-primary);
            margin-top: 0;
            margin-bottom: 1.2rem;
            font-size: clamp(1.1rem, 2vw, 1.3rem);
            border-bottom: 1px solid rgba(99, 179, 237, 0.3);
            padding-bottom: 0.8rem;
            position: relative;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .skills-category h3::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
            transition: width 0.4s ease;
        }

        .skills-category:hover h3::after {
            width: 50%;
        }
        
        .skills-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .skills-list li {
            margin-bottom: 0.8rem;
            padding-left: 1.8rem;
            position: relative;
            font-size: 0.95rem;
            line-height: 1.6;
            transition: all 0.3s ease;
        }

        .skills-list li:hover {
            color: var(--text-accent);
            transform: translateX(4px);
        }
        
        .skills-list li::before {
            content: "▸";
            color: var(--accent-primary);
            position: absolute;
            left: 0;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        .skills-list li:hover::before {
            color: var(--accent-secondary);
            transform: scale(1.2);
        }
        
        @media (max-width: 768px) {
            .skills-container {
                flex-direction: column;
            }
        }

        /* Enhanced PDF Export Button with glass morphism */
        .pdf-button {
            position: fixed;
            top: 24px;
            right: 24px;
            background: rgba(99, 179, 237, 0.9);
            backdrop-filter: var(--glass-blur-small);
            -webkit-backdrop-filter: var(--glass-blur-small);
            color: var(--background-primary);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 14px 24px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 1000;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 
                0 8px 24px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
            font-size: 16px;
            position: relative;
            overflow: hidden;
        }

        .pdf-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.3) 50%, 
                transparent 100%);
            transition: left 0.6s ease;
        }

        .pdf-button:hover {
            background: rgba(99, 179, 237, 0.95);
            transform: translateY(-3px) scale(1.03);
            box-shadow: 
                0 12px 32px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .pdf-button:hover::before {
            left: 100%;
        }

        .pdf-button:active {
            transform: translateY(-1px) scale(1.01);
        }

        /* Hide the button when printing */
        @media print {
            .pdf-button {
                display: none;
            }
            
            /* PDF-optimized styles */
            body {
                background-color: white;
                color: #333;
                font-size: 12pt;
            }
            
            .container {
                margin: 0;
                padding: 0.5in;
                max-width: 100%;
                box-shadow: none;
                background-color: white;
            }
            
            section {
                break-inside: avoid;
                page-break-inside: avoid;
                margin-bottom: 15pt;
                padding: 10pt 0;
                border-bottom: 1pt solid #eee;
                transform: none !important;
                box-shadow: none !important;
            }
            
            .timeline-card::before,
            .timeline-card::after {
                display: none;
            }
            
            .skills-category h3::after {
                display: none;
            }
            
            section::after {
                display: none;
            }
            
            h1, h2, h3 {
                color: #333;
                text-shadow: none;
            }
            
            h2 {
                font-size: 16pt;
                border-bottom: 1pt solid #ccc;
                padding-bottom: 5pt;
                margin-top: 15pt;
            }
            
            h3 {
                font-size: 14pt;
                margin-top: 10pt;
            }
            
            .timeline-card {
                background-color: white;
                padding: 10pt 0;
                border-radius: 0;
                box-shadow: none;
                page-break-inside: avoid;
            }
            
            .timeline-card::before {
                display: none;
            }
            
            .skills-category {
                background-color: white;
                padding: 5pt;
                box-shadow: none;
                border: 1pt solid #eee;
            }
            
            .skills-category h3 {
                color: #333;
                border-bottom: 1pt solid #ccc;
            }
            
            .skills-list li::before {
                color: #333;
            }
            
            .job-responsibilities i {
                color: #333;
            }
            
            /* Make sure the content fits nicely on standard pages */
            .skills-container {
                gap: 10pt;
            }
            
            /* Avoid splitting sections across pages */
            #about, #experience, #education, #skills, #publications, #projects {
                page-break-inside: avoid;
            }
            
            /* Proper spacing for print */
            p {
                margin-bottom: 8pt;
            }
            
            footer {
                display: none; /* Remove footer in PDF */
            }
            
            /* No hover effects for PDF */
            *:hover {
                transform: none !important;
                box-shadow: none !important;
            }
        }

        /* Add these styles for the loading indicator */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            color: white;
        }
        
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(99, 179, 237, 0.3);
            border-radius: 50%;
            border-top-color: var(--accent-primary);
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 1rem;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Print optimization to reduce page count */
        @media print {
            /* More compact layout */
            body {
                font-size: 10pt !important; /* Smaller font size */
                line-height: 1.3 !important; /* Tighter line height */
            }
            
            .container {
                padding: 0.3in !important; /* Reduce page margins */
                margin: 0 !important;
            }
            
            section {
                padding: 5pt 0 !important; /* Significantly reduce section padding */
                margin-bottom: 10pt !important;
            }
            
            h2 {
                font-size: 12pt !important;
                margin-top: 10pt !important;
                margin-bottom: 5pt !important;
                padding-bottom: 2pt !important;
            }
            
            h3 {
                font-size: 11pt !important;
                margin-top: 5pt !important;
                margin-bottom: 2pt !important;
            }
            
            p {
                margin-bottom: 4pt !important;
            }
            
            /* More compact timeline cards */
            .timeline-card {
                padding: 5pt 0 !important;
                margin-bottom: 8pt !important;
            }
            
            /* More compact skills section */
            .skills-container {
                gap: 5pt !important;
            }
            
            .skills-category {
                padding: 5pt !important;
                margin-bottom: 5pt !important;
            }
            
            .skills-category h3 {
                font-size: 10pt !important;
                margin-bottom: 3pt !important;
                padding-bottom: 2pt !important;
            }
            
            .skills-list li {
                margin-bottom: 2pt !important;
                font-size: 9pt !important;
            }
            
            /* Reduce list spacing */
            ul {
                margin: 3pt 0 !important;
            }
            
            .job-responsibilities li {
                margin-bottom: 2pt !important;
            }
            
            /* Prevent orphaned section titles */
            #about, #experience, #education, #skills, #publications, #projects {
                page-break-before: auto !important; 
            }
        }
        /* ============================================================
           v3 components (Selected Work, pub-list, project-list, etc.)
           styled to match the original glass-morphism aesthetic
           ============================================================ */

        /* Header — additional rows beneath h1 */
        .header-section .meta {
            font-size: 0.92rem;
            color: var(--text-muted);
            margin: 0.25rem 0 0.6rem;
            font-weight: 500;
        }

        .header-section .contact-row {
            font-size: 0.88rem;
            color: var(--text-muted);
            margin: 0.6rem 0 0;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 0.55rem;
        }

        .header-section .contact-row a { color: var(--text-secondary); }
        .header-section .contact-row a:hover { color: var(--accent-primary); }
        .header-section .contact-row .dot { color: var(--text-muted); opacity: 0.6; }

        /* Inline code: plain monospace in accent color, no chip */
        code {
            font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 0.9em;
            color: var(--accent-primary);
            background: none;
            border: none;
            padding: 0;
            border-radius: 0;
            word-break: break-word;
            overflow-wrap: anywhere;
        }

        /* Role head wrapper (h3 + .company live inside) */
        .role-head { margin-bottom: 0.8rem; }

        /* ----------------------- Selected Work ----------------------- */
        #selected-work .work-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        #selected-work .work-list li {
            background: var(--surface-secondary);
            backdrop-filter: var(--glass-blur-small);
            -webkit-backdrop-filter: var(--glass-blur-small);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 3px solid var(--accent-primary);
            border-radius: 12px;
            padding: 1.4rem 1.6rem;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
            position: relative;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        #selected-work .work-list li:hover {
            background: rgba(45, 55, 72, 0.8);
            border-color: var(--glass-border-hover);
            border-left-color: var(--accent-secondary);
        }

        #selected-work .work-title {
            font-weight: 600;
            color: var(--accent-primary);
            font-size: 1.08rem;
            line-height: 1.35;
        }

        #selected-work .work-meta {
            font-size: 0.93rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        #selected-work .work-list li a {
            color: var(--accent-primary);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
            margin-top: 0.2rem;
            align-self: flex-start;
        }

        #selected-work .work-list li a:hover { color: var(--accent-secondary); }

        /* ----------------------- Publications ----------------------- */
        #publications .pub-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        #publications .pub-list li {
            background: var(--surface-secondary);
            backdrop-filter: var(--glass-blur-small);
            -webkit-backdrop-filter: var(--glass-blur-small);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 10px;
            padding: 1rem 1.3rem;
            display: grid;
            grid-template-columns: 4rem 1fr;
            gap: 1.1rem;
            align-items: baseline;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        #publications .pub-list li:hover {
            background: rgba(45, 55, 72, 0.8);
            border-color: var(--glass-border-hover);
        }

        .pub-year {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            color: var(--accent-primary);
            font-weight: 500;
        }

        .pub-body {
            font-size: 0.95rem;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .pub-body strong { color: var(--text-primary); font-weight: 600; }

        #publications .pub-list li a {
            color: var(--accent-primary);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
        }

        #publications .pub-list li a:hover { color: var(--accent-secondary); }

        /* ----------------------- Projects ----------------------- */
        #projects .project-list {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }

        #projects .project-list li {
            background: var(--surface-secondary);
            backdrop-filter: var(--glass-blur-small);
            -webkit-backdrop-filter: var(--glass-blur-small);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-left: 3px solid rgba(99, 179, 237, 0.4);
            border-radius: 10px;
            padding: 1rem 1.3rem;
            font-size: 0.95rem;
            color: var(--text-secondary);
            line-height: 1.6;
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        #projects .project-list li:hover {
            background: rgba(45, 55, 72, 0.8);
            border-color: var(--glass-border-hover);
            border-left-color: var(--accent-primary);
        }

        #projects .project-list li strong {
            color: var(--accent-primary);
            font-weight: 600;
            margin-right: 0.4rem;
        }

        #projects .project-list .project-body { color: var(--text-secondary); }

        #projects .project-list li a {
            color: var(--accent-primary);
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.85rem;
        }

        #projects .project-list li a:hover { color: var(--accent-secondary); }

        /* ----------------------- Job-responsibilities bullet glyph ----------------------- */
        /* CSS-only ▸ marker via absolute positioning so inline <code> chips wrap normally */
        .job-responsibilities li {
            display: block;
            position: relative;
            padding-left: 1.25rem;
            margin-bottom: 0.6rem;
            color: var(--text-secondary);
        }

        .job-responsibilities li::before {
            content: "\25B8";
            position: absolute;
            left: 0.1rem;
            top: 0.05em;
            color: var(--accent-primary);
            font-size: 0.95rem;
            line-height: inherit;
            opacity: 0.9;
        }

        .job-responsibilities li strong { color: var(--text-primary); font-weight: 600; }
        .job-responsibilities li code { display: inline; vertical-align: baseline; }

        /* Print: keep new components readable on the ATS PDF */
        @media print {
            #selected-work .work-list li,
            #publications .pub-list li,
            #projects .project-list li {
                background: white !important;
                border: 0.5pt solid #ddd !important;
                border-left: 1pt solid #1976d2 !important;
                border-radius: 0 !important;
                padding: 6pt 8pt !important;
                page-break-inside: avoid !important;
                color: #222 !important;
            }
            .work-title { color: #1976d2 !important; font-size: 10pt !important; font-weight: 600 !important; }
            .work-meta, .pub-body, #projects .project-list li { color: #222 !important; font-size: 9pt !important; }
            .pub-year { color: #1976d2 !important; font-size: 9pt !important; }
            .pub-body strong, .work-meta strong, #projects .project-list li strong { color: #111 !important; }
            #selected-work .work-list li a, #publications .pub-list li a, #projects .project-list li a {
                color: #1976d2 !important;
            }
            .header-section .meta, .header-section .contact-row {
                color: #555 !important;
                font-size: 8.5pt !important;
            }
            code { background: #f4f4f4 !important; color: #1976d2 !important; border: none !important; }
            .job-responsibilities li::before { color: #1976d2 !important; }
        }
