:root {
    --bg-primary: #031c22;
    --bg-secondary: #07313c;
    --bg-gradient: radial-gradient(circle at 70% 30%, #0c4857 0%, #04242c 60%, #021418 100%);
    --accent-cyan: #00ced1;
    --accent-teal: #008f9e;
    --accent-gold: #e5c088;
    --text-main: #ffffff;
    --text-muted: #a3c9d1;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    background-image: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Ambient Canvas Background */
#ambientCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Confetti Canvas */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Navigation */
.navbar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(3, 28, 34, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 15px rgba(229, 192, 136, 0.3);
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: rotate(10deg) scale(1.08);
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Sound Toggle Button */
.sound-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.sound-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(229, 192, 136, 0.2);
}

.sound-toggle.playing {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.sound-waves {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.sound-waves span {
    width: 2px;
    background: currentColor;
    height: 3px;
    border-radius: 1px;
    transition: height 0.2s ease;
}

.sound-toggle.playing .sound-waves span:nth-child(1) {
    animation: bounceWave 0.5s infinite alternate;
}

.sound-toggle.playing .sound-waves span:nth-child(2) {
    animation: bounceWave 0.4s infinite alternate 0.1s;
}

.sound-toggle.playing .sound-waves span:nth-child(3) {
    animation: bounceWave 0.6s infinite alternate 0.2s;
}

@keyframes bounceWave {
    to {
        height: 12px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 50;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 3rem 7%;
    gap: 4rem;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 206, 209, 0.12);
    border: 1px solid rgba(0, 206, 209, 0.3);
    border-radius: 50px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-cyan);
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #ffdfa9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2rem;
}

.tagline-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #dfecf0;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.tagline-bar .separator {
    color: var(--accent-gold);
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.countdown-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    text-align: center;
    min-width: 75px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.count-val {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-body);
}

.count-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.countdown-sep {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-top: -15px;
}

/* VIP Form */
.vip-form {
    max-width: 480px;
    margin-bottom: 0.8rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.3rem 0.3rem 0.3rem 1.2rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.input-wrapper:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(229, 192, 136, 0.2);
}

.input-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 10px;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c89d58 100%);
    color: #122c34;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(229, 192, 136, 0.3);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: buttonShimmer 4s infinite;
}

@keyframes buttonShimmer {

    0%,
    75% {
        left: -100%;
    }

    100% {
        left: 150%;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 192, 136, 0.5);
    background: linear-gradient(135deg, #ffd89e 0%, #dfb46f 100%);
}

.form-footnote {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-footnote i {
    color: var(--accent-cyan);
}

/* Hero Visual & Cup Stage */
.hero-visual {
    position: relative;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 560px;
    perspective: 1000px;
}

.glow-backdrop {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0, 206, 209, 0.25) 0%, rgba(229, 192, 136, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

#steamCanvas {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 380px;
    z-index: 4;
    pointer-events: none;
    filter: blur(6px);
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse at 50% 65%, black 40%, transparent 85%);
    mask-image: radial-gradient(ellipse at 50% 65%, black 40%, transparent 85%);
}

.cup-wrapper {
    position: relative;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.08s cubic-bezier(0.1, 0.9, 0.2, 1);
    transform-style: preserve-3d;
    cursor: grab;
    will-change: transform;
}

.cup-wrapper:active {
    cursor: grabbing;
}

.interactive-cup {
    width: 340px;
    max-height: 460px;
    object-fit: contain;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.55));
    animation: floatCup 5s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.interactive-cup:hover {
    filter: drop-shadow(0 35px 45px rgba(0, 206, 209, 0.35));
}

@keyframes floatCup {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(2deg);
    }
}

.cup-shadow {
    width: 220px;
    height: 30px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 75%);
    border-radius: 50%;
    margin-top: -10px;
    animation: scaleShadow 5s ease-in-out infinite;
}

@keyframes scaleShadow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(0.8);
        opacity: 0.4;
    }
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    z-index: 5;
    background: rgba(7, 49, 60, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--accent-cyan);
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: floatBadge 4s ease-in-out infinite alternate;
}

.floating-badge i {
    font-size: 1.4rem;
    color: var(--accent-gold);
}

.floating-badge strong {
    display: block;
    font-size: 0.9rem;
    color: #fff;
}

.floating-badge span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.badge-left {
    top: 20%;
    left: -40px;
    animation-delay: 0.5s;
}

.badge-right {
    bottom: 25%;
    right: -40px;
    animation-delay: 1.5s;
}

@keyframes floatBadge {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }

    100% {
        transform: translateY(-12px) rotate(2deg);
    }
}

.interactive-hint {
    position: absolute;
    bottom: -10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    background: rgba(0, 206, 209, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 206, 209, 0.2);
}

