/*
Theme Name: BookRhythms | MusikiRiwaya
Description: Literary music theme
Author: Hussein Tuwa
Version: 1.3
*/

/* =======================
   ROOT & BASE
======================= */
:root {
    --header-height: 140px; /* fallback if JS fails */
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Georgia', serif;
    background-color: #FDF6E3;
    color: #333;
    line-height: 1.6;
}

/* =======================
   CONTAINER
======================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================
   LANGUAGE BAR
========================= */
.lang-bar {
    width: 100%;
    background: #0b0b1a;
    height: 34px;
    display: flex;
    align-items: center;
    font-size: 13px;
    letter-spacing: 1px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
    padding: 0 20px;
}

.lang-inner {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
}

.lang-switcher ul {
    list-style: none;
    display: flex;
    gap: 12px; /* space between flags */
    margin: 0;
    padding: 0;
}

.lang-switcher li {
    display: flex;
    align-items: center;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.lang-switcher li:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Flags */
.lang-switcher img {
    display: inline-block;
    width: 20px;
    height: 14px; /* keep ratio */
    object-fit: cover;
    border-radius: 2px; /* subtle rounded corners */
}

/* Language links */
.lang-switcher li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.lang-switcher li a:hover {
    background: rgba(255,255,255,0.15);
}

/* Separator | between languages */
.lang-switcher li + li::before {
    content: '|';
    color: rgba(255,255,255,0.6);
    margin: 0 6px;
}

/* =======================
   SITE HEADER (fixed)
======================= */
#site-header {
    position: fixed;
    top: 34px;
    left: 0;
    width: 100%;
    z-index: 10000;
}

.header-top {
    background-color: #FDF6E3;
    border-bottom: 2px solid #DAA520;
    /* padding: 16px 0; */
    text-align: center;
}

.logo .text-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: #8B4513;
}

.site-logo {
    height: 100px;
    width: auto;
}

.logo-zh { color: #8B4513; }
.separator { color: #DAA520; font-size: 2.5rem; margin: 0 8px; font-weight: 600; }
.logo-vago { color: #DAA520; }

/* Navigation */
.site-nav {
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    padding: 12px 0;
}

.nav-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 40px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #ffb347;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #ffb347;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.nav-separator {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    user-select: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        background: rgba(0,0,0,0.95);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-separator { display: none; }

    .nav-menu li a {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
}

/* =======================
   HEADER – MOBILE FRIENDLY
======================= */

/* Global font upgrade (international-safe) */
body {
    font-family: "Inter", "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* Mobile header adjustments */
@media (max-width: 768px) {

    :root {
        --header-height: 110px;
    }

    /* Header spacing */
    .header-top {
        padding: 10px 0;
    }

    /* Center logo stack */
    .logo .text-logo {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .site-logo {
        height: 48px;
    }

    .logo-zh,
    .logo-vago {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .separator {
        display: none; /* cleaner on mobile */
    }

    /* Navigation bar */
    .site-nav {
        padding: 10px 0;
    }

    .nav-container {
        justify-content: center;
    }

    /* Mobile toggle positioning */
    .mobile-toggle {
        right: 16px;
        font-size: 1.6rem;
    }

    /* Mobile menu */
    .nav-menu {
        top: 100%;
        text-align: center;
    }

    .nav-menu li a {
        font-size: 1rem;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }
}

/* Extra small devices (phones < 400px) */
@media (max-width: 400px) {

    .logo-zh,
    .logo-vago {
        font-size: 1rem;
    }

    .site-logo {
        height: 42px;
    }

    .nav-menu li a {
        font-size: 0.95rem;
    }
}

/* =======================
   SCROLL SNAP SECTIONS
======================= */
section {
    scroll-snap-align: start;
    min-height: 100vh;
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
}

/* Default: vertically centered for simple/text-heavy sections */
section:not(.hero) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* Override for grid-heavy sections (Featured, AVN, Artist) – top-aligned with padding */
#featured-work,
#audio-visual-novels,
#the-artist-connection {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 80px;
    padding-bottom: 100px;
}

/* =======================
   HERO – GLOBAL POLISH
======================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* OPTIMIZED BACKGROUND SETTINGS */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* or fixed for parallax effect */
}

/* Optional: For very high-res displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        /* You can load a higher resolution version here if needed */
        background-size: cover;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(245, 226, 141, 0.55),
        rgba(0, 0, 40, 0.65)
    );
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    padding: 0 20px;
    animation: heroFade 1.2s ease-out;
}

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

/* Headline */
.hero-content h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: 1.8px;
    margin-bottom: 18px;
    line-height: 1.15;
}

/* Tagline */
.hero-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 36px;
}

