/* 
  EMON GO PHOTOGRAPHY — "THE ABSOLUTE GALLERY"
  Theme: Ultra-Minimalist White / High-End / Cinematic
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300;400;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&display=swap');

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --text-muted: #888888;
    --accent: #1a1a1a;
    --border: rgba(0, 0, 0, 0.05);
    --header-h: 100px;
    --container-px: 8vw;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html,
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
.serif {
    font-family: 'Cormorant Gramond', serif;
    font-weight: 300;
    text-transform: none;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.4s ease;
}

a:hover {
    opacity: 0.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    /* Global Black & White */
    transition: filter 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

a:hover img {
    filter: grayscale(0%);
    /* Subtle reveal on hover */
}

/* --- Layout --- */
.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.section {
    padding: 160px 0;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 3000;
    /* Increased to be above everything, including mobile nav */
    display: flex;
    align-items: center;
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
}

.site-header.scrolled {
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand img {
    height: 38px;
    width: auto;
    transition: 0.4s ease;
}

.scrolled .brand img {
    height: 30px;
}

.nav-menu {
    display: flex;
    gap: 50px;
}

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

.nav-link {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .brand img {
        height: 20px;
    }

    .scrolled .brand img {
        height: 20px;
    }
}

.brand img {
    height: 32px;
    width: auto;
    /* Kept from original */
    transition: height 0.4s ease;
}

.scrolled .brand img {
    height: 20px;
}

.nav-link.active {
    opacity: 1;
}

/* Mobile Toggle */
.menu-btn {
    display: none;
    cursor: pointer;
    z-index: 2200;
    width: 30px;
}

@media (max-width: 900px) {
    .menu-btn {
        display: block;
    }
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text);
    margin: 8px 0;
    transition: 0.4s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: #000;
    /* Ensure visibility on white menu */
}

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

.menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: #000;
}

.mobile-nav {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.mobile-nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    /* Reduced by ~2 points as requested */
    letter-spacing: -0.01em;
    color: #000;
}

.mobile-insta {
    margin-top: 20px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.mobile-insta:hover {
    opacity: 1;
}

/* --- Entrance Hero --- */
.entrance-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.65);
    transform: scale(1);
    transition: transform 12s linear;
}

.slide.active img {
    transform: scale(1.15);
}

/* Parallax Effect Classes */
.parallax-item {
    will-change: transform;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 10;
    text-align: center;
    padding: 0 40px;
    /* Increased padding */
}

.hero-logo {
    height: 52px;
    width: auto;
    filter: invert(1);
    margin-bottom: 50px;
    max-width: 100%;
}

@media (max-width: 600px) {
    .hero-logo {
        height: auto;
        width: 100%;
        max-width: 300px;
        margin-bottom: 40px;
    }
}

.hero-cta {
    padding: 18px 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    /* Slightly increased opacity for better visibility */
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-radius: 100px;
    transition: all 0.5s ease;
    display: inline-block;
    position: relative;
    z-index: 15;
}

@media (max-width: 600px) {
    .hero-cta {
        padding: 15px 35px;
        font-size: 0.65rem;
        letter-spacing: 0.4em;
    }
}

.hero-cta:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    opacity: 1;
}

/* --- Gallery Grid --- */
.page-head {
    padding-top: 240px;
    padding-bottom: 80px;
}

.page-head h1 {
    font-size: clamp(3.5rem, 8vw, 7.5rem);
    line-height: 0.9;
    margin-top: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12vw;
    justify-items: center;
    padding: 100px 0 200px;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 80px;
        padding-top: 50px;
    }

    .gallery-item {
        max-width: 90vw;
    }
}

.gallery-item {
    width: 100%;
    max-width: 38vw;
    position: relative;
    will-change: transform, opacity;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(50px);
}

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

.gallery-item.full {
    grid-column: auto;
    /* Remove full-width behavior */
}

.gallery-item.portrait {
    grid-column: span 5;
}

.gallery-item.offset {
    margin-top: 0;
}

@media (max-width: 900px) {
    .gallery-grid {
        gap: 80px 30px;
    }

    .gallery-item,
    .gallery-item.portrait,
    .gallery-item.offset {
        grid-column: span 12;
        margin-top: 0;
    }
}

.image-box {
    overflow: hidden;
    background: #fcfcfc;
    position: relative;
}

.image-box img {
    width: 100%;
    height: auto;
    transition: transform 2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.item-info {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

@media (max-width: 600px) {
    .item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 15px;
    }
}

.item-info h3 {
    font-size: 2.2rem;
}

.item-info span {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .item-info h3 {
        font-size: 1.6rem;
    }

    .item-info span {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }
}

/* --- Profile --- */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 120px;
    align-items: start;
}

@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.bio {
    font-size: 1.15rem;
    line-height: 2;
    color: #333;
    max-width: 750px;
}

.exp-item {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exp-item .year {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.exp-item .title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
}

/* --- Footer --- */
footer {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 80px;
}

.footer-nav {
    display: flex;
    gap: 100px;
}

.f-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 600;
}

.f-list {
    list-style: none;
}

.f-list li {
    margin-bottom: 15px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.f-bottom {
    margin-top: 120px;
    padding-top: 50px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    /* Controlled by JS */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lb-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3100;
    font-family: 'Outfit';
    font-weight: 100;
}

.lb-main-img {
    max-width: 85vw;
    max-height: 65vh;
    /* Reduced to make room for text */
    object-fit: contain;
    filter: grayscale(100%);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lb-info {
    text-align: center;
    color: #fff;
    margin-top: 30px;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
}

.lightbox.active .lb-info {
    opacity: 1;
}

.lb-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.lb-meta {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 600px) {
    .lb-title {
        font-size: 1.4rem;
    }

    .lb-meta {
        font-size: 0.6rem;
    }

    .lb-main-img {
        max-height: 55vh;
    }
}

.lb-thumbs {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 40px;
    overflow-x: auto;
}

.lb-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    opacity: 0.3;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lb-thumb.active {
    opacity: 1;
    border-color: #fff;
}

/* --- Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
    /* Ensures smoother rendering during animation */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}