:root {
    --primary-green: #2ecc71;
    --dark-green: #27ae60;
    --deep-green: #145a32;
    --juicy-red: #e74c3c;
    --bright-red: #ff4d4d;
    --pale-white: #f8f9fa;
    --pure-white: #ffffff;
    --seed-black: #1a1a1a;
    --bg-dark: #0a0a0a;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--pure-white);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 700;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-in-out;
}

.loader-content {
    text-align: center;
}

.melon-loader {
    width: 60px;
    height: 60px;
    border: 5px solid var(--primary-green);
    border-top: 5px solid var(--juicy-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgba(10, 10, 10, 0.7);
    z-index: 100;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-green);
}

.logo span {
    color: var(--juicy-red);
}

.nav-links a {
    color: var(--pale-white);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

.cta-btn {
    padding: 10px 25px;
    background-color: var(--juicy-red);
    border-radius: 30px;
    font-weight: 700 !important;
}

/* Hero & Canvas */
#hero {
    position: relative;
    width: 100%;
    height: 400vh; /* Long scroll area for animation */
    pointer-events: none;
}

#animation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: fixed;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 600px;
    pointer-events: auto;
}

#hero-title {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 20px;
    color: var(--pale-white);
}

#hero-title span {
    color: var(--primary-green);
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

#hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Bento Grid */
.content-section {
    position: relative;
    padding: 100px 80px;
    background-color: transparent;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.bento-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.5s var(--transition-slow);
}

.bento-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.bento-item.main {
    grid-column: span 2;
    grid-row: span 2;
    background-image: linear-gradient(135deg, var(--deep-green), var(--dark-green));
}

.bento-item.accent-red {
    background-color: var(--juicy-red);
    text-align: center;
    justify-content: center;
}

.bento-item.accent-green {
    background-color: var(--dark-green);
    text-align: center;
    justify-content: center;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item h2, .bento-item h3 {
    margin-bottom: 10px;
}

/* Products */
.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
}

.section-title span {
    color: var(--juicy-red);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 40px;
    border: 0.5px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(46, 204, 113, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: var(--primary-green);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-green);
    color: var(--pure-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.price {
    display: block;
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--juicy-red);
}

/* CTA */
.cta-box {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1589984662646-e7b2e4962f18?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px;
    border-radius: 40px;
    text-align: center;
}

.primary-btn {
    padding: 15px 40px;
    background-color: var(--primary-green);
    color: var(--pure-white);
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.primary-btn:hover {
    transform: scale(1.05);
    background-color: var(--dark-green);
}

/* Footer */
footer {
    padding: 50px 80px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
    font-size: 0.9rem;
}

.social-links a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 968px) {
    #navbar { padding: 20px 40px; }
    .hero-content { left: 5%; }
    #hero-title { font-size: 3.5rem; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .bento-item.main { grid-column: span 2; height: 400px; }
}

@media (max-width: 600px) {
    #hero-title { font-size: 2.5rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item.main { grid-column: span 1; }
}
