:root {
    --bg-primary: #FF416C;
    --text-white: #ffffff;
    --transition-main: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    background: #000;
}

.app-container {
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-primary);
    transition: background-color 1s ease;
    position: relative;
    color: var(--text-white);
}

/* Glassy background shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.4;
    transition: var(--transition-main);
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.3);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(0, 0, 0, 0.2);
    bottom: -50px;
    left: -50px;
}

header {
    position: relative;
    z-index: 100;
    padding: 40px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    opacity: 0.6;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 400;
    opacity: 0.7;
    transition: 0.3s;
    font-size: 16px;
}

nav a.active,
nav a:hover {
    opacity: 1;
}

.cart-icon {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Slider Section */
.slider-wrapper {
    height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 80px;
}

.giant-text-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.giant-text {
    font-size: 25vw;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    white-space: nowrap;
    transition: var(--transition-main);
}

.content {
    display: flex;
    width: 100%;
    max-width: 1400px;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.product-info {
    width: 40%;
}

.tag-wrapper {
    overflow: hidden;
    margin-bottom: 20px;
}

.product-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.product-name {
    font-size: 80px;
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.product-name span {
    font-weight: 300;
    display: block;
}

.product-desc {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 450px;
}

.cta-section {
    display: flex;
    align-items: center;
    gap: 40px;
}

.price {
    font-size: 36px;
    font-weight: 900;
}

.buy-btn {
    background: var(--text-white);
    color: #000;
    border: none;
    padding: 18px 45px;
    font-size: 16px;
    font-weight: 900;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: 0.3s;
}

.buy-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Visualization */
.product-visual {
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.bowl-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-bowl {
    width: 100%;
    max-width: 650px;
    z-index: 5;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.3));
    animation: floatBowl 6s ease-in-out infinite alternate;
    transition: var(--transition-main);
}

.floating-items {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 6;
}

.f-item-wrapper {
    position: absolute;
    transition: all 1.2s cubic-bezier(0.7, 0, 0.3, 1);
    z-index: 6;
}

.f-item {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.item-tl {
    top: -5%;
    left: 5%;
    width: 150px;
}

.item-tl .f-item {
    animation: orbit 8s infinite linear;
    width: 100%;
}

.item-br {
    bottom: -5%;
    right: 5%;
    width: 180px;
}

.item-br .f-item {
    animation: orbit 12s infinite linear reverse;
    width: 100%;
}

.item-tr {
    top: 10%;
    right: 0%;
    width: 140px;
}

.item-tr .f-item {
    animation: orbit 10s infinite linear;
    width: 100%;
}

@keyframes floatBowl {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-20px);
    }
}

@keyframes orbit {
    from {
        transform: rotate(0deg) translateX(10px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(10px) rotate(-360deg);
    }
}

/* Controls */
.slider-controls {
    position: absolute;
    bottom: 40px;
    right: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 30px;
    z-index: 1000;
    /* Ensure it's above everything */
}

.nav-arrows {
    display: flex;
    gap: 15px;
}

.nav-arrow {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.nav-arrow:hover {
    background: var(--text-white);
    color: #000;
}

.pagination {
    display: flex;
    gap: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.8);
}

/* Socials Side */
.social-side {
    position: absolute;
    left: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.social-side a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transform: rotate(-90deg);
    opacity: 0.6;
    transition: 0.3s;
}

.social-side a:hover {
    opacity: 1;
}

/* ANIMATIONS FOR TRANSITIONS */
.slide-exit .main-bowl {
    opacity: 0;
    transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.6s;
}

.slide-exit.next .main-bowl {
    transform: translateX(-100vw) rotate(-270deg) scale(0.8);
}

.slide-exit.prev .main-bowl {
    transform: translateX(100vw) rotate(270deg) scale(0.8);
}

.slide-exit .f-item-wrapper {
    opacity: 0;
    transform: translateY(-100vh) rotate(180deg) scale(0) !important;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.8s;
}

/* We don't need next/prev for f-item anymore as it always goes up */
.slide-exit.next .f-item-wrapper,
.slide-exit.prev .f-item-wrapper {
    transform: translateY(-100vh) rotate(180deg) scale(0) !important;
}

.slide-exit .product-name,
.slide-exit .product-desc,
.slide-exit .cta-section {
    opacity: 0;
    transition: 0.8s ease-in;
}

.slide-exit.next .product-info>* {
    transform: translateX(-100px);
}

.slide-exit.prev .product-info>* {
    transform: translateX(100px);
}

/* ENTER ANIMATIONS */
.slide-enter .f-item-wrapper {
    animation: fruitFallIn 2s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

#f-wrapper-1 {
    animation-delay: 0.1s;
}

#f-wrapper-2 {
    animation-delay: 0.3s;
}

