@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --color-bg: #0a0a0a;
    --color-bg-elevated: #141414;
    --color-text: #ffffff;
    --color-text-dim: #888888;
    --color-accent: #ff6b35;
    --color-accent-light: #ff8c5a;
    --color-gradient-1: #ff6b35;
    --color-gradient-2: #f7931e;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* Animated Background Gradient */
.bg-gradient {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(247, 147, 30, 0.05) 0%, transparent 50%);
    animation: gradientMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, 2%) rotate(5deg); }
    66% { transform: translate(-2%, 1%) rotate(-5deg); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 48px 24px;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

/* Logo hover color handled by wave animation */

.logo-letter {
    display: inline-block;
}

.logo.wave .logo-letter {
    animation: letterWave 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes letterWave {
    0% {
        transform: scale(1);
        color: inherit;
    }
    40% {
        transform: scale(1.18);
        color: var(--color-accent);
    }
    70% {
        transform: scale(0.95);
        color: var(--color-accent);
    }
    100% {
        transform: scale(1);
        color: var(--color-accent);
    }
}

.nav {
    display: flex;
    gap: 40px;
}

@media (max-width: 600px) {
    .nav {
        display: none;
    }
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 4px 0;
    transition: var(--transition-fast);
}

.nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

.nav a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav a.active::before {
    animation: sweepUp 0.6s ease-out forwards;
}

.nav a.active::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    padding: 4px 0;
    color: var(--color-accent);
    clip-path: inset(100% 0 0 0);
    animation: revealText 0.6s ease-out forwards;
}

@keyframes sweepUp {
    0% {
        transform: scaleX(1) translateY(0);
    }
    70% {
        transform: scaleX(1) translateY(-25px);
        transform-origin: center;
    }
    100% {
        transform: scaleX(0) translateY(-25px);
        transform-origin: center;
    }
}

@keyframes revealText {
    0% {
        clip-path: inset(100% 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
}

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

.menu-toggle.active span:nth-child(2) {
    transform: scaleX(0);
}

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

/* Mobile Menu Dropdown */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 100px 24px 40px;
    flex-direction: column;
    gap: 8px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-menu a {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color var(--transition-fast);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--color-accent);
}

/* Main */
.main {
    padding-top: 100px;
    min-height: 100vh;
}

/* Home - Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 40px 48px 120px;
}

.work-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform var(--transition-smooth);
    opacity: 0;
}

.work-item.revealed {
    animation: workItemReveal 0.6s ease forwards;
}

.work-item:hover {
    transform: translateY(-8px);
}

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

.work-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-bg-elevated);
}

.work-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
    opacity: 0.7;
    transition: opacity var(--transition-smooth);
}

.work-item:hover .work-image::before {
    opacity: 1;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
    filter: grayscale(20%);
}

.work-item:hover .work-image img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.work-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    z-index: 2;
}

.work-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.work-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    transform: translateX(-10px);
    opacity: 0.9;
    transition: all var(--transition-smooth);
}

.work-item:hover .work-title {
    transform: translateX(0);
    opacity: 1;
    background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-meta {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translateX(-10px);
    opacity: 0;
    transition: all var(--transition-smooth) 0.1s;
}

.work-item:hover .work-meta {
    transform: translateX(0);
    opacity: 1;
}

/* Work item decorative corner */
.work-item::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
    opacity: 0;
    transform: translate(10px, -10px);
    transition: all var(--transition-smooth);
    z-index: 3;
}

.work-item:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* Page Header */
.page-header {
    padding: 60px 48px 40px;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 48px;
    right: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dim);
    margin-bottom: 32px;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.back-link:hover {
    color: var(--color-accent);
    gap: 16px;
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-dim);
    padding: 10px 20px;
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

.page-header h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: fit-content;
}

.page-header p {
    font-size: 18px;
    color: var(--color-text-dim);
    margin-top: 20px;
    max-width: 500px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 40px 48px 120px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-bg-elevated);
    transition: transform var(--transition-smooth);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 107, 53, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay {
    background: rgba(255, 107, 53, 0.2);
}

.gallery-icon {
    width: 60px;
    height: 60px;
    background: var(--color-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
    transition: all var(--transition-bounce);
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.gallery-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-bg);
}

