/* Color Palette */
:root {
    --bg-void: #04060B;
    --bg-dark: #081420;
    --bg-accent: #0F2539;
    --glow-base: #A85061;
    --glow-bright: #F6B4C1;
    --white: #ffffff;
    --white-soft: rgba(255, 255, 255, 0.7);
    --white-muted: rgba(255, 255, 255, 0.4);

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --grid-gap: clamp(1rem, 2vw, 1.5rem);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-void);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.95rem 2.85rem;
    width: min(92vw, 1280px);

    background: rgba(4, 6, 11, 0.42);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);

    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);

    transition: all 0.35s ease;
}















.nav-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--glow-bright);
}

/* Navbar logo image */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    height: 28px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s ease, filter 0.3s ease, height 0.3s ease;
}

.navbar.scrolled .nav-logo-img {
    height: 24px;
}

.nav-logo:hover .nav-logo-img {
    transform: translateY(-1px) scale(1.04);
    filter: drop-shadow(0 0 24px rgba(0, 0, 0, 0.6));
}


.nav-links {
    display: flex;
    gap: 2rem;
}

/* =========================
   Top bar scroll progress
   ========================= */
.navbar { gap: 1.25rem; flex-wrap: nowrap; }

.nav-progress {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    max-width: 520px;
    min-width: 140px;

    pointer-events: none;
}

.nav-progress-track {
    width: 100%;
    height: 3px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 0 rgba(255, 0, 0, 0);

    overflow: hidden;
    position: relative;
}

.nav-progress-fill {
    --p: 0;
    height: 100%;
    width: 0%;

    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;

    position: relative;
    transition: width 0.10s linear;
}

.nav-progress-tip {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);

    width: 10px;
    height: 10px;
    border-radius: 50%;

    /* Torch-like glow: bright core + soft falloff */
    background: radial-gradient(
        circle,
        #ff5a5a 0%,
        #ff3b3b 35%,
        rgba(255, 59, 59, 0.60) 55%,
        rgba(255, 59, 59, 0.25) 70%,
        rgba(255, 59, 59, 0) 100%
    );

    filter:
        blur(0.2px)
        drop-shadow(0 0 6px rgba(255, 80, 80, 0.80))
        drop-shadow(0 0 14px rgba(255, 60, 60, 0.60))
        drop-shadow(0 0 28px rgba(255, 40, 40, 0.40));

    opacity: calc(var(--p) * 1);

    /* Subtle living flicker */
    animation: torch-flicker 1.8s ease-in-out infinite;

    pointer-events: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nav-progress-fill { transition: none; }
    .nav-progress-tip { animation: none; }
}


.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white-soft);
    text-decoration: none;
    position: relative;

    /* Give the hover glow a little "pill" area */
    padding: 0.5rem 0.65rem;
    border-radius: 999px;

    /* Hover animation (replaces sliding underline) */
    transition:
        color 0.25s ease,
        transform 0.25s ease,
        text-shadow 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
    will-change: transform;
}

.nav-link:hover {
    color: var(--glow-bright);
    transform: translateY(-3px);

    /* light red glow */
    text-shadow:
        0 0 10px rgba(246, 180, 193, 0.55),
        0 0 22px rgba(168, 80, 97, 0.35);

    /* subtle glassy pill */
    background-color: rgba(246, 180, 193, 0.08);
    box-shadow:
        0 0 18px rgba(246, 180, 193, 0.18),
        inset 0 0 0 1px rgba(246, 180, 193, 0.25);
}

/* Keyboard accessibility */
.nav-link:focus-visible {
    outline: none;
    color: var(--glow-bright);
    background-color: rgba(246, 180, 193, 0.08);
    box-shadow:
        0 0 0 2px rgba(246, 180, 193, 0.55),
        0 0 24px rgba(246, 180, 193, 0.18);
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-accent);
    border-radius: 5px;
    border: 2px solid var(--bg-void);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--glow-base);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-accent) var(--bg-void);
}