.hero-tagline .divider {
    opacity: 0.5;
}

/* Highlight */
.highlight {
    color: #ffb347;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #ffb347;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.highlight:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* =======================
   BUTTONS – GLOBAL
======================= */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 260px;
}

.btn {
    font-family: 'Poppins', sans-serif;
    padding: 11px 30px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Primary */
.btn.primary {
    background: linear-gradient(
        135deg,
        rgba(255, 179, 71, 0.85),
        rgba(255, 204, 128, 0.85)
    );
    color: #111;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(255, 179, 71, 0.45);
}

/* Secondary */
.btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffb347;
    border: 1.5px solid rgba(58, 57, 57, 0.45);
    backdrop-filter: blur(6px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* =======================
   MOBILE REFINEMENT
======================= */
@media (max-width: 768px) {
    .hero {
        min-height: 92vh;
        /* Ensure background still covers on mobile */
        background-size: cover;
        background-position: center center;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 7.5vw, 2.6rem);
        letter-spacing: 1px;
        margin-bottom: 16px;
    }
    
    .hero-tagline {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 28px;
    }
    
    /* Smaller, elegant buttons */
    .hero-actions {
        flex-direction: column;
        gap: 14px;
    }
    
    .hero-actions .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
        min-width: unset;
        width: auto;
        max-width: 260px;
        margin: 0 auto;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .hero {
        background-size: cover;
        background-position: center center;
    }
    
    .hero-content h1 {
        font-size: 1.85rem;
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
    
    .hero-actions .btn {
        padding: 9px 20px;
        font-size: 0.85rem;
    }
}

/* =======================
   ABOUT THE IDEA – REFINED
======================= */
.about-idea {
    background-color: #FFF8E5;
    text-align: center;
    color: #333;
    padding: 110px 20px;
    position: relative;
    overflow: hidden;
}

/* Section Title */
.about-idea .section-title {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    font-weight: 800;
    color: #7A3E0E;
    margin-bottom: 28px;
    line-height: 1.25;
    letter-spacing: 0.5px;
}

.about-idea .section-title .highlight {
    color: #DAA520;
    position: relative;
}

.about-idea .section-title .divider {
    opacity: 0.45;
    margin: 0 8px;
}

/* Body Copy */
.about-idea .section-copy {
    font-size: 1.18rem;
    max-width: 820px;
    margin: 0 auto 44px auto;
    line-height: 1.85;
    color: #444;
}

/* =======================
   PULL QUOTE – HERO LINE
======================= */
.about-idea .pull-quote {
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 0;
    font-weight: 700;
    font-style: italic;
    color: #C79A2B;
    position: relative;

    font-size: clamp(1.35rem, 4vw, 1.9rem);
    line-height: 1.4;
    letter-spacing: 0.4px;
}

.about-idea .pull-quote .quote-mark {
    font-size: 2.4em;
    line-height: 0;
    vertical-align: -0.3em;
    color: #ffb347;
    padding: 0 6px;
}

/* Accent Image */
.about-idea .section-accent {
    margin-top: 48px;
}

.about-idea .section-accent img {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 3px solid #DAA520;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    object-fit: cover;
}

/* =======================
   MOBILE POLISH
======================= */
@media (max-width: 768px) {

    .about-idea {
        padding: 88px 16px;
    }

    .about-idea .section-title {
        font-size: clamp(2rem, 6.5vw, 2.4rem);
        line-height: 1.35;
    }

    .about-idea .section-copy {
        font-size: 1.05rem;
        line-height: 1.75;
    }

    /* Quote refined for phones */
    .about-idea .pull-quote {
        font-size: 1.2rem;
        line-height: 1.45;
        padding: 6px 10px;
        letter-spacing: 0.3px;
    }

    .about-idea .pull-quote .quote-mark {
        font-size: 2em;
        vertical-align: -0.25em;
    }
}

/* Extra small devices */
@media (max-width: 400px) {

    .about-idea .section-copy {
        font-size: 0.98rem;
    }

    .about-idea .pull-quote {
        font-size: 1.05rem;
        line-height: 1.5;
        letter-spacing: 0.2px;
    }

    .about-idea .pull-quote .quote-mark {
        font-size: 1.8em;
    }
}

/* ===============================
   THE PROCESS — SIGNATURE EDITION
================================ */
.the-process {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    color: #3a2a1a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Cinematic overlay */
.the-process .process-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(255,255,255,0.85),
        rgba(255,248,229,0.96)
    );
    z-index: 0;
}

.the-process .container {
    position: relative;
    z-index: 1;
}

/* ===============================
   TITLE — DESKTOP / LARGE SCREENS
================================ */
.the-process .section-title {
    font-size: clamp(1.9rem, 4.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 40px;
    color: #7A3E0E;
}

/* ===============================
   PORTRAIT
================================ */
.process-portrait {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 26px;
    border: 4px solid #ffb347;
    box-shadow:
        0 10px 28px rgba(0,0,0,0.25),
        inset 0 0 0 4px rgba(255,255,255,0.4);
    overflow: hidden;
}

.process-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   STEPS GRID
================================ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.process-step {
    background: linear-gradient(to bottom, #fffdf7, #fdf6e3);
    border-radius: 18px;
    padding: 34px 22px;
    border: 1.5px solid rgba(218,165,32,0.6);
}

/* ===============================
   ICON
================================ */
.step-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    color: #ffb347;
}

/* ===============================
   TEXT
================================ */
.step-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #7A3E0E;
    margin-bottom: 6px;
}

.step-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #5a4a3a;
}

