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

/* Performance optimizations */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    body::before,
    body::after {
        animation: none !important;
    }
}

html {
    scroll-behavior: auto;
    scroll-padding-top: 100px;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: auto;
    position: relative;
    height: 100%;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: auto;
    position: relative;
}

body {
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100%;
}

html {
    position: relative;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #fff;
    background: #0a0a0a;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100%;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(4px 4px at 20% 30%, rgba(192, 132, 252, 0.7), transparent),
        radial-gradient(3px 3px at 60% 70%, rgba(168, 85, 247, 0.65), transparent),
        radial-gradient(3px 3px at 50% 50%, rgba(147, 51, 234, 0.7), transparent),
        radial-gradient(4px 4px at 80% 10%, rgba(168, 85, 247, 0.6), transparent),
        radial-gradient(2px 2px at 90% 20%, rgba(192, 132, 252, 0.65), transparent),
        radial-gradient(3px 3px at 33% 85%, rgba(168, 85, 247, 0.7), transparent),
        radial-gradient(4px 4px at 70% 15%, rgba(147, 51, 234, 0.65), transparent),
        radial-gradient(2px 2px at 15% 60%, rgba(168, 85, 247, 0.7), transparent),
        radial-gradient(3px 3px at 45% 25%, rgba(192, 132, 252, 0.65), transparent),
        radial-gradient(3px 3px at 85% 75%, rgba(168, 85, 247, 0.6), transparent),
        radial-gradient(2px 2px at 10% 40%, rgba(147, 51, 234, 0.7), transparent),
        radial-gradient(4px 4px at 75% 50%, rgba(168, 85, 247, 0.65), transparent),
        radial-gradient(2px 2px at 40% 80%, rgba(192, 132, 252, 0.7), transparent),
        radial-gradient(3px 3px at 95% 60%, rgba(168, 85, 247, 0.65), transparent),
        radial-gradient(4px 4px at 25% 15%, rgba(147, 51, 234, 0.6), transparent),
        radial-gradient(2px 2px at 55% 90%, rgba(168, 85, 247, 0.7), transparent),
        radial-gradient(3px 3px at 65% 35%, rgba(192, 132, 252, 0.65), transparent),
        radial-gradient(3px 3px at 30% 70%, rgba(168, 85, 247, 0.7), transparent),
        radial-gradient(2px 2px at 88% 45%, rgba(147, 51, 234, 0.65), transparent),
        radial-gradient(4px 4px at 5% 25%, rgba(168, 85, 247, 0.6), transparent),
        radial-gradient(circle at 35% 60%, rgba(168, 85, 247, 0.08) 0px, transparent 25%),
        radial-gradient(circle at 75% 35%, rgba(147, 51, 234, 0.06) 0px, transparent 20%);
    background-size: 200% 200%;
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 10%, 90% 20%, 33% 85%, 70% 15%, 15% 60%, 45% 25%, 85% 75%, 10% 40%, 75% 50%, 40% 80%, 95% 60%, 25% 15%, 55% 90%, 65% 35%, 30% 70%, 88% 45%, 5% 25%;
    animation: sparkleFlow 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
    will-change: transform, opacity;
    transform: translateZ(0);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(3px 3px at 35% 45%, rgba(192, 132, 252, 0.65), transparent),
        radial-gradient(4px 4px at 75% 25%, rgba(168, 85, 247, 0.6), transparent),
        radial-gradient(2px 2px at 25% 75%, rgba(147, 51, 234, 0.7), transparent),
        radial-gradient(3px 3px at 65% 55%, rgba(168, 85, 247, 0.65), transparent),
        radial-gradient(4px 4px at 15% 35%, rgba(192, 132, 252, 0.7), transparent),
        radial-gradient(2px 2px at 85% 65%, rgba(168, 85, 247, 0.6), transparent),
        radial-gradient(3px 3px at 45% 15%, rgba(147, 51, 234, 0.65), transparent),
        radial-gradient(4px 4px at 55% 85%, rgba(168, 85, 247, 0.65), transparent),
        radial-gradient(circle at 50% 20%, rgba(192, 132, 252, 0.05) 0px, transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.04) 0px, transparent 25%);
    background-size: 200% 200%;
    background-position: 0% 0%, 100% 100%, 50% 50%, 80% 10%, 90% 20%, 33% 85%, 70% 15%, 15% 60%, 45% 25%;
    animation: sparkleFlow 22s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes sparkleFlow {
    0% {
        opacity: 0.3;
        transform: translate3d(-50px, 50px, 0) scale(0.6);
        filter: brightness(0.6) saturate(1.2);
    }
    15% {
        opacity: 0.7;
        transform: translate3d(20px, -10px, 0) scale(1.2);
        filter: brightness(1.4) saturate(1.4);
    }
    30% {
        opacity: 1;
        transform: translate3d(80px, -50px, 0) scale(1.5);
        filter: brightness(1.8) saturate(1.6);
    }
    45% {
        opacity: 0.95;
        transform: translate3d(140px, -70px, 0) scale(1.4);
        filter: brightness(1.6) saturate(1.5);
    }
    60% {
        opacity: 0.8;
        transform: translate3d(200px, -60px, 0) scale(1.2);
        filter: brightness(1.3) saturate(1.3);
    }
    75% {
        opacity: 0.6;
        transform: translate3d(250px, -40px, 0) scale(1);
        filter: brightness(1) saturate(1.1);
    }
    90% {
        opacity: 0.4;
        transform: translate3d(300px, -20px, 0) scale(0.8);
        filter: brightness(0.7) saturate(1);
    }
    100% {
        opacity: 0.2;
        transform: translate3d(350px, 0px, 0) scale(0.6);
        filter: brightness(0.5) saturate(0.9);
    }
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(34, 34, 34, 0.5);
    will-change: background-color;
    width: 100%;
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    isolation: isolate;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    overflow: visible;
    position: relative;
    z-index: 10001;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }
}