.animate-bounce {
    animation: bounceIcon 1s infinite;
}

@keyframes bounceIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Interactive Experience Section */
.experience-section {
    position: relative;
    z-index: 5;
    padding: 5rem 7%;
    max-width: 1300px;
    margin: 0 auto;
}

.webcoffee-banner {
    position: relative;
    z-index: 20;
    width: 100%;
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.banner-dock-overlay {
    position: absolute;
    top: 67%;
    left: 88%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 5;
}

.webcoffee-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.roaster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.controls-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-gold);
}

.slider-group {
    margin-bottom: 2rem;
}

.slider-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #fff;
}

.slider-group label span {
    color: var(--accent-cyan);
}

.custom-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    outline: none;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-gold);
    transition: transform 0.2s;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.flavor-pills {
    margin-bottom: 2rem;
}

.flavor-pills label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.pills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pill:hover,
.pill.active {
    background: var(--accent-cyan);
    color: #031c22;
    border-color: var(--accent-cyan);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 206, 209, 0.4);
}

.brew-method label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.method-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.method-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.method-card i {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
    display: block;
}

.method-card span {
    font-size: 0.85rem;
    font-weight: 500;
}

.method-card:hover,
.method-card.active {
    background: rgba(229, 192, 136, 0.15);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.result-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(145deg, rgba(7, 49, 60, 0.6) 0%, rgba(3, 28, 34, 0.8) 100%);
    border: 1px solid rgba(229, 192, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.match-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-gold);
    color: #031c22;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.match-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 206, 209, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 25px rgba(0, 206, 209, 0.2);
}

.result-panel h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.result-panel p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.match-perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    margin-bottom: 2.2rem;
    width: 100%;
    max-width: 280px;
}

.match-perks span {
    font-size: 0.9rem;
    color: #e2f1f4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.match-perks i {
    color: var(--accent-gold);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: #031c22;
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.4);
}

/* Footer */
.footer {
    position: relative;
    z-index: 5;
    background: #021216;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 7%;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-gold);
    color: #031c22;
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #07313c;
    border: 1px solid var(--accent-gold);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast.hidden {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.toast-icon {
    font-size: 1.8rem;
    color: var(--accent-gold);
}

.toast-body h4 {
    color: #fff;
    margin-bottom: 2px;
}

.toast-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------
   EXTRA ANIMATIONS & UI POLISH
---------------------------------------------------- */

/* 1. Custom Cursor Glow Follower */
.cursor-glow {
    position: fixed;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 206, 209, 0.6) 0%, rgba(229, 192, 136, 0.3) 50%, transparent 80%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100000;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
    filter: blur(4px);
    mix-blend-mode: screen;
}

.cursor-glow.active-hover {
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, rgba(229, 192, 136, 0.8) 0%, rgba(0, 206, 209, 0.5) 60%, transparent 90%);
    filter: blur(2px);
}

/* 2. Page Loader Preloader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #021216;
    background-image: radial-gradient(circle at center, #07313c 0%, #021216 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-cup-ring {
    width: 90px;
    height: 90px;
    border: 3px solid rgba(229, 192, 136, 0.2);
    border-top-color: var(--accent-gold);
    border-right-color: var(--accent-cyan);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spinLoader 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spinLoader {
    to {
        transform: rotate(360deg);
    }
}

.loader-icon {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    color: var(--accent-gold);
    animation: pulseIcon 1s infinite alternate;
}

@keyframes pulseIcon {
    from {
        transform: translateX(-50%) scale(0.9);
        opacity: 0.7;
    }

    to {
        transform: translateX(-50%) scale(1.1);
        opacity: 1;
    }
}

.loader-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.loader-content p {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: blinkText 1.5s infinite;
}

@keyframes blinkText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* 3. Reveal on Scroll Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. Interactive 3D Card Hover Effect */
.glass-card {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(0, 206, 209, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 206, 209, 0.1);
}

/* ----------------------------------------------------
   TIM HORTONS STYLE FLOATING PARALLAX & CUP DOCKING
---------------------------------------------------- */
/* Floating Parallax Background Items */
.floating-parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-item,
.floating-bean {
    position: absolute;
    opacity: 0.12;
    filter: blur(2px);
    transition: transform 0.1s ease-out;
}

.floating-item.item-1 {
    top: 25%;
    left: 4%;
    width: 120px;
}

.floating-item.item-2 {
    top: 60%;
    right: 5%;
    width: 150px;
    transform: rotate(-20deg);
}

.floating-bean.bean-1 {
    top: 15%;
    right: 12%;
    font-size: 3.5rem;
    color: var(--accent-gold);
}

.floating-bean.bean-2 {
    top: 75%;
    left: 8%;
    font-size: 4rem;
    color: var(--accent-cyan);
}

