/* style.css - Luxury Noir & Blanc Portfolio Theme */
:root {
    --bg-color: #0c0c0c;
    /* Deep off-black */
    --bg-alt: #141414;
    /* Slightly lighter off-black for section breaks */
    --text-color: #f5f5f5;
    /* Clean off-white */
    --text-muted: #a0a0a0;
    /* Grey for subtitles */
    --accent-color: #ffffff;
    /* Pure white for hovers/highlights */

    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-color);
}

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

/* Responsive Utilities (Moved to bottom for final authority) */

/* =========================================
   Typography & Colors
========================================= */
h1,
h2,
h3,
.nav-brand {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 0.05em;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-subtitle {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    font-weight: 300;
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(12, 12, 12, 0.9) 0%, rgba(12, 12, 12, 0) 100%);
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

.nav-brand {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
}

.nav-brand a {
    color: var(--text-color);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* Nav Toggle (Hamburger) - Hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle .bar {
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient fade at the bottom of the hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
    z-index: 1;
    pointer-events: none;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.7; /* Darkens video slightly for text readability on desktop */
}

/* Ensure mobile-specific asset is fully opaque when shown */
.hero-bg-video.hide-desktop {
    opacity: 1;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-overlay h1 {
    font-size: 4vw;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.hero-overlay p {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .hero {
        height: 80vh; /* Suggests scrolling by showing section below */
        background-color: #000;
        position: relative;
    }
    .hero-bg-video.hide-desktop {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        object-fit: cover; /* Since user provides a 4:5 video, cover will look great on phones */
        opacity: 1;
    }
}

/* =========================================
   Layout & Sections
========================================= */
.pad-section {
    padding: 8rem 5%;
}

@media (max-width: 768px) {
    .pad-section {
        padding: 5rem 5%;
    }
}

.bg-alt {
    background-color: var(--bg-alt);
}

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

/* =========================================
   Social Reel Split Layout
========================================= */
.social-split-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Pull them closely together perfectly centered */
    gap: 6rem;
}

.social-text {
    flex: 0 1 420px;
    /* Constrict width to avoid text line stretching too long */
}

.social-text .section-subtitle {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.sample-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.8;
}

.social-visual {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reel-device-simulation {
    width: 100%;
    min-width: 300px;
    max-width: 320px;
    aspect-ratio: 9 / 19.5;
    background: transparent; /* Remove "border" color */
    border-radius: 40px;
    position: relative;
    /* Removed box-shadow to eliminate any perceived border */
    overflow: hidden;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .reel-device-simulation {
        max-width: none;
        aspect-ratio: auto;
        height: 80vh; /* Fixed height is key for snapping and auto-scroll */
        border-radius: 12px;
    }
}

.reel-container {
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Enable native scroll for snapping */
    scrollbar-width: none; /* Hide for Firefox */
    -ms-overflow-style: none; /* Hide for IE */
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.reel-container::-webkit-scrollbar {
    display: none; /* Hide for Chrome/Safari */
}

.reel-slide {
    width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent; /* Remove "border" color */
}

/* Caption that follows the mouse cursor over the reel slide */
.reel-caption {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: center;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    white-space: nowrap;
    /* We don't use transition: transform here to keep it snappy with the mouse */
    transition: opacity 0.3s ease;
}

.reel-slide:hover .reel-caption {
    opacity: 1;
}

@media (max-width: 768px) {
    .reel-caption {
        position: absolute;
        bottom: 20px;
        left: 20px;
        right: 20px;
        opacity: 1 !important;
        pointer-events: none;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(4px);
        color: #fff;
        padding: 1rem;
        text-align: left;
        border-radius: 8px;
        font-size: 0.9rem;
        line-height: 1.4;
        z-index: 10;
        transform: none !important;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .reel-device-simulation {
        width: 70%; /* Around 25-30% smaller as requested */
        max-width: none;
        height: 70vh; /* Shorter to allow easier page scrolling */
        border-radius: 20px;
        margin: 0 auto; /* Center and provide side-space for scrolling */
        overflow: hidden;
    }

    .reel-video {
        height: 100%;
        width: 100%;
        object-fit: cover;
        background: transparent !important;
    }

    .reel-caption {
        display: none !important;
    }

    .reel-active-caption-mobile {
        display: block;
        text-align: center;
        padding: 1.5rem 10%;
        font-family: var(--font-sans);
        font-size: 1.1rem;
        color: var(--text-color);
        font-weight: 300;
        letter-spacing: 0.05em;
        line-height: 1.5;
        min-height: 4.5rem; /* Reserve space for up to 2-3 lines */
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .reel-active-caption-mobile.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination Dots */
.reel-pagination {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    margin-left: 20px;
    z-index: 10;
}

@media (max-width: 768px) {
    .social-visual {
        flex-direction: column; /* Stack video and dots vertically */
        gap: 1.5rem;
    }
    .reel-pagination {
        flex-direction: row; /* Horizontal dots on mobile */
        margin-left: 0;
        margin-top: 10px;
    }
}

.reel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-muted);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, height 0.3s ease;
}

.reel-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.1);
    height: 18px;
    border-radius: 4px;
    /* Slight pill shape for active */
}

@media (max-width: 900px) {
    .social-split-layout {
        flex-direction: column; /* Text on top, video below */
        text-align: center;
        gap: 2rem;
    }

    .social-text {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .hero-overlay h1 {
        font-size: 8vw;
    }
}

/* =========================================
   Horizontal Carousel (Editorial & Products)
========================================= */
.carousel-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) var(--bg-alt);
    cursor: grab;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

.carousel-wrapper::-webkit-scrollbar {
    height: 6px;
}

.carousel-wrapper::-webkit-scrollbar-track {
    background: var(--bg-alt);
}

.carousel-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--text-muted);
    border-radius: 4px;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    /* Extra padding to the right so the last image doesn't end abruptly at the screen edge */
    padding: 0 5%;
    width: max-content;
    height: 600px;
}

.carousel-track figure {
    height: 100%;
    flex-shrink: 0;
}

/* Gallery figure hover overlay for captions */
.gallery-figure {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.figure-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    border-radius: 0 0 4px 4px;
}

.gallery-figure:hover .figure-caption {
    opacity: 1;
    transform: translateY(0);
}

.carousel-track img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* ensures images retain their native aspect ratio */
    border-radius: 4px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-track figure:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .carousel-track {
        height: 400px;
    }
}

/* =========================================
   Music Videos Grid
========================================= */
.music-video-grid {
    display: grid;
    /* Auto-fit: fills available space, cards are at least 280px wide.
       This means 1 card → full width, 2 → two columns, 3 → three, etc. */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    /* Keep cards centred when there are fewer than would fill a row */
    justify-content: center;
}

.music-card {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    transition: transform 0.3s ease;
}

.music-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.8;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.music-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.music-card h3 {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-align: center;
}

@media (max-width: 900px) {
    .music-video-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Magazine PDF Section
========================================= */
#magazine-pdf-container {
    padding: 1rem;
    background: transparent;
}

#magazine-canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 75vh;
    background: transparent;
    overflow: hidden;
}