/* ===============================
   MOBILE — ONE LINE, SMALLER & READABLE
================================ */
@media (max-width: 768px) {

    .the-process {
        padding: 80px 16px;
    }

    .the-process .section-title {
        font-size: 0.95rem;      /* 👈 smaller */
        letter-spacing: 0.3px;   /* tighter */
        margin-bottom: 24px;
        white-space: nowrap;     /* force single line */
    }

    .process-portrait {
        width: 115px;
        height: 115px;
        border-width: 3px;
        margin-bottom: 20px;
    }

    .process-step {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .step-icon {
        font-size: 1.7rem;
    }

    .step-title {
        font-size: 1.05rem;
    }

    .step-desc {
        font-size: 0.92rem;
        line-height: 1.5;
    }
}

/* ===============================
   ULTRA-SMALL PHONES
================================ */
@media (max-width: 400px) {

    .the-process .section-title {
        font-size: 0.85rem;     /* 👈 fits even narrow phones */
        letter-spacing: 0.15px;
        white-space: nowrap;
    }

    .step-title {
        font-size: 0.95rem;
    }

    .step-desc {
        font-size: 0.85rem;
    }
}


/* ===============================
   THE ARTIST CONNECTION — SIGNATURE
================================ */
.artist-connection {
    background: linear-gradient(
        to bottom,
        #fff7ec,
        #fff1dc
    );
    text-align: center;
    color: #333;
    padding: 120px 20px;
}

/* ===============================
   SECTION HEADER
================================ */
.artist-connection .section-title {
    font-size: clamp(2.2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: #8B4513;
}

.artist-connection .section-copy {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 860px;
    margin: 0 auto 60px auto;
    color: #4a3f35;
}

/* ===============================
   GRID LAYOUT
================================ */
.artist-connection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 44px;
    justify-items: center;
    align-items: stretch;
}

/* ===============================
   ARTIST CARD — EDITORIAL STYLE
================================ */
.artist-card-connection {
    background: linear-gradient(
        to bottom,
        #fdfaf2,
        #f8efd8
    );
    border: 1.8px solid rgba(218,165,32,0.75);
    border-radius: 18px;
    padding: 32px 26px 34px;
    max-width: 320px;
    text-align: center;
    position: relative;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

/* Subtle lift */
.artist-card-connection:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 32px rgba(0,0,0,0.14);
}

/* ===============================
   ARTIST IMAGE
================================ */
.artist-img-connection {
    width: 165px;
    height: 165px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 18px;
    border: 3px solid #ffb347;
    box-shadow:
        0 8px 22px rgba(0,0,0,0.2),
        inset 0 0 0 3px rgba(255,255,255,0.5);
}

.artist-img-connection img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   ARTIST TEXT
================================ */
.artist-name-connection {
    font-size: 1.45rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 10px;
}

.artist-copy-connection {
    font-size: 0.98rem;
    color: #5a4a3a;
    line-height: 1.65;
    margin-bottom: 22px;
}

/* ===============================
   BUTTON — REFINED
================================ */
.artist-card-connection .btn.primary {
    font-size: 0.95rem;
    padding: 10px 30px;
    border-radius: 30px;
    letter-spacing: 0.4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artist-card-connection .btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* ===============================
   MOBILE — CLEAN & COMPACT
================================ */
@media (max-width: 768px) {

    .artist-connection {
        padding: 90px 16px;
    }

    .artist-connection .section-title {
        font-size: 1.6rem;
        margin-bottom: 14px;
        letter-spacing: 0.6px;
    }

    .artist-connection .section-copy {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 44px;
    }

    .artist-card-connection {
        padding: 24px 20px 28px;
    }

    .artist-img-connection {
        width: 120px;
        height: 120px;
        margin-bottom: 14px;
    }

    .artist-name-connection {
        font-size: 1.15rem;
    }

    .artist-copy-connection {
        font-size: 0.9rem;
    }

    .artist-card-connection .btn.primary {
        font-size: 0.85rem;
        padding: 9px 24px;
    }
}

/* ===============================
   ULTRA-SMALL PHONES
================================ */
@media (max-width: 400px) {

    .artist-connection .section-title {
        font-size: 1.35rem;
    }

    .artist-connection .section-copy {
        font-size: 0.88rem;
    }

    .artist-name-connection {
        font-size: 1.05rem;
    }
}

/* ===============================
   FEATURED WORK SECTION
================================ */
.featured-work {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 60px 20px;
}

.featured-work .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Title */
.featured-work .section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #FFB347, #FF7E5F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

.featured-work .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #FFB347, #FF7E5F);
    border-radius: 2px;
}

/* Grid Layout */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    transition: max-height 0.5s ease;
}

