/* ==========================================================================
   bada.style — Glassmorphic Jewel-Tone Aquarium Experience
   Colors: #0B1354, #2D1B69, #0A3D2E, #4A0E1C, #D4A017, #00E5CC, #E8E0F0, #C8C0D8, #A0D8C8
   Fonts: Bebas Neue, Cormorant Garamond, Inter
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: #0B1354;
    color: #E8E0F0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
.hero-headline {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(4rem, 12vw + 1rem, 14rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    line-height: 0.9;
    text-shadow: 0 0 40px rgba(45, 27, 105, 0.5), 0 0 80px rgba(11, 19, 84, 0.3);
    animation: headline-glow 12s ease-in-out infinite;
}

.headline-dot {
    color: #D4A017;
    text-shadow: 0 0 30px rgba(212, 160, 23, 0.6);
}

.section-title {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2.5rem, 6vw, 6rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    line-height: 0.95;
    margin-bottom: 1.5rem;
}

.cormorant-text {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.35rem);
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: #E8E0F0;
}

.cormorant-text em {
    font-style: italic;
}

.label-text {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C8C0D8;
    display: block;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.1rem, 1.5vw + 0.4rem, 1.6rem);
    font-style: italic;
    color: #A0D8C8;
    margin-top: 1rem;
    letter-spacing: 0.02em;
}

/* --- Headline Glow Animation (12s cycle through jewel tones) --- */
@keyframes headline-glow {
    0%, 100% {
        text-shadow: 0 0 40px rgba(11, 19, 84, 0.5), 0 0 80px rgba(11, 19, 84, 0.3);
    }
    25% {
        text-shadow: 0 0 40px rgba(45, 27, 105, 0.6), 0 0 80px rgba(45, 27, 105, 0.35);
    }
    50% {
        text-shadow: 0 0 40px rgba(10, 61, 46, 0.5), 0 0 80px rgba(10, 61, 46, 0.3);
    }
    75% {
        text-shadow: 0 0 40px rgba(74, 14, 28, 0.5), 0 0 80px rgba(74, 14, 28, 0.3);
    }
}

/* --- Bubble Container --- */
#bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes float-up {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    3% {
        opacity: var(--bubble-opacity, 0.7);
    }
    88% {
        opacity: var(--bubble-opacity, 0.7);
    }
    100% {
        transform: translateY(var(--drift-y, -110vh)) translateX(var(--drift-x, 30px));
        opacity: 0;
    }
}

@keyframes float-up-wobble {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    3% {
        opacity: var(--bubble-opacity, 0.6);
    }
    25% {
        transform: translateY(calc(var(--drift-y, -110vh) * 0.25)) translateX(calc(var(--drift-x, 30px) * -0.5)) scale(1.02);
    }
    50% {
        transform: translateY(calc(var(--drift-y, -110vh) * 0.5)) translateX(calc(var(--drift-x, 30px) * 0.5)) scale(0.98);
    }
    75% {
        transform: translateY(calc(var(--drift-y, -110vh) * 0.75)) translateX(calc(var(--drift-x, 30px) * -0.3)) scale(1.01);
    }
    88% {
        opacity: var(--bubble-opacity, 0.6);
    }
    100% {
        transform: translateY(var(--drift-y, -110vh)) translateX(var(--drift-x, 30px)) scale(1);
        opacity: 0;
    }
}

/* --- Navigation Pill --- */
#nav-pill {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

#nav-pill:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(212, 160, 23, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.nav-pill-text {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.nav-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00E5CC;
    box-shadow: 0 0 8px rgba(0, 229, 204, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 8px rgba(0, 229, 204, 0.6);
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
        box-shadow: 0 0 16px rgba(0, 229, 204, 0.8);
    }
}