#magazine-canvas-left, #magazine-canvas-right {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    #magazine-canvas-wrapper {
        height: auto;
        min-height: 250px;
    }
}

#magazine-controls button:hover {
    background: var(--text-color) !important;
    color: var(--bg-color) !important;
    border-color: var(--text-color) !important;
}

.magazine-info .section-subtitle {
    margin-bottom: 0;
}

/* =========================================
   Footer
========================================= */
.site-footer {
    text-align: center;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.2em;
}

.site-footer p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.legal-nav ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    list-style: none;
}

.legal-nav ul li {
    display: flex;
    align-items: center;
}

.legal-nav ul li:not(:last-child)::after {
    content: "·";
    color: var(--text-muted);
    margin-left: 1rem;
}

.legal-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.legal-nav a:hover {
    color: var(--text-color);
}

.legal-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 3rem auto;
    max-width: 600px;
}

.legal-section {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    text-align: left;
}

.legal-section h3 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.legal-section p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.legal-section a {
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: var(--text-color);
}

.copyright {
    font-size: 0.8rem !important;
    color: rgba(160, 160, 160, 0.5) !important;
    margin-top: 2rem !important;
    text-align: center;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

/* =========================================
   Animations & Utils
========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.3s;
}

/* =========================================
   Lightbox Modal
========================================= */
.pn-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.pn-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: zoom-out;
}

.pn-lightbox-inner {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2001;
}

.pn-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.pn-lightbox-caption {
    margin-top: 1.5rem;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.pn-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
    transition: transform 0.3s ease;
}

.pn-lightbox-close:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .pn-lightbox-close {
        top: -40px;
        right: -10px;
    }
}

/* =========================================
   Responsive Utilities (Final Authority)
========================================= */
.hide-mobile { display: block !important; }
.hide-desktop { display: none !important; }

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .hide-desktop { display: block !important; }
}