/* ===== GALLERY — FUTURISTIC 3D STYLES ===== */

/* Particles Canvas */
#gallery-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ===== HERO ===== */
.gl-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    overflow: hidden;
    perspective: 1200px;
}

.gl-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* Animated orbs */
.gl-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: glOrbFloat 12s ease-in-out infinite;
}
.gl-orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #c8a97e, transparent 70%);
    top: -15%; right: -10%;
    animation-delay: 0s;
}
.gl-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #4a9eff, transparent 70%);
    bottom: -10%; left: -5%;
    animation-delay: -4s;
}
.gl-orb-3 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #c8a97e, transparent 70%);
    top: 40%; left: 50%;
    animation-delay: -8s;
}

@keyframes glOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* Grid lines */
.gl-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(200, 169, 126, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 169, 126, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: glGridMove 20s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
@keyframes glGridMove {
    0% { transform: perspective(500px) rotateX(45deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(45deg) translateY(80px); }
}

/* Hero Title */
.gl-hero .container { position: relative; z-index: 2; }

.gl-hero-title {
    font-family: var(--font-head);
    font-size: clamp(56px, 12vw, 140px);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -3px;
    margin-bottom: 24px;
    perspective: 800px;
}

.gl-title-line {
    display: block;
    overflow: hidden;
}

.gl-title-word {
    display: inline-block;
    color: var(--white);
    animation: glTitleIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}
.gl-title-accent {
    color: transparent;
    background: linear-gradient(135deg, var(--gold), #f0d6a8, var(--gold-dark));
    -webkit-background-clip: text;
    background-clip: text;
    animation-delay: 0.5s;
    text-shadow: 0 0 80px rgba(200, 169, 126, 0.3);
}

@keyframes glTitleIn {
    0% { opacity: 0; transform: translateY(110%) rotateX(-40deg); }
    100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

.gl-hero-sub {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--gray);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.8;
    opacity: 0;
    animation: glFadeUp 0.8s 0.8s both;
}

@keyframes glFadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Category Pills */
.gl-cat-pills {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: glFadeUp 0.8s 1s both;
}

.gl-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid rgba(200, 169, 126, 0.2);
    background: rgba(200, 169, 126, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-accent);
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
}
.gl-pill:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(200, 169, 126, 0.3);
}
.gl-pill-icon { font-size: 18px; }
.gl-pill-count {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}
.gl-pill:hover .gl-pill-count {
    background: rgba(0, 0, 0, 0.15);
}

/* Scroll hint */
.gl-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
    opacity: 0;
    animation: glFadeUp 0.8s 1.3s both;
}
.gl-scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(200, 169, 126, 0.4);
    border-radius: 14px;
    position: relative;
}
.gl-scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 4px;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    animation: glScrollDot 2s infinite;
}
@keyframes glScrollDot {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 28px; }
}
.gl-scroll-hint span {
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
}

/* ===== SECTIONS ===== */
.gl-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    z-index: 1;
}
.gl-section-alt {
    background: var(--bg2);
}

/* Background text */
.gl-section-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-head);
    font-size: clamp(100px, 18vw, 280px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.015);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    letter-spacing: 20px;
}

/* Section header with number */
.gl-section-header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 60px;
}
.gl-section-num {
    font-family: var(--font-head);
    font-size: clamp(60px, 8vw, 100px);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(200, 169, 126, 0.2);
    line-height: 1;
    flex-shrink: 0;
}

/* ===== 3D CARD GRID ===== */
.gl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gl-card {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: z-index 0s 0.3s;
}
.gl-card:hover { z-index: 10; transition: z-index 0s; }

.gl-card-lg {
    grid-column: span 2;
}

.gl-card-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg2);
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
    will-change: transform;
}

.gl-card:hover .gl-card-inner {
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(200, 169, 126, 0.08),
        inset 0 0 0 1px rgba(200, 169, 126, 0.15);
}

/* Card Image */
.gl-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
.gl-card-lg .gl-card-img-wrap { aspect-ratio: 16 / 9; }

.gl-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s;
    will-change: transform;
}
.gl-card:hover .gl-card-img {
    transform: scale(1.1);
    filter: brightness(0.75);
}

/* Shine sweep on hover */
.gl-card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 55%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.7s ease;
    z-index: 2;
    pointer-events: none;
}
.gl-card:hover .gl-card-shine {
    transform: translateX(100%);
}

/* Card info overlay */
.gl-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 50%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
}
.gl-card:hover .gl-card-info {
    transform: translateY(0);
    opacity: 1;
}
.gl-card-tag {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--gold);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.gl-card-info h3 {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}
.gl-card-info p {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}
.gl-card-info p::before {
    content: '📍';
    font-size: 12px;
}

/* Glow effect */
.gl-card-glow {
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 60px;
    background: radial-gradient(ellipse, rgba(200, 169, 126, 0.12), transparent 70%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
    pointer-events: none;
}
.gl-card:hover .gl-card-glow { opacity: 1; }

/* ===== REVEAL ANIMATION ===== */
.gl-reveal {
    opacity: 0;
    transform: translateY(60px) rotateX(-8deg);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.gl-reveal.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* ===== LIGHTBOX ===== */
.gl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.gl-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.gl-lb-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
    transform: scale(0.9) rotateY(-5deg);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gl-lightbox.active .gl-lb-img {
    transform: scale(1) rotateY(0);
}
.gl-lb-close, .gl-lb-prev, .gl-lb-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    backdrop-filter: blur(10px);
}
.gl-lb-close { top: 24px; right: 24px; }
.gl-lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.gl-lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.gl-lb-close:hover, .gl-lb-prev:hover, .gl-lb-next:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
    transform: scale(1.1);
}
.gl-lb-prev:hover, .gl-lb-next:hover { transform: translateY(-50%) scale(1.1); }

.gl-lb-caption {
    text-align: center;
    margin-top: 20px;
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--white);
    letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .gl-grid { grid-template-columns: repeat(2, 1fr); }
    .gl-card-lg { grid-column: span 2; }
}

@media (max-width: 768px) {
    .gl-hero { padding-top: 140px; min-height: auto; padding-bottom: 80px; }
    .gl-hero-title { font-size: clamp(40px, 14vw, 70px); letter-spacing: -1px; }
    .gl-cat-pills { gap: 10px; }
    .gl-pill { padding: 10px 16px; font-size: 12px; }
    .gl-section { padding: 80px 0; }
    .gl-section-header { flex-direction: column; gap: 12px; }
    .gl-section-num { font-size: 50px; }
    .gl-grid { grid-template-columns: 1fr; gap: 20px; }
    .gl-card-lg { grid-column: span 1; }
    .gl-card-info { padding: 20px; opacity: 1; transform: translateY(0); }
    .gl-scroll-hint { display: none; }
    .gl-lb-prev, .gl-lb-next { width: 40px; height: 40px; font-size: 18px; }
}
