/* ═══════════════════════════════════════════════
   NST Studio - Main Stylesheet
   Dark elegant theme, mobile-first, performance-optimized
   ═══════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────── */
:root {
    /* Colors */
    --bg-primary: #070710;
    --bg-secondary: #0d0d1a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --accent: #c9a96e;
    --accent-light: #d4b87a;
    --accent-glow: rgba(201, 169, 110, 0.25);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --overlay: rgba(7, 7, 16, 0.7);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --container-w: 1200px;
    --gap: 16px;
    --radius: 12px;
    --radius-sm: 8px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --dur: 0.3s;
    --dur-slow: 0.6s;
}

/* ─── Reset & Base ──────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.serif {
    font-family: var(--font-serif);
}

.highlight {
    color: var(--accent);
}

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
    transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.site-header.scrolled {
    background: rgba(7, 7, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}

.header-inner {
    max-width: var(--container-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color var(--dur) var(--ease);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--dur) var(--ease);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(7, 7, 16, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--dur) var(--ease), padding var(--dur) var(--ease);
    }

    .main-nav.open {
        max-height: 300px;
        padding: 20px 0;
    }

    .main-nav .nav-link {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('../../img/baner.jpg') center center / cover no-repeat;
    animation: heroBgFloat 20s ease-in-out infinite;
}

@keyframes heroBgFloat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.55) 60%, var(--bg-primary) 100%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 6px;
    line-height: 1.1;
    margin-top: -18vh;
    margin-bottom: 2vh;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s var(--ease-out) 0.3s forwards;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 10vh;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s var(--ease-out) 0.6s forwards;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 24px auto;
    opacity: 0;
    transform: scaleX(0);
    animation: scaleIn 1s var(--ease-out) 0.9s forwards;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s var(--ease-out) 1.2s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite 2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 85vh;
        min-height: 500px;
    }

    .hero-bg {
        background-size: cover;
        background-position: center 30%;
    }

    .hero-title {
        margin-top: -10vh;
        margin-bottom: 1vh;
        font-size: clamp(36px, 12vw, 64px);
    }

    .hero-subtitle {
        margin-top: 6vh;
        font-size: 12px;
        letter-spacing: 2px;
    }

    .hero-tagline {
        font-size: 14px;
    }

    .hero-line {
        margin: 16px auto;
    }

    .scroll-indicator {
        bottom: 24px;
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 1px;
}

/* ─── About Section ─────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.about-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.about-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.about-meta {
    display: flex;
    gap: 24px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.about-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-card-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.about-card-title.brand-large {
    font-size: 38px;
    color: var(--accent);
}

.about-card-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

.about-quote {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}

.about-quote cite {
    display: block;
    margin-top: 8px;
    color: var(--accent);
    font-size: 12px;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Category Tabs ───────────────────────────── */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 24px;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.category-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #0a0a14;
    font-weight: 500;
}

@media (max-width: 640px) {
    .category-tabs {
        gap: 6px;
        margin-bottom: 24px;
    }

    .category-tab {
        padding: 7px 16px;
        font-size: 12px;
    }
}

/* ─── Albums Grid ───────────────────────────── */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    transition: opacity 0.25s ease;
}

.album-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    display: block;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.album-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.album-card__img {
    position: absolute;
    inset: 0;
}

.album-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}

.album-card:hover .album-card__img img {
    transform: scale(1.05);
}

.album-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.02) 100%);
    transition: background var(--dur) var(--ease);
}

.album-card:hover .album-card__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.2) 100%);
}

/* "Xem Album" hover overlay */
.album-card__hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.85;
    transition: opacity 0.35s ease;
}

.album-card:hover .album-card__hover {
    opacity: 1;
}

.album-card__view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.album-card:hover .album-card__view-btn {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.album-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
}

