/* CSS Custom Properties - Modern Color Theme */
:root {
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-card: rgba(17, 17, 17, 0.8);
    --color-blue-dark: #0f172a;
    --color-purple-primary: #6366f1;
    --color-purple-light: #818cf8;
    --color-purple-glow: rgba(99, 102, 241, 0.4);
    --color-text-primary: #ffffff;
    --color-text-secondary: #d1d5db;
    --color-text-muted: #9ca3af;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-bg: radial-gradient(ellipse at top, #1e1b4b 0%, #0a0a0a 50%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 0.875rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-purple-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-purple-light);
}

/* Custom Scrollbar Track (RHS) */
.scrollbar-track {
    position: fixed;
    right: 0;
    top: 0;
    width: 4px;
    height: 100vh;
    background: rgba(99, 102, 241, 0.1);
    z-index: 9999;
    pointer-events: none;
}

.scrollbar-thumb {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: height 0.1s ease-out;
    box-shadow: 0 0 10px var(--color-purple-glow);
}

/* Murmuration Background */
.murmuration-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Background Gradient Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    z-index: -2;
    opacity: 0.6;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Tron-like Corner Effects */
.tron-corner {
    position: fixed;
    width: 200px;
    height: 200px;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tron-top-left {
    top: 0;
    left: 0;
    background: linear-gradient(135deg, transparent 0%, transparent 50%, var(--color-purple-primary) 50%, var(--color-purple-primary) 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    box-shadow: 0 0 20px var(--color-purple-glow);
}

.tron-top-right {
    top: 0;
    right: 0;
    background: linear-gradient(225deg, transparent 0%, transparent 50%, var(--color-purple-primary) 50%, var(--color-purple-primary) 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
    box-shadow: 0 0 20px var(--color-purple-glow);
}

.tron-bottom-left {
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, transparent 0%, transparent 50%, var(--color-purple-primary) 50%, var(--color-purple-primary) 100%);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    box-shadow: 0 0 20px var(--color-purple-glow);
}

.tron-bottom-right {
    bottom: 0;
    right: 0;
    background: linear-gradient(315deg, transparent 0%, transparent 50%, var(--color-purple-primary) 50%, var(--color-purple-primary) 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    box-shadow: 0 0 20px var(--color-purple-glow);
}

.tron-corner.visible {
    opacity: 0.6;
}

/* Main Header - Floating After Hero */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.floating {
    top: 1rem !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: auto;
    max-width: 600px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.75rem 1.5rem;
    animation: floatIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.main-header.scrolled {
    padding: 0.75rem 2rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header.floating .header-content {
    max-width: 100%;
    justify-content: center;
    gap: 1.5rem;
}

.header-name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled .header-name {
    font-size: 1rem;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-control-btn {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--color-text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 36px;
    height: 36px;
}

.music-control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.music-control-btn:hover::before {
    width: 200px;
    height: 200px;
}

.music-control-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--color-purple-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--color-purple-glow);
}

.music-control-btn i {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

/* Main Content */
.main-content {
    padding-top: 80px;
    padding-bottom: 100px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-photo-collage {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 2rem;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.hero-photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
    width: 100%;
    height: 100%;
    min-height: 120px;
    pointer-events: auto;
    background: rgba(99, 102, 241, 0.1);
}

.hero-photo-card.flipped {
    transform: rotateY(180deg);
}

.hero-photo-card-front,
.hero-photo-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-photo-card-front {
    transform: rotateY(0deg);
    z-index: 2;
}

.hero-photo-card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

.hero-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
}

.hero-photo-card:empty {
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo-card:empty::after {
    content: '📷';
    font-size: 2rem;
    opacity: 0.5;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.hero-tagline {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

.hero-tagline p {
    margin: 0;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--color-purple-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle 100px at center, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
}

.hero-cta:hover::before {
    opacity: 0.5;
}

.hero-cta:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--color-purple-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.hero-cta i {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.hero-cta span {
    position: relative;
    z-index: 1;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.02em;
}

.section-title i {
    width: 24px;
    height: 24px;
    color: var(--color-purple-primary);
}

/* Substack Section */
.substack-section {
    padding: 3rem 0;
}

.substack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.substack-post {
    background: var(--color-bg-card);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    display: block;
}

.substack-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.substack-post:hover {
    transform: translateY(-4px) translateZ(10px);
    border-color: var(--color-purple-primary);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.3);
}

.substack-post:hover::before {
    opacity: 0.05;
}

.substack-post-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.substack-post-content {
    padding: 1.25rem;
    position: relative;
    z-index: 1;
}

.substack-post-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.substack-post-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.loading {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem;
    grid-column: 1 / -1;
}

/* Interests Section */
.interests-section {
    padding: 3rem 0;
    background: rgba(17, 17, 17, 0.4);
}

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

.favorite-category {
    background: var(--color-bg-card);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.favorite-category::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle 150px at center, var(--color-purple-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
}

.favorite-category:hover {
    transform: translateY(-2px) translateZ(5px);
    border-color: var(--color-purple-primary);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.25);
}

.favorite-category:hover::before {
    opacity: 0.3;
}

/* Colored Glows for Favorite Categories */
.favorite-category.restaurants-glow {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.favorite-category.restaurants-glow::before {
    background: radial-gradient(circle 150px at center, rgba(239, 68, 68, 0.6) 0%, transparent 70%);
}

.favorite-category.restaurants-glow:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.favorite-category.bars-glow {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.favorite-category.bars-glow::before {
    background: radial-gradient(circle 150px at center, rgba(59, 130, 246, 0.6) 0%, transparent 70%);
}

.favorite-category.bars-glow:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.favorite-category.travel-glow {
    border-color: rgba(234, 179, 8, 0.3);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.2);
}

.favorite-category.travel-glow::before {
    background: radial-gradient(circle 150px at center, rgba(234, 179, 8, 0.6) 0%, transparent 70%);
}

.favorite-category.travel-glow:hover {
    border-color: rgba(234, 179, 8, 0.6);
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.4);
}

.favorite-category.travel-future-glow {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.favorite-category.travel-future-glow::before {
    background: radial-gradient(circle 150px at center, rgba(34, 197, 94, 0.6) 0%, transparent 70%);
}

.favorite-category.travel-future-glow:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

.favorite-category.network-glow {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.2);
}

.favorite-category.network-glow::before {
    background: radial-gradient(circle 150px at center, rgba(249, 115, 22, 0.6) 0%, transparent 70%);
}

.favorite-category.network-glow:hover {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

.favorite-category.movies-glow {
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.2);
}

.favorite-category.movies-glow::before {
    background: radial-gradient(circle 150px at center, rgba(236, 72, 153, 0.6) 0%, transparent 70%);
}

.favorite-category.movies-glow:hover {
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

.network-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.network-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 8px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.network-link::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle 100px at center, rgba(249, 115, 22, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
}

.network-link:hover::before {
    opacity: 0.5;
}

.network-link:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.5);
    transform: translateX(4px);
}

.network-link i {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    color: rgba(249, 115, 22, 0.8);
}

.network-link span {
    position: relative;
    z-index: 1;
    font-size: 0.8125rem;
}

.category-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.category-title i {
    width: 18px;
    height: 18px;
    color: var(--color-purple-primary);
}

.favorite-list {
    list-style: none;
    position: relative;
    z-index: 1;
}

.favorite-list li {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 0;
    line-height: 1.5;
}

.favorite-list li::before {
    content: '→';
    color: var(--color-purple-primary);
    margin-right: 0.5rem;
    font-weight: 600;
}

.location {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.travel-grid {
    display: grid;
    gap: 1.5rem;
}

.travel-grid h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.music-playlist {
    grid-column: 1 / -1;
}

.playlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.playlist-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    min-height: 120px;
    text-align: center;
}

.playlist-item::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle 100px at center, var(--color-purple-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
}

.playlist-item:hover::before {
    opacity: 0.3;
}

.playlist-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--color-purple-primary);
    transform: translateX(4px);
}

.playlist-item.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--color-purple-primary);
    position: relative;
}

.playlist-item.active::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 15px;
    background: conic-gradient(
        from 0deg,
        var(--color-purple-primary) 0deg,
        var(--color-purple-primary) calc(var(--progress-degrees, 0) * 1deg),
        transparent calc(var(--progress-degrees, 0) * 1deg),
        transparent 360deg
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 3px;
    pointer-events: none;
    z-index: 2;
}

.playlist-item-number {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.playlist-item-title {
    font-size: 0.75rem;
    color: var(--color-text-primary);
    position: relative;
    z-index: 1;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
}

.playlist-item.active .playlist-item-number {
    color: var(--color-purple-light);
}

.playlist-item.active .playlist-item-title {
    color: var(--color-purple-light);
    font-weight: 500;
}

/* Experience Section */
.experience-section {
    padding: 3rem 0;
}

.current-experiences {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.past-experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.experience-card.past {
    padding: 1.5rem;
}

.experience-card.past .experience-content {
    margin-top: 1rem;
}

.experience-card.past .experience-description {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.experience-card.past .company-logo,
.experience-card.past .company-logo-placeholder {
    width: 40px;
    height: 40px;
}

.experience-card.past .company-name {
    font-size: 1rem;
}

.experience-card.past .role-title {
    font-size: 0.8125rem;
}

.experience-card.past .time-period {
    font-size: 0.6875rem;
}

.experience-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle 200px at center, var(--color-purple-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
}

.experience-card:hover {
    transform: translateY(-3px) translateZ(8px);
    border-color: var(--color-purple-primary);
    box-shadow: 0 16px 32px rgba(99, 102, 241, 0.3);
}

.experience-card:hover::before {
    opacity: 0.2;
}

.experience-card.current {
    border-color: var(--color-purple-primary);
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.experience-card.cofounder {
    background: rgba(139, 92, 246, 0.08);
}

.experience-header {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.company-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    flex-shrink: 0;
}

.company-logo-placeholder {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo-placeholder i {
    width: 24px;
    height: 24px;
    color: white;
}

.company-details {
    flex: 1;
}

.company-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.role-title {
    font-size: 0.875rem;
    color: var(--color-purple-light);
    margin-bottom: 0.125rem;
    font-weight: 500;
}

.time-period {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.experience-content {
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.experience-description {
    color: var(--color-text-secondary);
    margin-bottom: 0.875rem;
    line-height: 1.6;
    font-size: 0.8125rem;
}

.experience-notes {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.experience-notes li {
    color: var(--color-text-secondary);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.625rem;
    line-height: 1.6;
    font-size: 0.8125rem;
}

.experience-notes li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-purple-primary);
    font-weight: 600;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 1.25rem 0;
}

.tag {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--color-purple-light);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tools-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.tools-intro,
.clients-intro {
    color: var(--color-text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.cofounder-details {
    margin-top: 1.25rem;
}

.cofounder-details h4 {
    color: var(--color-purple-light);
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.cofounder-details ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}

.cofounder-details li {
    color: var(--color-text-secondary);
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.625rem;
    line-height: 1.6;
    font-size: 0.8125rem;
}

.cofounder-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-purple-primary);
    font-size: 1rem;
    line-height: 1.4;
}

.cofounder-details a {
    color: var(--color-purple-light);
    text-decoration: none;
    border-bottom: 1px solid var(--color-purple-primary);
    transition: all 0.2s ease;
}

.cofounder-details a:hover {
    color: var(--color-purple-primary);
    border-bottom-color: var(--color-purple-light);
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 0;
    background: rgba(17, 17, 17, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle 100px at center, var(--color-purple-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
}

.gallery-item:hover {
    transform: translateY(-4px) translateZ(10px);
    border-color: var(--color-purple-primary);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.3);
}

.gallery-item:hover::before {
    opacity: 0.2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
    transition: transform 0.3s ease;
    opacity: 1;
    display: block;
}

.gallery-item:empty {
    background: rgba(99, 102, 241, 0.2);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:empty::after {
    content: '📷';
    font-size: 3rem;
    opacity: 0.5;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.photo-modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--color-text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(99, 102, 241, 0.4);
    border-color: var(--color-purple-primary);
    transform: rotate(90deg);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.gallery-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.film-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-purple-light);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.film-link:hover {
    color: var(--color-purple-primary);
}

.film-link i {
    width: 16px;
    height: 16px;
}

.designer-credit {
    font-family: 'Kalam', 'Comic Sans MS', 'Marker Felt', cursive;
    font-size: 0.875rem;
    color: #ffffff;
    font-style: italic;
    margin: 0;
    opacity: 1;
    letter-spacing: 0.5px;
    font-weight: 300;
    transform: rotate(-0.5deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Music Progress Bar */
.music-progress-container {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 999;
    background: rgba(99, 102, 241, 0.1);
}

.music-progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.music-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--color-purple-glow);
}

.music-progress-container:hover .music-progress-fill {
    height: 4px;
}

/* Bottom Toolbar - Shrinks on Scroll */
.bottom-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: calc(1rem + 3px);
}

.bottom-toolbar.scrolled {
    padding: 0.75rem 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.3);
}

.toolbar-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.toolbar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.toolbar-link::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle 80px at center, var(--color-purple-primary) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
}

.toolbar-link:hover::before {
    opacity: 0.3;
}

.toolbar-link:hover {
    color: var(--color-text-primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px) translateZ(5px);
}

.toolbar-link i {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

.toolbar-link:hover i {
    color: var(--color-purple-primary);
}

.toolbar-link span {
    position: relative;
    z-index: 1;
}

.bottom-toolbar.scrolled .toolbar-link {
    font-size: 0.75rem;
    padding: 0.375rem 0.875rem;
}

.bottom-toolbar.scrolled .toolbar-link i {
    width: 14px;
    height: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .main-header {
        padding: 1rem 1.25rem;
    }

    .main-header.scrolled {
        padding: 0.625rem 1.25rem;
    }

    .header-name {
        font-size: 1.125rem;
    }

    .main-header.scrolled .header-name {
        font-size: 0.9375rem;
    }

    .main-content {
        padding-top: 70px;
        padding-bottom: 90px;
    }

    .hero {
        min-height: 50vh;
        padding: 3rem 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .favorites-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .current-experiences {
        grid-template-columns: 1fr;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .company-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .past-experiences-grid {
        grid-template-columns: 1fr;
    }

    .company-logo,
    .company-logo-placeholder {
        width: 48px;
        height: 48px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .bottom-toolbar {
        padding: 0.875rem 1.25rem;
    }

    .toolbar-content {
        gap: 1rem;
    }

    .toolbar-link span {
        display: none;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .substack-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
