/* === BACKGROUND WINE BOTTLE (Large, Faded) === */

.bottle-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    /* Reduced width further (was 260px) */
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    filter: blur(0.5px);
}

.bottle-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 8s ease-in-out infinite;
    /* Gentle breathing effect */
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Glass Bottle Shape - Refined Silhouette (Narrower: 220px) */
.bottle-mask {
    position: relative;
    width: 220px;
    /* Narrower body */
    height: 760px;
    /* Slightly shorter to maintain ratio */
    background: linear-gradient(90deg,
            rgba(80, 100, 80, 0.35) 0%,
            rgba(100, 130, 105, 0.25) 30%,
            rgba(90, 120, 100, 0.3) 50%,
            rgba(80, 105, 85, 0.32) 80%,
            rgba(70, 90, 75, 0.35) 100%);
    border-radius: 0 0 30px 30px;
    /* Path Recalculation for 220px width (Center 110)
       Lip: 75-145 (70px wide).
       Neck: 78-142 (64px wide). Start Y: 25. End Y: 85.
       Shoulder: Curve to 175.
       Body Width: 220.
    */
    clip-path: path('M 75 0 L 145 0 L 145 15 L 142 25 L 142 85 Q 142 145 220 175 L 220 720 Q 220 760 175 760 L 45 760 Q 0 760 0 720 L 0 175 Q 78 145 78 85 L 78 25 L 75 15 Z');
    overflow: hidden;
    z-index: 2;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.8);
}

/* Glass Reflection */
.bottle-glass {
    position: absolute;
    top: 5%;
    left: 12%;
    width: 8px;
    height: 90%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.3) 20%,
            rgba(255, 255, 255, 0.1) 60%,
            transparent);
    filter: blur(2px);
    z-index: 10;
    border-radius: 10px;
}

.bottle-glass::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 20px;
    width: 3px;
    height: 85%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0.15) 25%,
            transparent);
    filter: blur(1px);
    border-radius: 10px;
}

/* Wine Liquid */
.wine-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(to right,
            #2a0505 0%,
            #5e0d1b 30%,
            #7a1525 50%,
            #5e0d1b 70%,
            #2a0505 100%);
    box-shadow: inset 0 50px 80px rgba(0, 0, 0, 0.6);
    transition: height 0.15s ease-out;
}

/* Liquid Surface */
.wine-liquid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(189, 43, 63, 0.3);
    filter: blur(1px);
}

/* Cork - Matches new neck width */
.bottle-cork {
    width: 48px;
    /* Approx neck inner width */
    height: 60px;
    background:
        radial-gradient(circle at 40% 30%, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px),
        linear-gradient(90deg, #8b7355, #d2b48c, #8b7355);
    background-size: 5px 5px, 12px 12px, 100% 100%;
    border-radius: 3px;
    margin-bottom: -52px;
    /* Deep insertion */
    position: relative;
    z-index: 1;
    box-shadow:
        inset 0 -5px 10px rgba(0, 0, 0, 0.3),
        0 5px 5px rgba(0, 0, 0, 0.2);
}

/* Label - Hidden in background mode */
.bottle-label {
    display: none;
}

/* Responsive */
@media (max-width: 968px) {
    .bottle-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 220px;
        height: auto;
        display: block;
        z-index: 1;
        opacity: 0.18;
        pointer-events: none;
    }

    .bottle-wrapper {
        /* Mobile Scale + Float Animation */
        transform-origin: center center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        animation: floatMobile 8s ease-in-out infinite;
    }

    @keyframes floatMobile {

        0%,
        100% {
            transform: scale(0.65) translateY(0);
        }

        50% {
            transform: scale(0.65) translateY(-15px);
        }
    }
}

@media (max-width: 480px) {
    .bottle-container {
        opacity: 0.15;
    }

    .bottle-wrapper {
        transform: scale(0.55);
        /* Even smaller for small screens */
    }
}