/* Experience page-specific styles */

        /* Hero Section */
        .hero-section {
            height: 72vh;
            min-height: 520px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: linear-gradient(135deg, #0a0e27 0%, #1e3a8a 100%);
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
            z-index: 1;
        }

        .hero-content {
            text-align: center;
            z-index: 10;
            animation: fadeInUp 1s ease-out;
            position: relative;
        }

        .hero-content h1 {
            font-size: clamp(3rem, 8vw, 6rem);
            font-weight: 900;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.02em;
        }

        .hero-content p {
            font-size: clamp(1.2rem, 2vw, 1.8rem);
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 2rem;
        }

        .scroll-indicator {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
        }

        .scroll-indicator i {
            font-size: 2rem;
            color: rgba(255, 255, 255, 0.6);
        }

        @keyframes bounce {
            0%, 100% { transform: translateX(-50%) translateY(0); }
            50% { transform: translateX(-50%) translateY(-10px); }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Parallax Effect */
        .parallax-container {
            position: relative;
            overflow: hidden;
        }

        .parallax-bg {
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

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


        /* Experience Timeline Section */
        .experience-section {
            padding: 3rem 2rem;
            background: linear-gradient(180deg, var(--background) 0%, var(--background-alt) 100%);
        }

        .experience-section.first-content-section {
            padding-top: 2rem;
        }

        .section-header {
            text-align: center;
            margin-bottom: 1.25rem;
        }

        .section-header h2 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 800;
            margin-bottom: 0.5rem;
            background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .section-header p {
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Experience at-a-glance grid */
        .experience-section-at-glance .experience-grid,
        .experience-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.25rem;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 0 1.5rem;
        }

        .experience-grid-earlier {
            padding-top: 1rem;
        }

        .experience-card-compact {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            overflow: hidden;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .experience-card-compact:hover {
            border-color: rgba(37, 99, 235, 0.35);
            box-shadow: 0 8px 32px rgba(37, 99, 235, 0.12);
        }

        .experience-card-compact-inner {
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .experience-card-compact .exp-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            padding: 0.25rem 0.6rem;
            border-radius: 999px;
            width: fit-content;
        }

        .experience-card-compact .exp-badge.research {
            background: rgba(37, 99, 235, 0.25);
            color: #93c5fd;
        }

        .experience-card-compact .exp-badge.teaching {
            background: rgba(168, 85, 247, 0.25);
            color: #c4b5fd;
        }

        .experience-card-compact .exp-badge.leadership {
            background: rgba(236, 72, 153, 0.2);
            color: #f9a8d4;
        }

        .experience-card-compact .exp-badge.education {
            background: rgba(34, 197, 94, 0.2);
            color: #86efac;
        }

        .experience-card-compact h3 {
            font-size: 1.05rem;
            font-weight: 700;
            margin: 0;
            color: #fff;
            line-height: 1.3;
        }

        .experience-card-compact .exp-org {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.65);
            margin: 0;
            line-height: 1.35;
        }

        .experience-card-compact .exp-period {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.5);
            margin: 0;
        }

        .experience-card-compact .exp-desc {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.78);
            margin: 0;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .experience-card-compact .exp-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin-top: 0.25rem;
        }

        .experience-card-compact .exp-tags .job-tag {
            font-size: 0.7rem;
            padding: 0.2rem 0.5rem;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 6px;
            color: rgba(255, 255, 255, 0.7);
        }

        .experience-card-compact .exp-details-btn {
            margin-top: 0.75rem;
            padding: 0.5rem 0.85rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--primary-color);
            background: rgba(37, 99, 235, 0.15);
            border: 1px solid rgba(37, 99, 235, 0.35);
            border-radius: 10px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .experience-card-compact .exp-details-btn:hover {
            background: rgba(37, 99, 235, 0.25);
            border-color: rgba(37, 99, 235, 0.5);
        }

        .experience-detail-body {
            display: none;
        }

        .timeline {
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            padding: 2rem 0;
        }

        /* Simple Static Vertical Timeline Line */
        .timeline::before {
            content: '';
            position: absolute;
            left: 30px;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, 
                rgba(37, 99, 235, 0.6) 0%, 
                rgba(37, 99, 235, 0.4) 50%,
                rgba(37, 99, 235, 0.6) 100%);
            z-index: 1;
            filter: drop-shadow(0 0 4px rgba(37, 99, 235, 0.4));
        }

        /* Timeline Scroll Indicator */
        @media (max-width: 968px) {
            .timeline::before {
                left: 30px;
            }
        }

        .timeline-year-group {
            position: relative;
            margin: 2rem 0;
            z-index: 10;
        }

        .year-divider {
            position: relative;
            text-align: center;
            margin: 1.5rem 0;
        }

        .year-label {
            position: relative;
            display: block;
            padding: 0.6rem 1.5rem;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
            border: 2px solid rgba(37, 99, 235, 0.5);
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 800;
            color: #60a5fa;
            backdrop-filter: blur(20px);
            box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
            z-index: 20;
            margin: 0 auto;
            width: fit-content;
        }

        /* Experience Timeline Items */
        .timeline-item-wrapper {
            position: relative;
            margin-bottom: 2.5rem;
            display: flex;
            align-items: flex-start;
            min-height: 150px;
            padding-left: 80px;
        }

        /* Timeline Node/Marker - Positioned on the left line */
        .timeline-node {
            position: absolute;
            left: 30px;
            top: 0;
            width: 20px;
            height: 20px;
            background: var(--primary-color);
            border: 4px solid var(--background);
            border-radius: 50%;
            z-index: 10;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.5);
            transition: var(--transition-fast);
            flex-shrink: 0;
            transform: translateX(-50%);
        }

        .timeline-item-wrapper[data-category="research"] .timeline-node {
            background: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.5);
        }

        .timeline-item-wrapper[data-category="teaching"] .timeline-node {
            background: #a855f7;
            box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.3), 0 4px 12px rgba(168, 85, 247, 0.5);
        }

        .timeline-item-wrapper[data-category="leadership"] .timeline-node {
            background: #ec4899;
            box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.3), 0 4px 12px rgba(236, 72, 153, 0.5);
        }

        .timeline-item-wrapper:hover .timeline-node {
            transform: translateX(-50%) scale(1.3);
            box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.4), 0 6px 20px rgba(37, 99, 235, 0.6);
        }

        /* Connecting Line from Node to Card */
        .timeline-connector {
            position: absolute;
            left: 30px;
            top: 10px;
            width: 50px;
            height: 2px;
            z-index: 2;
            pointer-events: none;
            background: linear-gradient(90deg, var(--primary-color) 0%, rgba(37, 99, 235, 0.3) 100%);
        }

        .timeline-item-wrapper[data-category="teaching"] .timeline-connector {
            background: linear-gradient(90deg, #a855f7, transparent);
        }

        .timeline-item-wrapper[data-category="leadership"] .timeline-connector {
            background: linear-gradient(90deg, #ec4899, transparent);
        }

        /* Experience Cards */
        .experience-card {
            width: 100%;
            max-width: none;
            margin-left: 0;
            margin-right: 0;
            margin-bottom: 3rem;
            flex-shrink: 0;
            box-sizing: border-box;
            overflow: hidden;
        }

        @media (max-width: 968px) {
            .timeline {
                padding: 1rem 0;
            }

            .timeline::before {
                left: 10px;
            }

            .timeline-item-wrapper {
                padding-left: 50px;
                margin-bottom: 3rem;
            }

            .timeline-node {
                left: 10px !important;
            }

            .timeline-connector {
                left: 10px;
                width: 30px;
            }

            .experience-card {
                width: 100% !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            .timeline-year-group {
                margin: 1.5rem 0;
            }

            .year-label {
                font-size: 1rem;
                padding: 0.5rem 1.25rem;
                margin: 0 auto;
                width: fit-content;
            }

            /* Hide job-tags in main card on mobile */
            .experience-card > .job-tags {
                display: none !important;
            }

            /* Show job-tags inside job-details on mobile */
            .job-details .job-tags {
                display: flex !important;
                margin-top: 1.5rem;
                padding: 0 0 1.5rem 0;
            }

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

            .section-header {
                margin-bottom: 1.25rem;
            }

            .section-header h2 {
                font-size: 2rem;
            }

            .section-header p {
                font-size: 1rem;
            }
        }

        @media (max-width: 640px) {
            .experience-card {
                width: 100% !important;
                margin-left: 0 !important;
            }

            .timeline-node {
                left: 8px;
                width: 16px;
                height: 16px;
            }

            .timeline::before {
                left: 8px;
            }

            .timeline-connector {
                left: 8px;
                width: 20px;
            }

            .timeline-item-wrapper {
                padding-left: 25px;
            }

            .experience-card-header {
                padding: 1rem 1.25rem 0.75rem;
            }

            .job-description,
            .job-tags,
            .job-details {
                padding-left: 1.25rem;
                padding-right: 1.25rem;
            }

            .expand-details-btn {
                margin: 0 1.25rem 1rem;
            }
        }

        .timeline-item-wrapper {
            opacity: 0;
            transform: translateY(30px);
            transition: var(--transition);
        }

        .timeline-item-wrapper.animate-in {
            opacity: 1;
            transform: translateY(0);
        }

        .experience-card {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            transition: var(--transition);
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .experience-card:not(.expanded) .job-details {
            display: none;
        }

        .experience-card.expanded {
            max-height: none;
        }

        .timeline-item-wrapper[data-category="research"] .experience-card {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
            border-color: rgba(37, 99, 235, 0.3);
        }

        .timeline-item-wrapper[data-category="teaching"] .experience-card {
            background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(192, 132, 252, 0.05) 100%);
            border-color: rgba(168, 85, 247, 0.3);
        }

        .timeline-item-wrapper[data-category="leadership"] .experience-card {
            background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(244, 114, 182, 0.05) 100%);
            border-color: rgba(236, 72, 153, 0.3);
        }

        .timeline-item-wrapper:hover .experience-card {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .experience-card-header {
            padding: 1.25rem 1.5rem 1rem;
            position: relative;
            box-sizing: border-box;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .experience-badge {
            display: inline-block;
            padding: 0.35rem 0.9rem;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
            color: #60a5fa;
            width: fit-content;
            align-self: flex-start;
        }

        .timeline-item-wrapper[data-category="teaching"] .experience-badge {
            color: #c084fc;
        }

        .timeline-item-wrapper[data-category="leadership"] .experience-badge {
            color: #f472b6;
        }

        .experience-card h3 {
            font-size: clamp(1.2rem, 2.5vw, 1.6rem);
            font-weight: 800;
            margin: 0;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            width: 100%;
            word-wrap: break-word;
            overflow-wrap: break-word;
            flex-wrap: wrap;
            line-height: 1.3;
        }

        .experience-card h3 i {
            color: var(--primary-color);
            font-size: 1.2rem;
        }

        .timeline-item-wrapper[data-category="teaching"] .experience-card h3 i {
            color: #a855f7;
        }

        .timeline-item-wrapper[data-category="leadership"] .experience-card h3 i {
            color: #ec4899;
        }

        .job-subtitle-period {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 0;
            width: 100%;
            box-sizing: border-box;
        }

        .job-subtitle {
            font-size: 0.95rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9);
            flex: 1;
            min-width: 0;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }

        .job-period-wrapper {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.25rem;
            flex-shrink: 0;
            text-align: right;
        }

        .job-period {
            font-size: 0.85rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.8);
        }

        .job-duration {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.6);
        }

        .job-description {
            padding: 0 1.5rem 1rem;
            box-sizing: border-box;
            width: 100%;
        }

        .job-description p {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            word-wrap: break-word;
            overflow-wrap: break-word;
            margin: 0;
        }

        .job-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            padding: 0 1.5rem 1rem;
            box-sizing: border-box;
            width: 100%;
        }

        .expand-details-btn {
            margin: 0 1.5rem 1rem;
            padding: 0.6rem 1.25rem;
            font-size: 0.8rem;
        }

        .job-tag {
            padding: 0.35rem 0.75rem;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            font-size: 0.75rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .job-tag i {
            font-size: 0.9rem;
        }

        .job-details {
            padding: 0;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            display: block;
            transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                        opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                        padding 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            box-sizing: border-box;
            width: 100%;
        }

        .experience-card.expanded .job-details {
            max-height: 2000px;
            opacity: 1;
            padding: 0 1.5rem 1.5rem;
        }

        /* Animate child elements with stagger */
        .job-details .job-responsibilities {
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
                        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
        }

        .experience-card.expanded .job-details .job-responsibilities {
            opacity: 1;
            transform: translateY(0);
        }

        .job-details .job-responsibilities li {
            opacity: 0;
            transform: translateX(-10px);
            transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .experience-card.expanded .job-details .job-responsibilities li {
            opacity: 1;
            transform: translateX(0);
        }

        .experience-card.expanded .job-details .job-responsibilities li:nth-child(1) {
            transition-delay: 0.4s;
        }

        .experience-card.expanded .job-details .job-responsibilities li:nth-child(2) {
            transition-delay: 0.5s;
        }

        .experience-card.expanded .job-details .job-responsibilities li:nth-child(3) {
            transition-delay: 0.6s;
        }

        .experience-card.expanded .job-details .job-responsibilities li:nth-child(4) {
            transition-delay: 0.7s;
        }

        .experience-card.expanded .job-details .job-responsibilities li:nth-child(5) {
            transition-delay: 0.8s;
        }

        .experience-card.expanded .job-details .job-responsibilities li:nth-child(n+6) {
            transition-delay: 0.9s;
        }

        .job-details .experience-links {
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s,
                        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
        }

        .experience-card.expanded .job-details .experience-links {
            opacity: 1;
            transform: translateY(0);
        }

        .job-responsibilities {
            list-style: none;
            padding: 0;
        }

        .job-responsibilities li {
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.6;
            word-wrap: break-word;
            overflow-wrap: break-word;
            font-size: 0.9rem;
        }

        .job-responsibilities li:last-child {
            border-bottom: none;
        }

        .job-responsibilities li strong {
            color: #60a5fa;
            font-weight: 600;
        }

        .timeline-item-wrapper[data-category="teaching"] .job-responsibilities li strong {
            color: #c084fc;
        }

        .timeline-item-wrapper[data-category="leadership"] .job-responsibilities li strong {
            color: #f472b6;
        }

        .experience-links {
            margin-top: 1rem;
        }

        .project-link-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.875rem 1.75rem;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 12px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: var(--transition-fast);
        }

        .project-link-btn:hover {
            background: var(--secondary-color);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
        }

        /* Expand for more details button */
        .expand-details-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1rem;
            padding: 0.75rem 1.5rem;
            background: var(--glass-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.875rem;
            cursor: pointer;
            transition: var(--transition-fast);
            font-family: inherit;
            width: auto;
        }

        .expand-details-btn:hover {
            background: rgba(37, 99, 235, 0.2);
            border-color: var(--primary-color);
            transform: translateY(-2px);
        }

        .expand-details-btn i {
            transition: transform 0.3s ease;
        }

        .experience-card.expanded .expand-details-btn i {
            transform: rotate(180deg);
        }

        .timeline-item-wrapper[data-category="teaching"] .expand-details-btn:hover {
            background: rgba(168, 85, 247, 0.2);
            border-color: #a855f7;
        }

        .timeline-item-wrapper[data-category="leadership"] .expand-details-btn:hover {
            background: rgba(236, 72, 153, 0.2);
            border-color: #ec4899;
        }

        .leadership-badge {
            display: inline-block;
            padding: 0.5rem 1.25rem;
            background: rgba(236, 72, 153, 0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(236, 72, 153, 0.4);
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            color: #f472b6;
            width: fit-content;
            align-self: flex-start;
        }

        /* Technical Expertise Section */
        .technical-expertise-section {
            padding: 3rem 2rem;
            background: var(--background-alt);
        }

        .technical-expertise-section .section-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .experience-expertise-card {
            max-width: 100%;
        }

        .skills-expertise-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 1.5rem 1.5rem 1.25rem;
            position: relative;
            overflow: hidden;
        }

        .skills-expertise-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--primary-color), transparent 60%);
            opacity: 0.6;
        }

        .skills-expertise-label {
            font-size: 0.8rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.55);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin: 0 0 1.25rem;
        }

        .skills-expertise-columns {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem 2rem;
        }

        .skills-expertise-col {
            min-width: 0;
        }

        .skills-expertise-col-title {
            font-size: 0.95rem;
            font-weight: 700;
            color: #fff;
            margin: 0 0 0.6rem;
            display: flex;
            align-items: center;
            gap: 0.45rem;
        }

        .skills-expertise-col-title i {
            color: var(--primary-color);
            font-size: 0.9rem;
            opacity: 0.9;
        }

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

        .skills-expertise-list li {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.78);
            line-height: 1.5;
            padding: 0.28rem 0 0.28rem 1rem;
            position: relative;
        }

        .skills-expertise-list li::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.65em;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            background: var(--primary-color);
            opacity: 0.6;
        }

        @media (max-width: 900px) {
            .skills-expertise-columns {
                grid-template-columns: 1fr;
                gap: 1.25rem;
            }

            .skills-expertise-col-title {
                padding-bottom: 0.4rem;
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            }
        }

        .development-grid {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .development-card {
            padding: 2.5rem;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            transition: var(--transition);
        }

        .development-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
            border-color: rgba(255, 255, 255, 0.2);
        }

        .development-card h3 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .development-card h3 i {
            color: var(--primary-color);
            font-size: 1.75rem;
        }

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

        .development-card ul li {
            padding: 0.75rem 0;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.7;
            position: relative;
            padding-left: 1.5rem;
        }

        .development-card ul li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: var(--primary-color);
            font-weight: bold;
        }

        /* Responsive */
        @media (max-width: 968px) {
            .experience-card-header {
                padding: 1.5rem 1.5rem 1rem;
            }

            .job-description,
            .job-tags,
            .job-details {
                padding-left: 1.5rem;
                padding-right: 1.5rem;
            }


            .job-subtitle-period {
                flex-direction: column;
                align-items: flex-start;
            }

            .job-period-wrapper {
                align-items: flex-start;
            }
        }

        @media (max-width: 640px) {
            .hero-section {
                height: 62vh;
                min-height: 420px;
            }
        }

        /* Floating TOC Styles */
        .floating-toc {
            position: fixed;
            top: 15%;
            left: 0;
            z-index: 100;
        }

        .toc-toggle {
            width: 60px;
            height: 60px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            color: #60a5fa;
            border: 2px solid var(--glass-border);
            border-left: none;
            border-radius: 0 30px 30px 0;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.2);
            transition: var(--transition-fast);
            position: relative;
            overflow: hidden;
            margin-left: 0;
        }

        .toc-toggle::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .toc-toggle:hover::before {
            opacity: 1;
        }

        .toc-toggle:hover {
            background: rgba(37, 99, 235, 0.2);
            border-color: rgba(37, 99, 235, 0.5);
            margin-left: 2px;
            box-shadow: 0 6px 30px rgba(37, 99, 235, 0.4), 0 0 0 1px rgba(37, 99, 235, 0.3);
            color: #ffffff;
        }

        .toc-panel {
            position: absolute;
            top: 0;
            left: 60px;
            width: 320px;
            max-height: calc(100vh - 160px);
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 1.5rem;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(37, 99, 235, 0.1);
            transform: translateX(-100%);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
        }

        .floating-toc.expanded .toc-panel {
            transform: translateX(0);
            opacity: 1;
            visibility: visible;
        }

        .floating-toc.expanded .toc-toggle {
            margin-left: 0;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.18);
            border-left: 2px solid rgba(255, 255, 255, 0.18);
            border-radius: 0 30px 30px 0;
            color: rgba(255, 255, 255, 0.85);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
        }

        .floating-toc.expanded .toc-toggle:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
            margin-left: 2px;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
            color: #ffffff;
        }

        .floating-toc.expanded .toc-toggle i::before {
            content: "\f00d"; /* FontAwesome times icon */
        }

        .toc-header {
            font-weight: 700;
            font-size: 1rem;
            color: #ffffff;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .toc-header i {
            color: var(--primary-color);
        }

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

        .toc-item {
            margin-bottom: 0.5rem;
        }

        .toc-link {
            display: block;
            padding: 0.75rem 1rem;
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            font-size: 0.9rem;
            border-radius: 12px;
            transition: var(--transition-fast);
            line-height: 1.4;
            font-weight: 500;
            border-left: 3px solid transparent;
            background: transparent;
        }

        .toc-link:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #ffffff;
            border-left-color: var(--primary-color);
            transform: translateX(4px);
        }

        .toc-link.active {
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
            color: #60a5fa;
            border-left-color: var(--primary-color);
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
        }

        .toc-subitem {
            margin-left: 1.5rem;
            margin-bottom: 0.25rem;
        }

        .toc-subitem .toc-link {
            font-size: 0.85rem;
            padding: 0.5rem 0.75rem;
            font-weight: 400;
        }

        .toc-subitem .toc-link.active {
            font-weight: 500;
        }

        .toc-progress {
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 2px;
        }

        .toc-progress-bar {
            width: 100%;
            background: linear-gradient(180deg, var(--primary-color) 0%, rgba(59, 130, 246, 0.8) 100%);
            border-radius: 2px;
            transition: height 0.3s ease;
            box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
        }

        /* Mobile adjustments for TOC */
        @media (max-width: 768px) {
            .floating-toc {
                top: 15%;
                left: 0;
            }
            
            .toc-toggle {
                width: 50px;
                height: 50px;
                font-size: 1rem;
                border-radius: 0 25px 25px 0;
                margin-left: 0;
            }

            .toc-toggle:hover {
                margin-left: 2px;
            }
            
            .toc-panel {
                width: min(300px, calc(100vw - 24px));
                max-height: calc(100vh - 140px);
                left: 50px;
            }
            
            .floating-toc.expanded .toc-toggle {
                margin-left: 0;
            }

            .floating-toc.expanded .toc-toggle:hover {
                margin-left: 2px;
            }
        }

        @media (max-width: 480px) {
            .toc-panel {
                width: min(280px, calc(100vw - 20px));
                left: 50px;
            }
            
            .floating-toc.expanded .toc-toggle {
                margin-left: 0;
            }
        }

        /* Technical skills redesign: tighter and cleaner hierarchy */
        #skills .section-header {
            margin-bottom: 0.8rem;
        }

        #skills .skills-grid {
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 0.85rem;
        }

        #skills .skill-category {
            border-radius: 14px;
            padding: 0.95rem 1rem 0.9rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.04);
            box-shadow: none;
        }

        #skills .skill-category:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
            border-color: rgba(96, 165, 250, 0.35);
        }

        #skills .skill-category h3 {
            font-size: 1.02rem;
            margin-bottom: 0.72rem;
            padding-bottom: 0.5rem;
            gap: 0.42rem;
        }

        #skills .skill-category h3 i {
            font-size: 1.05rem;
        }

        #skills .skill-tags {
            gap: 0.4rem;
        }

        #skills .skill-tag {
            padding: 0.34rem 0.62rem;
            border-radius: 999px;
            font-size: 0.78rem;
            line-height: 1.15;
            background: rgba(255, 255, 255, 0.035);
            border: 1px solid rgba(255, 255, 255, 0.09);
        }

        #skills .skill-tag i {
            font-size: 0.72rem;
        }

        @media (max-width: 768px) {
            #skills .skills-grid {
                grid-template-columns: 1fr;
                gap: 0.72rem;
            }

            #skills .skill-category {
                padding: 0.82rem 0.88rem;
                border-radius: 12px;
            }

            #skills .skill-category h3 {
                font-size: 0.98rem;
                margin-bottom: 0.6rem;
            }

            #skills .skill-tag {
                padding: 0.3rem 0.52rem;
                font-size: 0.75rem;
            }
        }

        /* Compact spacing pass: reduce excessive empty vertical space */
        .content-section {
            padding: 2.25rem 1.75rem;
        }

        .first-content-section {
            padding-top: 1.25rem;
        }

        #about-education.content-section,
        #contact.content-section {
            padding-top: 2rem;
            padding-bottom: 2.25rem;
        }

        .experience-section {
            padding: 2.25rem 1.75rem;
        }

        .experience-section.first-content-section {
            padding-top: 1.25rem;
        }

        .portfolio-section {
            padding: clamp(1.5rem, 3vw, 2.25rem) 1.75rem clamp(2rem, 4vw, 2.75rem);
        }

        .about-main {
            padding: 1.5rem 1.75rem;
        }

        .contact-card,
        .skill-category,
        .overview-card {
            padding: 1.25rem;
        }

        @media (max-width: 900px) {
            .content-section,
            .experience-section {
                padding: 2rem 1.25rem;
            }

            .portfolio-section {
                padding: 1.5rem 1.25rem 2.25rem;
            }
        }

        /* Strong, obvious close buttons for modal UIs */
        .project-detail-modal .modal-close,
        .experience-detail-modal .modal-close,
        .image-modal-close,
        .modal .modal-actions .download-btn.secondary {
            background: rgba(220, 38, 38, 0.22) !important;
            border: 1px solid rgba(248, 113, 113, 0.6) !important;
            color: #fecaca !important;
        }

        .project-detail-modal .modal-close:hover,
        .experience-detail-modal .modal-close:hover,
        .image-modal-close:hover,
        .modal .modal-actions .download-btn.secondary:hover {
            background: rgba(220, 38, 38, 0.35) !important;
            border-color: rgba(252, 165, 165, 0.85) !important;
            color: #ffffff !important;
        }

        @media (max-width: 640px) {
            .project-detail-modal .modal-close,
            .experience-detail-modal .modal-close,
            .image-modal-close,
            .modal .modal-actions .download-btn.secondary {
                box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.25) !important;
            }
        }

        /* Home page simplification: reduce card/chip intensity */
        .about-main {
            border-radius: 14px;
        }

        .skill-category {
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.035);
        }

        .skill-tag {
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.025);
            border-color: rgba(255, 255, 255, 0.08);
            padding: 0.42rem 0.72rem;
        }

        /* Mobile TOC: smaller edge tab so it does not cover content */
        @media (max-width: 768px) {
            .floating-toc {
                top: 18% !important;
            }

            .toc-toggle {
                width: 40px !important;
                height: 40px !important;
                border-radius: 0 20px 20px 0 !important;
                font-size: 0.82rem !important;
                border-width: 1px !important;
            }

            .toc-panel {
                left: 40px !important;
                width: min(270px, calc(100vw - 18px)) !important;
            }
        }

        @media (max-width: 480px) {
            .floating-toc {
                top: 22% !important;
            }

            .toc-toggle {
                width: 36px !important;
                height: 36px !important;
                border-radius: 0 18px 18px 0 !important;
                font-size: 0.75rem !important;
            }

            .toc-panel {
                left: 36px !important;
                width: min(250px, calc(100vw - 14px)) !important;
            }
        }

        @media (max-width: 968px) {
            .floating-toc {
                display: none;
            }
        }

        /* Rework earlier education toggle into a compact section header style */
        .earlier-experiences-toggle {
            border-radius: 12px !important;
            padding: 1rem 1.1rem !important;
            min-height: 0 !important;
            flex-direction: row !important;
            align-items: flex-start !important;
            justify-content: space-between !important;
            gap: 0.9rem !important;
            text-align: left !important;
            background: rgba(255, 255, 255, 0.03) !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            box-shadow: none !important;
        }

        .earlier-experiences-toggle i {
            order: 2;
            margin-top: 0.1rem;
            font-size: 1rem !important;
            flex-shrink: 0;
        }

        .earlier-experiences-toggle span {
            order: 1;
            display: block;
            font-size: 1rem;
            font-weight: 700;
            line-height: 1.35;
        }

        .earlier-experiences-toggle small {
            order: 1;
            display: block;
            margin-top: 0.3rem !important;
            font-size: 0.8rem !important;
            line-height: 1.35;
        }

        .earlier-experiences-content.expanded {
            margin-top: 1rem !important;
            padding-top: 1rem !important;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        @media (max-width: 640px) {
            .earlier-experiences-container {
                padding: 1rem !important;
            }

            .earlier-experiences-toggle {
                padding: 0.9rem 0.95rem !important;
                border-radius: 10px !important;
            }

            .earlier-experiences-toggle span {
                font-size: 0.95rem !important;
            }
        }

        /* ------------------------------------------------------------------ */
        /* Performance Lite Overrides (for heavy/older browsers)             */
        /* ------------------------------------------------------------------ */
        .performance-lite .parallax-bg {
            display: none !important;
        }

        .performance-lite nav,
        .performance-lite .mobile-menu-content,
        .performance-lite .modal,
        .performance-lite .modal-content {
            backdrop-filter: none !important;
            box-shadow: none;
        }

        .performance-lite .glass-card,
        .performance-lite .contact-card,
        .performance-lite .downloads-card,
        .performance-lite .project-card,
        .performance-lite .stat-card,
        .performance-lite .download-item,
        .performance-lite .skill-category {
            backdrop-filter: none;
            box-shadow: none;
            transform: none !important;
        }

        .performance-lite .stat-card:hover,
        .performance-lite .project-card:hover,
        .performance-lite .glass-card:hover,
        .performance-lite .contact-card:hover,
        .performance-lite .download-item:hover,
        .performance-lite .skill-category:hover {
            box-shadow: none;
            transform: none;
        }

        .performance-lite .animate-on-scroll {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
        }

        .performance-lite .hero-section::before {
            background: linear-gradient(135deg, #0a0e27 0%, #1e3a8a 100%) !important;
        }

        .performance-lite .modal {
            background: rgba(6, 8, 20, 0.9);
        }

        .performance-lite .modal-content {
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        /* Earlier Experiences Section */
        .earlier-experiences-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
        }

        .earlier-experiences-toggle {
            width: 100%;
            padding: 1.5rem 2rem;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 2px solid var(--glass-border);
            border-radius: 16px;
            color: rgba(255, 255, 255, 0.9);
            font-family: inherit;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            text-align: center;
            position: relative;
        }

        .earlier-experiences-toggle:hover {
            background: rgba(37, 99, 235, 0.1);
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
        }

        .earlier-experiences-toggle i {
            font-size: 1.5rem;
            color: var(--primary-color);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .earlier-experiences-toggle.expanded i {
            transform: rotate(180deg);
        }

        .earlier-experiences-toggle small {
            font-size: 0.85rem;
            font-weight: 400;
            color: rgba(255, 255, 255, 0.6);
            display: block;
            margin-top: 0.25rem;
        }

        .earlier-experiences-content {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        padding 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0;
            margin-top: 0;
        }

        .earlier-experiences-content.expanded {
            max-height: 5000px;
            opacity: 1;
            padding: 2rem 0;
            margin-top: 2rem;
        }

        .earlier-experiences-content .timeline {
            padding-top: 1rem;
        }

        .earlier-experiences-content .timeline-item-wrapper {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.5s ease-out 0.2s, transform 0.5s ease-out 0.2s;
        }

        .earlier-experiences-content.expanded .timeline-item-wrapper {
            opacity: 1;
            transform: translateY(0);
        }

        .earlier-experiences-content .timeline-item-wrapper:nth-child(1) {
            transition-delay: 0.3s;
        }

        .earlier-experiences-content .timeline-item-wrapper:nth-child(2) {
            transition-delay: 0.4s;
        }

        .earlier-experiences-content .timeline-item-wrapper:nth-child(3) {
            transition-delay: 0.5s;
        }

        .earlier-experiences-content .timeline-item-wrapper:nth-child(n+4) {
            transition-delay: 0.6s;
        }

        /* Mobile reimplementation */
        @media (max-width: 968px) {
            .experience-section,
            .technical-expertise-section {
                padding: 1.5rem 1rem !important;
            }

            .experience-grid,
            .experience-section-at-glance .experience-grid,
            .experience-grid-earlier {
                grid-template-columns: 1fr !important;
                gap: 0.85rem;
                padding-bottom: 0.5rem;
            }

            .experience-card-compact-inner {
                padding: 1rem;
            }

            .experience-card-compact h3 {
                font-size: 1rem;
            }

            .experience-card-compact .exp-org {
                font-size: 0.85rem;
            }

            .experience-card-compact .exp-desc {
                font-size: 0.84rem;
                -webkit-line-clamp: 3;
                line-clamp: 3;
            }

            .exp-details-btn {
                width: 100%;
                justify-content: center;
            }

            .earlier-experiences-container {
                padding: 1rem 0;
            }

            .earlier-experiences-content.expanded {
                margin-top: 0.85rem;
                padding-top: 0.85rem;
            }

            .skills-expertise-card {
                padding: 1rem 1rem 0.95rem;
                border-radius: 14px;
            }

            .skills-expertise-columns {
                grid-template-columns: 1fr !important;
                gap: 0.9rem;
            }

            .skills-expertise-col-title {
                font-size: 0.92rem;
            }

            .skills-expertise-list li {
                font-size: 0.83rem;
            }

            .experience-detail-modal .modal-header,
            .experience-detail-modal-body {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            .experience-detail-modal-title {
                font-size: 1.05rem;
                padding-right: 2.6rem;
            }

            .experience-detail-modal .modal-close {
                top: 0.7rem;
                right: 0.7rem;
                width: 36px;
                height: 36px;
            }
        }

        @media (max-width: 520px) {
            .hero-section {
                min-height: 360px !important;
                height: min(58vh, 460px) !important;
            }

            .experience-card-compact .exp-tags {
                gap: 0.25rem;
            }

            .experience-card-compact .exp-tags .job-tag {
                font-size: 0.66rem;
                padding: 0.16rem 0.42rem;
            }

            .earlier-experiences-toggle {
                padding: 0.75rem 0.8rem !important;
            }
        }
