/* ============================================
   Spotify Mix Font
   ============================================ */
@font-face {
    font-family: 'Spotify Mix';
    src: url('./fonts/SpotifyMix-Regular.woff2') format('woff2'),
         url('./fonts/SpotifyMix-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('./fonts/SpotifyMix-RegularItalic.woff2') format('woff2'),
         url('./fonts/SpotifyMix-RegularItalic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('./fonts/SpotifyMix-Medium.woff2') format('woff2'),
         url('./fonts/SpotifyMix-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spotify Mix';
    src: url('./fonts/SpotifyMix-Bold.woff2') format('woff2'),
         url('./fonts/SpotifyMix-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spotify Mix Wide';
    src: url('./fonts/SpotifyMixWide-Regular.woff2') format('woff2'),
         url('./fonts/SpotifyMixWide-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spotify Mix Wide';
    src: url('./fonts/SpotifyMixWide-Bold.woff2') format('woff2'),
         url('./fonts/SpotifyMixWide-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Spotify Mix Narrow';
    src: url('./fonts/SpotifyMixNarrow-Bold.woff2') format('woff2'),
         url('./fonts/SpotifyMixNarrow-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS Variables & Base Styles
   ============================================ */
:root {
    --color-bg: #0a0a0a;
    --color-text: #e8e4df;
    --color-text-muted: #6b6660;
    --color-accent: #c9ff57;
    --color-border: #1f1f1f;
    
    --font-serif: 'Spotify Mix', -apple-system, sans-serif;
    --font-sans: 'Spotify Mix', -apple-system, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ============================================
   Interactive Particle Canvas
   ============================================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   Main Container
   ============================================ */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1200px) {
    main {
        padding: 0 60px;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg);
}

.nav-link {
    font-size: 14px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link.active {
    color: var(--color-text);
}

.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 0 40px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
    opacity: 0.3;
}

.hero-icon {
    font-size: 48px;
    margin-bottom: 48px;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
    width: fit-content;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-greeting {
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.hero-greeting .name {
    font-family: 'Spotify Mix', var(--font-sans);
    font-weight: 700;
    color: var(--color-accent);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 100%;
}

.hero-title .connector {
    font-family: 'Spotify Mix', var(--font-sans);
    font-weight: 400;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.01em;
    max-width: 100%;
    margin-top: 32px;
    color: var(--color-text-muted);
}

.hero-subtitle .focus {
    font-style: normal;
    color: var(--color-text);
}

.hero-title .role {
    font-family: 'Spotify Mix Wide', var(--font-sans);
    font-weight: 400;
    font-style: normal;
    transition: color 0.3s ease;
}

.hero-title .location {
    font-family: 'Spotify Mix Narrow', var(--font-sans);
    font-weight: 700;
    font-style: normal;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-title .company {
    font-family: 'Spotify Mix', var(--font-sans);
    font-weight: 500;
    font-style: normal;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-title .role:hover,
.hero-title .location:hover,
.hero-title .company:hover {
    color: var(--color-accent);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    animation: fadeInUp 1s var(--ease-out-expo) 0.5s both;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

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

/* ============================================
   Projects Section
   ============================================ */
.projects {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
}

.project {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
    padding: 80px 0 40px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), 
                transform 0.8s var(--ease-out-expo);
    border-top: 1px solid var(--color-border);
}

.project:first-child {
    border-top: none;
    padding-top: 40px;
}

.project.visible {
    opacity: 1;
    transform: translateY(0);
}

.project::before {
    display: none;
}

.project-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.project-year,
.project-role {
    font-size: 14px;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-year::after {
    content: '·';
    margin-left: 24px;
    color: var(--color-text-muted);
    opacity: 0.5;
}

.project-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    line-height: 1;
    transition: color 0.3s ease;
}

.project:hover .project-title {
    color: var(--color-accent);
}

.project-title .title-line {
    display: block;
    white-space: nowrap;
}

/* Project with Image Layout */
.project-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.project-with-image .project-content {
    display: flex;
    flex-direction: column;
}

.project-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
}

.project-image img,
.project-image video {
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

.project-image video {
    max-height: 45vh;
}

.project-image img[src*=".gif"] {
    max-height: 50vh;
    margin-top: 48px;
}

.project-image img[src*="artist page"] {
    max-height: 45vh;
}

.project-image .enhanced-header-img {
    max-height: 65vh;
    max-width: 100%;
    margin-top: 48px;
}

.project-image .enhanced-row-img {
    max-height: 55vh;
    max-width: 100%;
    margin-top: 48px;
}

.image-stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-stack img {
    max-height: 55vh;
    border-radius: 16px;
}

.image-stack .img-back {
    position: relative;
    transform: rotate(-5.16deg);
    z-index: 1;
}

.image-stack .img-front {
    position: relative;
    transform: rotate(3deg);
    z-index: 2;
    margin-left: 20px;
}

@media (max-width: 1024px) {
    .project-with-image {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-image {
        justify-content: center;
    }
    
    .project-image img,
    .project-image video {
        max-height: 50vh;
    }
    
    .image-stack {
        flex-direction: row;
        justify-content: center;
    }
    
    .image-stack img {
        max-height: 40vh;
    }
    
    .image-stack .img-back {
        transform: rotate(-3deg);
    }
    
    .image-stack .img-front {
        transform: rotate(2deg);
        margin-left: -30px;
    }
}

.project-description {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
    font-style: normal;
}

.project-link {
    display: inline-block;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

.project-link:hover {
    color: var(--color-accent);
}

.project-link:active,
.project-link:focus {
    outline: none;
    transform: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    display: flex;
    flex-direction: column;
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-cta {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-style: italic;
    margin-bottom: 16px;
    color: var(--color-text-muted);
}

.footer-email {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-muted);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.footer-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}

.footer-email:hover {
    color: var(--color-accent);
}

.footer-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 14px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.footer-right-links {
    display: flex;
    gap: 32px;
}

.footer-right-links a {
    font-size: 14px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right-links a:hover {
    color: var(--color-accent);
}

.footer-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--color-border) 20%,
        var(--color-border) 80%,
        transparent
    );
    margin-bottom: 24px;
}

.footer-copyright {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    main {
        padding: 0 20px;
    }
    
    .hero {
        padding: 24px 0 40px;
    }
    
    .hero-icon {
        font-size: 36px;
        margin-bottom: 32px;
    }
    
    .project {
        padding: 40px 0;
    }
    
    .project::before {
        top: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    #particle-canvas {
        opacity: 0.7;
    }
}

/* ============================================
   Page Load Animations
   ============================================ */
.hero-greeting,
.hero-title,
.hero-subtitle {
    opacity: 0;
    animation: revealUp 1s var(--ease-out-expo) forwards;
}

.hero-greeting {
    animation-delay: 0.1s;
}

.hero-title {
    animation-delay: 0.2s;
}

.hero-subtitle {
    animation-delay: 0.35s;
}

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

/* ============================================
   Animated Vessel (Cocktail Glass)
   ============================================ */
.vessel-container {
    position: relative;
    width: 200px;
    height: 250px;
    margin-top: 72px;
}

.vessel-glass {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(15% 0%, 85% 0%, 80% 88%, 50% 100%, 20% 88%);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.liquid-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(35px) contrast(1.4) saturate(1.3);
    background: rgba(0, 0, 0, 0.8);
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: blobFloat linear infinite;
}

.blob-1 {
    width: 280px;
    height: 280px;
    background: #748FFC;
    top: 30%;
    left: -30%;
    animation-duration: 10s;
    opacity: 0.9;
}

.blob-2 {
    width: 220px;
    height: 220px;
    background: #DA77F2;
    bottom: -10%;
    right: -20%;
    animation-duration: 14s;
    animation-direction: reverse;
    opacity: 0.85;
}

.blob-3 {
    width: 120px;
    height: 120px;
    background: #22D3EE;
    top: 50%;
    left: 40%;
    animation-duration: 7s;
    opacity: 0.7;
}

.blob-4 {
    width: 100px;
    height: 100px;
    background: #FFE066;
    top: 20%;
    right: 10%;
    animation-duration: 9s;
    opacity: 0.6;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(20px, -30px) rotate(90deg) scale(1.05); }
    50% { transform: translate(-10px, -50px) rotate(180deg) scale(0.95); }
    75% { transform: translate(-30px, -20px) rotate(270deg) scale(1.02); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.bubble {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    bottom: 0;
    animation: rise 4s ease-in infinite;
}

.bubble:nth-child(1) { left: 20%; animation-delay: 0s; animation-duration: 3.5s; }
.bubble:nth-child(2) { left: 40%; animation-delay: 1s; animation-duration: 4s; width: 4px; height: 4px; }
.bubble:nth-child(3) { left: 60%; animation-delay: 2s; animation-duration: 3s; }
.bubble:nth-child(4) { left: 75%; animation-delay: 0.5s; animation-duration: 4.5s; width: 5px; height: 5px; }
.bubble:nth-child(5) { left: 30%; animation-delay: 1.5s; animation-duration: 3.8s; width: 3px; height: 3px; }

@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-250px) scale(0.5); opacity: 0; }
}

.glass-shine {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        125deg,
        rgba(255,255,255,0.12) 0%,
        rgba(255,255,255,0) 30%,
        rgba(255,255,255,0) 70%,
        rgba(255,255,255,0.04) 100%
    );
    z-index: 3;
    pointer-events: none;
}

.glass-edge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    z-index: 4;
}

.particle-field {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0;
    animation: particlePulse 4s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; background: #FF6B6B; }
.particle:nth-child(2) { top: 30%; left: 5%; animation-delay: 0.5s; background: #FFA94D; }
.particle:nth-child(3) { top: 60%; left: 10%; animation-delay: 1s; background: #FFE066; }
.particle:nth-child(4) { top: 80%; left: 25%; animation-delay: 1.5s; background: #69DB7C; }
.particle:nth-child(5) { top: 15%; right: 15%; animation-delay: 0.3s; background: #22D3EE; }
.particle:nth-child(6) { top: 40%; right: 5%; animation-delay: 0.8s; background: #748FFC; }
.particle:nth-child(7) { top: 70%; right: 15%; animation-delay: 1.3s; background: #DA77F2; }
.particle:nth-child(8) { top: 90%; right: 30%; animation-delay: 1.8s; background: #F783AC; }

@keyframes particlePulse {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1.5); }
}
