html {
    scroll-behavior: smooth;
}

/**
 * THE ALCHEMICAL MANUSCRIPT
 * Design System Core
 * Refined for SIENTES | OBSIDIAN RITUAL
 */

:root {
    --color-background: #121412;
    --color-surface: #121412;
    --color-surface-container: #1a1c1a;
    --color-primary: #b3a04a;
    --color-on-primary: #121412;
    --color-on-surface: #c5c6ca;
    --color-secondary: #c5c6ca;
    --color-outline: rgba(179, 160, 74, 0.2);
}

/* Album Selector Styles */
.active-album {
    border-color: rgba(var(--primary-rgb), 0.5) !important;
    background-color: rgba(var(--primary-rgb), 0.05) !important;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.1);
}

/* Merch Panning Animation */
@keyframes pan-sway {
    0% { transform: scale(1.1) translateX(-2%); }
    50% { transform: scale(1.1) translateX(2%); }
    100% { transform: scale(1.1) translateX(-2%); }
}

.animate-pan-ritual {
    animation: pan-sway 6s ease-in-out infinite;
}

/* Modal & Gallery CSS */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#musician-modal.visible {
    opacity: 1;
    visibility: visible;
}

#modal-gallery div {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
}

#modal-gallery img {
    max-height: 80vh;
    width: auto;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(179, 160, 74, 0.1);
}

/* 3D Merch Cards */
.merch-3d-card {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    overflow: hidden;
    position: relative;
}

/* Lens Effect Overlay (Stays static) */
.merch-3d-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 0%, rgba(18, 20, 18, 0.6) 80%);
    pointer-events: none;
    transition: all 0.6s ease;
}

.merch-3d-card img {
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: center center;
    position: relative;
    z-index: 1;
}

.group:hover .merch-3d-card img {
    transform: scale(1.2) rotateX(12deg) rotateY(-10deg) translateY(-8px);
    filter: brightness(1.1) contrast(1.1);
}

.group:hover .merch-3d-card::before {
    opacity: 0.8;
    background: radial-gradient(circle at center, transparent 30%, rgba(18, 20, 18, 1) 100%);
}

.group:hover .merch-3d-card {
    box-shadow: 0 40px 100px -20px rgba(179, 160, 74, 0.2);
    border-color: rgba(179, 160, 74, 0.4);
}

/* Hover Shine Effect */
.merch-3d-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s;
}

.group:hover .merch-3d-card::after {
    opacity: 1;
}

/* Navigation Links */
.nav-link-active {
    color: var(--color-primary) !important;
    border-bottom-color: var(--color-primary) !important;
}

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