/* Featured Card */
.featured-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.1), rgba(255, 126, 95, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 179, 71, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.featured-card:hover::before {
    opacity: 1;
}

/* Image Container */
.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.featured-card:hover img {
    transform: scale(1.08);
}

/* Play Overlay */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.featured-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 179, 71, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a1a2e;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.featured-card:hover .play-icon {
    transform: scale(1);
}

/* Card Content */
.card-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.featured-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* Artist Name */
.artist-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 179, 71, 0.9);
    margin-bottom: 6px;
    margin-top: 0;
    letter-spacing: 0.3px;
}

/* Book Source */
.book-source {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 16px;
    margin-bottom: 14px;
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.book-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.book-icon {
    font-size: 0.95rem;
    filter: grayscale(0.3);
    flex-shrink: 0;
}

.book-text {
    font-style: italic;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.page-line {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 22px;
}

.page-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 179, 71, 0.95);
    background: rgba(255, 179, 71, 0.12);
    padding: 2px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Card Links */
.card-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 110px;
}

.btn-icon .icon {
    font-size: 1rem;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-icon.youtube {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-color: rgba(255, 0, 0, 0.3);
}

.btn-icon.youtube:hover {
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.4);
}

.btn-icon.bandcamp {
    background: linear-gradient(135deg, #629aa9, #4a7a86);
    border-color: rgba(98, 154, 169, 0.3);
}

.btn-icon.bandcamp:hover {
    box-shadow: 0 4px 16px rgba(98, 154, 169, 0.4);
}

/* No Releases Message */
.no-releases {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

/* Show More Button */
.featured-button-wrap {
    text-align: center;
    margin-top: 40px;
}

.featured-toggle-btn {
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid rgba(255, 179, 71, 0.3);
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.2), rgba(255, 126, 95, 0.2));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #FFB347;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
}

.featured-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 179, 71, 0.3);
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.3), rgba(255, 126, 95, 0.3));
    border-color: rgba(255, 179, 71, 0.5);
}

.featured-toggle-btn:active {
    transform: translateY(0);
}

.featured-toggle-btn:focus {
    box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.2);
}

/* Collapsed State */
.featured-grid.is-collapsed {
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.featured-grid.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #1a1a2e);
    pointer-events: none;
    z-index: 3;
}

/* Expanded State */
.featured-grid:not(.is-collapsed) {
    max-height: none;
}

.featured-grid:not(.is-collapsed)::after {
    display: none;
}