.logo {
    font-size: 0.9rem;
    font-weight: normal;
    color: #999;
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo:hover {
    color: #a855f7;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 1;
    list-style: none;
    min-width: 0;
    overflow: visible;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 0.4rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
        flex: 1;
        min-width: 0;
        padding: 0.25rem 0;
    }
    
    .nav-links::-webkit-scrollbar {
        height: 2px;
        display: block;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: rgba(168, 85, 247, 0.3);
        border-radius: 2px;
    }
}

.nav-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: lowercase;
    transition: color 0.2s;
    white-space: nowrap;
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .nav-links a {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
}

.nav-links a:hover {
    color: #a855f7;
}

.nav-links a.active {
    color: #a855f7;
    font-weight: 500;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    padding-top: 100px;
    overflow: visible;
}

body {
    position: relative;
}

.hero {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
    margin-top: 0;
    position: relative;
    z-index: 1;
    scroll-margin-top: 100px;
}

.hero-content {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-bottom: 3rem;
    width: 100%;
}

.photo-container {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    margin-top: 0;
    padding-top: 0;
}

.photo-placeholder {
    width: 280px;
    height: 420px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #222;
    border-radius: 12px;
    color: #666;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.photo-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    transform: scale(1.1) translateZ(0);
    will-change: opacity;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 1.5s ease-in-out, visibility 0s 1.5s;
    pointer-events: none;
    z-index: 0;
}

.photo-img.active {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 1.5s ease-in-out, visibility 0s 0s;
    z-index: 1 !important;
    position: relative;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-placeholder:hover {
    border-color: #a855f7;
    transform: scale(1.03) translate3d(0, -2px, 0);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.2);
}

.photo-placeholder:hover::before {
    opacity: 1;
}

