/*
 * SDC12 Main CSS
 * Reference: Annapurna Pictures
 */

:root {
    --sdc-font-main: 'Inter', sans-serif;
    --sdc-bg-dark: #000;
    --sdc-text-light: #fff;
    --sdc-accent: #ff0000;
}

body {
    background-color: var(--sdc-bg-dark);
    color: var(--sdc-text-light);
    font-family: var(--sdc-font-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Seamless Page Transitions */
#page {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

/* Loading and Navigating states */
body.is-navigating #page,
body.is-loading #page {
    opacity: 0;
    pointer-events: none;
}

/* Exclude Submission Page from transitions if necessary */
body.page-template-page-submission-php #page,
body.input-db #page {
    opacity: 1 !important;
    transition: none !important;
}

/* =========================================
   BOOT SCREEN
   ========================================= */
#sdc-boot-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s ease-out;
}

/* Hidden by default if no JS or already visited */
#sdc-boot-screen.boot-hidden {
    display: none;
}

/* Fade out the overlay */
#sdc-boot-screen.boot-fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Logo animations */
.boot-logo {
    height: 160px;
    width: auto;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.boot-logo.logo-visible {
    opacity: 1;
    transform: scale(1);
}

.boot-logo.logo-fade-out {
    opacity: 0;
    transform: scale(1.05);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff !important;
    /* Force */
}

a {
    color: #fff !important;
    /* Force */
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
    color: #fff !important;
}

/* =========================================
   HEADER
   ========================================= */
/* =========================================
   UNIVERSAL HEADER & NAVIGATION
   ========================================= */

.sdc12-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    padding-bottom: 60px;
    /* Extra space for gradient to extend naturally */
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    pointer-events: none;
    /* Allow clicks to pass through gradient area */
}

/* Re-enable pointer events for interactive elements in header */
.sdc12-header .sdc12-header-inner,
.sdc12-header .sdc12-logo,
.sdc12-header .sdc12-nav,
.sdc12-header .hamburger-menu {
    pointer-events: auto;
}

.sdc12-header-inner,
.single-work-content,
.about-content,
.landing-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.single-work-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.sdc12-header-inner {
    padding: 0 50px;
    /* Base padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    margin-left: -2px;
    /* Compensate for internal SVG whitespace to make it felt "mentok kiri" */
}

/* Visibility Helpers */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

.hamburger-menu,
.sdc12-mobile-nav {
    display: none;
}

.sdc12-nav ul.desktop-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

.sdc12-nav ul.desktop-menu a {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #fff !important;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1100;
}

/* Mobile Header Changes */
@media (max-width: 768px) {
    .sdc12-header {
        padding: 10px 0;
    }

    .sdc12-header-inner {
        padding: 0 20px;
    }

    /* Mobile content edge */

    .sdc12-nav ul.desktop-menu {
        display: none !important;
    }

    .hamburger-menu {
        display: flex !important;
    }

    /* Space content from header on mobile */
    .single-work-content,
    .about-content {
        padding-top: 130px !important;
        /* Increased padding */
    }

    /* Active State Animation */
    .hamburger-menu.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Nav Overlay */
    .sdc12-mobile-nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        z-index: 1050;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .sdc12-logo {
        margin-left: -2px;
        /* Compensate for internal SVG whitespace */
    }

    .header-logo {
        height: 40px;
        width: auto;
        display: block;
    }

    .sdc12-mobile-nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .mobile-nav-inner li {
        margin-bottom: 25px;
        list-style: none;
        text-align: center;
    }

    .mobile-nav-inner a {
        font-size: 1.8rem;
        font-weight: 800;
        text-transform: uppercase;
        color: #fff !important;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* =========================================
   LANDING / PORTFOLIO ENGINE (Front Page)
   ========================================= */

/* =========================================
   LANDING / PORTFOLIO ENGINE (Front Page)
   ========================================= */

.landing {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 80px 0;
    /* Adjusted for header clearance */
    align-items: flex-start;
}

.landing-inner {
    padding: 0 50px;
    /* Standard Desktop padding */
}

/* Background Container - default hidden or black */
.landing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    /* Base Black */
    z-index: -1;
}

/* The actual image layer for transitions */
.landing-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* Hidden by default */
    transform: scale(1);
    filter: blur(10px);
    /* Start blurred? or end blurred? User said "transisi blur". Let's assume animate blur. */
    transition: opacity 0.5s ease, transform 10s linear, filter 0.5s ease;
}

.landing-bg-layer.active {
    opacity: 1;
    transform: scale(1.05);
    /* Zoom in slowly */
    filter: blur(0px);
    /* Become sharp? Or maybe user wants it to blur? Let's try Sharp. */
}

.landing-titles {
    max-width: 100%;
    /* Allow full width alignment */
    width: 100%;
    z-index: 10;
}

.landing-year-group {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 60px;
    /* More gap */
    margin-bottom: 40px;
}

.landing-year-label {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff !important;
    text-align: left;
    /* Align Left */
    padding-top: 10px;
    opacity: 0.8;
}

.landing-year-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-item {
    display: inline-block;
    /* Allow transform */
    text-decoration: none;
    color: #fff !important;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: left center;
}

.landing-item:hover {
    opacity: 1;
    transform: scale(1.1);
    /* Zoom Text */
    /* Remove text-shadow/glow */
}

.landing-title {
    font-size: 4rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1;
    color: #fff !important;
}

/* Responsive Landing */
@media (max-width: 768px) {
    .landing {
        padding: 100px 20px;
        align-items: flex-start;
    }

    .landing-year-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .landing-year-label {
        text-align: left;
        font-size: 1.2rem;
    }

    .landing-title {
        font-size: 2.5rem;
    }
}


/* =========================================
   SINGLE WORK (Wait, enqueue.php separates work.css logic?
   Let's check enqueue.php again. Yes, blocksy-child enqueues main.css ALWAYS.
   And enqueues work.css ONLY on single-work.
   So I will put Single Work styles in work.css or keep them here if work.css is empty?
   Usually separate files are cleaner. I'll split them.)
   ========================================= */
/* =========================================
   GLOBAL GALLERY
   ========================================= */
.gallery-close {
    position: fixed !important;
    top: 100px !important;
    right: 50px !important;
    font-size: 3rem !important;
    color: #fff !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 100000 !important;
    line-height: 1 !important;
    opacity: 0.8 !important;
    transition: opacity 0.3s !important;
    display: block !important;
}

.gallery-close:hover {
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .landing-inner {
        padding: 0 20px;
    }

    .gallery-close {
        top: 30px !important;
        right: 20px !important;
        font-size: 2.5rem !important;
    }
}

/* Hide header when gallery is open */
body.gallery-open .sdc12-header {
    display: none !important;
}