body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Arial', sans-serif;
}

#container {
    width: 100vw;
    height: 100vh;
    opacity: 0;
    /* Hidden initially */
    transition: opacity 1s ease-in;
}

#container.visible {
    opacity: 1;
}

#logo-container {
    position: fixed;
    top: -20px;
    left: -30px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

#logo-container.visible {
    opacity: 1;
    pointer-events: auto;
}

#horlicks-logo {
    width: 180px;
    height: auto;
    display: block;
}

#border-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.8s ease-in;
    pointer-events: none;
}

#border-overlay.visible {
    opacity: 1;
}

#target-border {
    width: 250px;
    height: auto;
    display: block;
}

/* 360 View Scan Message */
#scan-message {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.8s ease-in;
    pointer-events: none;

    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

#scan-message.visible {
    opacity: 1;
}

#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #003D7C;
    /* Horlicks Blue approx */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}

#start-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Final CTA Screen */
#final-cta-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #003D7C;
    z-index: 10002;
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in;
    cursor: pointer;
}

#final-cta-screen.visible {
    display: flex;
    opacity: 1;
}

#final-cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#start-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

#start-btn {
    position: absolute;
    bottom: 80px;
    z-index: 1;
    padding: 15px 40px;
    background: #EBBD00;
    /* Color from SVG */
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    border: 3px solid rgba(0, 0, 0, 0.8);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(235, 189, 0, 0.4), 0 0 20px rgba(0, 0, 0, 0.6);
    animation: pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(235, 189, 0, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(235, 189, 0, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(235, 189, 0, 0.4);
    }
}

/* Benefit Pins */
#pins-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9997;
    opacity: 0;
    display: none;
    transition: opacity 0.8s ease-in;
    pointer-events: none;
}

#pins-container.visible {
    opacity: 1;
    display: block;
    pointer-events: auto;
}

.benefit-pin {
    position: absolute;
    width: 90px;
    height: 90px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.benefit-pin.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.benefit-pin.dropped {
    opacity: 0;
    pointer-events: none;
}

/* Left side pins */
#pin-taller {
    top: 20%;
    left: 5%;
    cursor: grab;
}

#pin-stronger {
    top: 48%;
    left: 5%;
    cursor: grab;
}

/* Right side pins */
#pin-sharper {
    top: 20%;
    right: 5%;
    cursor: grab;
}

#pin-clinically {
    top: 48%;
    right: 5%;
    cursor: grab;
}

/* Drag Hint Animation */
#drag-hint {
    position: fixed;
    bottom: 30%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 1;
    animation: fadeInOut 3s ease-in-out infinite;
    pointer-events: none;
}

#drag-hint.hidden {
    opacity: 0;
    display: none;
}

.drag-hand {
    font-size: 3rem;
    animation: dragGesture 2s ease-in-out infinite;
}

@keyframes dragGesture {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Instruction Image */
#instruction-text {
    position: fixed;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9996;
    opacity: 0;
    display: none;
    transition: opacity 0.8s ease-in;
    pointer-events: none;

    width: 90%;
    max-width: 500px;
    height: auto;
}

#instruction-text.visible {
    opacity: 1;
    display: block;
}

/* Final Text Image (shown after all pins dropped) */
#final-text {
    position: fixed;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    opacity: 0;
    display: none;
    transition: opacity 0.8s ease-in;
    pointer-events: none;

    width: 90%;
    max-width: 400px;
    height: auto;
}

#final-text.visible {
    opacity: 1;
    display: block;
}

/* Drop Effect */
#drop-effect {
    position: fixed;
    z-index: 10001;
    pointer-events: none;
}

.drop-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #EBBD00, #FFA500);
    border-radius: 50%;
    animation: burstParticle 0.8s ease-out forwards;
    box-shadow: 0 0 10px #EBBD00;
}

@keyframes burstParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.drop-ripple {
    position: absolute;
    border: 3px solid #EBBD00;
    border-radius: 50%;
    animation: rippleExpand 0.6s ease-out forwards;
}

@keyframes rippleExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}