body {
    background-color: var(--color-background);
    color: var(--color-on-surface);
    font-family: 'Noto Serif', serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Selection */
::selection {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

/* Google Fonts & Icons */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
    transition: all 0.3s ease;
}

/* Grainy Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Ornamental Frame Logic */
.ornamental-frame {
    position: relative;
    padding: 32px;
    border: 1px solid var(--color-outline);
    background: linear-gradient(to bottom, #121412, #0a0b0a);
    transition: border-color 0.5s ease;
}

.ornamental-frame:hover {
    border-color: rgba(218, 199, 105, 0.4);
}

/* Gothic Filigree Corners */
.corner-gothic {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 40;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 0 5px rgba(218, 199, 105, 0.2));
}

.corner-tl {
    top: -12px;
    left: -12px;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 120V2H120' stroke='%23dac769' stroke-width='1.5'/%3E%3Cpath d='M2 2C30 2 45 15 45 40C45 65 30 80 2 80' stroke='%23dac769' stroke-width='1'/%3E%3Cpath d='M2 15C15 15 25 25 25 40C25 55 15 65 2 65' stroke='%23dac769' stroke-opacity='0.5'/%3E%3Cpath d='M40 2C40 30 25 45 2 45' stroke='%23dac769' stroke-width='1'/%3E%3Cpath d='M10 10L30 30M30 10L10 30' stroke='%23dac769' stroke-width='0.5'/%3E%3Ccircle cx='5' cy='5' r='3' fill='%23dac769'/%3E%3Cpath d='M120 2C90 2 75 15 75 40' stroke='%23dac769' stroke-width='0.5'/%3E%3Cpath d='M2 120C2 90 15 75 40 75' stroke='%23dac769' stroke-width='0.5'/%3E%3C/svg%3E");
}

.corner-tr { 
    top: -12px; 
    right: -12px; 
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 2H118V120' stroke='%23dac769' stroke-width='1.5'/%3E%3Cpath d='M118 2C90 2 75 15 75 40C75 65 90 80 118 80' stroke='%23dac769' stroke-width='1'/%3E%3Cpath d='M118 15C105 15 95 25 95 40C95 55 105 65 118 65' stroke='%23dac769' stroke-opacity='0.5'/%3E%3Cpath d='M80 2C80 30 95 45 118 45' stroke='%23dac769' stroke-width='1'/%3E%3Ccircle cx='115' cy='5' r='3' fill='%23dac769'/%3E%3Cpath d='M0 2C30 2 45 15 45 40' stroke='%23dac769' stroke-width='0.5'/%3E%3C/svg%3E");
}

.corner-bl { 
    bottom: -12px; 
    left: -12px; 
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M120 118H2V0' stroke='%23dac769' stroke-width='1.5'/%3E%3Cpath d='M2 118C30 118 45 105 45 80C45 55 30 40 2 40' stroke='%23dac769' stroke-width='1'/%3E%3Cpath d='M2 105C15 105 25 95 25 80C25 65 15 55 2 55' stroke='%23dac769' stroke-opacity='0.5'/%3E%3Cpath d='M40 118C40 90 25 75 2 75' stroke='%23dac769' stroke-width='1'/%3E%3Ccircle cx='5' cy='115' r='3' fill='%23dac769'/%3E%3Cpath d='M120 118C90 118 75 105 75 80' stroke='%23dac769' stroke-width='0.5'/%3E%3C/svg%3E");
}

.corner-br {
    bottom: -12px;
    right: -12px;
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M118 0V118H0' stroke='%23dac769' stroke-width='1.5'/%3E%3Cpath d='M118 118C90 118 75 105 75 80C75 55 90 40 118 40' stroke='%23dac769' stroke-width='1'/%3E%3Cpath d='M118 105C105 105 95 95 95 80C95 65 105 55 118 55' stroke='%23dac769' stroke-opacity='0.5'/%3E%3Cpath d='M80 118C80 90 95 75 118 75' stroke='%23dac769' stroke-width='1'/%3E%3Ccircle cx='115' cy='115' r='3' fill='%23dac769'/%3E%3Cpath d='M0 118C30 118 45 105 45 80' stroke='%23dac769' stroke-width='0.5'/%3E%3C/svg%3E");
}

/* Floral Edges */
.floral-edge {
    position: absolute;
    pointer-events: none;
    z-index: 35;
    background-repeat: repeat-x;
    opacity: 0.6;
}

.floral-edge-top {
    top: 0; left: 100px; right: 100px; height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='30' viewBox='0 0 40 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 2C10 2 20 15 20 15C20 15 30 2 40 2' stroke='%23dac769' stroke-width='0.5'/%3E%3Ccircle cx='20' cy='5' r='1' fill='%23dac769'/%3E%3C/svg%3E");
}

/* Typography Effects */
.text-glow-gold {
    text-shadow: 0 0 30px rgba(218, 199, 105, 0.5);
}

.metallic-shimmer {
    background: linear-gradient(135deg, rgba(218,199,105,0) 0%, rgba(218,199,105,0.05) 45%, rgba(255,255,255,0.1) 50%, rgba(218,199,105,0.05) 55%, rgba(218,199,105,0) 100%);
    background-size: 200% 200%;
    animation: shimmer 15s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% -200%; }
    100% { background-position: 200% 200%; }
}

/* Scroll Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: #fff;
}