/* Hover Info Overlay */
.hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-smooth);
}

.gallery-item:hover .hover-info {
    opacity: 1;
    transform: translateY(0);
}

.hover-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.hover-date,
.hover-location,
.hover-camera,
.hover-medium,
.hover-duration {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.hover-location::before {
    content: '📍 ';
}

.hover-date::before {
    content: '📅 ';
}

.hover-camera::before {
    content: '📷 ';
}

/* Video Grid */
.video-section {
    padding: 40px 48px 120px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.video-item {
    display: block;
    position: relative;
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-bg-elevated);
    margin-bottom: 20px;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-smooth);
}

.video-item:hover .video-overlay {
    background: rgba(0,0,0,0.5);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-gradient-1), var(--color-gradient-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4);
}

.video-item:hover .play-btn {
    transform: scale(1.15);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.5);
}

.play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
    fill: var(--color-text);
}

.video-info h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    transition: color var(--transition-fast);
}

.video-item:hover .video-info h3 {
    color: var(--color-accent);
}

.video-info p {
    font-size: 14px;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Projects Section */
.projects-section {
    padding: 40px 48px 120px;
}

.project-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.project-item:first-child {
    padding-top: 0;
}

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

.project-item:nth-child(even) {
    grid-template-columns: 1fr 1.2fr;
}

.project-item:nth-child(even) .project-image {
    order: 2;
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px;
    background: var(--color-bg-elevated);
}

.project-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-gradient-1), transparent, var(--color-gradient-2));
    border-radius: 18px;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: -1;
}

.project-item:has(.project-image:hover, .project-info h3:hover, .project-title-link:hover) .project-image::before {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.project-item:has(.project-image:hover, .project-info h3:hover, .project-title-link:hover) .project-image img {
    transform: scale(1.05) translateZ(0);
}

.project-info {
    position: relative;
}

.project-info h3 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    transition: color var(--transition-fast);
    width: fit-content;
}

.project-item:has(.project-image:hover, .project-info h3:hover, .project-title-link:hover) .project-info h3 {
    background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-info p {
    font-size: 16px;
    color: var(--color-text-dim);
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span,
.project-tags a {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-dim);
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.project-tags span:hover,
.project-tags a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Project title link */
.project-title-link {
    text-decoration: none;
    color: inherit;
    width: fit-content;
    display: block;
}

.project-title-link h3 {
    transition: all var(--transition-fast);
}

/* About Page */
.about-title {
    text-align: center;
    font-size: 48px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    padding: 40px 200px 0;
    margin-bottom: 40px;
}

.about-section {
    display: flex;
    align-items: flex-start;
    padding: 0 200px 60px;
    gap: 120px;
}

.about-image {
    position: relative;
    flex: 0 0 28%;
    min-width: 200px;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), transparent);
    z-index: 1;
    mix-blend-mode: overlay;
    border-radius: 12px;
}

.about-image img,
.about-image video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    filter: grayscale(20%);
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    min-width: 250px;
    padding-top: 40px;
}

.about-content p {
    font-size: 15px;
    color: var(--color-text-dim);
    line-height: 1.7;
    margin-bottom: 14px;
}

/* About page entrance animations */
.about-image {
    opacity: 0;
    transform: translateX(-20px);
    /* Animation triggered by .loaded class when media is ready */
}

.about-image.loaded {
    animation: aboutImageIn 0.4s ease-out forwards;
}

.about-content {
    opacity: 0;
    transform: translateY(20px);
    animation: aboutContentIn 0.4s ease-out 0.1s forwards;
}

@keyframes aboutImageIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aboutContentIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Page */
.contact-section {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 48px;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.contact-section h1 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 32px;
}

.contact-email {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 48px;
    position: relative;
    display: inline-block;
    transition: all var(--transition-fast);
}

.contact-email:hover {
    background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gradient-1), var(--color-gradient-2));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-smooth);
}

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

.social {
    display: flex;
    gap: 32px;
}

.social a {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.social a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform var(--transition-smooth);
}

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

.social a:hover::after {
    transform: scaleX(1);
}

/* Footer */
.footer {
    padding: 32px 48px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 13px;
    color: var(--color-text-dim);
}

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

