/* 
 * 3D Luxury Button Bar - Stylesheet
 * Focused on ultra-premium, cinematic aesthetic with depth and lighting.
 */

:root {
    --bg-deep-purple: #1a0033;
    --luxury-gold: #d4a017;
    --gold-glow: rgba(212, 160, 23, 0.4);
    --crystal-white: rgba(255, 255, 255, 0.9);
    --btn-width: 160px;
    --btn-height: 54px;
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--bg-deep-purple);
    color: white;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Animation */
.luxury-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #1a0033 0%, #2d004d 50%, #1a0033 100%);
    animation: bgShift 15s ease infinite;
}

@keyframes bgShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/feFilter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Container & Typography */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    z-index: 1;
}

.header {
    text-align: center;
}

.title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.2rem;
    background: linear-gradient(to bottom, #ffffff 30%, #d4a017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Button Bar Wrapper */
.button-bar-wrapper {
    position: relative;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mouse-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.button-bar-wrapper:hover .mouse-glow {
    opacity: 1;
}

.button-bar {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

/* 3D Luxury Button Styles */
.luxury-btn {
    position: relative;
    width: var(--btn-width);
    height: var(--btn-height);
    background: rgba(26, 0, 51, 0.6);
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    perspective: 1000px;
    
    /* 3D Bevel & Emboss Effect */
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.3),
        inset 0 -1px 1px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.4),
        0 2px 5px rgba(212, 160, 23, 0.2);
    
    border: 1px solid rgba(212, 160, 23, 0.3);
}

.luxury-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--luxury-gold), #5e3a00, var(--luxury-gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.8;
}

.btn-content {
    position: relative;
    z-index: 2;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    text-shadow: 0 0 10px var(--gold-glow);
    transition: var(--transition-smooth);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 45%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 55%,
        transparent 100%
    );
    background-size: 200% 200%;
    background-position: 200% 200%;
    border-radius: 8px;
    pointer-events: none;
    z-index: 3;
    transition: 0.8s ease;
}

.liquid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover States */
.luxury-btn:hover {
    transform: scale(1.08) translateY(-5px) rotateX(10deg);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.4),
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 5px 15px rgba(212, 160, 23, 0.4);
}

.luxury-btn:hover .btn-content {
    transform: translateZ(20px);
    color: #fff;
    text-shadow: 0 0 15px white, 0 0 25px var(--luxury-gold);
}

.luxury-btn:hover .btn-shine {
    background-position: -100% -100%;
}

.luxury-btn:hover .liquid-canvas {
    opacity: 1;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
    .button-bar {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .button-bar-wrapper {
        width: 90%;
    }
    
    .luxury-btn {
        width: 100%;
        max-width: 280px;
    }
}