.hero-info {
    flex: 1;
    margin-top: 0;
    padding-top: 0;
    min-width: 0;
    overflow: visible;
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
    letter-spacing: -0.03em;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.title {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.title-location {
    color: #999;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    flex-wrap: wrap;
}

.location-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.work-auth-section {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.location-icon-small {
    width: 14px;
    height: 14px;
    color: #a855f7;
}

.work-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    cursor: pointer;
}

.work-icon-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    padding: 6px 10px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #a855f7;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.work-icon-wrapper::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 2px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #a855f7;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.work-icon-wrapper:hover::after,
.work-icon-wrapper:hover::before {
    opacity: 1;
}

.work-icon-small {
    width: 14px;
    height: 14px;
    color: #a855f7;
}

.work-auth-flags-inline {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 0.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.flag-item-inline {
    font-size: 0.85rem;
    color: #aaa;
    padding: 0.25rem 0.6rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 400;
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.flag-item-inline.eea-tooltip {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(168, 85, 247, 0.3);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    position: relative;
}

/* Blinking animation for EEA to indicate interactivity */
@keyframes eeaBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.25;
    }
}

.eea-blink {
    animation: eeaBlink 1s ease-in-out infinite;
}

/* Disable blink on mobile */
@media (max-width: 768px) {
    .eea-blink {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* Stop blinking when hovering or when tooltip is active (showing countries) */
.flag-item-inline.eea-tooltip:hover .eea-blink,
.flag-item-inline.eea-tooltip.active .eea-blink {
    animation: none;
    opacity: 1;
}

/* Blinking animation for work icon */
.work-icon-blink {
    animation: eeaBlink 1s ease-in-out infinite;
}

.work-icon-wrapper:hover .work-icon-blink,
.work-icon-wrapper:active .work-icon-blink {
    animation: none;
    opacity: 1;
}

/* "tap" hint removed - no longer needed */

.flag-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.eea-tooltip {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(168, 85, 247, 0.3);
    user-select: none;
    -webkit-user-select: none;
}

/* Disable EEA tooltip interaction on mobile */
@media (max-width: 768px) {
    .eea-tooltip {
        cursor: default !important;
        pointer-events: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    .flag-item-inline.eea-tooltip {
        cursor: default !important;
        pointer-events: none !important;
    }
}

.eea-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #e0e0e0;
    border: 1px solid rgba(168, 85, 247, 0.5);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: normal;
    width: 450px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    line-height: 1.8;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(168, 85, 247, 0.1) inset;
    column-count: 3;
    column-gap: 20px;
    text-align: left;
    letter-spacing: 0.01em;
}

.eea-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(168, 85, 247, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.eea-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.eea-tooltip:hover::before {
    opacity: 1;
}

.flag-item-inline:hover {
    background: #1a1a1a;
    border-color: #a855f7;
    color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

/* Remove active state highlight for EEA to prevent persistent highlight */
.flag-item-inline.eea-tooltip:active {
    background: rgba(168, 85, 247, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.2) !important;
    color: #aaa !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Ensure no highlight when tooltip is closed */
.flag-item-inline.eea-tooltip:not(.active):active {
    background: rgba(168, 85, 247, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.2) !important;
}

/* Remove highlight immediately after click on mobile */
@media (max-width: 768px) {
    .flag-item-inline.eea-tooltip:active {
        background: rgba(168, 85, 247, 0.08) !important;
        border-color: rgba(168, 85, 247, 0.2) !important;
    }
    
    /* Force remove highlight after a brief moment */
    .flag-item-inline.eea-tooltip:not(.active) {
        background: rgba(168, 85, 247, 0.08) !important;
        border-color: rgba(168, 85, 247, 0.2) !important;
    }
}

.work-icon-wrapper:active::after,
.work-icon-wrapper:active::before {
    opacity: 1;
}

.eea-tooltip:active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
    visibility: visible;
}

.eea-tooltip:active::before {
    opacity: 1;
}

/* Mobile overlay for EEA tooltip */
@media (max-width: 768px) {
    .eea-tooltip::after {
        /* Completely override desktop positioning immediately */
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        bottom: auto !important;
        right: auto !important;
        transform: translateX(-50%) translateY(-50%) !important;
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
        padding: 20px 16px !important;
        font-size: 0.8rem !important;
        column-count: 2 !important;
        column-gap: 20px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        max-height: 75vh !important;
        overflow-y: auto !important;
        z-index: 10000 !important;
        -webkit-overflow-scrolling: touch !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        display: block !important;
        /* No transition on transform to prevent movement - override desktop transition */
        transition: opacity 0.15s ease, visibility 0.15s ease !important;
        -webkit-transition: opacity 0.15s ease, visibility 0.15s ease !important;
    }
    
    .eea-tooltip::before {
        display: none !important;
    }
    
    .eea-tooltip.active::after {
        opacity: 1 !important;
        visibility: visible !important;
        /* Ensure same transform - no movement */
        transform: translateX(-50%) translateY(-50%) !important;
        display: block !important;
        pointer-events: auto !important;
        z-index: 10001 !important;
        content: attr(data-tooltip) !important;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        color: #e0e0e0 !important;
        border: 1px solid rgba(168, 85, 247, 0.5) !important;
        /* No transition on active state */
        transition: opacity 0.15s ease, visibility 0.15s ease !important;
        /* Force visibility - important for deployment */
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
        max-height: 75vh !important;
        overflow-y: auto !important;
    }
    
    .eea-tooltip:hover::after {
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Backdrop overlay */
    .eea-tooltip-backdrop {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.7) !important;
        z-index: 9999 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.2s ease, visibility 0.2s ease !important;
        pointer-events: none !important;
        touch-action: none !important;
        display: block !important;
    }
    
    .eea-tooltip-backdrop.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
        display: block !important;
    }
    
    /* Prevent body scroll when tooltip is active */
    body.eea-tooltip-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
}

.social-link-tooltip:active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
    visibility: visible;
}

.social-link-tooltip:active::before {
    opacity: 1;
}

.avail-icon {
    width: 14px;
    height: 14px;
    color: #10b981;
}

.location-separator {
    color: #666;
    margin: 0 0.5rem;
}

.title-icon {
    width: 16px;
    height: 16px;
    color: #a855f7;
}

.tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 1rem 0;
    width: 100%;
    overflow: visible;
}

.work-auth {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.auth-badge {
    padding: 0.25rem 0.7rem;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 12px;
    color: #a855f7;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.auth-badge:hover {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}


.summary {
    margin: 1rem 0;
    font-size: 1.15rem;
    color: #ddd;
    line-height: 1.7;
    font-weight: 300;
    max-width: calc(100% - 0.5rem);
    box-sizing: border-box;
}

.summary p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0 0 0;
    flex-wrap: wrap;
}

.work-authorisation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #222;
}

.work-auth-label {
    display: block;
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.work-auth-flags {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.flag-item {
    font-size: 0.85rem;
    color: #aaa;
    padding: 0.25rem 0.6rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 400;
}

.flag-item:hover {
    background: #1a1a1a;
    border-color: #a855f7;
    color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}


.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    text-decoration: none;
    color: #ccc;
    transition: all 0.2s ease;
    padding: 0;
}

.social-link:hover {
    background: #1a1a1a;
    border-color: #a855f7;
    color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.social-link-tooltip {
    position: relative;
}

.social-link-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.social-link-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid rgba(168, 85, 247, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.social-link-tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.social-link-tooltip:hover::before {
    opacity: 1;
}

.social-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.social-emoji {
    font-size: 20px;
    line-height: 1;
    display: inline-block;
}

.social-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

.tag {
    padding: 0.25rem 0.7rem;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 12px;
    font-size: 0.8rem;
    color: #a855f7;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.tag:hover {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.intro-text {
    margin-top: 2rem;
    color: #bbb;
    line-height: 1.9;
    font-size: 1.05rem;
    max-width: 700px;
}

.intro-text p {
    margin-bottom: 1rem;
    font-weight: 300;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: #a855f7;
    color: #fff;
    border: 1px solid #a855f7;
}

.btn-primary:hover {
    background: #9333ea;
    border-color: #9333ea;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #333;
}

.btn-secondary:hover {
    background: #111;
    border-color: #a855f7;
    color: #a855f7;
}

.highlights {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.highlight-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-content {
    flex: 1;
}

.highlight-content strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.highlight-content p {
    color: #ccc;
    margin: 0;
    line-height: 1.6;
}

.section {
    padding: 3rem 0;
    border-bottom: 1px solid #222;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
    visibility: hidden;
    will-change: opacity, transform;
    position: relative;
    z-index: 1;
    scroll-margin-top: 100px;
}

.section.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    visibility: visible;
    z-index: 1;
}

.section.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    visibility: visible;
}


.section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

.section p {
    color: #bbb;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: 700px;
}

#bio {
    margin-right: -2rem;
    padding-right: 2rem;
    width: calc(100% + 2rem);
    max-width: calc(1100px + 2rem);
}

.about-content {
    max-width: none;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #ddd;
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    max-width: none;
    width: 100%;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.education-in-bio {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

.education-in-bio h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.education-item-bio {
    margin-bottom: 2rem;
}

.education-item-bio:last-child {
    margin-bottom: 0;
}

.education-header-bio {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.education-degree-bio {
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
}

.education-year-bio {
    font-size: 0.95rem;
    color: #888;
    font-weight: 400;
}

.education-institution-bio {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 0.25rem;
}

.education-grade-bio {
    font-size: 0.9rem;
    color: #888;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2rem 1.25rem;
    margin-top: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* First row: 3 logos positioned in gaps */
.journey-grid .journey-item:nth-child(1) {
    grid-column: 2 / 4;
}

.journey-grid .journey-item:nth-child(2) {
    grid-column: 4 / 6;
}

.journey-grid .journey-item:nth-child(3) {
    grid-column: 6 / 8;
}

/* Second row: 4 logos evenly spaced */
.journey-grid .journey-item:nth-child(4) {
    grid-column: 1 / 3;
}

.journey-grid .journey-item:nth-child(5) {
    grid-column: 3 / 5;
}

.journey-grid .journey-item:nth-child(6) {
    grid-column: 5 / 7;
}

.journey-grid .journey-item:nth-child(7) {
    grid-column: 7 / 9;
}

.journey-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    justify-content: flex-start;
}

.journey-item > * {
    flex-shrink: 0;
}

.journey-item:hover {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
}

.journey-logo {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    position: relative;
}

.journey-logo img[src="photos/gsoc-logo.png"] {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    visibility: visible;
    opacity: 1;
}

.journey-logo img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    filter: brightness(0.95);
    transition: filter 0.3s ease, transform 0.3s ease;
    display: block;
}

.journey-item:hover .journey-logo img {
    filter: brightness(1.2);
    transform: scale(1.08);
}

.journey-item:hover .journey-name {
    color: #a855f7;
}

.journey-item:hover .journey-dates {
    color: #a855f7;
}

.logo-placeholder {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    color: #a855f7;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.75rem;
    text-align: center;
}

.journey-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0.25rem;
}

.journey-dates {
    font-size: 0.8rem;
    color: #888;
    font-weight: 400;
    min-height: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.education {
    max-width: 900px;
}

.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.education-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #222;
}

.education-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.education-degree {
    font-weight: 500;
    color: #fff;
    font-size: 1rem;
}

.education-year {
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
}

.education-institution {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.education-grade {
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
}

#experience {
    margin-right: -2rem;
    padding-right: 2rem;
    width: calc(100% + 2rem);
    max-width: calc(1100px + 2rem);
}

#skills {
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    width: calc(100% + 4rem);
    max-width: calc(1100px + 4rem);
}

.experience-container {
    max-width: 100%;
    width: 100%;
}

.experience-subsection {
    margin-bottom: 3rem;
}

.experience-subsection:last-child {
    margin-bottom: 0;
}

.experience-accordion {
    max-width: 100%;
    width: 100%;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.5);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(20, 20, 20, 0.7);
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.accordion-title {
    flex: 1;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #a855f7;
    transition: transform 0.3s ease;
    line-height: 1;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 5000px;
    padding: 1.5rem;
}

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

.experience-details p {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
    margin: 0;
    text-align: justify;
    max-width: 100%;
}

.publication-link {
    color: #a855f7;
    text-decoration: none;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.publication-link:hover {
    color: #c084fc;
    border-bottom-color: #a855f7;
}

.experience-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-details-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.experience-details-list li {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-details-list li:before {
    content: "•";
    color: #a855f7;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.experience-details-list li:last-child {
    margin-bottom: 0;
}

.learning-topics {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.learning-intro {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.topic-category {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 8px;
    padding: 1.25rem;
}

.topic-category h4 {
    color: #a855f7;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

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

.topics-list li {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.topics-list li:before {
    content: "→";
    color: #a855f7;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.topics-list li:last-child {
    margin-bottom: 0;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #222;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-title {
    font-weight: 500;
    color: #fff;
    font-size: 1.05rem;
}

.experience-date {
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
    white-space: nowrap;
}

.experience-company {
    color: #a855f7;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.experience-location {
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
}

.experience-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.experience-details li {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.experience-details li::before {
    content: '—';
    color: #a855f7;
    position: absolute;
    left: 0;
    font-weight: 400;
}

.awards-container {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.award-item {
    margin-bottom: 0;
    padding: 1rem;
    border: 1px solid #333;
    border-radius: 8px;
    background: #111;
    transition: all 0.2s ease;
}

.award-item:hover {
    background: #1a1a1a;
    border-color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.award-title {
    font-weight: 500;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.award-meta {
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.3;
}

#recommendations {
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    width: calc(100% + 4rem);
    max-width: calc(1100px + 4rem);
}

.recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.recommendations-header h2 {
    margin: 0;
}

.recommendations-link-inline {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
}

.recommendations-container {
    margin-top: 2rem;
    width: 100%;
}

.recommendations-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 0 2rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
}

.recommendations-scroll::-webkit-scrollbar {
    height: 8px;
}

.recommendations-scroll::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
    border-radius: 4px;
}

.recommendations-scroll::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.5);
    border-radius: 4px;
}

.recommendations-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.7);
}

.recommendation-card {
    flex: 0 0 380px;
    min-width: 380px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
}

.recommendation-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recommendation-text {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300;
    font-style: italic;
    margin: 0 0 1.5rem 0;
    flex: 1;
}


.recommendation-author {
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding-top: 1rem;
    margin-top: auto;
}

.recommendation-author-name {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.recommendation-author-title {
    color: #888;
    font-size: 0.85rem;
}


.recommendations-link {
    color: #a855f7;
    text-decoration: none;
    border-bottom: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.recommendations-link:hover {
    color: #c084fc;
    border-bottom-color: #a855f7;
}

#skills {
    margin-left: -2rem;
    padding-left: 2rem;
    width: calc(100% + 2rem);
}

.skills-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    background: rgba(26, 26, 26, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

/* Wrapper for skills table to enable horizontal scroll on mobile */
.skills-table-wrapper {
    width: 100%;
    overflow-x: visible;
    overflow-y: visible;
    position: relative;
}

.skills-table thead {
    background: rgba(168, 85, 247, 0.1);
}

.skills-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #a855f7;
    border-bottom: 2px solid rgba(168, 85, 247, 0.3);
}

.skills-table td {
    padding: 0.75rem 1.25rem;
    color: #ddd;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.skills-table tbody tr:last-child td {
    border-bottom: none;
}

.skills-table tbody tr:hover {
    background: rgba(168, 85, 247, 0.05);
}

.skills-proficiency {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 100%;
    width: 100%;
}

.proficiency-column {
    display: flex;
    flex-direction: column;
}

.proficiency-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #a855f7;
    margin-bottom: 1rem;
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.skill-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: default;
}

.skill-tag:hover {
    background: #1a1a1a;
    border-color: #a855f7;
    color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.skill-category {
    display: flex;
    flex-direction: column;
}

.skill-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

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

.skill-list li {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
}

.skill-list li::before {
    content: '•';
    color: #a855f7;
    position: absolute;
    left: 0;
    font-weight: 600;
}

.footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.footer.visible {
    opacity: 1;
    visibility: visible;
}

.footer p {
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    margin: 0.25rem 0;
}

.footer-edited {
    color: #555;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Reduce sparkle complexity on mobile for better performance */
@media (max-width: 768px) {
    .top-nav {
        z-index: 10000 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    main {
        padding-top: 80px;
    }
    
    html {
        scroll-padding-top: 80px;
    }
    
    .section {
        scroll-margin-top: 80px;
    }
    
    .hero {
        min-height: calc(100vh - 180px);
    }
    
    body::before,
    body::after {
        animation-duration: 30s;
        opacity: 0.5;
    }
    
    body::after {
        display: none; /* Disable second layer on mobile */
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .photo-container {
        align-self: center;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .name {
        font-size: 2rem;
        text-align: center;
    }
    
    .title {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .title {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .title-location {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .location-text {
        justify-content: center;
    }
    
    .work-auth-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }
    
    .work-auth-flags-inline {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .photo-placeholder {
        width: 200px;
        height: 280px;
    }
    
    .nav-container {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
        overflow: hidden;
    }
    
    .nav-links {
        gap: 0.4rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
        flex: 1;
        min-width: 0;
        padding: 0.25rem 0;
    }
    
    .nav-links::-webkit-scrollbar {
        height: 2px;
        display: block;
    }
    
    .nav-links::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .nav-links::-webkit-scrollbar-thumb {
        background: rgba(168, 85, 247, 0.3);
        border-radius: 2px;
    }
    
    .nav-links a {
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.35rem 0.6rem;
        display: inline-block;
    }
    
    .logo {
        font-size: 0.8rem;
        flex-shrink: 0;
        padding: 0.35rem 0.5rem;
    }
    
    .hero-info {
        text-align: center;
        width: 100%;
        min-width: 0;
        overflow: visible;
    }
    
    .summary {
        text-align: left;
        font-size: 1rem;
        width: 100%;
    }
    
    .tags-row {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        overflow: visible;
    }
    
    .tags {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
    
    main {
        padding: 80px 1rem 0 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .section {
        padding: 2rem 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    #bio,
    #experience,
    #skills,
    #recommendations,
    #awards {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        width: calc(100% + 2rem);
        max-width: calc(100% + 2rem);
        box-sizing: border-box;
        overflow-x: visible;
    }
    
    #skills {
        overflow-x: visible !important;
    }
    
    .about-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .about-content p {
        width: 100%;
        max-width: 100%;
    }
    
    .experience-accordion,
    .accordion-item,
    .accordion-content {
        width: 100%;
        max-width: 100%;
    }
    
    .skills-table {
        width: 100%;
        max-width: 100%;
    }
    
    .recommendations-container {
        width: 100%;
        max-width: 100%;
    }
    
    .awards-container {
        width: 100%;
        max-width: 100%;
    }
    
    .skills-table-wrapper {
        width: 100%;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
        display: block !important;
        position: relative;
        max-width: 100vw;
    }
    
    .skills-table-wrapper::-webkit-scrollbar {
        height: 6px;
        display: block;
    }
    
    .skills-table-wrapper::-webkit-scrollbar-track {
        background: rgba(26, 26, 26, 0.5);
        border-radius: 3px;
    }
    
    .skills-table-wrapper::-webkit-scrollbar-thumb {
        background: rgba(168, 85, 247, 0.5);
        border-radius: 3px;
    }
    
    .skills-table-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(168, 85, 247, 0.7);
    }
    
    .skills-table {
        font-size: 0.85rem;
        display: table !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        min-width: 600px !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        border-collapse: collapse;
    }
    
    .skills-table::-webkit-scrollbar {
        height: 6px;
        display: block;
    }
    
    .skills-table::-webkit-scrollbar-track {
        background: rgba(26, 26, 26, 0.5);
        border-radius: 3px;
    }
    
    .skills-table::-webkit-scrollbar-thumb {
        background: rgba(168, 85, 247, 0.5);
        border-radius: 3px;
    }
    
    .skills-table::-webkit-scrollbar-thumb:hover {
        background: rgba(168, 85, 247, 0.7);
    }
    
    .skills-table th,
    .skills-table td {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .skills-proficiency {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(168, 85, 247, 0.3) transparent;
        width: 100%;
    }
    
    .skills-proficiency::-webkit-scrollbar {
        height: 6px;
        display: block;
    }
    
    .skills-proficiency::-webkit-scrollbar-track {
        background: rgba(26, 26, 26, 0.5);
        border-radius: 3px;
    }
    
    .skills-proficiency::-webkit-scrollbar-thumb {
        background: rgba(168, 85, 247, 0.5);
        border-radius: 3px;
    }
    
    .skills-proficiency::-webkit-scrollbar-thumb:hover {
        background: rgba(168, 85, 247, 0.7);
    }
    
    .proficiency-title {
        font-size: 1rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
    
    .awards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .award-item {
        padding: 0.75rem;
    }
    
    .award-title {
        font-size: 0.85rem;
    }
    
    .award-meta {
        font-size: 0.75rem;
    }
    
    .recommendation-card {
        flex: 0 0 320px;
        min-width: 320px;
        padding: 1.5rem;
    }
    
    .recommendation-text {
        font-size: 0.95rem;
    }
    
    .recommendations-scroll {
        gap: 1rem;
    }
    
    .recommendations-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    /* Reset grid positioning on mobile - let items flow naturally */
    .journey-grid .journey-item:nth-child(1),
    .journey-grid .journey-item:nth-child(2),
    .journey-grid .journey-item:nth-child(3),
    .journey-grid .journey-item:nth-child(4),
    .journey-grid .journey-item:nth-child(5),
    .journey-grid .journey-item:nth-child(6),
    .journey-grid .journey-item:nth-child(7) {
        grid-column: auto;
    }
    
    .journey-item {
        padding: 0.75rem 0.5rem;
        gap: 0.4rem;
    }
    
    .journey-item > * {
        width: 100%;
    }
    
    .journey-logo {
        height: 70px;
        margin-bottom: 0.5rem;
        min-height: 70px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .journey-logo img[src="photos/gsoc-logo.png"] {
        position: relative;
        z-index: 1;
        max-width: 100% !important;
        max-height: 70px !important;
        width: auto !important;
        height: auto !important;
    }
    
    .journey-logo img {
        max-height: 70px;
        max-width: 90%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .journey-logo img[src="photos/gsoc-logo.png"] {
        max-width: 100%;
        max-height: 70px;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .logo-placeholder {
        height: 70px;
        font-size: 0.65rem;
        padding: 0.5rem;
        line-height: 1.2;
    }
    
    .journey-name {
        font-size: 0.8rem;
        min-height: 2.2em;
        line-height: 1.3;
        margin-top: 0;
    }
    
    .journey-dates {
        font-size: 0.7rem;
        min-height: 1.1em;
        line-height: 1.2;
        margin-top: 0.25rem;
    }
    
    .recommendation-card {
        flex: 0 0 320px;
        min-width: 320px;
        padding: 1.5rem;
    }
    
    .recommendation-text {
        font-size: 0.95rem;
    }
    
    .recommendations-scroll {
        gap: 1rem;
    }
}
