/* ===================================
   CUSTOM FONTS
   Note: You'll need to add your Qurova and Britti Sans fonts
   For now, I'm using similar fallback fonts
   =================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@font-face {
   font-family: 'Qurova';
   src: url('Assets/Fonts/Qurova/Qurova-Bold.woff2') format('woff2');
   font-weight: 700;
   font-style: normal;
   font-display: swap;
}
@font-face {
   font-family: 'BrittiSans';
   src: url('Assets/Fonts/BrittiSans/BrittiSans-Semibold.woff2') format('woff2');
   font-weight: 700;
   font-style: normal;
   font-display: swap;
}

/* Font fallbacks - Replace these with your custom fonts later */
:root {
    --font-heading: 'Qurova', sans-serif;
    --font-body: 'BrittiSans', sans-serif;
    
    /* OKLCH Colors - Better perceptual uniformity */
    --color-bg: oklch(98% 0.01 15 / 1); /* #fdf5f6 */
    --color-text: oklch(0% 0 0 / 1); /* #000000 */
    --color-text-light: oklch(44% 0 0 / 1); /* #888888 */
    --color-border: oklch(60% 0 0 / 1); /* #888888 */
    
    /* Fallback for older browsers */
    @supports not (color: oklch(0% 0 0)) {
        --color-bg: #fdf5f6;
        --color-text: #000000;
        --color-text-light: #6b6b6b;
        --color-border: #888888;
    }
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

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

body {
    font-family: var(--font-body), "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   NAVIGATION
   =================================== */

.navigation {
    position: fixed;
    top: 2%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    gap: 32px;
    z-index: 600;
    padding: 16px 32px;
    border-radius: 50px;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Frosted glass effect when scrolled */
.navigation.scrolled {
    background: rgba(253, 245, 246, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-link {
    font-size: clamp(20px, 1.5vw, 28px);
    font-weight: 400;
    color: var(--color-text);
    transition: font-weight 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-link.active {
    font-weight: 600;
}

/* Active section indicator dot - only shows when scrolled */
.navigation.scrolled .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 5px;
    height: 5px;
    background-color: var(--color-text);
    border-radius: 50%;
    animation: dotSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Hidden state for non-active items - smooth transition */
.navigation.scrolled .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 5px;
    height: 5px;
    background-color: var(--color-text);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Slide up animation from bottom */
@keyframes dotSlideUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px) scale(0.5);
    }
    60% {
        transform: translateX(-50%) translateY(-2px) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.nav-link:hover {
    font-weight: 600;
}

/* ===================================
   CONTAINER & LAYOUT
   =================================== */

.container {
    padding: 40px 40px;
    max-width: 1920px;
    margin: 0 auto;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    display: flex;
    gap: 0;
    min-height: auto;
    margin-top: 4%;
    margin-bottom: 80px;
    position: relative;
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
}

/* Vertical divider line - matches sidebar width exactly */
.hero::after {
    content: '';
    position: absolute;
    right: clamp(400px, 28vw, 520px);
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--color-text);
    transition: right 0.3s ease;
    margin-right: -1px; /* Account for border width */
}

.hero-content {
    flex: 1;
    max-width: none;
    padding-right: clamp(60px, 5vw, 80px);
    margin-right: 50px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 3.5vw, 64px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0;
    transition: font-size 0.3s ease;
}

/* Fixed height container wrapper */
.phrase-container {
    height: 220px;
    margin-top: clamp(10px, 1.5vw, 25px);
    margin-bottom: clamp(50px, 6vw, 90px);
    position: relative;
}

/* Phrase inside can be any size */
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(40px, 4vw, 72px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text-light);
    letter-spacing: clamp(2px, 0.3vw, 5px);
    margin: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-info {
    display: flex;
    gap: clamp(40px, 6vw, 100px);
}

.info-block h2 {
    font-size: clamp(18px, 1.5vw, 26px);
    font-weight: 600;
    margin-bottom: 8px;
    transition: font-size 0.3s ease;
}

.info-block p {
    font-size: clamp(18px, 1.5vw, 26px);
    color: var(--color-text-light);
    transition: font-size 0.3s ease;
}

/* ===================================
   SIDEBAR
   =================================== */

.sidebar {
    width: clamp(400px, 28vw, 520px);
    flex-shrink: 0;
    padding-left: 50px;
}

.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 30%;
    overflow: hidden;
    margin-bottom: 28px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-title {
    font-size: clamp(20px, 1.6vw, 28px);
    font-weight: 600;
    margin-bottom: 12px;
    transition: font-size 0.3s ease;
}

.sidebar-bio {
    font-size: clamp(16px, 1.3vw, 22px);
    line-height: 1.4;
    color: var(--color-text-light);
    margin-bottom: 32px;
    transition: font-size 0.3s ease;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.social-icon img {
    width: 100%;
    height: 100%;
}

/* ===================================
   LOCATION WIDGET - COMPACT VERSION
   =================================== */

/* Profile and Map Row (Desktop/Tablet) */
.profile-map-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
}

.profile-image {
    width: 110px;
    height: 110px;
    border-radius: 30%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-widget-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.location-mini {
    display: flex;
    gap: 8px;
    align-items: center;
}

.location-pin {
    font-size: 16px;
}

.location-city {
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.vacation-badge {
    display: none;
    font-size: clamp(12px, 1.1vw, 14px);
    color: var(--color-text);
    background: rgba(255, 200, 100, 0.3);
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 500;
}

.vacation-badge.show {
    display: inline-block;
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.weather-icon {
    font-size: 20px;
}

.weather-temp {
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 600;
    color: var(--color-text);
}

.weather-desc {
    font-size: clamp(12px, 1.1vw, 16px);
    color: var(--color-text-light);
}

/* Hide map container */
.location-map-small {
    display: none;
}

/* Mobile Location Widget - Top Left Corner */
.location-widget-mobile {
    display: none;
}

.sidebar-title {
    font-size: clamp(20px, 1.6vw, 28px);
    font-weight: 600;
    margin-bottom: 12px;
    transition: font-size 0.3s ease;
}

/* ===================================
   NDA PASSWORD MODAL
   =================================== */

.nda-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.nda-modal-content {
    background: var(--color-bg);
    padding: 40px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.nda-modal-title {
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text);
}

.nda-modal-description {
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--color-text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

.nda-password-input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    font-size: 16px;
    line-height: 1.5;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: white;
    margin-bottom: 16px;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
    height: 48px;
    box-sizing: border-box;
}

.nda-password-wrapper {
    position: relative;
    width: 100%;
}

.nda-password-toggle {
    position: absolute;
    right: 14px;
    top: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.nda-password-toggle:hover {
    opacity: 1;
}

.nda-password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-text);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: block;
}

.nda-password-input:focus {
    outline: none;
    border-color: var(--color-text);
}

.nda-password-input.error {
    border-color: #ff4444;
    animation: shake 0.5s ease;
}

.nda-modal-buttons {
    display: flex;
    gap: 12px;
}

.nda-btn {
    flex: 1;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    border: none;
}

.nda-btn-primary {
    background: var(--color-text);
    color: var(--color-bg);
}

.nda-btn-primary:hover {
    background: #333;
}

.nda-btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.nda-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.nda-error-message {
    color: #ff4444;
    font-size: 14px;
    margin-top: -8px;
    margin-bottom: 16px;
    display: none;
}

.nda-error-message.show {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ===================================
   OTHER PROJECTS ACCORDION
   =================================== */

.other-projects-accordion {
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 0;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.10);
    border-bottom: 1px solid rgba(0,0,0,0.10);
    cursor: pointer;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
}

.accordion-trigger:hover .accordion-title {
    opacity: 0.7;
}

.accordion-title {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 600;
    color: var(--color-text);
    transition: opacity 0.2s ease;
}

.accordion-count {
    font-size: clamp(13px, 1.1vw, 15px);
    color: var(--color-text-light);
    font-weight: 400;
    background: rgba(0,0,0,0.06);
    padding: 2px 9px;
    border-radius: 20px;
}

.accordion-icon {
    margin-left: auto;
    margin-right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    transition:
        background  0.2s ease,
        transform   0.4s cubic-bezier(0.34, 1.20, 0.64, 1);
    flex-shrink: 0;
}

.accordion-icon::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    transform: rotate(45deg) translate(-1px, -2px);
    transition: transform 0.3s ease;
}

.accordion-trigger.active .accordion-icon {
    background: var(--color-text);
    transform: rotate(0);
}

.accordion-trigger.active .accordion-icon::after {
    border-color: white;
    transform: rotate(225deg) translate(-1px, -2px);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content.open {
    max-height: 3000px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    padding: 8px 0 24px;
}

/* ── FIX: Project list item — proper flex alignment ── */
.project-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    font-size: clamp(15px, 1.3vw, 18px);
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity    0.35s ease,
        transform  0.35s cubic-bezier(0.34, 1.20, 0.64, 1),
        padding    0.2s  ease;
    overflow: visible;
}

.project-list-item:last-child {
    border-bottom: none;
}

/* Stagger reveal when accordion opens */
.accordion-content.open .project-list-item {
    opacity: 1;
    transform: translateY(0);
}

.accordion-content.open .project-list-item:nth-child(1)  { transition-delay: 0.03s; }
.accordion-content.open .project-list-item:nth-child(2)  { transition-delay: 0.06s; }
.accordion-content.open .project-list-item:nth-child(3)  { transition-delay: 0.09s; }
.accordion-content.open .project-list-item:nth-child(4)  { transition-delay: 0.12s; }
.accordion-content.open .project-list-item:nth-child(5)  { transition-delay: 0.15s; }
.accordion-content.open .project-list-item:nth-child(6)  { transition-delay: 0.18s; }
.accordion-content.open .project-list-item:nth-child(7)  { transition-delay: 0.21s; }
.accordion-content.open .project-list-item:nth-child(8)  { transition-delay: 0.24s; }
.accordion-content.open .project-list-item:nth-child(9)  { transition-delay: 0.27s; }
.accordion-content.open .project-list-item:nth-child(10) { transition-delay: 0.30s; }
.accordion-content.open .project-list-item:nth-child(11) { transition-delay: 0.33s; }

.project-list-item.clickable {
    cursor: pointer;
}

.project-list-item.clickable:hover {
    padding-left: 8px;
}

.project-list-item.clickable:hover .project-name {
    opacity: 0.65;
}

/* Arrow indicator on hover */
.project-list-item.clickable .project-year::after {
    content: ' →';
    opacity: 0;
    display: inline-block;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.30, 0.64, 1);
}

.project-list-item.clickable:hover .project-year::after {
    opacity: 0.45;
    transform: translateX(2px);
}

/* NDA items have no hover arrow but need the same space reserved for year alignment */
.project-list-item.nda-protected-item .project-year::after {
    content: ' →';
    opacity: 0;
    display: inline-block;
    transform: translateX(-6px);
    pointer-events: none;
}

.project-list-item.nda-protected-item {
    cursor: default;
}

.project-list-item.nda-protected-item:hover {
    padding-left: 0;
}

/* ── FIX: NDA hidden text — clip particles, don't break layout ── */
.project-list-item.nda-protected-item .nda-hidden-text {
    color: transparent !important;
    user-select: none !important;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: inline-block;
    position: relative;
    overflow: hidden;        /* clips particle canvas to this element */
    vertical-align: middle;
}

/* ── FIX: Particle container stays inside its parent ── */
.project-list-item .particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.project-list-item.nda-protected-item.unlocked .nda-hidden-text {
    color: inherit !important;
    pointer-events: auto;
    user-select: auto !important;
    overflow: visible;
}

.project-name {
    font-weight: 600;
    color: var(--color-text);
    flex-shrink: 0;
}

.project-divider {
    color: var(--color-text-light);
    flex-shrink: 0;
    font-size: 1.2em;
    line-height: 1;
}

.project-studio {
    color: var(--color-text-light);
    flex-shrink: 0;
}

/* ── FIX: Year pushed to far right, never wraps ── */
.project-year {
    margin-left: auto;
    color: var(--color-text-light);
    opacity: 0.7;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .accordion-trigger {
        padding: 18px 0;
    }

    .project-list-item {
        padding: 13px 0;
        gap: 8px;
    }

    .project-name {
        font-size: 14px;
    }

    .project-studio {
        font-size: 13px;
    }
}

/* ===================================
   WORK SECTIONS
   =================================== */

.work-section {
    margin-bottom: 100px;
}

.section-title {
    font-size: clamp(40px, 3.5vw, 56px);
    font-weight: 600;
    margin-bottom: 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 60px;
    margin-bottom: 70px;
}

/* ===================================
   PROJECT CARDS
   =================================== */

.project-image-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    overflow: hidden;
}

.project-image-link .project-image img {
    transition: transform 0.6s ease;
}

.project-image-link:hover .project-image img {
    transform: scale(1.05);
}

.project-image-link.nda-link {
    pointer-events: none;
}

.project-image-link.nda-link.unlocked {
    pointer-events: auto;
}

.project-image-link.nda-link.unlocked .project-image img {
    transition: transform 0.6s ease;
}

.project-image-link.nda-link.unlocked:hover .project-image img {
    transform: scale(1.05);
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
}

.project-card.nda-protected .project-image {
    position: relative;
    overflow: hidden;
}

.project-card.nda-protected .project-image img {
    filter: blur(12px);
    transform: scale(1.1);
    transition: none;
    will-change: filter, transform;
    position: relative;
    z-index: 0;
}

.project-card.nda-protected .project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(253, 245, 246, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
    pointer-events: none;
}

.project-card.nda-protected.unlocked .project-image::before {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card.nda-protected.unlocked .project-image img {
    filter: none;
    transform: scale(1);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.project-card.nda-protected .nda-hidden-text,
.project-card.nda-protected .project-title {
    color: transparent !important;
    user-select: none !important;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: inline-block;
}

.project-card.nda-protected.unlocked .nda-hidden-text,
.project-card.nda-protected.unlocked .project-title {
    color: inherit !important;
    pointer-events: auto;
    user-select: auto !important;
    animation: text-reveal 1s ease-out forwards;
}

.particle-container {
    z-index: 1;
}

@keyframes particle-drift {
    0%, 100% { transform: translate(0, 0); }
    25%       { transform: translate(-10px, -15px); }
    50%       { transform: translate(15px, 10px); }
    75%       { transform: translate(-5px, 20px); }
}

.project-card.nda-protected.unlocked .particle-container {
    animation: particles-disperse 1s ease-out forwards;
}

@keyframes particles-disperse {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5) translateY(-50px); }
}

@keyframes text-reveal {
    0%   { opacity: 0; filter: blur(10px); }
    100% { opacity: 1; filter: blur(0); }
}

.nda-overlay {
    position: absolute;
    inset: 0;
    background: rgba(253, 245, 246, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
    pointer-events: auto;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.nda-overlay:hover {
    background: rgba(253, 245, 246, 1);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.nda-overlay.hidden {
    display: none;
}

.nda-lock-icon {
    font-size: 48px;
    opacity: 0.6;
}

.nda-text {
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
}

.nda-subtext {
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--color-text-light);
    text-align: center;
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-title {
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 600;
}

.project-badge {
    font-size: 16px;
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    padding: 3px 10px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-badge::after {
    content: '';
    width: 9px;
    height: 9px;
    background-image: url('Assets/Images/Arrow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
}

.project-description {
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.5;
    color: var(--color-text-light);
}

.project-meta {
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 600;
    margin-top: 6px;
}

/* ===================================
   HAMBURGER MENU (Mobile Only)
   =================================== */

.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    width: auto;
    min-width: 160px;
    background: rgba(253, 245, 246, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu .nav-link {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    text-align: left;
    padding: 10px 16px;
    border-radius: 10px;
    transition: background-color 0.2s ease;
    position: relative;
}

.mobile-menu .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu .nav-link.active {
    font-weight: 500;
    background-color: rgba(136, 136, 136, 0.25);
}

.menu-backdrop {
    display: none;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .navigation {
        top: 1.5%;
        gap: 24px;
        padding: 12px 24px;
    }
    
    .hero {
        flex-direction: column;
        margin-top: 3%;
    }
    
    .hero::after {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .sidebar::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background-color: var(--color-text);
        margin-bottom: 40px;
    }
    
    .sidebar {
        width: 100%;
        padding-left: 0;
        margin-top: 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.hamburger-fade-zone {
    display: none;
}

@media (max-width: 768px) {
    .hamburger-fade-zone {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(to bottom, 
            #fdf5f6 0%,
            #fdf5f6 10%,
            rgba(253, 245, 246, 0.9) 25%,
            rgba(253, 245, 246, 0.7) 40%,
            rgba(253, 245, 246, 0.4) 55%,
            rgba(253, 245, 246, 0.2) 70%,
            rgba(253, 245, 246, 0.08) 82%,
            rgba(253, 245, 246, 0.02) 92%,
            transparent 100%);
        z-index: 9999;
        pointer-events: none;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .container {
        padding: 25px 20px;
    }
    
    .location-widget-compact {
        display: none;
    }
    
    .location-widget-mobile {
        display: flex;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 10000;
        align-items: center;
        gap: 10px;
        background: rgba(253, 245, 246, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 10px 14px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
    
    .location-map-mobile {
        font-size: 24px;
        line-height: 1;
    }
    
    .location-info-mobile {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .location-city-mobile {
        font-size: 13px;
        font-weight: 600;
        color: var(--color-text);
        line-height: 1.2;
    }
    
    .weather-temp-mobile {
        font-size: 15px;
        font-weight: 600;
        color: var(--color-text-light);
        line-height: 1.2;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .navigation {
        display: none;
    }
    
    .hero {
        margin-top: 70px;
        flex-direction: column;
        margin-bottom: 60px;
    }
    
    .hero::after {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .sidebar::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background-color: var(--color-text);
        margin-bottom: 40px;
    }
    
    .sidebar {
        width: 100%;
        padding-left: 0;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 2px;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .phrase-container {
        height: 200px;
        margin-top: 10px;
        margin-bottom: 50px;
    }
    
    .hero-subtitle {
        font-size: 36px;
        letter-spacing: 2px;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .hero-info {
        flex-direction: column;
        gap: 24px;
    }
    
    .info-block h2 {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .info-block p {
        font-size: 16px;
    }
    
    .sidebar-title {
        font-size: 20px;
    }
    
    .sidebar-bio {
        font-size: 16px;
        line-height: 1.5;
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        word-spacing: 0.05em;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .section-title {
        font-size: 40px;
        margin-bottom: 40px;
    }
    
    .work-section {
        margin-bottom: 80px;
    }
    
    .project-title {
        font-size: 24px;
    }
    
    .project-description,
    .project-meta {
        font-size: 16px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ===================================
   SMOOTH SCROLLING
   =================================== */

html {
    scroll-behavior: smooth;
}

/* ===================================
   LOADING ANIMATION
   =================================== */

.project-card {
    animation: fadeIn 0.6s ease-in;
}

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

/* ===================================
   FUN PAGE
   =================================== */

.page-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--color-text);
}

.category-nav-top {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
    margin-bottom: 40px;
    padding-top: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--color-text-light);
    cursor: pointer;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.category-btn:hover {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

.category-btn.active {
    color: var(--color-text);
    font-weight: 600;
    border-bottom-color: var(--color-text);
}

.category-subtitle {
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.6;
    color: var(--color-text);
    font-weight: 400;
    text-align: left;
    max-width: 800px;
    margin: 0 0 60px 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .category-subtitle {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        word-spacing: 0.05em;
    }
}

.category-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.category-section.active {
    display: block;
}

.fun-section {
    margin-bottom: 120px;
}

.fun-section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    margin: 0 0 40px 0;
    color: var(--color-text);
}

/* ===================================
   FLAG NAVIGATION
   =================================== */

.flag-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    padding-top: 4px;
    position: relative;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    background: rgba(0,0,0,0.055);
    border-radius: 50px;
    padding: 4px;
    width: fit-content;
    max-width: 100%;
}

.flag-navigation::-webkit-scrollbar { display: none; }

@media (max-width: 768px) {
    .flag-navigation {
        width: 100%;
        border-radius: 50px;
    }
}

.flag-btn {
    position: relative;
    padding: 9px 20px;
    background: transparent;
    border: none;
    border-radius: 46px;
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--color-text-light);
    cursor: pointer;
    transition:
        color      0.25s ease,
        transform  0.2s  cubic-bezier(0.34, 1.30, 0.64, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.flag-btn:hover:not(.active) {
    color: var(--color-text);
}

.flag-btn.active {
    color: var(--color-text);
    font-weight: 600;
}

.flag-nav-pill {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    background: white;
    border-radius: 46px;
    box-shadow:
        0 1px 3px  rgba(0,0,0,0.10),
        0 4px 12px rgba(0,0,0,0.08);
    transition:
        left   0.35s cubic-bezier(0.4, 0, 0.2, 1),
        width  0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.flag-btn:active {
    transform: scale(0.96);
}

/* ===================================
   MASONRY GRID
   =================================== */

.masonry-grid {
    position: relative;
    width: 100%;
    transition: opacity 0.3s ease;
}

.editorial-grid {
    position: relative !important;
    height: auto;
}

.editorial-card-all {
    position: absolute;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.93) translateY(14px);
    transition: box-shadow 0.3s ease;
}

.editorial-card-all.reveal {
    will-change: transform, opacity;
    animation: card-reveal 0.38s cubic-bezier(0.34, 1.20, 0.64, 1) forwards;
    animation-delay: calc(var(--i, 0) * 0.025s);
}

.editorial-card-all img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.editorial-card-all:hover {
    box-shadow:
        0 8px  20px rgba(0,0,0,0.10),
        0 20px 48px rgba(0,0,0,0.12);
    z-index: 5;
}

.editorial-card-all:hover img {
    transform: scale(1.05);
}

.editorial-card-all-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(0,0,0,0.62) 100%
    );
    opacity: 0;
    transition: opacity 0.28s ease;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 14px;
    pointer-events: none;
}

.editorial-card-all:hover .editorial-card-all-overlay { opacity: 1; }

.editorial-card-all-flag {
    font-size: 16px;
    line-height: 1;
}

.editorial-card-all-loc {
    font-size: 13px;
    font-weight: 600;
    color: white;
    line-height: 1;
}

.travel-card {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.92) translateY(12px);
    transition:
        transform  0.3s ease,
        box-shadow 0.3s ease;
}

.travel-card[data-anim-done] {
    opacity: 1;
    transform: none;
}

@keyframes card-reveal {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    60% {
        opacity: 1;
        transform: scale(1.01) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.travel-card.revealed {
    will-change: transform, opacity;
    animation: card-reveal 0.5s cubic-bezier(0.34, 1.20, 0.64, 1) forwards;
    animation-delay: calc(var(--card-i, 0) * 0.045s);
}

.travel-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.travel-card img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: bottom;
    transition: transform 0.3s ease;
}

.travel-card:hover img {
    transform: scale(1.05);
}

.travel-card-location {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    pointer-events: none;
}

.travel-card:hover .travel-card-location {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.travel-card-location .flag {
    font-size: 24px;
}

.travel-card-location .location-name {
    font-size: 16px;
    font-weight: 600;
}

/* ===================================
   MUSIC SECTION
   =================================== */

.music-category {
    margin-bottom: 60px;
}

.music-category-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    margin: 0 0 24px 0;
    color: var(--color-text);
}

.my-music-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.song-card {
    position: relative;
    width: 300px;
    height: 300px;
    perspective: 1200px;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        width  0.65s cubic-bezier(0.34, 1.20, 0.64, 1),
        height 0.65s cubic-bezier(0.34, 1.20, 0.64, 1);
}

.song-card.flipped {
    width: 480px;
    height: 270px;
}

.song-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.34, 1.20, 0.64, 1);
}

.song-card.flipped .song-card-inner {
    transform: rotateY(180deg);
}

.song-card-front,
.song-card-back {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    clip-path: inset(0 round 18px);
}

.song-card-front {
    background: #000;
    box-shadow:
        0 1px 2px  rgba(0,0,0,0.10),
        0 8px 24px rgba(0,0,0,0.14),
        0 24px 48px rgba(0,0,0,0.10);
    border: 0.5px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
}

.song-card-artwork {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.song-card-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.song-card-artwork::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.18) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    z-index: 3;
    pointer-events: none;
    transition: background-position 0s;
}

.song-card.flipped .song-card-artwork::after {
    background-position: 200% 0;
    transition: background-position 0.45s ease;
}

.song-card-info {
    padding: 14px 16px 16px;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 0.5px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.song-card-waveform {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 18px;
    flex-shrink: 0;
}

.song-card-waveform span {
    display: block;
    width: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    animation: waveBar 1s ease-in-out infinite;
}

.song-card-waveform span:nth-child(1) { height: 40%; animation-delay: 0s;    }
.song-card-waveform span:nth-child(2) { height: 80%; animation-delay: 0.15s; }
.song-card-waveform span:nth-child(3) { height: 55%; animation-delay: 0.3s;  }
.song-card-waveform span:nth-child(4) { height: 90%; animation-delay: 0.1s;  }

@keyframes waveBar {
    0%, 100% { transform: scaleY(1);   opacity: 0.5; }
    50%       { transform: scaleY(1.8); opacity: 1;   }
}

.song-card-text {
    flex: 1;
    min-width: 0;
}

.song-card-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 2px;
    line-height: 1.3;
}

.song-card-artist {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.3;
}

.song-card-producer {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin: 4px 0 0;
    line-height: 1.3;
}

.song-card-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 0.5px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.song-card.flipped .song-card-play-btn {
    background: rgba(255,255,255,0.2);
    transform: scale(1.08);
}

.song-card-play-btn svg {
    width: 12px;
    height: 12px;
    fill: white;
    margin-left: 2px;
}

.song-card-back {
    transform: rotateY(180deg);
    background: #000;
    box-shadow:
        0 1px 2px  rgba(0,0,0,0.10),
        0 8px 24px rgba(0,0,0,0.14),
        0 24px 48px rgba(0,0,0,0.10);
    border: 0.5px solid rgba(255,255,255,0.12);
}

#youtubePreview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.song-card-back-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 5;
}

.song-card-back-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: -0.01em;
    margin: 0;
}

.preview-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.5px solid rgba(255,255,255,0.15);
}

.preview-dot {
    width: 6px;
    height: 6px;
    background: #ff3b30;
    border-radius: 50%;
    animation: pulse-dot 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

@media (max-width: 768px) {
    .my-music-container { justify-content: center; }
    .song-card { width: 280px; height: 280px; }
    .song-card.flipped { width: 280px; height: 280px; }
    .song-card.flipped .song-card-inner { transform: none; }
}

/* ===================================
   ARTISTS GRID
   =================================== */

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.artist-card {
    border-radius: 20px;
    cursor: pointer;
    aspect-ratio: 3/4;
    background: #111;
    position: relative;
    will-change: transform;

    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;

    box-shadow:
        0 2px 4px  rgba(0,0,0,0.12),
        0 8px 20px rgba(0,0,0,0.14);

    transition: transform 0.45s cubic-bezier(0.34, 1.30, 0.64, 1);
    animation: artistReveal 0.55s cubic-bezier(0.34, 1.20, 0.64, 1) both;
}

.artist-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow:
        0 8px 16px  rgba(0,0,0,0.16),
        0 24px 48px rgba(0,0,0,0.18);
}

.artist-image,
.artist-overlay,
.artist-info {
    grid-row: 1;
    grid-column: 1;
}

.artist-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    z-index: 1;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.artist-card:hover .artist-image img {
    transform: scale(1.08);
}

.artist-overlay {
    border-radius: 20px;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        transparent      0%,
        transparent      30%,
        rgba(0,0,0,0.30) 50%,
        rgba(0,0,0,0.82) 72%,
        rgba(0,0,0,0.97) 100%
    );
    pointer-events: none;
}

.artist-info {
    align-self: end;
    z-index: 3;
    padding: 20px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.artist-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
    text-shadow:
        0 1px 3px rgba(0,0,0,0.9),
        0 2px 8px rgba(0,0,0,0.7);
}

.artist-spotify-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 0.5px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.85);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity   0.3s ease 0.05s,
        transform 0.35s cubic-bezier(0.34, 1.30, 0.64, 1) 0.05s;
}

.artist-card:hover .artist-spotify-pill {
    opacity: 1;
    transform: translateY(0);
}

.artist-spotify-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #1DB954;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes artistReveal {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

@media (max-width: 1024px) {
    .artists-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

@media (max-width: 768px) {
    .artists-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 10px; }

    .artist-card:hover { transform: none; }

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

    .artist-card:nth-child(1)  { animation: artistReveal .55s both, artistFloat 3.1s ease-in-out 0.0s   infinite; }
    .artist-card:nth-child(2)  { animation: artistReveal .55s both, artistFloat 3.7s ease-in-out 0.6s   infinite; }
    .artist-card:nth-child(3)  { animation: artistReveal .55s both, artistFloat 2.9s ease-in-out 1.3s   infinite; }
    .artist-card:nth-child(4)  { animation: artistReveal .55s both, artistFloat 3.5s ease-in-out 0.9s   infinite; }
    .artist-card:nth-child(5)  { animation: artistReveal .55s both, artistFloat 2.7s ease-in-out 1.8s   infinite; }
    .artist-card:nth-child(6)  { animation: artistReveal .55s both, artistFloat 3.3s ease-in-out 0.3s   infinite; }
    .artist-card:nth-child(7)  { animation: artistReveal .55s both, artistFloat 4.1s ease-in-out 1.1s   infinite; }
    .artist-card:nth-child(8)  { animation: artistReveal .55s both, artistFloat 3.0s ease-in-out 0.5s   infinite; }
    .artist-card:nth-child(9)  { animation: artistReveal .55s both, artistFloat 2.8s ease-in-out 2.0s   infinite; }
    .artist-card:nth-child(10) { animation: artistReveal .55s both, artistFloat 3.6s ease-in-out 0.7s   infinite; }
    .artist-card:nth-child(11) { animation: artistReveal .55s both, artistFloat 3.2s ease-in-out 1.5s   infinite; }
    .artist-card:nth-child(12) { animation: artistReveal .55s both, artistFloat 2.6s ease-in-out 0.2s   infinite; }
    .artist-card:nth-child(13) { animation: artistReveal .55s both, artistFloat 3.8s ease-in-out 1.0s   infinite; }
    .artist-card:nth-child(14) { animation: artistReveal .55s both, artistFloat 3.4s ease-in-out 1.7s   infinite; }
    .artist-card:nth-child(15) { animation: artistReveal .55s both, artistFloat 2.5s ease-in-out 0.8s   infinite; }
    .artist-card:nth-child(16) { animation: artistReveal .55s both, artistFloat 4.0s ease-in-out 0.4s   infinite; }
    .artist-card:nth-child(17) { animation: artistReveal .55s both, artistFloat 3.1s ease-in-out 1.2s   infinite; }
    .artist-card:nth-child(18) { animation: artistReveal .55s both, artistFloat 2.9s ease-in-out 2.2s   infinite; }
    .artist-card:nth-child(19) { animation: artistReveal .55s both, artistFloat 3.5s ease-in-out 0.1s   infinite; }
    .artist-card:nth-child(20) { animation: artistReveal .55s both, artistFloat 3.9s ease-in-out 1.6s   infinite; }
    .artist-card:nth-child(21) { animation: artistReveal .55s both, artistFloat 2.7s ease-in-out 0.9s   infinite; }
}

/* ===================================
   GAMING SECTION — Apple Cinematic Dark
   =================================== */

#gaming-section {
    display: none;
}
#gaming-section.active {
    display: block;
}

.games-subsection {
    margin-top: 72px;
}

.games-subsection-title {
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.games-subsection-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #888;
    flex-shrink: 0;
}

.games-subsection-dot.playing {
    background: #30d158;
    box-shadow: 0 0 6px rgba(48, 209, 88, 0.7);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1;   box-shadow: 0 0 6px  rgba(48,209,88,0.7); }
    50%       { opacity: 0.6; box-shadow: 0 0 12px rgba(48,209,88,0.9); }
}

.games-featured {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    border-radius: 20px;
    overflow: hidden;
    background: #0a0a0a;
}

@media (max-width: 768px) {
    .games-featured { aspect-ratio: 4/3; border-radius: 14px; }
}

.gf-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.gf-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gf-bg {
    position: absolute;
    inset: -5%;
}

.gf-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: scale(1.08);
    transition: transform 6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gf-slide.active .gf-bg-img {
    transform: scale(1.0);
}

.gf-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,   rgba(0,0,0,0.92) 0%,  rgba(0,0,0,0.3) 40%, transparent 65%),
        linear-gradient(to right, rgba(0,0,0,0.5)  0%,  transparent 60%);
}

.gf-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: clamp(20px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gf-genre {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

.gf-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 52px);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    margin: 0;
}

.gf-year {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.05em;
}

.gf-dots {
    position: absolute;
    bottom: clamp(16px, 3vw, 28px);
    right: clamp(16px, 3vw, 28px);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.gf-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.gf-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.gf-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.gf-arrow:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.08);
}

.gf-prev { left:  clamp(12px, 2vw, 20px); }
.gf-next { right: clamp(12px, 2vw, 20px); }

@media (max-width: 768px) {
    .gf-arrow { display: none; }
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.games-grid.small {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

@media (max-width: 768px) {
    .games-grid       { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .games-grid.small { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.game-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: default;
}

.game-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow:
        0 2px 4px  rgba(0,0,0,0.10),
        0 8px 20px rgba(0,0,0,0.12);
    transition: transform 0.4s cubic-bezier(0.34, 1.20, 0.64, 1),
                box-shadow 0.4s ease;
}

.game-card:hover .game-cover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 8px 16px  rgba(0,0,0,0.16),
        0 20px 40px rgba(0,0,0,0.16);
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-card:hover .game-cover img {
    transform: scale(1.06);
}

.game-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0,0,0,0.35) 100%
    );
    pointer-events: none;
}

.game-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 2px;
}

.game-genre-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.game-name {
    font-size: clamp(13px, 1.1vw, 15px);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
    margin: 0;
}

.saga-card {
    cursor: pointer;
}

.saga-card .game-cover {
    position: relative;
}

.saga-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 20px;
    pointer-events: none;
}

.saga-card .game-name::after {
    content: ' ↓';
    font-size: 11px;
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.saga-card.open .game-name::after {
    transform: rotate(180deg);
    opacity: 0.7;
    content: ' ↑';
}

.saga-card.open .game-cover {
    box-shadow:
        0 0 0 2px var(--color-text),
        0 8px 16px rgba(0,0,0,0.16),
        0 20px 40px rgba(0,0,0,0.16);
}

.saga-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity    0.3s ease;
    opacity: 0;
}

.saga-card.open .saga-drawer {
    max-height: 600px;
    opacity: 1;
}

.saga-list {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.saga-list-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 2px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 8px;
}

.saga-list-item:last-child {
    border-bottom: none;
}

.saga-list-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
    flex: 1;
}