#f-wrapper-3 {
    animation-delay: 0.5s;
}

@keyframes fruitFallIn {
    from {
        transform: translateY(-100vh) rotate(-180deg) scale(0);
        opacity: 0;
    }

    to {
        transform: translateY(0) rotate(0) scale(1);
        opacity: 1;
    }
}

.slide-enter.next .main-bowl {
    animation: bowlRollInNext 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

.slide-enter.prev .main-bowl {
    animation: bowlRollInPrev 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

@keyframes bowlRollInNext {
    from {
        transform: translateX(100vw) rotate(270deg) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(0) rotate(0) scale(1);
        opacity: 1;
    }
}

@keyframes bowlRollInPrev {
    from {
        transform: translateX(-100vw) rotate(-270deg) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateX(0) rotate(0) scale(1);
        opacity: 1;
    }
}

.slide-exit .product-info>* {
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.6s;
}

.slide-exit.next .product-info>* {
    transform: translateX(-150px);
}

.slide-exit.prev .product-info>* {
    transform: translateX(150px);
}

/* ENTER ANIMATIONS */
.slide-enter.next .product-info>* {
    animation: textSlideInNext 1.5s cubic-bezier(0.175, 0.885, 0.32, 1) forwards;
}

.slide-enter.prev .product-info>* {
    animation: textSlideInPrev 1.5s cubic-bezier(0.175, 0.885, 0.32, 1) forwards;
}

@keyframes textSlideInNext {
    from {
        opacity: 0;
        transform: translateX(150px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textSlideInPrev {
    from {
        opacity: 0;
        transform: translateX(-150px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-exit .giant-text {
    opacity: 0;
    transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.6s;
}

.slide-exit.next .giant-text {
    transform: translateX(-100%);
}

.slide-exit.prev .giant-text {
    transform: translateX(100%);
}

.slide-enter.next .giant-text {
    animation: giantSlideInNext 1.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.slide-enter.prev .giant-text {
    animation: giantSlideInPrev 1.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes giantSlideInNext {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes giantSlideInPrev {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 25px 40px;
    }

    .content {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }

    .product-info {
        width: 100%;
        order: 2;
        text-align: center;
        padding-bottom: 80px;
        /* Space for controls */
    }

    .product-visual {
        width: 100%;
        order: 1;
        height: 35vh;
    }

    .product-name {
        font-size: 50px;
        margin-bottom: 10px;
    }

    .product-desc {
        margin: 0 auto 20px;
        font-size: 15px;
        max-width: 90%;
    }

    .cta-section {
        justify-content: center;
        gap: 20px;
    }

    .giant-text {
        font-size: 35vw;
    }

    .slider-controls {
        left: 50%;
        transform: translateX(-50%);
        bottom: 15px;
        flex-direction: row;
        align-items: center;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 22px;
    }

    nav {
        display: none;
        /* Hide nav links on small mobile for cleaner look */
    }

    .product-name {
        font-size: 45px;
    }

    .main-bowl {
        max-width: 280px;
    }

    .f-item-wrapper {
        width: 70px !important;
    }

    .item-tl {
        top: -10%;
        left: 15%;
        width: 70px !important;
    }

    .item-br {
        bottom: -10%;
        right: 15%;
        width: 90px !important;
    }

    .item-tr {
        top: 10%;
        right: 5%;
        width: 60px !important;
    }

    .giant-text {
        font-size: 45vw;
    }

    .price {
        font-size: 28px;
    }

    .buy-btn {
        padding: 15px 35px;
        font-size: 14px;
    }

    .nav-arrow {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
    }

    .slider-wrapper {
        padding: 0 20px;
    }

    .social-side {
        display: none;
        /* Hide social rotate on mobile */
    }
}

@media (max-height: 700px) {
    .product-visual {
        height: 35vh;
    }

    .product-name {
        font-size: 38px;
    }
}