/* CSS Reset and Font Imports */
:root {
    --bg-color: #F5F5F3;
    --text-color: #000000;
    --text-muted: rgba(0, 0, 0, 0.7);
    --font-serif: 'Gambarino', 'Playfair Display', Georgia, serif;
    --font-sans: 'General Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-alt: 'Lexend', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 4px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

/* Header & Navigation */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #F5F5F3;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 75px;
}

.nav-links {
    display: flex;
    gap: 24px;
    z-index: 20;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-color);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 35px;
    font-weight: 400;
    text-transform: lowercase;
    text-decoration: none;
    color: var(--text-color);
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    white-space: nowrap;
    transition: var(--transition-smooth);
    z-index: 15;
}

.social-links {
    display: flex;
    width: 204px;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.social-links a {
    color: var(--text-color);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    transform: translateY(-2px);
    opacity: 0.7;
}

.social-links svg,
.social-links img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-links svg {
    fill: currentColor;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition-smooth);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 1005;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-nav-links a {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.mobile-social-links {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

.mobile-social-links a {
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-social-links svg,
.mobile-social-links img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.mobile-social-links svg {
    fill: currentColor;
}

/* Main Content Wrapper */
.main-content {
    margin-top: 75px;
    /* offset for fixed header */
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    background-color: var(--bg-color);
    overflow: hidden;
    padding-bottom: 80px;
}

.hero-text-container {
    text-align: center;
    padding: 80px 20px 60px 20px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 6.5vw, 104px);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.0;
    margin-bottom: 24px;
}

.hero-desc {
    font-family: var(--font-alt);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    max-width: 480px;
    margin: 0 auto;
    color: var(--text-color);
}

/* Hero Collage Desktop Layout */
.hero-collage {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: -20vw auto 0 auto;
    aspect-ratio: 1920 / 1150;
}

@media (min-width: 1920px) {
    .hero-collage {
        margin-top: -384px;
    }
}

.collage-item {
    position: absolute;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage-item:hover {
    transform: scale(1.025);
    filter: brightness(0.95);
}

/* Specific Collage Positions (Proportional to 1920px width & 1150px height) */
.Rectangle195 {
    width: 17.66%;
    height: 38.26%;
    left: -2.19%;
    top: 38.61%;
}

.Rectangle196 {
    width: 17.40%;
    height: 42.09%;
    left: 16.09%;
    top: 48.78%;
}

.Rectangle197 {
    width: 29.95%;
    height: 31.74%;
    left: 34.11%;
    top: 39.83%;
}

.Rectangle198 {
    width: 13.70%;
    height: 14.17%;
    left: 54.43%;
    top: 72.52%;
}

.Rectangle199 {
    width: 25.10%;
    height: 27.13%;
    left: 64.69%;
    top: 44.43%;
}

.Rectangle201 {
    width: 25.10%;
    height: 35.30%;
    left: 90.42%;
    top: 36.26%;
}

.Rectangle202 {
    width: 19.69%;
    height: 24.87%;
    left: 34.11%;
    top: 72.52%;
}

.Rectangle203 {
    width: 19.69%;
    height: 19.30%;
    left: -4.22%;
    top: 77.74%;
}

.Rectangle200 {
    width: 25.10%;
    height: 19.57%;
    left: 68.75%;
    top: 72.52%;
}

/* About Section */
.about-section {
    padding: 120px 100px;
    max-width: 1920px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    max-width: 536px;
    aspect-ratio: 536 / 535;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content {
    flex: 1;
    max-width: 480px;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.about-text {
    font-family: var(--font-alt);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 24px;
    color: var(--text-color);
}

.about-signature {
    margin-top: 40px;
    max-width: 265px;
}

.about-signature img {
    width: 100%;
    height: auto;
    display: block;
}

/* Works Section */
.works-section {
    padding: 120px 100px;
    max-width: 1920px;
    margin: 0 auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.works-container {
    max-width: 1420px;
    margin: 0 auto;
}

.works-title {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.work-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 460 / 620;
    cursor: pointer;
    background: #000;
    text-decoration: none;
    display: block;
}

.work-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.work-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.work-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
    transition: var(--transition-smooth);
}

.work-card:hover .work-image-wrapper img {
    transform: scale(1.05);
}

.work-card:hover .work-overlay {
    opacity: 0.85;
}

.work-info {
    position: absolute;
    left: 20px;
    bottom: 30px;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.work-name {
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    text-align: left;
}

.work-tags {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.work-tag {
    padding: 12px 20px;
    border-radius: 57px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

/* Contact/Footer Section */
.footer-section {
    padding: 140px 20px 80px 20px;
    background-color: #141412;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-cta {
    font-family: var(--font-serif);
    font-size: clamp(40px, 6.5vw, 84px);
    font-weight: 400;
    text-transform: uppercase;
    color: #E8E8E3;
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-bottom: 24px;
}

.footer-email-wrap {
    margin-bottom: 48px;
}

.footer-email {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 400;
    color: #E8E8E3;
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
}

.footer-email::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #E8E8E3;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.footer-socials {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    align-items: center;
}

.footer-socials a {
    color: #E8E8E3;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-socials a:hover {
    background-color: #E8E8E3;
    color: #141412;
    border-color: #E8E8E3;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.footer-socials svg,
.footer-socials img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

/* Invert default black social logo images to look white/cream against the dark background */
.footer-socials img {
    filter: invert(1) opacity(0.85);
}

/* Reset image inversion on hover as the background becomes light cream */
.footer-socials a:hover img {
    filter: none;
}

.footer-nav {
    display: flex;
    gap: 40px;
    margin-bottom: 64px;
}

.footer-nav a {
    font-family: var(--font-alt);
    font-size: 14px;
    font-weight: 400;
    color: #E8E8E3;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
    position: relative;
    transition: var(--transition-smooth);
}

.footer-nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #E8E8E3;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav a:hover {
    opacity: 1;
}

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

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 11px;
    color: rgba(232, 232, 227, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Back to Top link style */
.back-to-top {
    position: absolute;
    top: 40px;
    right: 100px;
    font-family: var(--font-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #E8E8E3;
    text-decoration: none;
    opacity: 0.5;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-section {
        padding: 80px 20px 60px 20px;
    }

    .footer-container {
        gap: 24px;
    }

    .footer-cta {
        margin-bottom: 0;
    }

    .footer-email-wrap {
        margin-bottom: 0;
    }

    .footer-socials {
        margin-bottom: 0;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-bottom: 20px;
    }

    .back-to-top {
        position: static;
        margin-bottom: 15px;
        justify-content: center;
    }
}

/* Lightbox Modal CSS - Optimized */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    z-index: 100000;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.lightbox-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Media Queries for Responsiveness */

/* Large Tablets & Medium screens */
@media (max-width: 1200px) {
    .nav-container {
        padding: 20px 40px;
    }

    .about-section,
    .works-section {
        padding: 80px 40px;
    }

    .about-container {
        gap: 60px;
    }
}

/* Tablets (landscape and portrait) */
@media (max-width: 1024px) {

    /* Menu adjustments */
    .menu-toggle {
        display: flex;
    }

    .nav-links,
    .social-links {
        display: none;
    }

    /* Active State for Mobile Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

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



    /* About Section Grid Stack */
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .about-image {
        max-width: 100%;
        width: 80%;
    }

    .about-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-signature {
        margin-top: 20px;
    }

    /* Works Grid columns */
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Screens */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
        height: 70px;
    }

    .logo {
        font-size: 28px;
    }

    .main-content {
        margin-top: 70px;
    }

    .about-section,
    .works-section {
        padding: 60px 20px;
    }

    .works-title,
    .about-title {
        font-size: 32px;
        margin-bottom: 30px;
    }



    /* Works to single column */
    .works-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        width: 100%;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-text-container {
        padding: 60px 15px 40px 15px;
    }

    .hero-title {
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 14px;
        line-height: 1.4;
    }


}

/* Work Detail Page Styles */
.work-detail-page {
    background-color: #FFFFFF;
}

.work-hero {
    width: 100%;
    height: 85vh;
    min-height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    position: relative;
    padding-bottom: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

.work-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for better text contrast */
    z-index: 1;
}

.work-hero-content {
    color: #FFFFFF;
    padding: 20px;
    z-index: 10;
}

.work-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.work-hero-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.work-hero-tag {
    padding: 10px 20px;
    border-radius: 57px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.work-content {
    padding: 80px 20px;
    background-color: #FFFFFF;
}

.work-container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.work-paragraph {
    font-family: var(--font-alt);
    font-size: 16px;
    line-height: 28px;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.work-quote {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Landscape grid */
.layout-grid-landscape {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.grid-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* Placeholders */
.photo-placeholder {
    background-color: #E2E2E0;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    cursor: pointer;
}

img.photo-placeholder {
    object-fit: cover;
    width: 100%;
    display: block;
}

.photo-placeholder:hover {
    filter: brightness(0.95);
    transform: scale(1.005);
}

/* Masonry grid */
.masonry-grid {
    display: flex;
    gap: 20px;
    width: 100%;
}

.masonry-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Responsive for Work Detail Page */
@media (max-width: 768px) {
    .work-content {
        padding: 60px 15px;
    }

    .work-container-narrow {
        gap: 40px;
    }

    .grid-row {
        flex-direction: column;
        gap: 15px;
    }

    .photo-placeholder {
        height: 250px !important;
        flex: none !important;
        width: 100%;
    }

    .masonry-grid {
        flex-direction: column;
        gap: 15px;
    }
}