.saga-list-year {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-light);
    flex-shrink: 0;
}

/* ===================================
   LOADING STATE
   =================================== */

.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-state p {
    font-size: 16px;
    color: var(--color-text-light);
    margin: 0;
}

/* ===================================
   RESPONSIVE - FUN PAGE
   =================================== */

@media (max-width: 1024px) {
    .artists-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .my-music-container {
        justify-content: center;
    }
}

/* ===================================
   CV LANGUAGE PICKER
   Popover on desktop, bottom sheet on mobile
   =================================== */

/* ── Backdrop ── */
.cv-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: transparent;
    pointer-events: none;
    transition: background 0.3s ease;
}

.cv-picker-backdrop.active {
    pointer-events: auto;
}

/* Only darken on mobile (bottom sheet needs it) */
@media (max-width: 768px) {
    .cv-picker-backdrop.active {
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

/* ── Shared picker shell ── */
.cv-picker {
    position: fixed;
    z-index: 601;
    background: rgba(253, 245, 246, 0.88);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 16px 48px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    /* Hidden state */
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.cv-picker.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* ── DESKTOP — popover anchored below nav link ── */
@media (min-width: 769px) {
    .cv-picker {
        top: var(--cv-picker-top, 80px);
        left: var(--cv-picker-left, 50%);
        transform: translateX(-50%) translateY(-8px) scale(0.96);
        transform-origin: top center;
        width: 220px;
        border-radius: 16px;
        padding: 8px;
        transition:
            opacity   0.22s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1),
            visibility 0s linear 0.22s;
    }

    .cv-picker.active {
        transform: translateX(-50%) translateY(0) scale(1);
        transition:
            opacity   0.22s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1),
            visibility 0s linear 0s;
    }

    /* Small caret pointing up toward nav */
    .cv-picker::before {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 10px;
        height: 10px;
        background: rgba(253, 245, 246, 0.88);
        border-left: 1px solid rgba(255, 255, 255, 0.55);
        border-top: 1px solid rgba(255, 255, 255, 0.55);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        pointer-events: none;
    }

    .cv-picker-handle { display: none; }
}

/* ── MOBILE — bottom sheet ── */
@media (max-width: 768px) {
    .cv-picker {
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 12px 16px 32px;
        transform: translateY(100%);
        transition:
            transform 0.38s cubic-bezier(0.34, 1.15, 0.64, 1),
            opacity   0.2s ease,
            visibility 0s linear 0.38s;
        border-bottom: none;
    }

    .cv-picker.active {
        transform: translateY(0);
        transition:
            transform 0.38s cubic-bezier(0.34, 1.15, 0.64, 1),
            opacity   0.2s ease,
            visibility 0s linear 0s;
    }

    .cv-picker::before { display: none; }
}

/* ── Drag handle (mobile only) ── */
.cv-picker-handle {
    width: 36px;
    height: 4px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 2px;
    margin: 0 auto 16px;
}

/* ── Label ── */
.cv-picker-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding: 4px 8px 8px;
}