.album-card__title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.album-card__stats {
    display: flex;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.album-card__stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.album-card__stats .stat--date {
    margin-left: auto;
}

@media (max-width: 640px) {
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .album-card {
        aspect-ratio: 3/2;
    }

    .album-card__info {
        padding: 10px;
    }

    .album-card__title {
        font-size: 10px;
    }

    .album-card__stats .stat--date {
        display: none;
    }

    .album-card__view-btn {
        font-size: 11px;
        padding: 7px 18px;
    }
}

/* ─── Contact Section ───────────────────────── */
.contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--dur) var(--ease);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ─── Footer ────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   ALBUM PAGE
   ═══════════════════════════════════════════════ */

/* Album Header Bar */
.album-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: rgba(7, 7, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.album-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--dur);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}

.album-back:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
}

.album-header-title {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge--admin {
    background: rgba(201, 169, 110, 0.2);
    color: var(--accent);
    border: 1px solid rgba(201, 169, 110, 0.3);
}

/* Album Cover - Full viewport page */
.album-cover {
    position: relative;
    height: calc(100vh - 56px);
    min-height: 500px;
    overflow: hidden;
    margin-top: 56px;
    background: #000;
}

.album-cover__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

/* Dual cover: landscape for desktop, portrait for mobile */
.album-cover__img--mobile {
    display: none;
}

@media (max-width: 768px) {
    .album-cover__img--desktop {
        display: none;
    }

    .album-cover__img--mobile {
        display: block;
    }
}

.album-cover__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.75) 100%);
}

.album-cover__content {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.album-cover__title-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    order: 3;
    align-self: flex-start;
}