#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(4, 6, 11, 0.4) 0%,
            rgba(4, 6, 11, 0.6) 50%,
            rgba(4, 6, 11, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.logo-container {
    position: relative;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: translateY(10px);
    animation: heroIn 900ms cubic-bezier(0.2, 0.9, 0.2, 1) 200ms forwards;
    will-change: opacity, transform;
}

.logo-image {
    width: clamp(260px, 60vw, 720px);
    height: auto;
    object-fit: contain;

    /* Tighten visual bounding box so text sits closer */
    margin-bottom: -2.2rem;

    filter: drop-shadow(0 0 35px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.logo-image:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 50px rgba(0, 0, 0, 0.75));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white-muted);
    letter-spacing: 0.1em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 12rem);
    letter-spacing: 0.15em;
    line-height: 0.9;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, var(--white) 0%, var(--white-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(246, 180, 193, 0.3);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--glow-bright);
    margin-top: -2.35rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--white-muted);
    letter-spacing: 0.1em;
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--glow-bright);
    border-bottom: 2px solid var(--glow-bright);
    transform: rotate(45deg);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }
}

#portfolio {
    padding: var(--section-padding) clamp(1rem, 5vw, 4rem);
    background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-dark) 100%);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

/* Masonry Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: var(--grid-gap);
    max-width: 1400px;
    margin: 0 auto;
}

/* Video Card Sizes */
.video-card--large {
    grid-column: span 2;
    grid-row: span 2;
}

.video-card--wide {
    grid-column: span 2;
    grid-row: span 1;
}

.video-card--tall {
    grid-column: span 1;
    grid-row: span 2;
}

.video-card--medium {
    grid-column: span 1;
    grid-row: span 1;
}

.video-card--small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Video Card Styles */
.video-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-accent);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
}

.video-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(168, 80, 97, 0.3),
        inset 0 0 0 1px rgba(246, 180, 193, 0.2);
}

.thumbnail-placeholder,
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 37, 57, 0.8) 0%, rgba(8, 20, 32, 0.9) 100%);
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* When there's a thumbnail, only show overlay on hover */
.video-card:has(.video-thumbnail) .video-overlay {
    opacity: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 6, 11, 0.9) 100%);
}

.video-card:has(.video-thumbnail):hover .video-overlay {
    opacity: 1;
}

.video-thumbnail {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-icon {
    font-size: 3rem;
    color: var(--glow-bright);
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.2);
    opacity: 1;
}

.video-title {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-card:hover .video-title {
    opacity: 1;
    transform: translateY(0);
}

.inline-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card.playing .thumbnail-placeholder {
    opacity: 0;
}

.video-card.playing .inline-video {
    opacity: 1;
}

#photography {
    padding: var(--section-padding) clamp(1rem, 5vw, 4rem);
    background: var(--bg-dark);
}

/* Photo Grid - Masonry */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: var(--grid-gap);
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}

/* Photo Card Sizes */
.photo-card--large {
    grid-column: span 2;
    grid-row: span 2;
}

.photo-card--wide {
    grid-column: span 2;
    grid-row: span 1;
}

.photo-card--tall {
    grid-column: span 1;
    grid-row: span 2;
}

.photo-card--medium {
    grid-column: span 1;
    grid-row: span 1;
}

.photo-card--small {
    grid-column: span 1;
    grid-row: span 1;
}

/* Photo Card Styles */
.photo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-accent);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    content-visibility: auto;
    contain-intrinsic-size: 250px 250px;
    contain: layout paint style;
}

.photo-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(168, 80, 97, 0.3),
        inset 0 0 0 1px rgba(246, 180, 193, 0.2);
}

.photo-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-dark) 100%);
    z-index: 1;
}

.photo-icon {
    font-size: 3rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

.photo-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white-muted);
}

.photo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

/* When image loads, hide placeholder */
.photo-image:not([src=""]):not([src$="undefined"]) {
    opacity: 1;
}

.photo-card:hover .photo-image {
    transform: scale(1.05);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

#contact {
    padding: var(--section-padding) 2rem;
    background: var(--bg-dark);
    text-align: center;
    border-top: 1px solid rgba(246, 180, 193, 0.1);

    /* Needed for background + animated fade layers */
    position: relative;
    overflow: hidden;
    --footer-fade: 0.75; /* default strength; JS will animate */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-accent);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background: var(--glow-base);
    border-color: var(--glow-bright);
    color: var(--white);
    box-shadow:
        0 0 20px rgba(168, 80, 97, 0.5),
        0 0 40px rgba(246, 180, 193, 0.2);
    transform: translateY(-3px);
}

.social-link:hover svg {
    transform: scale(1.1);
}

