/*
Theme Name: Premium Juice Flat
Author: Custom Build
Description: Flat theme to fix file permissions.
Version: 1.0.4
Text Domain: premium-juice-flat
*/

:root {
    /* Color Palette */
    --strawberry-red: #ff2a55;
    --soft-pink: #ffe5ea;
    --deep-berry-red: #b80f2e;
    --cream-white: #fdfbf7;
    --subtle-green: #4caf50;
    --text-dark: #2d1b1e;
    --text-light: #fdfbf7;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.text-highlight {
    color: var(--strawberry-red);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.py-section {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.relative-z {
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--strawberry-red);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(255, 42, 85, 0.3);
}

.btn-primary:hover {
    background-color: var(--deep-berry-red);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(184, 15, 46, 0.4);
}

.btn-secondary {
    background-color: var(--cream-white);
    color: var(--strawberry-red);
    border-color: var(--strawberry-red);
}

.btn-secondary:hover {
    background-color: var(--strawberry-red);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: var(--strawberry-red);
    border-color: var(--strawberry-red);
}

.btn-outline:hover {
    background-color: var(--strawberry-red);
    color: var(--text-light);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--strawberry-red);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--strawberry-red);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--strawberry-red);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, var(--soft-pink) 0%, var(--cream-white) 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bottle {
    height: 80%;
    object-fit: contain;
    z-index: 3;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}

.hero-splash {
    position: absolute;
    width: 130%;
    height: 130%;
    object-fit: contain;
    z-index: 2;
    opacity: 0.8;
}

.hero-fruit {
    position: absolute;
    width: 80px;
    z-index: 4;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.fruit-1 { top: 10%; right: 10%; width: 60px; transform: rotate(15deg); }
.fruit-2 { bottom: 20%; left: 10%; width: 90px; transform: rotate(-20deg); }
.fruit-3 { bottom: 10%; right: 20%; width: 70px; transform: rotate(45deg); }

/* Animation Keyframes */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-delayed {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

.float-anim-delayed {
    animation: float-delayed 5s ease-in-out infinite;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in-up.visible, .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-anim {
    transition-delay: var(--delay, 0s);
}

/* Flavors Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.flavor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.flavor-card {
    background: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.flavor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.flavor-img-placeholder {
    height: 200px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.flavor-img-placeholder::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.2;
}

.flavor-img-placeholder.classic::before { background-color: var(--strawberry-red); }
.flavor-img-placeholder.mint::before { background-color: var(--subtle-green); }
.flavor-img-placeholder.cream::before { background-color: var(--soft-pink); opacity: 0.5;}

.flavor-img-placeholder img {
    height: 100%;
    z-index: 1;
    position: relative;
    transition: transform 0.5s ease;
}

.flavor-card:hover .flavor-img-placeholder img {
    transform: scale(1.1);
}

.flavor-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.flavor-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Benefits Section */
.benefits {
    background-color: var(--soft-pink);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: #fff;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: #555;
    font-size: 0.9rem;
}

/* Ingredients Section */
.ingredients-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.ingredients-text {
    flex: 1;
}

.ingredients-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.ingredients-text p {
    font-size: 1.1rem;
    color: #555;
}

.ingredients-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ing-splash {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    opacity: 0.6;
}

.ing-fruit {
    width: 200px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2));
}

/* Interactive Product Section */
.interactive-product {
    background-color: var(--cream-white); /* Initial color, JS will change it */
    transition: background-color 0.5s ease;
    overflow: hidden;
}

.interactive-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60vh;
}

.interactive-text {
    flex: 1;
}

.interactive-text.left {
    text-align: right;
    padding-right: 2rem;
}

.interactive-text.right {
    text-align: left;
    padding-left: 2rem;
}

.interactive-text h3 {
    font-size: 2rem;
    color: var(--deep-berry-red);
}

.interactive-bottle-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.interactive-bottle {
    height: 500px;
    object-fit: contain;
    transition: transform 0.1s ease-out;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stars {
    color: #ffb400;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #444;
}

.reviewer {
    font-weight: 600;
    color: var(--text-dark);
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, var(--strawberry-red), var(--deep-berry-red));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.final-cta .btn-primary {
    background-color: white;
    color: var(--strawberry-red);
}

.final-cta .btn-primary:hover {
    background-color: var(--soft-pink);
    color: var(--deep-berry-red);
}

/* Bubbles */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rise infinite ease-in;
}

@keyframes rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) scale(1.5);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
}

.footer-brand p {
    color: #999;
    margin-top: 1rem;
}

.footer-links, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--strawberry-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { margin-bottom: 3rem; }
    .hero-buttons { justify-content: center; }
    
    .ingredients-content { flex-direction: column; text-align: center; }
    .interactive-container { flex-direction: column; text-align: center; gap: 3rem; }
    .interactive-text.left, .interactive-text.right { text-align: center; padding: 0; }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn { display: none; }
    .menu-toggle { display: flex; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-visual { height: 400px; }
    
    .section-header h2 { font-size: 2.2rem; }
    .cta-title { font-size: 2.5rem; }
}