@media (max-width: 768px) {
    .cv-picker-label {
        text-align: center;
        padding: 0 0 16px;
        font-size: 12px;
    }
}

/* ── Option rows ── */
.cv-picker-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

@media (max-width: 768px) {
    .cv-picker-options {
        gap: 8px;
    }
}

.cv-picker-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text);
    transition:
        background 0.15s ease,
        transform  0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.cv-picker-option:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateX(2px);
}

.cv-picker-option:active {
    transform: scale(0.97);
    background: rgba(0, 0, 0, 0.1);
}

/* Ripple on click */
.cv-picker-option::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.06);
    opacity: 0;
    border-radius: inherit;
    transition: opacity 0.15s ease;
}

.cv-picker-option:active::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .cv-picker-option {
        padding: 16px;
        border-radius: 14px;
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .cv-picker-option:hover {
        transform: none;
        background: rgba(0, 0, 0, 0.06);
    }
}

/* ── Flag ── */
.cv-picker-flag {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
    transition: transform 0.2s cubic-bezier(0.34, 1.5, 0.64, 1);
}

.cv-picker-option:hover .cv-picker-flag {
    transform: scale(1.15) rotate(-4deg);
}

/* ── Text block ── */
.cv-picker-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.cv-picker-lang {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.cv-picker-sub {
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-light);
}

/* ── Arrow ── */
.cv-picker-arrow {
    font-size: 14px;
    color: var(--color-text-light);
    opacity: 0;
    transform: translate(-4px, 4px);
    transition:
        opacity   0.15s ease,
        transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
    flex-shrink: 0;
}

.cv-picker-option:hover .cv-picker-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 768px) {
    .cv-picker-arrow {
        opacity: 0.35;
        transform: none;
    }
}

/* ── Staggered option entrance ── */
.cv-picker-option {
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity    0.2s ease,
        transform  0.25s cubic-bezier(0.34, 1.3, 0.64, 1),
        background 0.15s ease;
}

.cv-picker.active .cv-picker-option:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.07s;
}

.cv-picker.active .cv-picker-option:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.13s;
}

/* hover override — don't fight the entrance animation */
.cv-picker.active .cv-picker-option:hover {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .cv-picker.active .cv-picker-option:hover {
        transform: none;
    }
}