/* ===============================
   RESPONSIVE - TABLET
================================ */
@media (max-width: 768px) {
    .featured-work {
        padding: 40px 15px;
    }

    .featured-work .section-title {
        margin-bottom: 35px;
        font-size: 1.8rem;
    }

    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 30px;
    }

    .card-image {
        height: 250px;
    }

    .card-content {
        padding: 16px;
    }

    .featured-card h3 {
        font-size: 1.1rem;
        margin-bottom: 3px;
        min-height: 2.4em;
    }

    .artist-name {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .card-links {
        gap: 8px;
    }

    .btn-icon {
        font-size: 0.8rem;
        padding: 8px 14px;
        min-width: 100px;
    }

    .featured-button-wrap {
        margin-top: 30px;
    }

    .featured-toggle-btn {
        font-size: 0.9rem;
        padding: 12px 30px;
    }

    /* Tablet collapsed state - show about 4 cards */
    .featured-grid.is-collapsed {
        max-height: 500px;
    }
}

/* ===============================
   RESPONSIVE - MOBILE
================================ */
@media (max-width: 480px) {
    .featured-work {
        padding: 35px 15px;
    }

    .featured-work .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
        padding-bottom: 15px;
    }

    .featured-work .section-title::after {
        width: 60px;
        height: 3px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 25px;
    }

    .card-image {
        height: 240px;
    }

    .card-content {
        padding: 15px;
    }

    .featured-card h3 {
        font-size: 1.05rem;
        margin-bottom: 3px;
        min-height: auto;
    }

    .artist-name {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .card-links {
        flex-direction: column;
        gap: 8px;
    }

    .btn-icon {
        font-size: 0.85rem;
        padding: 10px 16px;
        min-width: unset;
        width: 100%;
        gap: 8px;
    }

    .btn-icon .icon {
        font-size: 1.1rem;
    }

    .featured-button-wrap {
        margin-top: 25px;
    }

    .featured-toggle-btn {
        font-size: 0.85rem;
        padding: 12px 28px;
        width: 100%;
        max-width: 300px;
        letter-spacing: 0.8px;
    }

    /* Mobile collapsed state - show 2 cards */
    .featured-grid.is-collapsed {
        max-height: 440px;
    }

    .featured-grid.is-collapsed::after {
        height: 180px;
    }
}

/* ===============================
   RESPONSIVE - EXTRA SMALL
================================ */
@media (max-width: 360px) {
    .featured-work {
        padding: 30px 12px;
    }

    .card-image {
        height: 140px;
    }

    .card-content {
        padding: 12px;
    }

    .featured-card h3 {
        font-size: 0.95rem;
    }

    .btn-icon {
        font-size: 0.8rem;
        padding: 9px 14px;
    }

    .featured-toggle-btn {
        font-size: 0.8rem;
        padding: 10px 24px;
    }

    /* Extra small - show 2 cards */
    .featured-grid.is-collapsed {
        max-height: 380px;
    }

    .artist-name {
        font-size: 0.75rem;
    }

    .book-source {
        font-size: 0.65rem;
        padding: 4px 7px;
        gap: 3px;
    }

    .book-icon {
        font-size: 0.75rem;
    }

    .page-line {
        padding-left: 16px;
    }

    .page-number {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}


.avn-section {
    background-color: #fff3e0;
    text-align: center;
    color: #333;
}

.avn-section .section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #8B4513;
}

.avn-section .section-copy {
    font-size: 1.25rem;
    max-width: 850px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
    color: #444;
}

.avn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* AVN Card Full Styles */
.avn-card {
    background: #FDF6E3;
    border: 2px solid #DAA520;
    border-radius: 16px;
    padding: 20px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avn-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.avn-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

.avn-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 8px;
}

.avn-card .avn-meta {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
}

.avn-card .btn.primary {
    font-size: 0.95rem;
    padding: 8px 22px;
}


/* =======================
   FOOTER / CLOSING
======================= */
.closing-statement {
    min-height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background-color: #8B4513;
    color: #FDF6E3;
    scroll-snap-align: start;
}

.closing-big-text {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #f2f2f2;
}