/* Center Cup Docking Pedestal */
.dock-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 480px;
}

.dock-header {
    width: 100%;
}

.dock-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 206, 209, 0.15);
    color: var(--accent-cyan);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 206, 209, 0.3);
}

.cup-dock-target {
    position: relative;
    width: 260px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.dock-ring {
    position: absolute;
    bottom: 20px;
    width: 180px;
    height: 45px;
    border: 2px dashed var(--accent-gold);
    border-radius: 50%;
    transform: rotateX(70deg);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.dock-ring-inner {
    position: absolute;
    bottom: 30px;
    width: 130px;
    height: 30px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    transform: rotateX(70deg);
    opacity: 0.6;
}

.dock-glow {
    position: absolute;
    bottom: 10px;
    width: 200px;
    height: 60px;
    background: radial-gradient(circle, rgba(229, 192, 136, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(15px);
    transform: rotateX(60deg);
}

.docked-phantom-cup {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
    opacity: 0.25;
    transform: translateY(10px) scale(0.9);
}

.docked-phantom-cup.is-docked {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
}

.dock-ring.is-docked {
    border-style: solid;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 25px rgba(0, 206, 209, 0.6);
}

.dock-status {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hide cursor glow on touch screens */
@media (max-width: 768px) {
    .cursor-glow {
        display: none !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        padding: 1.2rem 4%;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem 5%;
    }

    /* Show the cup animation at the top on tablet & mobile */
    .hero-visual {
        order: -1;
        height: 440px;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .interactive-cup {
        width: 260px;
        max-height: 360px;
    }

    #steamCanvas {
        top: 10px;
        width: 260px;
        height: 200px;
    }

    .glow-backdrop {
        width: 300px;
        height: 300px;
    }

    .badge-left {
        top: 15%;
        left: 2%;
    }

    .badge-right {
        bottom: 20%;
        right: 2%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .tagline-bar {
        justify-content: center;
        flex-wrap: wrap;
    }

    .countdown-container {
        justify-content: center;
    }

    .vip-form {
        margin-left: auto;
        margin-right: auto;
    }

    .form-footnote {
        justify-content: center;
    }

    .roaster-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 4%;
    }

    .nav-links {
        display: none;
    }

    .brand-name {
        font-size: 1.15rem;
    }

    .sound-toggle span {
        display: none;
        /* Show icon and waves only to save space */
    }

    .hero-section {
        padding: 1.5rem 4%;
        gap: 1.5rem;
    }

    .hero-visual {
        height: 360px;
    }

    .banner-dock-overlay {
        transform: translate(-50%, -50%) scale(0.55);
        left: 92%;
        top: 68%;
    }

    .interactive-cup {
        width: 220px;
        max-height: 300px;
    }

    #steamCanvas {
        top: 5px;
        width: 220px;
        height: 180px;
    }

    .glow-backdrop {
        width: 240px;
        height: 240px;
    }

    /* Compact floating badges on mobile */
    .floating-badge {
        padding: 0.5rem 0.8rem;
        gap: 8px;
        border-radius: 10px;
    }

    .floating-badge i {
        font-size: 1.1rem;
    }

    .floating-badge strong {
        font-size: 0.8rem;
    }

    .floating-badge span {
        font-size: 0.65rem;
    }

    .badge-left {
        top: 10%;
        left: 0;
    }

    .badge-right {
        bottom: 18%;
        right: 0;
    }

    .interactive-hint {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        bottom: 0;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }

    .countdown-container {
        gap: 0.5rem;
    }

    .countdown-box {
        min-width: 65px;
        padding: 0.6rem 0.8rem;
    }

    .count-val {
        font-size: 1.4rem;
    }

    .countdown-sep {
        font-size: 1.4rem;
        margin-top: -10px;
    }

    .input-wrapper {
        flex-direction: column;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 24px;
        padding: 0.8rem;
        gap: 12px;
    }

    .input-wrapper input {
        width: 100%;
        text-align: center;
        padding: 0.4rem 0;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    .experience-section {
        padding: 3.5rem 4%;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .glass-card {
        padding: 1.8rem 1.2rem;
        border-radius: 20px;
    }

    .method-selector {
        grid-template-columns: 1fr;
    }

    .toast {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-visual {
        height: 310px;
    }

    .interactive-cup {
        width: 180px;
        max-height: 250px;
    }

    #steamCanvas {
        width: 180px;
        height: 150px;
    }

    .badge-left {
        top: 5%;
        left: 2px;
    }

    .badge-right {
        bottom: 15%;
        right: 2px;
    }

    .countdown-box {
        min-width: 55px;
        padding: 0.5rem;
    }

    .count-val {
        font-size: 1.2rem;
    }
}