/* scire.bar - Navy-Metallic McBling Knowledge Lounge */
/* Fonts: Dela Gothic One (display), Nunito (body), Caveat (accent) */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #121a2f;
    --metallic-accent: #b8c4d8;
    --metallic-highlight: #d4dce8;
    --watercolor-warm: #c4728a;
    --watercolor-cool: #6b5b8a;
    --text-primary: #c8d0e0;
    --text-secondary: #7a8bb5;
    --rhinestone-glint: #f0f4ff;
    --gradient-angle: 135deg;
    --scroll-progress: 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   METALLIC HEADLINE TREATMENT
   ============================================ */

.metallic-headline {
    font-family: 'Dela Gothic One', cursive;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: linear-gradient(
        calc(135deg + var(--scroll-progress) * 45deg),
        #7a8bb5 0%,
        #d4dce8 40%,
        #b8c4d8 60%,
        #7a8bb5 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #d4dce8;
}

.accent-text {
    font-family: 'Caveat', cursive;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

/* ============================================
   FLOATING ELEMENTS LAYER
   ============================================ */

#floating-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-rhinestone {
    position: absolute;
    will-change: transform;
    animation: float-up var(--duration) linear var(--delay) infinite;
    opacity: 0.7;
}

.float-wisp {
    position: absolute;
    will-change: transform;
    animation: float-drift var(--duration) ease-in-out var(--delay) infinite;
    opacity: 0.6;
}

.float-greek {
    position: absolute;
    font-family: 'Caveat', cursive;
    font-size: 14px;
    color: var(--text-secondary);
    opacity: 0.3;
    will-change: transform;
    animation: float-spin var(--duration) linear var(--delay) infinite;
    pointer-events: none;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) translateX(30px) scale(0.8);
        opacity: 0;
    }
}

@keyframes float-drift {
    0% {
        transform: translateX(-60px) translateY(0);
    }
    50% {
        transform: translateX(60px) translateY(-30px);
    }
    100% {
        transform: translateX(-60px) translateY(0);
    }
}

@keyframes float-spin {
    0% {
        transform: rotate(0deg) translateY(0) translateX(0);
    }
    25% {
        transform: rotate(90deg) translateY(-20px) translateX(10px);
    }
    50% {
        transform: rotate(180deg) translateY(0) translateX(20px);
    }
    75% {
        transform: rotate(270deg) translateY(20px) translateX(10px);
    }
    100% {
        transform: rotate(360deg) translateY(0) translateX(0);
    }
}

/* ============================================
   POUR 1: THE ENTRANCE (Hero)
   ============================================ */

.pour-entrance {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    overflow: hidden;
    z-index: 1;
}

/* Watercolor Bloom CSS Fallback */
.hero-bloom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 800px);
    height: min(90vh, 800px);
    mix-blend-mode: screen;
    z-index: 0;
}

.bloom-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation-fill-mode: forwards;
}

.bloom-ring-1 {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #6b5b8a 0%, transparent 70%);
    opacity: 0.3;
    animation: bloom-expand 3s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.bloom-ring-2 {
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, #c4728a 0%, transparent 65%);
    opacity: 0.2;
    animation: bloom-expand 2.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.bloom-ring-3 {
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, #7a8bb5 0%, transparent 60%);
    opacity: 0.25;
    animation: bloom-expand 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.bloom-ring-4 {
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, #b8c4d8 0%, transparent 55%);
    opacity: 0.15;
    animation: bloom-expand 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

@keyframes bloom-expand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Rhinestone Constellation Field */
.rhinestone-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.rhinestone-field .rh-star {
    position: absolute;
    animation: rhinestone-pulse var(--pulse-dur) ease-in-out infinite;
    transition: filter 0.2s ease;
}

@keyframes rhinestone-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: hero-fade-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.1;
    margin-bottom: 0.3em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    transform: rotate(-1.5deg);
}

@keyframes hero-fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   WATERCOLOR EDGES (Transitions between pours)
   ============================================ */

.watercolor-edge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 3;
}

.watercolor-edge svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================
   POUR 2: THE BAR COUNTER
   ============================================ */

.pour-bar {
    position: relative;
    background: var(--bg-primary);
    padding: 120px 20px 160px;
    z-index: 1;
}

.pour-column {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Cocktail Napkin Cards */
.napkin-card {
    background: rgba(220, 226, 240, 0.06);
    border: 1px solid rgba(184, 196, 216, 0.12);
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(10, 14, 26, 0.4);
    transform: rotate(calc(var(--card-index) * 0.7deg - 1.4deg));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.napkin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='0.5' fill='%23c8d0e0' fill-opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

.napkin-card.is-visible {
    opacity: 1;
}

.napkin-card .napkin-note {
    display: inline-block;
    font-size: clamp(0.85rem, 1vw, 1rem);
    margin-bottom: 12px;
    transform: rotate(-1.5deg);
}

.napkin-card h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 16px;
    line-height: 1.3;
}

.napkin-card p {
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    line-height: 1.72;
}

/* ============================================
   POUR 3: THE KNOWLEDGE WALL
   ============================================ */

.pour-knowledge {
    position: relative;
    background: var(--bg-primary);
    padding: 80px 20px 160px;
    z-index: 1;
}

.knowledge-drop {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.knowledge-drop.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.drop-text {
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    line-height: 1.25;
    margin-bottom: 24px;
}

.drop-attribution {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    display: inline-block;
    transform: rotate(1.5deg);
}

/* Watercolor Dividers */
.watercolor-divider {
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.watercolor-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============================================
   POUR 4: THE LAST CALL
   ============================================ */

.pour-lastcall {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, #050810 100%);
    padding: 80px 20px;
    z-index: 1;
    overflow: hidden;
}

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

.ascending-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle at 30% 30%, var(--rhinestone-glint), var(--metallic-accent), transparent);
    border-radius: 0;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: particle-ascend var(--p-dur) linear var(--p-delay) infinite;
    opacity: 0;
    mix-blend-mode: overlay;
}

@keyframes particle-ascend {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20vh) translateX(var(--p-drift)) rotate(360deg);
        opacity: 0;
    }
}

.lastcall-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.lastcall-content.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.lastcall-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: 32px;
    line-height: 1.1;
}

.lastcall-text {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: var(--text-primary);
    line-height: 1.72;
    margin-bottom: 48px;
}

.lastcall-sign {
    display: inline-block;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    color: var(--text-secondary);
    transform: rotate(-2deg);
    opacity: 0.8;
}

/* ============================================
   GENERAL POUR SECTION STYLING
   ============================================ */

.pour {
    position: relative;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .pour-column {
        max-width: 100%;
        padding: 0 10px;
    }

    .napkin-card {
        padding: 28px 24px;
        transform: rotate(0deg);
    }

    .knowledge-drop {
        padding: 50px 10px;
    }

    .hero-bloom {
        width: 95vw;
        height: 95vh;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.5rem);
    }

    .drop-text {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .lastcall-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}