.copyright {
    font-size: 0.85rem;
    color: var(--white-muted);
    letter-spacing: 0.05em;
}

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

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

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(168, 80, 97, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

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

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border: none;
    background: var(--bg-accent);
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: var(--glow-base);
    color: var(--white);
    box-shadow: 0 0 20px rgba(168, 80, 97, 0.5);
}

/* 3D perspective for card hover */
.portfolio-grid {
    perspective: 1000px;
}

.video-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Smooth transitions for GSAP */
.hero-content>* {
    will-change: opacity, transform;
}

/* Lenis smooth scroll body */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* Character animation for title */
.hero-title .char {
    display: inline-block;
    will-change: opacity, transform;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .video-card--large,
    .video-card--wide {
        grid-column: span 2;
    }

    .video-card--tall {
        grid-row: span 2;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-link {
        width: 48px;
        height: 48px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

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

    .video-card--large,
    .video-card--wide,
    .video-card--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .logo-placeholder {
        width: 80px;
        height: 80px;
    }
}

/* Hero logo glass shadow variables */
:root {
    --logo-shadow-blur: 35px;
    --logo-shadow-opacity: 0.6;
}

.logo-image {
    filter: drop-shadow(0 0 var(--logo-shadow-blur) rgba(0, 0, 0, var(--logo-shadow-opacity)));
}

/* Contact section background image */
#contact {
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(4, 6, 11, 0.75),
            rgba(4, 6, 11, 0.9)
        ),
        url("assets/footer.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
#contact::after {
    /* Bottom fade to avoid a hard cutoff; opacity animated on scroll */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(120px, 18vh, 220px);
    background: linear-gradient(
        to bottom,
        rgba(4, 6, 11, 0) 0%,
        rgba(4, 6, 11, 0.7) 55%,
        rgba(4, 6, 11, 1) 100%
    );
    opacity: var(--footer-fade, 0.75);
    transition: opacity 160ms linear;
    z-index: 0;
    pointer-events: none;
}


#contact > * {
    position: relative;
    z-index: 1;
}

/* Subtle glow + grain for hero logo */
.logo-image {
    position: relative;
    filter:
        drop-shadow(0 0 22px rgba(255, 255, 255, 0.12))
        drop-shadow(0 0 45px rgba(0, 0, 0, 0.55));
}

/* Grain overlay using pseudo-element */
.logo-container::after {
    content: "";
    position: absolute;
    inset: -10%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    opacity: 0.35;
}

/* Glass shadow effect for section titles */
.section-title--glass {
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.55),
        0 18px 48px rgba(0, 0, 0, 0.45);
    position: relative;
}

/* Optional subtle glow on dark backgrounds */
.section-title--glass::after {
    content: "";
    position: absolute;
    inset: -15%;
    pointer-events: none;
    filter: blur(24px);
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.08),
        transparent 65%
    );
    opacity: 0.6;
}



.section-title--glass .title-soft {
    font-weight: 300;
    opacity: 0.75;
    letter-spacing: 0.1em;
}

/* Size contrast for 3D Work title */
.section-title--glass .title-strong {
    font-size: 1em; /* base size */
}

.section-title--glass .title-soft {
    font-size: 0.85em; /* slightly smaller than 3D */
    font-weight: 300;
    opacity: 0.75;
}

/* Section title ampersand + subtitle */
.section-title--glass .ampersand {
    font-weight: 300;
    opacity: 0.6;
    margin: 0 0.15em;
}

.section-subtitle {
    margin-top: -2.35rem;
    margin-bottom: 3rem;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* Center subtitle under section title */
.section-subtitle {
    text-align: center;
    width: 100%;
}

/* Fade hero video into next section (soft bottom gradient) */
#hero {
    position: relative;
    overflow: hidden;
}

#hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(18vh, 180px);
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(4, 6, 11, 0) 0%,
        rgba(4, 6, 11, 0.65) 55%,
        rgba(4, 6, 11, 1) 100%
    );
    z-index: 3;
}


/* Subtle horizontal nudge for hero logo */
.hero-content {
    transform: translateX(1.5vw);
}

