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

:root {
    --primary-color: #000000;
    --secondary-color: #0a0a0a;
    --accent-color: #666666;
    --text-color: #0a0a0a;
    --bg-color: #ffffff;
    --white: #ffffff;
    --black: #000000;
    --light-gray: #e5e5e5;
    --medium-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Arial Narrow', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-weight: 300;
}

/* Main Background Image Layer for all pages */
.hero,
.section,
.featured-video {
    position: relative;
}

.hero::before,
.section::before,
.featured-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/site_background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.hero > *,
.section > *,
.featured-video > * {
    position: relative;
    z-index: 1;
}

/* White text on background image */
.hero,
.section,
.featured-video {
    color: var(--white);
}

.hero h1,
.hero h2,
.hero h3,
.hero p,
.section h1,
.section h2,
.section h3,
.section h4,
.section p,
.section a,
.section li,
.section blockquote,
.section label,
.featured-video p {
    color: var(--white);
}

.section-title,
.hero-content h1,
.hero-subtitle,
.hero-description,
.back-link {
    color: var(--white);
}

.project-text p,
.project-text h3,
.bio-text p,
.workshop-title,
.workshop-location,
.workshop-subtitle,
.performance-title,
.performance-subtitle,
.performance-location,
.ritual-title,
.ritual-description {
    color: var(--white);
}

a {
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
}

a:hover {
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Navigation */
.navbar {
    position: relative;
    top: 0;
    width: 100%;
    background-image: url('../images/site_background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    border-bottom: none;
    z-index: 1000;
    transition: var(--transition);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: var(--white);
    font-weight: 300;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.nav-link.active {
    font-weight: 400;
    border-bottom: 1px solid var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--black);
    text-align: center;
    padding-top: 0;
}

.home-hero {
    height: 50vh;
    min-height: 400px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5rem;
    font-weight: 300;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.1rem;
    animation: fadeInUp 1s ease 0.2s both;
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--accent-color);
    animation: fadeInUp 1s ease 0.3s both;
}

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

/* Sections */
.section {
    padding: 6rem 0;
}

.page-content {
    min-height: calc(100vh - 200px);
    padding-top: 0;
}

.projects-split-layout.page-content {
    padding-top: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 4rem;
    color: var(--black);
    font-weight: 300;
    letter-spacing: 0.1rem;
}


/* Featured Video Section */
.featured-video {
    padding: 1.5rem 0 2rem;
    background: var(--white);
}

.video-container {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.video-wrapper {
    width: 100%;
    position: relative;
    overflow: visible;
    box-shadow:
        0 0 20px 5px rgba(80, 80, 80, 0.3),
        0 0 40px 10px rgba(100, 100, 100, 0.2),
        0 0 60px 15px rgba(120, 120, 120, 0.15),
        0 0 80px 20px rgba(140, 140, 140, 0.1),
        inset 0 0 30px rgba(60, 60, 60, 0.1);
    animation: smokePulse 6s ease-in-out infinite alternate;
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(100, 100, 100, 0.1) 50%,
        rgba(80, 80, 80, 0.15) 70%,
        rgba(60, 60, 60, 0.2) 85%,
        transparent 100%
    );
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
    animation: smokeRotate 20s linear infinite;
    filter: blur(15px);
}

.video-wrapper::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(120, 120, 120, 0.08) 60%,
        rgba(100, 100, 100, 0.12) 75%,
        rgba(80, 80, 80, 0.15) 90%,
        transparent 100%
    );
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
    animation: smokeRotate 25s linear infinite reverse;
    filter: blur(20px);
}

@keyframes smokePulse {
    0%, 100% {
        box-shadow:
            0 0 20px 5px rgba(80, 80, 80, 0.3),
            0 0 40px 10px rgba(100, 100, 100, 0.2),
            0 0 60px 15px rgba(120, 120, 120, 0.15),
            0 0 80px 20px rgba(140, 140, 140, 0.1),
            inset 0 0 30px rgba(60, 60, 60, 0.1);
    }
    50% {
        box-shadow:
            0 0 25px 8px rgba(90, 90, 90, 0.35),
            0 0 50px 15px rgba(110, 110, 110, 0.25),
            0 0 75px 20px rgba(130, 130, 130, 0.18),
            0 0 100px 25px rgba(150, 150, 150, 0.12),
            inset 0 0 40px rgba(70, 70, 70, 0.15);
    }
}

