/* ═══════════════════════════════════════════════════════
   CLS — Creative Lighting Solutions
   Aesthetic: Brutalist-minimal, dark, bold.
   Black & white dominant. Yellow (#E8C547) + Purple (#9B59B6) accents.
   ═══════════════════════════════════════════════════════ */

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

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

/* ── DESIGN TOKENS ────────────────────────────────────── */
:root {
    --black: #000000;
    --white: #ffffff;
    --off-white: #e0e0e0;
    --grey: #888888;
    --yellow: #E8C547;
    --purple: #9B59B6;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* ── SELECTION ────────────────────────────────────────── */
::selection {
    background: var(--yellow);
    color: var(--black);
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.hero-logo {
    width: min(88vw, 900px);
    opacity: 0;
    animation: fadeInLogo 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes fadeInLogo {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0px);
    }
}

/* Scroll hint */
.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: fadeIn 1s ease 2.5s forwards;
}

.hero-scroll-hint span {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--grey);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--grey), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.4); opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   PORTFOLIO — PHOTO BLOCKS
   ═══════════════════════════════════════════════════════ */
#portfolio {
    position: relative;
}

.photo-block {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-block__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Desaturate by default for the B&W look */
    filter: grayscale(60%) brightness(0.55);
    transition: filter 0.8s ease;
}

.photo-block:hover .photo-block__img {
    filter: grayscale(20%) brightness(0.45);
}

.photo-block__overlay {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    max-width: 800px;
    text-align: center;
}

/* ── LAYOUT VARIANTS ─────────────────────────────────── */
.photo-block--right .photo-block__overlay {
    margin-left: auto;
    margin-right: 8%;
    text-align: right;
}

.photo-block--left .photo-block__overlay {
    margin-right: auto;
    margin-left: 8%;
    text-align: left;
}

/* ── TYPOGRAPHY ───────────────────────────────────────── */
.photo-block__heading {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 40px rgba(0,0,0,0.8);
}

.photo-block__text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--off-white);
    max-width: 700px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.9);
}

.photo-block--right .photo-block__text {
    margin-left: auto;
}

.photo-block--left .photo-block__text {
    margin-right: auto;
}

/* ── ACCENT COLORS ────────────────────────────────────── */
.accent-yellow {
    color: var(--yellow);
}

.accent-purple {
    color: var(--purple);
}

/* ── REVEAL ANIMATION ─────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal.is-visible .photo-block__heading {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.reveal.is-visible .photo-block__text {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

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

/* ═══════════════════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════════════════ */
#contact {
    position: relative;
    background: var(--black);
    padding: 8rem 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.contact-inner {
    text-align: center;
    max-width: 600px;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-line {
    width: 80px;
    height: 2px;
    background: var(--yellow);
    margin: 0 auto 2rem;
}

.contact-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--off-white);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.04em;
    color: var(--black);
    background: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border: 2px solid var(--white);
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease;
}

.contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--yellow);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-btn__text {
    position: relative;
    z-index: 2;
}

.contact-btn:hover {
    border-color: var(--yellow);
}

.contact-btn:hover::before {
    transform: translateY(0);
}

.contact-footer {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.contact-footer span {
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════
   FIXED CONTACT BUTTON
   ═══════════════════════════════════════════════════════ */
.fixed-contact-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 1.6rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease,
                background 0.3s ease, color 0.3s ease;
    pointer-events: none;
}

.fixed-contact-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fixed-contact-btn:hover {
    background: var(--yellow);
    color: var(--black);
}

.fixed-contact-btn__icon {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .fixed-contact-btn {
        bottom: 1.2rem;
        right: 1.2rem;
        padding: 0.75rem 1.2rem;
        font-size: 0.75rem;
    }

    .photo-block--right .photo-block__overlay,
    .photo-block--left .photo-block__overlay {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .photo-block--right .photo-block__text,
    .photo-block--left .photo-block__text {
        margin-left: auto;
        margin-right: auto;
    }

    .photo-block__overlay {
        padding: 2rem 1.5rem;
    }

    .photo-block__heading {
        font-size: clamp(2.5rem, 12vw, 4.5rem);
    }

    .contact-btn {
        font-size: 0.85rem;
        padding: 0.9rem 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 95vw;
    }

    .photo-block__heading {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}
