/* styles.css - Harun Logam Copper & Brass Crafts Gallery */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --color-copper-raw: #8c4e23;
    --color-copper-polish: #b87333;
    --color-copper-light: #d98a4f;
    --color-brass-raw: #96781d;
    --color-brass-polish: #d4af37;
    --color-brass-light: #e5c158;
    --color-dark-bg: #0c0c0e;
    --color-dark-card: #16161a;
    --color-verdigris: #4e878c;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--color-dark-bg);
    color: #f3f4f6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-copper-raw);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-copper-polish);
}

/* Custom Selection */
::selection {
    background-color: rgba(184, 115, 51, 0.4);
    color: #ffffff;
}

/* Typography styles */
.font-display {
    font-family: 'Cinzel', serif;
}

/* Premium Metallic Text Gradients */
.text-gradient-copper {
    background: linear-gradient(135deg, #fceade 0%, #d98a4f 30%, #b87333 70%, #8c4e23 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-brass {
    background: linear-gradient(135deg, #fffbeb 0%, #e5c158 35%, #d4af37 70%, #96781d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(22, 22, 26, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(184, 115, 51, 0.12);
}

.glass-panel-hover:hover {
    background: rgba(22, 22, 26, 0.85);
    border-color: rgba(184, 115, 51, 0.25);
    box-shadow: 0 10px 30px -10px rgba(184, 115, 51, 0.15);
}

.glass-navbar {
    background: rgba(12, 12, 14, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(184, 115, 51, 0.08);
}

/* Floating Particles (Hero Background) */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    bottom: -20px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.6) 0%, rgba(184, 115, 51, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatUp 8s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) scale(0.6) rotate(360deg);
        opacity: 0;
    }
}

/* Custom Interactive Animations */
.glow-pulse-copper {
    animation: copperGlow 3s infinite alternate;
}

@keyframes copperGlow {
    0% {
        box-shadow: 0 0 5px rgba(184, 115, 51, 0.2), inset 0 0 5px rgba(184, 115, 51, 0.1);
    }

    100% {
        box-shadow: 0 0 20px rgba(184, 115, 51, 0.5), inset 0 0 10px rgba(184, 115, 51, 0.2);
    }
}

.glow-pulse-brass {
    animation: brassGlow 3.5s infinite alternate;
}

@keyframes brassGlow {
    0% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.15), inset 0 0 5px rgba(212, 175, 55, 0.08);
    }

    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.45), inset 0 0 10px rgba(212, 175, 55, 0.15);
    }
}

/* Metal Polish Shimmer Effect on Hover */
.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 48%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.1) 52%,
            transparent 55%);
    transform: rotate(-45deg);
    transition: none;
}

.shimmer-btn:hover::after {
    animation: shine 1.2s ease-in-out;
}

@keyframes shine {
    0% {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    100% {
        transform: translate(50%, 50%) rotate(-45deg);
    }
}

/* Gallery Item Transition styles */
.gallery-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.gallery-item.hidden-item {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* Decorative grid pattern in background */
.grid-bg {
    background-image:
        linear-gradient(rgba(184, 115, 51, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184, 115, 51, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Smooth zoom-in on hover for images */
.zoom-img-container {
    overflow: hidden;
}

.zoom-img-container img {
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.zoom-img-container:hover img {
    transform: scale(1.08);
}

/* Custom Checkbox and inputs styling */
.custom-input {
    background: rgba(18, 18, 22, 0.8);
    border: 1px solid rgba(184, 115, 51, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: var(--color-copper-polish);
    box-shadow: 0 0 10px rgba(184, 115, 51, 0.25);
    outline: none;
}

/* Sub-page Header Banner decoration */
.subpage-banner {
    background: linear-gradient(180deg, #070709 0%, var(--color-dark-bg) 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(184, 115, 51, 0.1);
}

/* Dynamic Editorial Article Styling */
.article-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #d1d5db;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.article-body strong {
    color: #ffffff;
    font-weight: 600;
}

.article-body h2 {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(184, 115, 51, 0.15);
    padding-bottom: 0.5rem;
}

.article-body h3 {
    font-family: 'Cinzel', serif;
    color: var(--color-brass-light);
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body ul {
    list-style-type: none;
}

.article-body ul li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.article-body ul li::before {
    content: "♦";
    position: absolute;
    left: 0;
    color: var(--color-copper-polish);
    font-size: 0.8rem;
    top: 0.2rem;
}

.article-body blockquote {
    border-left: 4px solid var(--color-copper-polish);
    background: rgba(184, 115, 51, 0.05);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 1rem 1rem 0;
    font-style: italic;
    color: #e5e7eb;
}

/* ============================== */
/* Hero Batik Pattern Background  */
/* ============================== */
.hero-ukiran-pattern {
    position: absolute;
    inset: -15%;
    width: 130%;
    height: 130%;
    opacity: 0.16;
    mix-blend-mode: screen;
    background-image: url('assets/images/lampu.jpeg');
    background-repeat: no-repeat;
    background-size: 85%;
    background-attachment: fixed;
    -webkit-mask-image: radial-gradient(ellipse 70% 65% at center, #000 0%, #000 45%, transparent 85%);
    mask-image: radial-gradient(ellipse 70% 65% at center, #000 0%, #000 45%, transparent 85%);
    animation:
        batikFlow 90s linear infinite,
        batikBreathe 7s ease-in-out infinite alternate,
        batikTilt 40s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes batikFlow {
    from {
        background-position: center;
    }


    to {
        background-position: 52% 52%;
    }
}

@keyframes batikBreathe {
    0% {
        opacity: 0.10;
    }

    100% {
        opacity: 0.24;
    }
}

@keyframes batikTilt {
    0% {
        transform: rotate(-1deg) scale(1.015);
    }

    50% {
        transform: rotate(0.4deg) scale(1);
    }

    100% {
        transform: rotate(1deg) scale(1.015);
    }
}


.hero-ukiran-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(229, 193, 88, 0.10) 47%, rgba(229, 193, 88, 0.22) 50%, rgba(229, 193, 88, 0.10) 53%, transparent 70%);
    background-size: 300% 300%;
    mix-blend-mode: overlay;
    animation: ukiranShimmer 9s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ukiranShimmer {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-ukiran-pattern,
    .hero-ukiran-shimmer {
        animation: none !important;
    }
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}