@keyframes smokeRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Sound hint removed - using sound toggle button instead */

@keyframes fade-pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes neon-pulse {
    0% {
        box-shadow:
            0 0 5px rgba(200, 200, 200, 0.5),
            0 0 10px rgba(200, 200, 200, 0.4),
            0 0 20px rgba(200, 200, 200, 0.3),
            0 0 30px rgba(200, 200, 200, 0.2),
            inset 0 0 10px rgba(200, 200, 200, 0.2);
        border-color: rgba(200, 200, 200, 0.8);
    }
    50% {
        box-shadow:
            0 0 10px rgba(255, 255, 255, 0.5),
            0 0 20px rgba(200, 200, 200, 0.4),
            0 0 30px rgba(200, 200, 200, 0.3),
            0 0 40px rgba(200, 200, 200, 0.2),
            0 0 50px rgba(200, 200, 200, 0.1),
            inset 0 0 15px rgba(200, 200, 200, 0.3);
        border-color: #e0e0e0;
    }
    100% {
        box-shadow:
            0 0 5px rgba(200, 200, 200, 0.5),
            0 0 10px rgba(200, 200, 200, 0.4),
            0 0 20px rgba(200, 200, 200, 0.3),
            0 0 30px rgba(200, 200, 200, 0.2),
            inset 0 0 10px rgba(200, 200, 200, 0.2);
        border-color: rgba(200, 200, 200, 0.8);
    }
}


@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(500px);
    }
}

.main-video {
    width: 100%;
    height: auto;
    display: block;
    background-color: var(--light-gray);
    cursor: pointer;
    position: relative;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;
}

.main-video:not([poster]) {
    background: var(--light-gray);
}

.main-video[poster] {
    background: transparent;
}


@keyframes glitch-overlay {
    0%, 100% {
        transform: translate(0);
        opacity: 0.5;
    }
    33% {
        transform: translate(-2px, 0);
        opacity: 0.7;
    }
    66% {
        transform: translate(2px, 0);
        opacity: 0.3;
    }
}

@keyframes glitch-video {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, -1px);
    }
    94% {
        transform: translate(2px, 1px);
    }
    96% {
        transform: translate(-1px, 0);
    }
}

@keyframes glitch-video-hover {
    0%, 100% {
        transform: translate(0);
        filter: contrast(1.1) brightness(0.98);
    }
    25% {
        transform: translate(-3px, 0);
        filter: contrast(1.2) brightness(0.95) hue-rotate(5deg);
    }
    50% {
        transform: translate(3px, 0);
        filter: contrast(1.15) brightness(1.02) hue-rotate(-5deg);
    }
    75% {
        transform: translate(-2px, 0);
        filter: contrast(1.1) brightness(0.97);
    }
}

/* Bio Section */
.bio {
    background-color: var(--medium-gray);
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.bio-video {
    position: sticky;
    top: 20px;
}

.bio-video-wrapper {
    position: relative;
    overflow: hidden;
}


.video {
    width: 100%;
    height: auto;
    display: block;
    background-color: var(--light-gray);
    position: relative;
}

.bio-text p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1rem;
}

.education {
    margin-top: 2rem;
    padding: 2rem;
    background-color: transparent;
    border-left: 2px solid var(--white);
}

.education h3 {
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 300;
    font-size: 1.2rem;
}

.education ul {
    list-style-position: inside;
    line-height: 2;
    font-weight: 300;
    color: var(--white);
}

/* Projects Gallery Section */
.projects-gallery {
    background-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    animation: none;
}

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

.gallery-item:nth-child(1) {
    animation: none;
}

.gallery-item:nth-child(2) {
    animation: none;
}

.gallery-item:nth-child(3) {
    animation: none;
}

.gallery-item:nth-child(4) {
    animation: none;
}

.gallery-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border: none;
    transition: all 0.4s ease-out;
}

.gallery-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.4s ease-out;
}

