/* ============================================
   FONG FOG STUDIO - GALLERY PAGE
   Maximalism Design with Masonry Grid
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --primary: #227EFD;
    --primary-light: #4D9AFF;
    --primary-dark: #1A65CC;
    --secondary: #B85CB6;
    --secondary-light: #D47DD2;
    --accent: #00FFCC;

    /* Gradients */
    --gradient-logo: linear-gradient(135deg, #B85CB6 0%, #227EFD 100%);
    --gradient-vibrant: linear-gradient(90deg, #227EFD 0%, #B85CB6 100%);
    --gradient-dark: linear-gradient(180deg, #0A0A0A 0%, #1a1a2e 100%);

    /* Typography */
    --font-main: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Montserrat', 'Be Vietnam Pro', sans-serif;

    /* Transitions - Tối ưu tốc độ */
    --transition-fast: 0.15s ease-out;
    --transition-smooth: 0.2s ease-out;

    /* Shadows */
    --shadow-md: 0 4px 20px rgba(34, 126, 253, 0.15);
    --shadow-lg: 0 10px 40px rgba(34, 126, 253, 0.2);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: #0a0a0a;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    margin-bottom: 1.5rem;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 100%;
    background: var(--gradient-logo);
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    border-bottom-color: var(--primary);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    line-height: 1;
}

.logo-slogan {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-logo);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

.menu-line {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    padding: 120px 2rem 60px;
    text-align: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(34, 126, 253, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(184, 92, 182, 0.1) 0%, transparent 50%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
}

.title-accent {
    display: block;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 4px;
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-section {
    background: #0a0a0a;
    padding: 1.5rem 0;
    position: sticky;
    top: 65px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: auto;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    color: #fff;
    background: var(--gradient-logo);
    border-color: transparent;
}

.filter-icon {
    font-size: 0.7rem;
}

/* Hide scrollbar but allow scrolling */
.filter-container::-webkit-scrollbar {
    height: 0;
}

/* ============================================
   GALLERY MASONRY GRID
   ============================================ */
.gallery-section {
    padding: 0;
    min-height: 50vh;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0;
}

/* Album Card */
.album-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
}

.album-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.album-card:hover img {
    transform: scale(1.1);
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    transform: translateY(30%);
    transition: transform var(--transition-smooth);
}

.album-card:hover .album-overlay {
    transform: translateY(0);
}

.album-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.5rem;
}

.album-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.album-category-tag {
    background: var(--gradient-logo);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    letter-spacing: 1px;
}

.album-views {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ============================================
   ALBUM DETAIL VIEW - New Design like DI.NO Studio
   ============================================ */
.album-detail {
    display: none;
    padding-top: 70px;
    min-height: 100vh;
    background: #f8f9fa;
}

.album-detail.active {
    display: block;
}

/* Album Hero Banner */
.album-hero-banner {
    position: relative;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.album-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(8px);
    transform: scale(1.1);
}

.album-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.7) 100%);
}

.album-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-3px);
}

.back-btn i {
    font-size: 1rem;
}

/* Hero Info */
.album-hero-info {
    max-width: 600px;
}

.album-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.album-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.album-hero-meta i {
    margin-right: 0.3rem;
}

.album-meta-divider {
    opacity: 0.5;
}

.album-hero-share {
    margin-bottom: 1.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.album-hero-studio {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.studio-name {
    font-weight: 600;
    color: #fff;
}

/* Album Photos Container */
.album-photos-container {
    background: #f8f9fa;
    padding: 1.5rem 0 3rem;
}

/* Album Photos Grid - Masonry-like for full images */
.album-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 1200px) {
    .album-photos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .album-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .album-hero-banner {
        height: 300px;
    }
    
    .album-hero-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .album-photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* Photo Item - Full display without cropping */
.photo-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.03);
}

/* Photo Zoom Icon */
.photo-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    font-size: 1.25rem;
    color: #333;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.photo-item:hover .photo-zoom-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ============================================
   GLIGHTBOX CUSTOM STYLES - Dark Blur Background
   ============================================ */
.goverlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(10px) !important;
}

.glightbox-clean .gslide-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glightbox-clean .gslide-description {
    background: transparent;
}

.glightbox-clean .gdesc-inner {
    padding: 1rem;
    text-align: center;
}

.glightbox-clean .gslide-desc {
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.glightbox-clean .gnext,
.glightbox-clean .gprev {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.glightbox-clean .gnext:hover,
.glightbox-clean .gprev:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.glightbox-clean .gclose {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    opacity: 1;
    transition: all 0.3s ease;
}

.glightbox-clean .gclose:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.glightbox-clean .gclose svg {
    width: 18px;
    height: 18px;
}

.glightbox-clean .gslide-image img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    max-height: 90vh;
    object-fit: contain;
}

/* Counter style */
.glightbox-clean .gslide-outer .gslide-title::after {
    display: none;
}

/* ============================================
   BOOKING SECTION
   ============================================ */
.booking-section {
    padding: 6rem 2rem;
    background: var(--gradient-dark);
    position: relative;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(184, 92, 182, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(34, 126, 253, 0.1) 0%, transparent 50%);
}

.booking-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--gradient-logo);
    color: #fff;
    margin-bottom: 1rem;
}

.booking-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.booking-title span:first-child {
    display: block;
    color: #fff;
}

.booking-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

/* Booking Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.2rem;
    font-family: var(--font-main);
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group select option {
    background: #1a1a2e;
    color: #fff;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    background: var(--gradient-logo);
    border: none;
    border-radius: 4px;
    transition: var(--transition-fast);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #050505;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-brand .logo-text {
    font-size: 1.2rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.footer-contact {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-link:hover {
    color: #fff;
    background: var(--gradient-logo);
    border-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .album-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .page-hero {
        padding: 100px 1rem 40px;
    }

    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .album-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .album-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .lightbox-content {
        padding: 4rem 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {

    .gallery-masonry,
    .album-photos-grid {
        grid-template-columns: 1fr;
    }

    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
}