/* Mobile polish: keep nav from overflowing + keep hero centered */
@media (max-width: 640px) {
    .navbar {
        top: 0.6rem;
        padding: 0.65rem 1rem;
        width: calc(100vw - 1.5rem);
        gap: 0.65rem;
    }

    .nav-logo-img {
        height: 24px;
    }

    .nav-links {
        gap: 0.6rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .nav-link {
        font-size: 0.72rem;
        padding: 0.35rem 0.45rem;
        letter-spacing: 0.08em;
    }

    .hero-content {
        transform: none; /* stop the horizontal nudge on small screens */
        padding: 1.5rem;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .nav-progress {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        min-width: 0;
        margin-top: 0.18rem;
    }

    .nav-progress-track {
        height: 3px;
    }

    .nav-progress-tip {
        width: 10px;
        height: 10px;
        right: -6px;
    }

    .nav-progress-tip::after {
        left: -18px;
        width: 22px;
        height: 14px;
    }

}

@media (max-width: 420px) {
    .navbar {
        padding: 0.6rem 0.85rem;
    }

    .nav-links {
        gap: 0.45rem;
    }

    .nav-link {
        font-size: 0.68rem;
    }
}


/* =========================
   Lightbox (Images + YouTube)
   ========================= */
body.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    width: min(1100px, 92vw);
    max-height: 86vh;
    position: relative;
    transform: translateY(10px) scale(0.96);
    opacity: 0;
    animation: lightboxIn 220ms ease forwards;
}

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

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 80, 80, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.92);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lightbox-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 80, 80, 0.55);
    background: rgba(0, 0, 0, 0.55);
}

.lightbox-media {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 44px rgba(255, 80, 80, 0.38);
    border: 1px solid rgba(255, 80, 80, 0.22);
    background: rgba(0, 0, 0, 0.35);
}

.lightbox-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
}

.lightbox-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.lightbox-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.lightbox-external {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    color: rgba(255, 120, 120, 1);
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.32);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.lightbox-external:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 80, 80, 0.6);
    background: rgba(255, 80, 80, 0.22);
}



/* === Intro animations === */
@keyframes heroIn{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes aboutFloat{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-3px); }
  100%{ transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .logo-container,
  .about-btn-wrap{
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === About Me button (glass pill + icon) === */
.about-btn-wrap{
  margin-top: 6px; /* closer to bottom of logo */
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  animation: heroIn 900ms cubic-bezier(0.2, 0.9, 0.2, 1) 420ms forwards, aboutFloat 7.5s ease-in-out 1600ms infinite;
  will-change: opacity, transform;
}

.about-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 8px 18px;
  border-radius: 999px;

  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 10px 35px rgba(0,0,0,0.35),
    0 0 22px rgba(255, 60, 60, 0.16);

  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    border-color 220ms ease;
}

.about-btn-icon{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 0 16px rgba(255, 60, 60, 0.12);
  flex: 0 0 auto;
}

.about-btn-text{
  display: inline-block;
  transform: translateY(0.5px); /* optical alignment */
}

.about-btn:hover{
  transform: translateY(-2px) scale(1.02);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  box-shadow:
    0 14px 45px rgba(0,0,0,0.42),
    0 0 26px rgba(255, 60, 60, 0.22);
}

.about-btn:hover .about-btn-icon{
  box-shadow: 0 0 18px rgba(255, 60, 60, 0.22);
}

.about-btn:active{
  transform: translateY(0) scale(0.98);
}

.about-btn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255, 60, 60, 0.35),
    0 14px 45px rgba(0,0,0,0.42),
    0 0 26px rgba(255, 60, 60, 0.22);
}

@media (max-width: 480px){
  .about-btn-wrap{ margin-top: 4px; }
  .about-btn{
    font-size: 11px;
    padding: 7px 16px;
    letter-spacing: 0.11em;
  }
}