.gallery-thumb img.loaded {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(0);
    transition: all 0.4s ease-out;
}

.gallery-overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.05rem;
    margin: 0;
    transition: all 0.4s ease-out;
}

.gallery-item:hover .gallery-thumb {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

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

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(to top, rgba(200, 200, 200, 0.2), transparent);
}

.gallery-item:hover .gallery-overlay h3 {
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Gallery Glitch Effects */
.gallery-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.02) 0px,
            rgba(0, 0, 0, 0) 1px,
            rgba(0, 0, 0, 0) 2px
        );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-thumb::before {
    opacity: 1;
}

.gallery-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(200, 200, 200, 0.2),
        transparent
    );
    pointer-events: none;
    z-index: 2;
    transition: left 0.5s ease;
}

.gallery-item:hover .gallery-thumb::after {
    left: 100%;
}

.gallery-item:active .gallery-thumb {
    animation: glitch-click 0.2s ease;
}

@keyframes glitch-click {
    0%, 100% {
        transform: translate(0);
    }
    25% {
        transform: translate(-3px, 2px);
    }
    50% {
        transform: translate(3px, -2px);
    }
    75% {
        transform: translate(-2px, -1px);
    }
}

/* Performances Section */
.performances {
    background-color: var(--white);
}

.performance-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.performance-item {
    display: block;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.performance-item:nth-child(1) {
    padding-left: 0.7rem;
    padding-top: 2.3rem;
}

.performance-item:nth-child(2) {
    padding-left: 1.8rem;
    padding-top: 2rem;
    padding-bottom: 2.2rem;
}

.performance-item:nth-child(3) {
    padding-left: 0.4rem;
    padding-top: 2.4rem;
    padding-bottom: 1.8rem;
}

.performance-item:nth-child(4) {
    padding-left: 1.5rem;
    padding-top: 1.9rem;
    padding-bottom: 2.3rem;
}

.performance-item:nth-child(5) {
    padding-left: 0.9rem;
    padding-top: 2.2rem;
    padding-bottom: 2rem;
}

.performance-item:nth-child(6) {
    padding-left: 1.2rem;
    padding-top: 2.1rem;
    padding-bottom: 1.9rem;
}

.performance-item:nth-child(7) {
    padding-left: 0.5rem;
    padding-top: 2rem;
    padding-bottom: 2.4rem;
}

.performance-item:nth-child(8) {
    padding-left: 1.4rem;
    padding-top: 2.3rem;
    padding-bottom: 2.1rem;
}

.performance-item:nth-child(9) {
    padding-left: 0.6rem;
    padding-top: 2rem;
    padding-bottom: 2.2rem;
}

.performance-item:nth-child(1),
.performance-item:nth-child(4),
.performance-item:nth-child(7) {
    border-bottom-width: 0.5px;
}

.performance-item:nth-child(3),
.performance-item:nth-child(6),
.performance-item:nth-child(9) {
    border-bottom-style: dotted;
}

.performance-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding-right: 1.5rem;
    padding-left: 1rem;
    transform: translateX(8px);
    border-left: 3px solid rgba(200, 200, 200, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.performance-item:hover .performance-title {
    color: #e0e0e0;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08rem;
}

.performance-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
}

.performance-item:nth-child(odd) .performance-title {
    font-size: 1.15rem;
}

.performance-item:nth-child(2) .performance-title,
.performance-item:nth-child(5) .performance-title,
.performance-item:nth-child(8) .performance-title {
    font-size: 1.25rem;
}

.performance-subtitle {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--white);
    font-style: italic;
    opacity: 0.9;
}

.performance-location {
    color: var(--white);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
    font-weight: 300;
    opacity: 0.9;
}

.rituals-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.rituals-title {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 0.1rem;
    padding-left: 0.8rem;
}

