html { scroll-behavior: smooth; }
body { font-family: "Inter", sans-serif; }

/* FLOAT IMG (Mobile) */
.float-img { opacity: 0; transform: translateY(40px); transition: 1.4s ease-in-out; }
.appear-left { opacity: 1 !important; transform: translateX(30px) !important; }
.appear-right { opacity: 1 !important; transform: translateX(-30px) !important; }

/* Reveal scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

.desktop-fade { transition: 1.2s ease; }

/* Desktop grid */
@media (min-width: 768px) {
    .floating-mobile { display: none; }
    .grid-desktop { display: grid !important; }
}

/* BACKGROUND SLIDER — EXTREMELY SMOOTH */
.bg-slide {
    position:absolute;
    top:0; left:0;
    width:100%; height:100%;
    object-fit:cover;
    opacity:0;
    transition: opacity 2.2s ease-in-out;
    filter: brightness(0.85);
}
.bg-slide.active {
    opacity:1;
}

/* Shimmer btn */
.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
    content: "";
    position: absolute;
    top: 0; left: -150%;
    width: 150%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Floating product */
.product-float { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Parallax */
.parallax-bg {
    transform: translateY(0px);
    transition: transform 0.3s ease-out;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: #f8f7f6;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-circle {
    width: 55px; height: 55px;
    border-radius: 50%;
    border: 4px solid #d4a373;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

body.loaded #loader {
    opacity: 0;
    pointer-events: none;
    transition: 0.7s ease;
}

/* Glass box */
.glass {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Glossy button */
.glossy {
    position: relative;
    background: linear-gradient(to bottom, #e6b88a, #d4a373);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(212,163,115,0.45);
}
.glossy::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 55%;
    background: rgba(255,255,255,0.45);
    border-radius: 999px 999px 50% 50%;
    filter: blur(8px);
    opacity: 0.7;
}

/* Sparkle */
.sparkle { position: relative; }
.sparkle::after {
    content: "✨";
    position: absolute;
    font-size: 20px;
    animation: sparkleFloat 2.5s infinite ease-in-out;
    opacity: 0.85;
}
.sparkle::before {
    content: "✨";
    position: absolute;
    font-size: 14px;
    animation: sparkleFloat2 3s infinite ease-in-out;
    opacity: 0.75;
}
@keyframes sparkleFloat {
    0% { transform: translate(-10px, -10px) rotate(0deg); }
    50% { transform: translate(10px, -25px) rotate(20deg); }
    100% { transform: translate(-10px, -10px) rotate(0deg); }
}
@keyframes sparkleFloat2 {
    0% { transform: translate(15px, 10px) rotate(0deg); }
    50% { transform: translate(-15px, -20px) rotate(-25deg); }
    100% { transform: translate(15px, 10px) rotate(0deg); }
}

/* Apple entrance */
.apple-enter {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.apple-enter.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.winner-section {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

.winner-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 25px;
}

.winner-box {
    width: 100%;
    max-width: 420px;
    margin: auto;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 0;
    position: relative;
}

.winner-track {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: scrollWinners linear infinite;
}

.winner-item {
    font-size: 18px;
    padding: 10px 0;
    font-weight: 600;
    color: #fff;
}

@keyframes scrollWinners {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}