.album-cover__title {
    font-family: var(--font-sans);
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.album-cover__date {
    font-size: clamp(11px, 1.5vw, 14px);
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.album-cover__client {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.album-cover__btn {
    display: inline-flex;
    align-items: center;
    align-self: center;
    order: 1;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: all var(--dur) var(--ease);
    text-decoration: none;
}

.album-cover__btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.album-cover__scroll-hint {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}

.album-cover__scroll-hint:hover {
    color: rgba(255, 255, 255, 0.8);
}

.album-cover__scroll-hint svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    50% {
        transform: translateY(5px);
        opacity: 1;
    }
}


/* ─── Mobile Album Cover ─── */
@media (max-width: 768px) {
    .album-cover {
        height: calc(100vh - 56px);
        min-height: 400px;
    }

    .album-cover__title {
        font-size: clamp(18px, 5vw, 28px);
        letter-spacing: 2px;
    }

    .album-cover__content {
        padding: 0 16px;
        bottom: 60px;
    }

    .album-cover__btn {
        padding: 10px 22px;
        font-size: 13px;
    }
}

/* Album Toolbar */
.album-toolbar {
    position: sticky;
    top: 56px;
    z-index: 100;
    scroll-margin-top: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(7, 7, 16, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--dur) var(--ease);
    border: 1px solid transparent;
}

.toolbar-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.toolbar-btn.active {
    background: var(--bg-card);
    color: var(--accent);
    border-color: rgba(201, 169, 110, 0.3);
}

.toolbar-btn em {
    font-style: normal;
    font-size: 11px;
    background: var(--bg-card);
    padding: 1px 6px;
    border-radius: 10px;
    color: var(--text-muted);
}

.toolbar-btn--download {
    background: rgba(201, 169, 110, 0.15);
    color: var(--accent);
    border: 1px solid rgba(201, 169, 110, 0.3);
}

.toolbar-btn--download:hover {
    background: rgba(201, 169, 110, 0.25);
    color: var(--accent-light);
}

/* Sync / Reload from Drive button */
.toolbar-btn--sync {
    background: rgba(100, 180, 255, 0.1);
    color: #7cb8f0;
    border: 1px solid rgba(100, 180, 255, 0.2);
    transition: all 0.3s ease;
}

.toolbar-btn--sync:hover {
    background: rgba(100, 180, 255, 0.2);
    color: #a0d0ff;
    border-color: rgba(100, 180, 255, 0.35);
}

.toolbar-btn--sync.syncing {
    pointer-events: none;
    opacity: 0.7;
}

.toolbar-btn--sync.syncing .sync-icon {
    animation: spin-sync 1s linear infinite;
}

@keyframes spin-sync {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.toolbar-btn--sync .sync-label {
    transition: opacity 0.2s;
}

.toolbar-btn--sync.syncing .sync-label {
    display: none;
}

@media (max-width: 768px) {
    .album-toolbar {
        padding: 8px 12px;
        gap: 0;
    }

    .toolbar-left {
        width: 100%;
        justify-content: space-between;
    }

    .toolbar-btn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .toolbar-right {
        display: none;
    }
}

.toolbar-stats {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.toolbar-btn--views {
    cursor: default;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   ZIP DOWNLOAD PROGRESS
   ═══════════════════════════════════════════════ */
.zip-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.zip-progress-overlay.active {
    opacity: 1;
    visibility: visible;
}

.zip-progress-card {
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    text-align: center;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.zip-progress-icon {
    margin-bottom: 16px;
    color: var(--accent);
    animation: zip-bounce 1.5s ease infinite;
}

@keyframes zip-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.zip-progress-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.zip-progress-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.zip-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.zip-progress-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.zip-progress-cancel {
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all var(--dur);
}

.zip-progress-cancel:hover {
    background: rgba(255, 80, 80, 0.15);
    color: #ff6b6b;
    border-color: rgba(255, 80, 80, 0.3);
}

/* ═══════════════════════════════════════════════
   GALLERY GRID (Horizontal rows, left-to-right)
   ═══════════════════════════════════════════════ */
.gallery-section {
    padding: 16px;
    min-height: 50vh;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: var(--bg-card);
    aspect-ratio: 3/2;
    opacity: 1;
    transform: none;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-shimmer {

    0%,
    100% {
        background: var(--bg-card);
    }

    50% {
        background: rgba(255, 255, 255, 0.08);
    }
}

.gallery-item.visible {
    opacity: 1;
    transform: none;
    animation: none;
    background: var(--bg-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
    background: var(--bg-card);
    opacity: 0;
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}

.gallery-item.visible img {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 8px;
    transition: background var(--dur) var(--ease);
    pointer-events: none;
}

.gallery-item:hover .gallery-item__overlay {
    background: rgba(0, 0, 0, 0.3);
}

.gallery-item__star {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-muted);
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--dur) var(--ease);
    pointer-events: auto;
    z-index: 2;
}

.gallery-item:hover .gallery-item__star,
.gallery-item__star.featured {
    opacity: 1;
    transform: scale(1);
}

.gallery-item__star.featured {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.2);
}

.gallery-item__star svg {
    width: 14px;
    height: 14px;
}

/* Responsive gallery grid */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .gallery-item {
        border-radius: 6px;
    }
}

/* ═══════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
    overscroll-behavior: contain;
    touch-action: none;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: #000;
}

.lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    z-index: 10;
    transition: background var(--dur);
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    z-index: 10;
    transition: background var(--dur);
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lightbox__prev {
    left: 12px;
}

.lightbox__next {
    right: 12px;
}

.lightbox__container {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.lightbox__img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.3s, transform 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
}

.lightbox__container.zoomed {
    overflow: hidden;
    cursor: grab;
}

.lightbox__container.zoomed .lightbox__img {
    transition: opacity 0.3s;
}

.lightbox__action#lightboxZoom.active {
    color: #60a5fa;
}

.lightbox__toolbar {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 10;
}

.lightbox__counter {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.lightbox__filename {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-sans);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lightbox__actions {
    display: flex;
    gap: 8px;
}

.lightbox__action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--dur);
}

.lightbox__action:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.lightbox__action.active {
    color: #f43f5e;
}

@media (max-width: 768px) {
    .lightbox {
        /* Fill entire mobile viewport */
        position: fixed;
        inset: 0;
        height: 100vh;
        /* fallback */
        height: 100dvh;
        /* modern: accounts for browser chrome */
    }

    .lightbox__backdrop {
        position: fixed;
        inset: 0;
    }

    .lightbox__nav {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .lightbox__nav svg {
        width: 24px;
        height: 24px;
    }

    .lightbox__prev {
        left: 8px;
    }

    .lightbox__next {
        right: 8px;
    }

    .lightbox__img {
        max-width: 100vw;
        max-height: calc(100vh - 60px);
        /* fallback */
        max-height: calc(100dvh - 60px);
        border-radius: 0;
    }

    .lightbox__container {
        max-width: 100vw;
        max-height: calc(100vh - 60px);
        /* fallback */
        max-height: calc(100dvh - 60px);
    }

    .lightbox__toolbar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
        z-index: 20;
    }
}

/* ═══════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal__dialog {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 480px;
    padding: 24px;
    z-index: 1;
    animation: modalIn 0.3s var(--ease-out);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
}

.modal__close {
    font-size: 28px;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--dur);
}

.modal__close:hover {
    background: var(--bg-card);
}

.modal__desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.download-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    cursor: pointer;
    transition: background var(--dur);
}

.download-opt:hover {
    background: var(--bg-card-hover);
}

.download-opt input[type="radio"] {
    accent-color: var(--accent);
}

.download-opt__label {
    font-size: 14px;
}

/* ─── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--dur) var(--ease);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: var(--accent);
    color: #000;
}

.btn--primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn--full {
    width: 100%;
}

/* ─── Loading Spinner ───────────────────────── */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 14px;
    grid-column: 1 / -1;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Toast Notifications ───────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    animation: toastIn 0.3s var(--ease-out);
    max-width: 320px;
}

.toast--success {
    border-left: 3px solid #22c55e;
}

.toast--error {
    border-left: 3px solid #ef4444;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ─── Animate on Scroll ─────────────────────── */
[data-aos] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Social Section ──────────────────────────── */
.social-section {
    padding: 40px 20px 16px;
    text-align: center;
}

.contact-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--dur) var(--ease);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* ─── Footer ────────────────────────────────── */
.site-footer {
    padding: 24px 20px 32px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.site-footer p {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .social-section {
        padding: 32px 16px 12px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .site-footer {
        padding: 20px 16px 48px;
        /* Extra bottom padding for mobile safe area + scroll-top btn */
        padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    }

    .site-footer p {
        font-size: 12px;
    }
}

/* ─── Utilities ─────────────────────────────── */
.hidden {
    display: none !important;
}

/* ─── Scroll to Top Button ───────────────────── */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(20, 20, 40, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: rgba(201, 169, 110, 0.2);
    border-color: rgba(201, 169, 110, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.scroll-top-btn:active {
    transform: translateY(0);
}

/* ─── Watermark Overlay ────────────────────── */
body.has-watermark .gallery-item::after,
body.has-watermark .lightbox__container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--watermark-bg);
    background-repeat: repeat;
    pointer-events: none;
    z-index: 10;
    opacity: 0.15;
}

body.has-watermark .lightbox__container {
    position: relative;
}

body.has-watermark .lightbox__container::after {
    opacity: 0.12;
}

/* Prevent right-click save on watermarked images */
body.has-watermark .gallery-item img,
body.has-watermark .lightbox__img {
    -webkit-user-drag: none;
    user-select: none;
}

/* ─── Cover Position Picker ────────────────── */
.cover-position-picker {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.cover-position-picker__card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.cover-position-picker__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cover-position-picker__desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cover-position-picker__preview {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 16 / 10;
}

.cover-position-picker__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: object-position 0.4s ease;
}

.cover-position-picker__grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    padding: 3px;
}

.cover-position-picker__grid button {
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid transparent;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-position-picker__grid button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.cover-position-picker__grid button.active {
    background: rgba(201, 169, 110, 0.35);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 12px rgba(201, 169, 110, 0.3);
}

.cover-position-picker__actions {
    display: flex;
    gap: 12px;
}

.cover-position-picker__cancel {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.cover-position-picker__cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.cover-position-picker__confirm {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--gold);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cover-position-picker__confirm:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ─── Print ─────────────────────────────────── */
@media print {

    .site-header,
    .album-header,
    .album-toolbar,
    .lightbox,
    .modal {
        display: none !important;
    }
}