.closing-big-text .logo-zh { color: #FDF6E3; }
.closing-big-text .separator { color: #ffcc00; margin: 0 12px; }
.closing-big-text .logo-vago { color: #ffb347; }

.closing-footer {
    font-size: 1rem;
    color: #FDF6E3;
    line-height: 1.6;
    margin-top: 10px;
}

.footer {
    background-color: #8B4513;
    color: #FDF6E3;
    padding: 40px 0 20px;
    text-align: center;
    border-top: 4px solid #DAA520;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #FDF6E3;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #DAA520;
}

/* =======================
   RESPONSIVE ADJUSTMENTS
======================= */
@media (max-width: 768px) {
    .section-title { font-size: 2.2rem !important; }
    
    #featured-work,
    #audio-visual-novels,
    #the-artist-connection {
        padding-top: calc(var(--header-height) + 40px);
        padding-bottom: 80px;
    }
    
    .process-steps {
        overflow-x: auto;
        padding-bottom: 20px;
        gap: 20px;
        justify-content: flex-start;
    }
    
    .process-step {
        min-width: 220px;
        flex: 0 0 auto;
    }
    
    .artist-connection-grid,
    .featured-grid,
    .avn-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .text-logo { font-size: 1.1rem; gap: 8px; }
    .site-logo { height: 36px; }
}


/* =======================
   CRITICAL FIXES FOR SMALL DEVICES
======================= */

/* Fix for 11-13" laptops and small screens (1366px and below) */
@media (max-width: 1440px) {
    .about-idea .section-title {
        font-size: clamp(1.8rem, 4.5vw, 2.4rem);
    }
}

@media (max-width: 1366px) {
    .about-idea .section-title {
        font-size: clamp(1.6rem, 4vw, 2rem);
        line-height: 1.3;
    }
}

/* Fix for Samsung Z Fold and similar devices (unfolded: ~884px) */
@media (max-width: 900px) {
    .about-idea .section-title {
        font-size: clamp(1.4rem, 3.5vw, 1.8rem);
        line-height: 1.35;
    }
    
    .about-idea .section-title .divider {
        margin: 0 6px;
    }
}

/* Enhanced tablet breakpoint */
@media (max-width: 768px) {
    .about-idea .section-title {
        font-size: clamp(1.3rem, 3.2vw, 1.6rem);
        line-height: 1.4;
        letter-spacing: 0.3px;
    }
    
    .about-idea .section-title .highlight {
        display: inline;
    }
    
    .about-idea .section-title .divider {
        margin: 0 4px;
        font-size: 1.2em;
    }
}

/* Fix for smaller tablets and large phones */
@media (max-width: 600px) {
    .about-idea .section-title {
        font-size: clamp(1.2rem, 3vw, 1.4rem);
        padding: 0 10px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .about-idea .section-title {
        font-size: 1.1rem;
        line-height: 1.45;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .about-idea .section-title {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .about-idea .section-title .divider {
        margin: 0 3px;
    }
}

/* =======================
   TOGGLE BUTTON FIX FOR TOUCH DEVICES
======================= */

/* Ensure toggle button is always interactive */
.featured-toggle-btn {
    position: relative;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 179, 71, 0.3);
    user-select: none;
    -webkit-user-select: none;
}

/* Larger hit area on mobile */
@media (max-width: 768px) {
    .featured-button-wrap {
        padding: 20px;
        margin-top: 30px;
    }
    
    .featured-toggle-btn {
        min-height: 48px;
        padding: 14px 32px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .featured-toggle-btn {
        width: 100%;
        max-width: 320px;
        min-height: 50px;
        padding: 15px 30px;
        font-size: 0.9rem;
    }
}

/* Fix gradient overlay z-index issue */
.featured-grid.is-collapsed::after {
    z-index: 1;
    pointer-events: none;
}

/* Ensure cards are below overlay but button is above */
.featured-card {
    position: relative;
    z-index: 0;
}

/* =======================
   ADDITIONAL SMALL SCREEN OPTIMIZATIONS
======================= */

/* Hero adjustments for small laptops */
@media (max-width: 1366px) and (min-width: 769px) {
    .hero-actions {
        margin-top: 180px;
    }
    
    .hero-content h1 {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
    }
}

/* Process section title fix */
@media (max-width: 1366px) {
    .the-process .section-title {
        font-size: clamp(1.6rem, 4vw, 2rem);
    }
}

@media (max-width: 900px) {
    .the-process .section-title {
        font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    }
}

/* Featured work section adjustments */
@media (max-width: 1366px) {
    .featured-work .section-title {
        font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    }
}

@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* Artist connection adjustments */
@media (max-width: 1366px) {
    .artist-connection .section-title {
        font-size: clamp(1.8rem, 4vw, 2.4rem);
    }
}

@media (max-width: 900px) {
    .artist-connection-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 32px;
    }
}