/* === About Me modal === */
.about-modal{
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.about-modal.active{
  opacity: 1;
  visibility: visible;
}

.about-dialog{
  position: relative;
  width: min(560px, 100%);
  border-radius: 18px;
  padding: 22px 20px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 26px 80px rgba(0,0,0,0.55),
    0 0 30px rgba(255, 60, 60, 0.14);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: transform 240ms ease, opacity 240ms ease;
  outline: none;
}

.about-modal.active .about-dialog{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.about-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease;
}

.about-close:hover{
  transform: scale(1.04);
  background: rgba(0,0,0,0.35);
}

.about-title{
  margin: 4px 0 10px;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.about-body p{
  margin: 10px 0;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
}

.about-note{
  margin-top: 14px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.about-note code{
  background: rgba(0,0,0,0.25);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
}

html.modal-open,
body.modal-open{
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce){
  .about-btn,
  .about-modal,
  .about-dialog{
    transition: none !important;
  }
}
/* Flame tail for the torch tip (adds a small “comet” / flame look) */
.nav-progress-tip::after {
    content: "";
    position: absolute;
    left: -22px;               /* tail extends behind the tip */
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 16px;
    border-radius: 999px;

    /* layered glow: bright near the tip, softer as it trails off */
    background:
        radial-gradient(ellipse at 92% 50%,
            rgba(255, 90, 90, 0.95) 0%,
            rgba(255, 60, 60, 0.55) 35%,
            rgba(255, 60, 60, 0.0) 72%),
        linear-gradient(to left,
            rgba(255, 60, 60, 0.40) 0%,
            rgba(255, 60, 60, 0.18) 35%,
            rgba(255, 60, 60, 0.0) 90%);

    filter:
        blur(0.3px)
        drop-shadow(0 0 8px rgba(255, 70, 70, 0.55))
        drop-shadow(0 0 18px rgba(255, 50, 50, 0.35));
    opacity: 0.95;
    pointer-events: none;
}




/* =========================
   Clients logo strip (between media sections)
   ========================= */
#clients{
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1rem, 5vw, 4rem);
  background: var(--bg-dark);
  border-top: 1px solid rgba(246, 180, 193, 0.08);
  border-bottom: 1px solid rgba(246, 180, 193, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.clients-inner{
  max-width: 1400px;
  margin: 0 auto;
}

.clients-kicker{
  margin-bottom: 1.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.clients-marquee{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 22px;

  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* soft edge fade so the movement feels “infinite” */
.clients-marquee::before,
.clients-marquee::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: min(16vw, 140px);
  pointer-events: none;
  z-index: 2;
}
.clients-marquee::before{
  left: 0;
  background: linear-gradient(to right, rgba(8,20,32,1), rgba(8,20,32,0));
}
.clients-marquee::after{
  right: 0;
  background: linear-gradient(to left, rgba(8,20,32,1), rgba(8,20,32,0));
}

.clients-track{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  width: max-content;
  margin: 0 auto;

  animation: clients-oscillate 16s ease-in-out infinite alternate;
  will-change: transform;
}

.clients-track img{
  height: 44px;
  width: auto;
  display: block;
  opacity: 0.85;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.45));
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.clients-marquee:hover .clients-track{
  animation-play-state: paused;
}

.clients-marquee:hover .clients-track img{
  opacity: 0.95;
}

.clients-track img:hover{
  opacity: 1;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 22px rgba(0, 0, 0, 0.60));
}

@keyframes clients-oscillate{
  from{ transform: translateX(-8%); }
  to{ transform: translateX(8%); }
}

@media (max-width: 640px){
  .clients-track{ animation-duration: 22s; }
  .clients-track img{ height: 34px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .clients-track{ animation: none !important; transform: none !important; }
}


/* Client logo hover glow */
.client-logo {
  filter: brightness(0.9);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logo:hover {
  filter:
    brightness(1.15)
    drop-shadow(0 0 10px rgba(246, 180, 193, 0.45))
    drop-shadow(0 0 22px rgba(168, 80, 97, 0.35))
    drop-shadow(0 0 38px rgba(168, 80, 97, 0.25));
  transform: translateY(-2px);
}


/* Increase spacing between client logos */
.client-strip-track {
  gap: clamp(3rem, 6vw, 6rem);
}

.client-logo {
  margin: 0 1.5rem;
}


/* Photography camera subheading */
.camera-subtitle {
  margin-top: -2.1rem;
  margin-bottom: 3rem;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}


.photo-card { will-change: auto; }
@media (hover: hover) and (pointer: fine) {
  .photo-card:hover { will-change: transform; }
}

/* =========================
   Mobile header fixes (logo centered + progress/nav moved up)
   ========================= */
@media (max-width: 640px) {

  /* Re-layout navbar vertically */
  .navbar {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding-top: 0.55rem;
    padding-bottom: 0.6rem;
  }

  /* Center the star logo */
  .nav-logo {
    order: 1;
    justify-content: center;
  }

  /* Move progress bar up */
  .nav-progress {
    order: 2;
    width: 100%;
    margin-top: -2px; /* pulls it upward */
  }

  /* Move nav links up and center them */
  .nav-links {
    order: 3;
    justify-content: center;
    width: 100%;
    margin-top: -2px;
  }
}