.footer-links a {
    font-size: 13px;
    color: var(--color-text-dim);
    transition: color var(--transition-fast);
}

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

/* Cursor follower (optional, enabled via JS) */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    opacity: 0.5;
}

/* Page transition animation */
.page-transition {
    animation: fadeIn 0.6s ease forwards;
}

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

/* Stagger children animation */
.stagger-in > * {
    opacity: 0;
    animation: staggerFadeIn 0.5s ease forwards;
}

.stagger-in > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.5s; }

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

/* Responsive */
@media (max-width: 1024px) {
    .work-grid {
        gap: 20px;
    }

    .about-title {
        padding: 40px 40px 0;
        margin-bottom: 30px;
    }

    .about-section {
        gap: 40px;
        padding: 0 40px 40px;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 20px 24px;
    }

    .page-header,
    .video-section,
    .projects-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .work-grid {
        padding: 40px 24px 80px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 40px 24px 80px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-item,
    .project-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-item:nth-child(even) .project-image {
        order: 0;
    }

    .about-content {
        padding: 48px 24px;
    }

    .contact-section {
        padding: 60px 24px;
    }

    .footer {
        padding: 24px;
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

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

    .work-title {
        font-size: 22px;
    }

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

    .page-header h1 {
        font-size: 40px;
    }

    .project-info h3 {
        font-size: 26px;
    }

    .social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .about-title {
        padding: 24px 24px 0;
        margin-bottom: 24px;
    }

    .about-section {
        flex-direction: column;
        padding: 0 24px 24px;
        gap: 30px;
    }

    .about-image {
        flex: 0 0 auto;
        min-width: 0;
        width: 100%;
        max-width: 350px;
    }

    .about-content {
        min-width: 0;
        padding-top: 0;
    }
}

/* =============================================================================
   LIGHTBOX / CAROUSEL
   ============================================================================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
    padding: 0 20px;
}

.lightbox-meta:empty {
    display: none;
}

.lightbox-meta-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    text-align: center;
}

.lightbox-meta-date,
.lightbox-meta-location,
.lightbox-meta-camera,
.lightbox-meta-medium {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.lightbox-meta-location::before {
    content: '📍 ';
}

.lightbox-meta-date::before {
    content: '📅 ';
}

.lightbox-meta-camera::before {
    content: '📷 ';
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 10;
    line-height: 1;
    padding-bottom: 2px; /* Optical vertical centering */
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: var(--font-body);
}

/* Swipe hint arrows - only visible on mobile touch devices */
.swipe-hint {
    display: none;
    opacity: 0.5;
    padding: 0 8px;
    font-size: 16px;
    transition: opacity 0.2s ease;
}

.swipe-hint.hidden {
    opacity: 0;
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        display: none;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    /* Show swipe hints on mobile touch devices */
    .touch-device .swipe-hint {
        display: inline;
    }
}

/* Lightbox swipe/scroll viewport */
.lightbox-viewport {
    position: absolute;
    top: 70px;
    bottom: 100px;
    left: 0;
    right: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.lightbox-viewport::-webkit-scrollbar {
    display: none;
}

.lightbox-track {
    display: flex;
    height: 100%;
    /* Width set dynamically via JS based on image count */
}

.lightbox-slide {
    flex: 0 0 100vw;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-slide img {
    max-width: calc(100vw - 40px);
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Reposition meta for new structure */
.lightbox > .lightbox-meta {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
}

/* Hide metadata on touch devices by default - revealed on swipe-up */
.touch-device .lightbox > .lightbox-meta {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Subtle swipe-up indicator/handle (mobile only, only when has content) */
.touch-device .lightbox > .lightbox-meta:not(:empty)::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

/* Metadata revealed state */
.touch-device .lightbox > .lightbox-meta.revealed {
    opacity: 1;
}

.lightbox-meta.revealed::before {
    background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .lightbox-viewport {
        top: 60px;
        bottom: 80px;
    }

    .lightbox-slide {
        padding: 10px;
    }

    .lightbox-slide img {
        max-width: calc(100vw - 20px);
    }

    .lightbox > .lightbox-meta {
        bottom: 40px;
    }
}

/* Swipe-down-to-dismiss optimization */
.touch-device .lightbox-slide {
    will-change: transform;
}

.touch-device .lightbox-slide img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}
