/*
   TapePhoto Design System
   Full-canvas, immersive photography portfolio
*/

:root {
    --white: #FFFFFF;
    --black: #0A0A0A;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-400: #999;
    --gray-600: #666;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Inter', -apple-system, sans-serif;
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.logo {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -1px;
    text-transform: lowercase;
}

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

.nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 4px;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--ease);
}

.nav a:hover::after { width: 100%; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s var(--ease);
}

/* ============ HERO ============ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.5) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 120px;
    left: 40px;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    writing-mode: vertical-rl;
    opacity: 0.6;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--white);
    opacity: 0.4;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.4; }
    50% { transform: scaleY(0.5); opacity: 0.8; }
}

/* ============ WORK SECTION ============ */
.work-section {
    padding: 0;
}

.section-header {
    padding: 100px 40px 60px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.5;
}

/* ============ PHOTO GRID - FULL CANVAS ============ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 25vw;
    grid-auto-flow: dense;
    gap: 4px;
    width: 100%;
}

.photo-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.photo-item.photo-wide {
    grid-column: span 2;
}

.photo-item.photo-tall {
    grid-row: span 2;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
    display: block;
}

.photo-item:hover img {
    transform: scale(1.06);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.7) 0%,
        rgba(0,0,0,0) 50%
    );
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.7;
    margin-bottom: 6px;
}

.photo-overlay h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ============ STATEMENT SECTION ============ */
.statement-section {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 4px;
}

.statement-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.statement-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.statement-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 40px;
}

.statement-content blockquote {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.btn-outline {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 14px 36px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.4s var(--ease);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 80px 40px 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.footer-brand p {
    font-size: 0.8rem;
    opacity: 0.5;
    line-height: 1.8;
}

.footer h4 {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.4;
    margin-bottom: 20px;
}

.footer-links a,
.footer-social a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 0;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover,
.footer-social a:hover {
    opacity: 1;
}

.newsletter-form {
    display: flex;
    border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.85rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-form button {
    padding: 12px 24px;
    background: var(--white);
    color: var(--black);
    border: none;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: opacity 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom p {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    opacity: 0.3;
    text-transform: uppercase;
}

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

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

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.4s var(--ease);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 2rem;
    padding: 16px;
    opacity: 0.6;
    transition: opacity 0.3s;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-close { top: 20px; right: 30px; font-size: 2.5rem; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ============ ABOUT PAGE ============ */
.about-hero {
    position: relative;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

.about-image {
    flex: 1;
    position: relative;
}

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

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 8%;
    background: var(--black);
}

.about-text h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 40px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 24px;
    max-width: 480px;
}

.about-signature {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    margin-top: 40px;
    opacity: 0.9;
}

/* ============ CONTACT PAGE ============ */
.contact-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

.contact-image {
    flex: 1;
    position: relative;
}

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

.contact-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 8%;
    background: var(--black);
}

.contact-text h1 {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.contact-text > p {
    font-size: 0.9rem;
    opacity: 0.5;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 480px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    opacity: 0.5;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255,255,255,0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

.submit-btn {
    padding: 16px 36px;
    background: var(--white);
    color: var(--black);
    border: none;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: opacity 0.3s;
    align-self: flex-start;
    margin-top: 8px;
}

.submit-btn:hover { opacity: 0.8; }

/* ============ SCROLL ANIMATIONS ============ */
/* Handled via JS inline styles for reliability */

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

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

    .menu-toggle { display: flex; }

    .nav {
        position: fixed;
        inset: 0;
        background: var(--black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease);
    }

    .nav.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav a { font-size: 1.2rem; letter-spacing: 0.3em; }

    .hero-content { left: 24px; bottom: 100px; }

    .section-header { padding: 60px 24px 40px; }

    .photo-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 35vw;
        gap: 2px;
    }

    .photo-item.photo-wide { grid-column: span 2; }
    .photo-item.photo-tall { grid-row: span 2; }

    .photo-overlay { opacity: 1; }
    .photo-overlay h3 { font-size: 1rem; }
    .photo-overlay { padding: 16px; }

    .statement-section { height: 60vh; }
    .statement-content blockquote { font-size: 1.2rem; }

    .about-hero,
    .contact-hero { flex-direction: column; }

    .about-image,
    .contact-image { height: 50vh; flex: none; }

    .about-text,
    .contact-text { padding: 60px 24px; }

    .footer { padding: 60px 24px 30px; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 60vw;
    }

    .photo-item.photo-wide { grid-column: span 1; }
    .photo-item.photo-tall { grid-row: span 1; }

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