.ritual-item {
    display: block;
    margin-bottom: 0;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.ritual-item:nth-child(2) {
    padding-left: 1.2rem;
    padding-top: 2.3rem;
    padding-bottom: 2.1rem;
}

.ritual-item:nth-child(3) {
    padding-left: 0.6rem;
    padding-top: 2rem;
    padding-bottom: 2.2rem;
    border-bottom-style: dotted;
}

.ritual-item:nth-child(4) {
    padding-left: 1.5rem;
    padding-top: 2.4rem;
    padding-bottom: 2rem;
}

.ritual-item:nth-child(5) {
    padding-left: 0.8rem;
    padding-top: 2.1rem;
    padding-bottom: 2.3rem;
}

.ritual-item:nth-child(6) {
    padding-left: 1.1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.ritual-item:nth-child(7) {
    padding-left: 0.4rem;
    padding-top: 2.2rem;
    padding-bottom: 2.1rem;
    border-bottom: none;
}

.ritual-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding-right: 1.5rem;
    padding-left: 1rem;
    transform: translateX(8px);
    border-left: 3px solid rgba(200, 200, 200, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ritual-item:hover .ritual-title {
    color: #e0e0e0;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08rem;
}

.ritual-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
}

.ritual-description {
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--white);
    opacity: 0.9;
}

/* Workshops Section */
.workshops {
    background-color: var(--white);
}

.workshop-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.workshop-item {
    display: block;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.workshop-item:nth-child(2),
.workshop-item:nth-child(5),
.workshop-item:nth-child(8) {
    border-bottom-width: 0.5px;
}

.workshop-item:nth-child(3),
.workshop-item:nth-child(6) {
    border-bottom-style: dotted;
}

.workshop-item:nth-child(1) {
    padding-left: 0.5rem;
    padding-top: 2.2rem;
}

.workshop-item:nth-child(2) {
    padding-left: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 1.8rem;
}

.workshop-item:nth-child(3) {
    padding-left: 0.8rem;
    padding-top: 1.8rem;
    padding-bottom: 2.3rem;
}

.workshop-item:nth-child(4) {
    padding-left: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.workshop-item:nth-child(5) {
    padding-left: 0.3rem;
    padding-top: 2.4rem;
    padding-bottom: 1.7rem;
}

.workshop-item:nth-child(6) {
    padding-left: 1.8rem;
    padding-top: 1.9rem;
    padding-bottom: 2.2rem;
}

.workshop-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding-right: 1.5rem;
    padding-left: 1rem;
    transform: translateX(8px);
    border-left: 3px solid rgba(200, 200, 200, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.workshop-item:hover .workshop-title {
    color: #e0e0e0;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    letter-spacing: 0.08rem;
}

.workshop-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
}

.workshop-item:nth-child(odd) .workshop-title {
    font-size: 1.15rem;
}

.workshop-item:nth-child(3) .workshop-title,
.workshop-item:nth-child(7) .workshop-title {
    font-size: 1.25rem;
}

.workshop-location {
    color: var(--white);
    font-weight: 300;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    font-style: italic;
    opacity: 0.9;
}

.workshop-subtitle {
    font-style: italic;
    color: var(--white);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.9;
}

.workshop-description {
    margin-top: 1rem;
    opacity: 0.8;
}

.workshop-description p {
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 300;
    color: var(--white);
}

.workshop-techniques {
    font-size: 0.85rem;
    color: var(--white);
    font-style: italic;
    opacity: 0.9;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    background: var(--white);
    border: 3px solid rgba(200, 200, 200, 0.8);
    box-shadow:
        0 0 20px rgba(200, 200, 200, 0.6),
        0 0 40px rgba(200, 200, 200, 0.4),
        inset 0 0 20px rgba(200, 200, 200, 0.1);
    overflow-y: auto;
    z-index: 10000;
    animation: modalSlideIn 0.4s ease-out;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(200, 200, 200, 0.8);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #e0e0e0;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--black);
    color: #e0e0e0;
    border: 2px solid rgba(200, 200, 200, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: #e0e0e0;
    color: var(--black);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.modal-body {
    padding: 3rem;
}

.modal-body h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.modal-body .project-subtitle {
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-size: 1rem;
}

.modal-body small {
    font-size: 0.85rem;
    color: var(--accent-color);
}

.modal-body em {
    color: var(--accent-color);
}

.modal-body strong {
    font-weight: 400;
    color: var(--black);
}

.modal-body .project-details {
    font-weight: 300;
    margin-top: 1rem;
}

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

.modal-gallery img {
    width: 100%;
    height: auto;
    border: none;
    transition: all 0.3s ease;
}

.modal-gallery img:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

/* Testimonials */
.testimonials {
    margin: 2rem 0;
    padding: 2rem;
    background-color: transparent;
    border-left: 2px solid rgba(255, 255, 255, 0.5);
}

.testimonials blockquote {
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    font-style: italic;
    line-height: 1.9;
    font-size: 0.95rem;
    color: var(--white);
}

/* Contact Section */
.contact {
    background-color: transparent;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    background-color: transparent;
    padding: 3rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--white);
}

.contact-info a {
    color: var(--white);
    font-weight: 300;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

.locations {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.locations h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 300;
    font-size: 1.2rem;
}

.locations p {
    font-size: 0.95rem;
    color: var(--white);
}

/* Footer */
.footer {
    background-image: url('../images/site_background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 2.5rem;
    border-top: none;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.footer p {
    margin: 0.5rem 0;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--white);
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 1.2rem 5vw;
    }

    .container {
        padding: 0 5vw;
    }

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

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border-top: none;
        padding: 2rem 0;
        margin-top: 70px;
        gap: 1.5rem;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        color: var(--black);
        font-size: 1.1rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover {
        color: var(--accent-color);
        text-shadow: none;
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav-menu .nav-link.active {
        color: var(--black);
        font-weight: 500;
        border-bottom: 2px solid var(--black);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .hero {
        height: 45vh;
        min-height: 300px;
    }

    .home-hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .bio-content {
        grid-template-columns: 1fr;
    }

    .bio-video {
        position: relative;
        top: 0;
    }

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

    .project-content h3 {
        font-size: 1.4rem;
    }

    .workshop-list {
        gap: 0;
    }

    .workshop-item {
        padding: 1.5rem 0;
    }

    .workshop-title {
        font-size: 1.1rem;
    }

    .performance-list {
        gap: 0;
    }

    .performance-item {
        padding: 1.5rem 0;
    }

    .performance-title {
        font-size: 1.1rem;
    }

    .ritual-item {
        padding: 1.5rem 0;
    }

    .ritual-title {
        font-size: 1rem;
    }

    .container {
        padding: 0 5vw;
    }

    .section {
        padding: 4rem 0;
    }

    .page-content {
        padding-top: 0;
    }

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

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal-body {
        padding: 2rem;
    }

    .modal-body h2 {
        font-size: 1.5rem;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .featured-video {
        padding: 1.5rem 0 2.5rem;
    }

    .video-container {
        max-width: 300px;
    }

    .bio-video {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .bio-video-wrapper {
        padding: 0 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

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

    .project-images {
        height: 250px;
    }

    .video-container {
        max-width: 250px;
        padding: 0 1rem;
    }

    .featured-video {
        padding: 1rem 0 1.5rem;
    }

    /* Sound hint removed - using sound toggle button instead */

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .modal-content {
        width: 98%;
        max-height: 90vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h2 {
        font-size: 1.3rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

/* Smooth Scrolling Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Projects Split Layout */
.projects-split-layout {
    min-height: 100vh;
    overflow: visible;
    padding: 0;
}

.projects-wrapper {
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - 70px);
    width: 100%;
}

/* Left Sidebar Navigation */
.projects-sidebar {
    width: 220px;
    min-width: 220px;
    background-color: transparent;
    border-right: none;
    padding: 6rem 1.5rem 2rem 3rem;
    overflow-y: auto;
    overflow-x: visible;
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--white);
    letter-spacing: 0.2rem;
    text-transform: lowercase;
}

.projects-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-nav-link {
    display: block;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--white);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: none;
    line-height: 1.8;
    letter-spacing: 0.01rem;
    white-space: nowrap;
}

.project-nav-link:nth-child(1) {
    padding-left: 0;
}

.project-nav-link:nth-child(2) {
    padding-left: 8px;
    padding-top: 0.7rem;
    font-size: 0.8rem;
}

.project-nav-link:nth-child(3) {
    padding-left: 3px;
    padding-top: 0.6rem;
}

.project-nav-link:nth-child(4) {
    padding-left: 12px;
    padding-top: 0.8rem;
}

.project-nav-link:nth-child(5) {
    padding-left: 5px;
    padding-top: 0.5rem;
}

.project-nav-link:hover {
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    transform: translateX(2px);
}

.project-nav-link.active {
    color: var(--white);
    font-style: normal;
}

/* Center Gallery Area */
.projects-main {
    flex: 1;
    margin-left: 220px;
    padding: 3rem 3rem 3rem 3rem;
    overflow-y: visible;
    overflow-x: hidden;
    background-color: transparent;
    position: relative;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 70px);
}

/* Chaotic Grid Layout for Project Thumbnails */
.thumbnail-grid-chaotic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem 2rem;
    max-width: 1200px;
    width: 100%;
    padding: 2rem 1rem 4rem 1rem;
    justify-items: center;
    background-color: transparent;
    min-height: auto;
}

.project-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1080 / 1350;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
    animation: none;
    will-change: auto;
}

.project-thumbnail:nth-child(1) {
    animation-delay: 0.1s;
    transform: rotate(0deg);
    margin-top: 0.8rem;
    max-width: 240px;
}

.project-thumbnail:nth-child(2) {
    animation-delay: 0.2s;
    transform: rotate(0deg);
    margin-top: -0.5rem;
    max-width: 290px;
}

.project-thumbnail:nth-child(3) {
    animation-delay: 0.3s;
    transform: rotate(0deg);
    margin-top: 1.2rem;
    max-width: 265px;
}

.project-thumbnail:nth-child(4) {
    animation-delay: 0.4s;
    transform: rotate(0deg);
    margin-top: -0.3rem;
    max-width: 250px;
}

.project-thumbnail:nth-child(5) {
    animation-delay: 0.5s;
    transform: rotate(0deg);
    margin-top: 0.6rem;
    max-width: 275px;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.project-thumbnail:hover {
    transform: none;
    z-index: auto;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.project-thumbnail:hover img {
    transform: none;
    filter: none;
}

.project-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 2rem 1rem 1rem;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05rem;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    text-align: center;
    line-height: 1.3;
    pointer-events: none;
}

.project-thumbnail {
    color: var(--white);
}

.project-thumbnail:hover .project-label {
    opacity: 1;
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.thumbnail-scatter {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 70px - 4rem);
    padding: 0;
}

.thumbnail-item {
    position: absolute;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.3s ease;
    animation: none;
    z-index: 20;
    pointer-events: auto;
}

.thumbnail-item:nth-child(1) {
    animation: none;
}

.thumbnail-item:nth-child(2) {
    animation: none;
}

.thumbnail-item:nth-child(3) {
    animation: none;
}

.thumbnail-item:nth-child(4) {
    animation: none;
}

.thumbnail-item:nth-child(5) {
    animation: none;
}

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

/* Special animation for centered item */
.thumbnail-item[style*="translate(-50%, -50%)"] {
    animation: subtle-float-centered 8s ease-in-out infinite;
}

@keyframes subtle-float-centered {
    0%, 100% {
        transform: translate(-50%, -50%);
    }
    50% {
        transform: translate(-50%, calc(-50% - 8px));
    }
}

/* Size Variations */
.thumbnail-item.size-small {
    width: 170px;
    height: 170px;
}

.thumbnail-item.size-medium {
    width: 210px;
    height: 210px;
}

.thumbnail-item.size-large {
    width: 260px;
    height: 260px;
}

/* Subtle variations */
.thumbnail-item:nth-child(1).glitch-frame {
    border: none;
}

.thumbnail-item:nth-child(2).glitch-frame {
    border: none;
}

.thumbnail-item:nth-child(3).glitch-frame {
    border: none;
}

.thumbnail-item:nth-child(4).glitch-frame {
    border: none;
}

.thumbnail-item:nth-child(5).glitch-frame {
    border: none;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.thumbnail-item:hover {
    animation: none;
    transform: none;
    z-index: auto;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.thumbnail-item:hover img {
    transform: none;
    filter: none;
}

.thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--white);
    padding: 1.2rem 0.8rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.05rem;
    opacity: 0.3;
    transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
}

.thumbnail-item:hover .thumbnail-label {
    opacity: 1;
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.thumbnail-item::before {
    display: none;
}

.thumbnail-item:hover::before {
    display: none;
}

/* Glitch Frame Effect */
.glitch-frame {
    border: none;
    box-shadow: none;
    position: relative;
    animation: none;
}

.glitch-frame::before {
    display: none;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glitch-frame:hover::before {
    display: none;
}

.glitch-frame::after {
    display: none;
}

@keyframes glitch-scan {
    0%, 100% {
        transform: translate(0);
        opacity: 0.6;
    }
    12% {
        transform: translate(-1px, 1px);
        opacity: 0.8;
    }
    24% {
        transform: translate(1px, -1px);
        opacity: 0.4;
    }
    36% {
        transform: translate(-1px, -1px);
        opacity: 0.7;
    }
    48%, 72% {
        transform: translate(0);
        opacity: 0.6;
    }
    84% {
        transform: translate(1px, 0);
        opacity: 0.5;
    }
    96% {
        transform: translate(-1px, 1px);
        opacity: 0.8;
    }
}

.glitch-frame:hover {
    animation: none;
    box-shadow: none;
}

@keyframes glitch-shake {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-2px, 2px);
    }
    50% {
        transform: translate(2px, -2px);
    }
    75% {
        transform: translate(-1px, -1px);
    }
}


/* Expandable Gallery Sections */
.expandable-galleries {
    max-width: 1200px;
    margin: 3rem auto 0;
}

.gallery-section {
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.gallery-section:hover {
    border-color: rgba(200, 200, 200, 0.8);
    box-shadow: 0 0 10px rgba(200, 200, 200, 0.2);
}

.gallery-toggle {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 2rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.gallery-toggle.active {
    background-color: rgba(255, 255, 255, 0.05);
}

.gallery-section-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--white);
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
}

.gallery-section-info {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.toggle-icon {
    font-size: 2rem;
    color: rgba(200, 200, 200, 0.9);
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 2rem;
}

.gallery-toggle.active .toggle-icon {
    transform: rotate(45deg);
}

.gallery-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.gallery-content.active {
    max-height: 10000px;
    transition: max-height 1s ease;
}

.gallery-content .project-gallery {
    padding: 2rem;
    background-color: transparent;
}

.gallery-links {
    padding: 1.5rem 2rem;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.external-link:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(200, 200, 200, 0.9);
    color: #e0e0e0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.external-link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.external-link:hover svg {
    transform: translate(2px, -2px);
}

.project-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-logo-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.logo-link {
    display: block;
    max-width: 280px;
    width: 100%;
    transition: all 0.3s ease;
}

.logo-link img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-link:hover img {
    filter: brightness(0.8);
}

.project-gallery-full {
    margin-top: 3rem;
}

.project-gallery-full .project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-gallery-full .gallery-image img {
    border: none;
}

/* Project Detail Page Styles */
.project-detail {
    background-color: transparent;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--white);
    font-weight: 300;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    transform: translateX(-3px);
}

.project-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.project-video-sidebar {
    position: sticky;
    top: 20px;
    max-width: 320px;
}

.project-video-sidebar .gallery-video {
    position: relative;
}

.project-video-sidebar .gallery-video video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* Custom controls removed - using native HTML5 controls */

/* Video styling - using native HTML5 controls */

/* Video modal removed - using native fullscreen controls */

.project-text {
    line-height: 1.9;
}

.project-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.project-text h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
    color: var(--white);
}

.project-info {
    margin-top: 2rem;
    padding: 2rem;
    background-color: transparent;
    border-left: 2px solid rgba(255, 255, 255, 0.5);
}

.project-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.gallery-image img {
    width: 100%;
    height: auto;
    border: none;
    transition: all 0.3s ease;
}

.gallery-image img:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.gallery-image.video-container {
    position: relative;
}

.gallery-image.video-container video {
    width: 100%;
    height: auto;
    border: none;
    display: block;
}

.gallery-video {
    position: relative;
}

.gallery-video video {
    width: 100%;
    height: auto;
    border: none;
}

.video-credit,
.image-credit {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-align: center;
}

.project-text blockquote {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    font-style: italic;
    line-height: 1.9;
}

.project-text blockquote p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--white);
}

.project-text blockquote p:last-child {
    margin-bottom: 0;
}

/* Responsive for Projects Split Layout */
@media screen and (max-width: 1600px) {
    .thumbnail-item.size-small {
        width: 155px;
        height: 155px;
    }

    .thumbnail-item.size-medium {
        width: 190px;
        height: 190px;
    }

    .thumbnail-item.size-large {
        width: 240px;
        height: 240px;
    }

    .projects-main {
        padding: 2.5rem 2.5rem 2.5rem 2.5rem;
    }
}

@media screen and (max-width: 1400px) {
    .thumbnail-item.size-small {
        width: 140px;
        height: 140px;
    }

    .thumbnail-item.size-medium {
        width: 175px;
        height: 175px;
    }

    .thumbnail-item.size-large {
        width: 215px;
        height: 215px;
    }

    .projects-main {
        padding: 2rem 2rem 2rem 2rem;
    }
}

@media screen and (max-width: 1200px) {
    .thumbnail-item.size-small {
        width: 120px;
        height: 120px;
    }

    .thumbnail-item.size-medium {
        width: 150px;
        height: 150px;
    }

    .thumbnail-item.size-large {
        width: 180px;
        height: 180px;
    }
}

@media screen and (max-width: 1024px) {
    .projects-sidebar {
        width: 180px;
        min-width: 180px;
        padding: 4rem 1rem 2rem 2rem;
    }

    .projects-main {
        margin-left: 180px;
        padding: 2rem;
    }

    .thumbnail-item.size-small {
        width: 110px;
        height: 110px;
    }

    .thumbnail-item.size-medium {
        width: 140px;
        height: 140px;
    }

    .thumbnail-item.size-large {
        width: 170px;
        height: 170px;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-logo-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }

    .logo-link {
        max-width: 200px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .projects-split-layout {
        min-height: auto;
        overflow: visible;
    }

    .projects-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .projects-sidebar {
        position: static;
        width: 100%;
        min-width: 100%;
        height: auto;
        border-right: none;
        border-bottom: none;
        padding: 2rem 5vw;
    }

    .sidebar-title {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .projects-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.8rem 1.5rem;
        justify-content: flex-start;
    }

    .project-nav-link {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }

    .projects-main {
        margin-left: 0;
        padding: 2rem 5vw 4rem 5vw;
        height: auto;
        min-height: auto;
    }

    .thumbnail-grid-chaotic {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem 0.5rem;
    }

    .project-thumbnail {
        max-width: 100%;
    }

    .project-thumbnail:nth-child(1),
    .project-thumbnail:nth-child(2),
    .project-thumbnail:nth-child(3),
    .project-thumbnail:nth-child(4),
    .project-thumbnail:nth-child(5) {
        transform: none !important;
        margin-top: 0 !important;
    }

    .project-label {
        opacity: 1;
        font-size: 0.8rem;
    }

    .thumbnail-scatter {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
        padding: 1rem;
    }

    .thumbnail-item {
        position: static !important;
        margin: 0;
        animation: none !important;
    }

    .thumbnail-item.size-small,
    .thumbnail-item.size-medium,
    .thumbnail-item.size-large {
        width: 140px;
        height: 140px;
    }

    .thumbnail-item:hover {
        transform: scale(1.03);
    }

    .thumbnail-label {
        opacity: 1;
        font-size: 0.7rem;
    }

    .project-content {
        gap: 2rem;
    }

    .project-gallery {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .thumbnail-grid-chaotic {
        gap: 1.5rem;
        padding: 1rem 0.5rem;
    }

    .project-thumbnail {
        max-width: 100%;
    }

    .project-label {
        font-size: 0.75rem;
    }

    .thumbnail-item.size-small,
    .thumbnail-item.size-medium,
    .thumbnail-item.size-large {
        width: 130px;
        height: 130px;
    }

    .sidebar-title {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .project-nav-link {
        font-size: 0.75rem;
    }

    .projects-nav {
        gap: 0.6rem 1rem;
    }
}