/* --- Navigation Overlay --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    pointer-events: none;
    opacity: 0;
    clip-path: circle(0% at calc(100% - 4rem) 3rem);
    transition: clip-path 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    background: rgba(11, 19, 84, 0.88);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
}

.nav-overlay.active {
    pointer-events: all;
    opacity: 1;
    clip-path: circle(150% at calc(100% - 4rem) 3rem);
}

.nav-overlay-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00E5CC;
    text-shadow: 0 0 30px rgba(0, 229, 204, 0.4);
    transform: scale(1.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00E5CC;
    transition: width 0.3s ease, left 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 229, 204, 0.5);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

.nav-close-btn {
    margin-top: 2rem;
    padding: 10px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.nav-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 160, 23, 0.4);
}

.nav-close-btn .label-text {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Sections --- */
.section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: opacity 0.6s ease;
}

.section-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Section backgrounds */
[data-theme="sapphire"] .section-bg {
    background: linear-gradient(160deg, #0B1354 0%, #2D1B69 50%, #0B1354 100%);
}

[data-theme="emerald"] .section-bg {
    background: linear-gradient(160deg, #0A3D2E 0%, #0B1354 40%, #0A3D2E 100%);
}

[data-theme="ruby"] .section-bg {
    background: linear-gradient(160deg, #4A0E1C 0%, #2D1B69 40%, #4A0E1C 100%);
}

[data-theme="transition-1"] .section-bg {
    background: linear-gradient(160deg, #0A3D2E 0%, #2D1B69 100%);
}

[data-theme="transition-2"] .section-bg {
    background: linear-gradient(160deg, #4A0E1C 0%, #0B1354 100%);
}

[data-theme="deep"] .section-bg {
    background: linear-gradient(160deg, #0B1354 0%, #2D1B69 30%, #0A3D2E 60%, #0B1354 100%);
}

/* --- Glass Panel Inner Highlight --- */
.hero-glass-panel::before,
.hero-main-panel::before,
.shelf-panel::before,
.floating-card::before,
.footer-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Hero glass panels - decorative z-depth elements */
.hero-glass-panel {
    position: absolute;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 3;
    padding: 1.5rem;
    overflow: hidden;
    transition: backdrop-filter 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-glass-panel:hover {
    backdrop-filter: blur(20px) saturate(220%);
    -webkit-backdrop-filter: blur(20px) saturate(220%);
    border-color: rgba(212, 160, 23, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-glass-1 {
    top: 12%;
    left: 8%;
    width: 180px;
    height: 80px;
    transform: perspective(800px) rotateY(5deg) rotateX(-3deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glass-1 .label-text {
    margin-bottom: 0;
    color: #A0D8C8;
}

.hero-glass-2 {
    top: 16%;
    right: 10%;
    width: 140px;
    height: 140px;
    transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
    opacity: 0.7;
}

.glass-particle-cluster {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(0, 229, 204, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(212, 160, 23, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(160, 216, 200, 0.3) 0%, transparent 30%);
    animation: cluster-pulse 8s ease-in-out infinite;
}

.cluster-alt {
    background:
        radial-gradient(circle at 60% 30%, rgba(212, 160, 23, 0.35) 0%, transparent 40%),
        radial-gradient(circle at 25% 70%, rgba(0, 229, 204, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(200, 192, 216, 0.25) 0%, transparent 35%);
    animation: cluster-pulse 10s ease-in-out infinite reverse;
}

@keyframes cluster-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.hero-glass-3 {
    bottom: 22%;
    left: 12%;
    width: 200px;
    height: 70px;
    transform: perspective(800px) rotateY(3deg) rotateX(2deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glass-3 .label-text {
    margin-bottom: 0;
    color: #C8C0D8;
}

.hero-glass-4 {
    bottom: 10%;
    right: 6%;
    width: min(350px, 30vw);
    height: auto;
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg);
    padding: 2rem;
}

.hero-glass-4 .cormorant-text {
    font-size: clamp(0.85rem, 1vw, 1.1rem);
    font-style: italic;
    color: #C8C0D8;
    line-height: 1.6;
}

.hero-glass-5 {
    top: 60%;
    left: 4%;
    width: 100px;
    height: 100px;
    transform: perspective(800px) rotateY(6deg) rotateX(-4deg);
    opacity: 0.5;
    border-radius: 24px;
}

/* Hero main panel -- central headline element */
.hero-main-panel {
    position: relative;
    z-index: 5;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(11, 19, 84, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: clamp(2rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5rem);
    text-align: center;
    transform: perspective(800px) rotateY(-3deg) rotateX(2deg);
    overflow: hidden;
    max-width: 65vw;
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scroll-indicator .label-text {
    margin-bottom: 0;
    color: #A0D8C8;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #A0D8C8;
    border-bottom: 2px solid #A0D8C8;
    transform: rotate(45deg);
    animation: arrow-bounce 2s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 1;
    }
    50% {
        transform: rotate(45deg) translateY(8px);
        opacity: 0.5;
    }
}

/* --- Jewel Transition Sections --- */
.jewel-transition {
    position: relative;
    height: 14vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.jewel-transition-1 {
    background: linear-gradient(180deg, #2D1B69 0%, #0A3D2E 100%);
}

.jewel-transition-2 {
    background: linear-gradient(180deg, #0A3D2E 0%, #4A0E1C 100%);
}

.jewel-transition-3 {
    background: linear-gradient(180deg, #4A0E1C 0%, #0B1354 100%);
}

.facet {
    width: 40px;
    height: 40px;
    opacity: 0.4;
    animation: facet-rotate 20s linear infinite;
}

.facet-1 {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(135deg, rgba(0, 229, 204, 0.4), rgba(45, 27, 105, 0.3));
    width: 50px;
    height: 50px;
}

.facet-2 {
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.4), rgba(10, 61, 46, 0.3));
    width: 60px;
    height: 35px;
    animation-direction: reverse;
}

.facet-3 {
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    background: linear-gradient(135deg, rgba(160, 216, 200, 0.3), rgba(11, 19, 84, 0.3));
    width: 45px;
    height: 45px;
    animation-duration: 25s;
}

.facet-4 {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.5), rgba(74, 14, 28, 0.3));
    width: 55px;
    height: 55px;
}

.facet-5 {
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    background: linear-gradient(135deg, rgba(0, 229, 204, 0.3), rgba(45, 27, 105, 0.4));
    width: 65px;
    height: 40px;
    animation-direction: reverse;
    animation-duration: 18s;
}

.facet-6 {
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    background: linear-gradient(135deg, rgba(74, 14, 28, 0.4), rgba(212, 160, 23, 0.3));
    width: 48px;
    height: 48px;
}

.facet-7 {
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(135deg, rgba(0, 229, 204, 0.35), rgba(11, 19, 84, 0.4));
    width: 42px;
    height: 42px;
    animation-direction: reverse;
    animation-duration: 22s;
}

.facet-8 {
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    background: linear-gradient(135deg, rgba(160, 216, 200, 0.4), rgba(45, 27, 105, 0.3));
    width: 56px;
    height: 34px;
}

@keyframes facet-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Glass Shelf Sections --- */
.shelf-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8vh 5vw;
}

.shelf-layout {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 3vw;
    width: min(1200px, 65vw);
    align-items: stretch;
}

.shelf-layout-reverse {
    flex-direction: row-reverse;
}

.shelf-panel {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: clamp(2rem, 3vw, 3.5rem);
    position: relative;
    overflow: hidden;
    transition: backdrop-filter 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.shelf-panel:hover {
    backdrop-filter: blur(20px) saturate(220%);
    -webkit-backdrop-filter: blur(20px) saturate(220%);
    border-color: rgba(212, 160, 23, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.shelf-panel-large {
    flex: 6;
    margin-top: -2vh;
}

.shelf-panel-small {
    flex: 4;
    margin-top: 4vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Section-specific title text-shadows */
[data-theme="emerald"] .section-title {
    text-shadow: 0 0 40px rgba(10, 61, 46, 0.5);
}

[data-theme="ruby"] .section-title {
    text-shadow: 0 0 40px rgba(74, 14, 28, 0.5);
}

[data-theme="deep"] .section-title {
    text-shadow: 0 0 40px rgba(0, 229, 204, 0.3);
}

[data-theme="transition-1"] .section-title,
[data-theme="transition-2"] .section-title {
    text-shadow: 0 0 40px rgba(45, 27, 105, 0.5);
}

/* Panel accent lines */
.panel-accent-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D4A017, rgba(212, 160, 23, 0));
    margin-top: 2rem;
}

.panel-accent-ruby {
    background: linear-gradient(90deg, #4A0E1C, rgba(74, 14, 28, 0));
}

.panel-accent-aqua {
    background: linear-gradient(90deg, #00E5CC, rgba(0, 229, 204, 0));
}

/* --- Floating Detail Cards --- */
.floating-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12vh 0;
}

.floating-card {
    position: relative;
    z-index: 3;
    width: min(700px, 60vw);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: clamp(2.5rem, 4vw, 4rem);
    overflow: hidden;
    transition: backdrop-filter 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-card:hover {
    backdrop-filter: blur(28px) saturate(240%);
    -webkit-backdrop-filter: blur(28px) saturate(240%);
    border-color: rgba(212, 160, 23, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.floating-card .cormorant-text {
    margin-top: 1rem;
}

.card-glow {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 204, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: glow-breathe 6s ease-in-out infinite;
}

@keyframes glow-breathe {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* --- Facet Display --- */
.facet-display {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.display-facet {
    opacity: 0.6;
    animation: facet-float 8s ease-in-out infinite;
}

.display-facet-1 {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    background: linear-gradient(135deg, rgba(0, 229, 204, 0.5), rgba(11, 19, 84, 0.4));
    animation-delay: 0s;
}

.display-facet-2 {
    width: 70px;
    height: 45px;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    background: linear-gradient(135deg, rgba(212, 160, 23, 0.5), rgba(74, 14, 28, 0.4));
    animation-delay: -2s;
}

.display-facet-3 {
    width: 55px;
    height: 55px;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    background: linear-gradient(135deg, rgba(160, 216, 200, 0.4), rgba(45, 27, 105, 0.4));
    animation-delay: -4s;
}

.display-facet-4 {
    width: 50px;
    height: 50px;
    clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
    background: linear-gradient(135deg, rgba(0, 229, 204, 0.4), rgba(212, 160, 23, 0.3));
    animation-delay: -6s;
}

@keyframes facet-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(3deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
    75% { transform: translateY(-3px) rotate(2deg); }
}

/* --- Footer --- */
.site-footer {
    position: relative;
    padding: 8vh 0 6vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0B1354 0%, #06091F 100%);
}

.footer-glass {
    position: relative;
    z-index: 3;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    padding: 2.5rem 4rem;
    text-align: center;
    overflow: hidden;
}

.footer-brand {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.footer-glass .cormorant-text {
    margin-top: 0.5rem;
    color: #C8C0D8;
    font-size: 1rem;
}

/* --- Bounce-Enter Animation --- */
.bounce-target {
    opacity: 0;
    transform: scale(0.85) translateY(40px);
    transition: opacity 0.15s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce-target.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Preserve hero panel perspective transforms when visible */
.hero-glass-1.visible {
    transform: perspective(800px) rotateY(5deg) rotateX(-3deg) scale(1) translateY(0);
}

.hero-glass-2.visible {
    transform: perspective(800px) rotateY(-4deg) rotateX(2deg) scale(1) translateY(0);
    opacity: 0.7;
}

.hero-glass-3.visible {
    transform: perspective(800px) rotateY(3deg) rotateX(2deg) scale(1) translateY(0);
}

.hero-glass-4.visible {
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg) scale(1) translateY(0);
}

.hero-glass-5.visible {
    transform: perspective(800px) rotateY(6deg) rotateX(-4deg) scale(1) translateY(0);
    opacity: 0.5;
}

.hero-main-panel.visible {
    transform: perspective(800px) rotateY(-3deg) rotateX(2deg) scale(1) translateY(0);
}

/* Stagger delays for sibling elements */
.shelf-panel:nth-child(2) {
    transition-delay: 120ms;
}

.hero-glass-1 { transition-delay: 0ms; }
.hero-glass-2 { transition-delay: 120ms; }
.hero-main-panel { transition-delay: 240ms; }
.hero-glass-3 { transition-delay: 360ms; }
.hero-glass-4 { transition-delay: 480ms; }
.hero-glass-5 { transition-delay: 200ms; }
.scroll-indicator { transition-delay: 600ms; }

/* --- Particle Layer (box-shadow technique) --- */
.hero-particles::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    box-shadow:
        100px 80px 0 1px rgba(0, 229, 204, 0.5),
        250px 150px 0 1px rgba(212, 160, 23, 0.4),
        400px 60px 0 1.5px rgba(160, 216, 200, 0.5),
        550px 200px 0 1px rgba(0, 229, 204, 0.4),
        700px 120px 0 2px rgba(212, 160, 23, 0.5),
        150px 350px 0 1px rgba(0, 229, 204, 0.3),
        300px 420px 0 1.5px rgba(160, 216, 200, 0.4),
        500px 380px 0 1px rgba(212, 160, 23, 0.4),
        650px 300px 0 2px rgba(0, 229, 204, 0.5),
        80px 500px 0 1px rgba(160, 216, 200, 0.3),
        200px 550px 0 1.5px rgba(212, 160, 23, 0.4),
        450px 480px 0 1px rgba(0, 229, 204, 0.4),
        600px 520px 0 2px rgba(160, 216, 200, 0.5),
        750px 450px 0 1px rgba(212, 160, 23, 0.3),
        350px 600px 0 1.5px rgba(0, 229, 204, 0.5),
        120px 250px 0 1px rgba(160, 216, 200, 0.4),
        500px 100px 0 2px rgba(212, 160, 23, 0.5),
        680px 550px 0 1px rgba(0, 229, 204, 0.4),
        50px 400px 0 1.5px rgba(160, 216, 200, 0.3),
        380px 280px 0 1px rgba(212, 160, 23, 0.4),
        820px 180px 0 1.5px rgba(0, 229, 204, 0.45),
        900px 350px 0 1px rgba(160, 216, 200, 0.35),
        160px 620px 0 2px rgba(212, 160, 23, 0.5),
        530px 50px 0 1px rgba(0, 229, 204, 0.4),
        770px 580px 0 1.5px rgba(160, 216, 200, 0.4);
    animation: particle-drift 25s ease-in-out infinite alternate;
}

@keyframes particle-drift {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(15px, -20px);
    }
    50% {
        transform: translate(-10px, 15px);
    }
    75% {
        transform: translate(20px, 10px);
    }
    100% {
        transform: translate(-15px, -10px);
    }
}

/* Section-specific particle layers */
.section-particles::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    animation: particle-drift-section 30s ease-in-out infinite alternate;
}

@keyframes particle-drift-section {
    0% { transform: translate(0, 0); }
    20% { transform: translate(12px, -15px); }
    40% { transform: translate(-8px, 10px); }
    60% { transform: translate(18px, 5px); }
    80% { transform: translate(-12px, -8px); }
    100% { transform: translate(5px, 12px); }
}

[data-theme="emerald"] .section-particles::after {
    box-shadow:
        80px 100px 0 1px rgba(0, 229, 204, 0.4),
        200px 180px 0 1.5px rgba(160, 216, 200, 0.3),
        350px 80px 0 1px rgba(0, 229, 204, 0.5),
        500px 220px 0 2px rgba(160, 216, 200, 0.4),
        150px 300px 0 1px rgba(0, 229, 204, 0.3),
        400px 350px 0 1.5px rgba(160, 216, 200, 0.4),
        600px 150px 0 1px rgba(0, 229, 204, 0.5),
        250px 400px 0 2px rgba(160, 216, 200, 0.3),
        700px 280px 0 1px rgba(0, 229, 204, 0.35),
        450px 130px 0 1.5px rgba(160, 216, 200, 0.45);
}

[data-theme="ruby"] .section-particles::after {
    box-shadow:
        100px 120px 0 1px rgba(212, 160, 23, 0.4),
        280px 60px 0 1.5px rgba(212, 160, 23, 0.3),
        420px 200px 0 1px rgba(0, 229, 204, 0.4),
        550px 100px 0 2px rgba(212, 160, 23, 0.5),
        180px 350px 0 1px rgba(212, 160, 23, 0.3),
        350px 280px 0 1.5px rgba(0, 229, 204, 0.3),
        500px 380px 0 1px rgba(212, 160, 23, 0.4),
        650px 250px 0 2px rgba(0, 229, 204, 0.4),
        300px 150px 0 1px rgba(212, 160, 23, 0.45),
        720px 320px 0 1.5px rgba(0, 229, 204, 0.35);
}

[data-theme="transition-1"] .section-particles::after {
    box-shadow:
        120px 100px 0 1px rgba(0, 229, 204, 0.3),
        300px 200px 0 1.5px rgba(212, 160, 23, 0.3),
        480px 120px 0 1px rgba(160, 216, 200, 0.4),
        200px 350px 0 2px rgba(0, 229, 204, 0.3),
        400px 300px 0 1px rgba(212, 160, 23, 0.4),
        600px 180px 0 1.5px rgba(160, 216, 200, 0.35);
}

[data-theme="transition-2"] .section-particles::after {
    box-shadow:
        150px 80px 0 1px rgba(212, 160, 23, 0.4),
        320px 180px 0 1.5px rgba(0, 229, 204, 0.3),
        500px 100px 0 1px rgba(212, 160, 23, 0.3),
        250px 300px 0 2px rgba(0, 229, 204, 0.4),
        450px 250px 0 1px rgba(212, 160, 23, 0.4),
        650px 150px 0 1.5px rgba(0, 229, 204, 0.35);
}

[data-theme="deep"] .section-particles::after {
    box-shadow:
        100px 90px 0 1px rgba(0, 229, 204, 0.5),
        250px 160px 0 1.5px rgba(160, 216, 200, 0.4),
        400px 70px 0 1px rgba(0, 229, 204, 0.4),
        550px 200px 0 2px rgba(160, 216, 200, 0.3),
        180px 320px 0 1px rgba(0, 229, 204, 0.3),
        380px 380px 0 1.5px rgba(160, 216, 200, 0.4),
        600px 130px 0 1px rgba(0, 229, 204, 0.5),
        700px 300px 0 1.5px rgba(160, 216, 200, 0.35),
        480px 400px 0 1px rgba(0, 229, 204, 0.4);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .shelf-layout {
        flex-direction: column;
        width: 90vw;
    }

    .shelf-layout-reverse {
        flex-direction: column;
    }

    .shelf-panel-large,
    .shelf-panel-small {
        margin-top: 0;
    }

    .floating-card {
        width: 90vw;
    }

    .hero-main-panel {
        max-width: 90vw;
        transform: none;
    }

    .hero-main-panel.visible {
        transform: scale(1) translateY(0);
    }

    .hero-glass-panel {
        display: none;
    }

    .hero-glass-4,
    .hero-glass-5 {
        display: none;
    }

    .hero-section {
        padding: 0 1rem;
    }

    #nav-pill {
        top: 1rem;
        right: 1rem;
    }

    .footer-glass {
        padding: 2rem;
    }

    .floating-section {
        padding: 8vh 1rem;
    }

    .shelf-section {
        padding: 6vh 1rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: clamp(3rem, 15vw, 5rem);
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .nav-link {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .footer-glass {
        padding: 1.5rem;
    }
}
