:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-color: #ffffff;
    --card-bg: #1a1a1a;
    --nav-bg: rgba(13, 13, 13, 0.8);
    --transition-speed: 0.6s;
    --font-main: 'Outfit', sans-serif;
}

body.light-mode {
    --bg-color: #f8f8f8;
    --text-color: #1a1a1a;
    --accent-color: #000000;
    --card-bg: #ffffff;
    --nav-bg: rgba(248, 248, 248, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, .logo {
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.05em;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #0d0d0d;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    width: 300px;
}

.progress-container {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #fff;
    transition: width 0.1s linear;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-right a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.nav-right a:hover {
    opacity: 1;
}

.mode-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

/* Hero Section */
#hero {
    position: relative;
    height: 400vh; /* Scroll length for sequence */
    width: 100%;
}

.canvas-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    padding: 0 10%;
    z-index: 10;
}

.hero-overlay > * {
    pointer-events: auto;
}

.content-left {
    max-width: 500px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.brand-logo-small {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

#drink-name {
    font-size: 6rem;
    line-height: 0.9;
    margin-bottom: 0.5rem;
}

#drink-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.8;
}

#drink-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.7;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: transform 0.3s, background 0.3s;
}

.btn:active {
    transform: scale(0.95);
}

.btn-outline {
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn-solid {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Variant Navigation */
.nav-variants {
    position: absolute;
    right: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.variant-index {
    font-size: 3rem;
    font-weight: 900;
    opacity: 0.2;
}

.variant-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.ctrl-btn:hover {
    opacity: 1;
}

.ctrl-btn .label {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.vertical-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.mini-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.hidden { display: none; }

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

/* Content Sections */
.content-section {
    padding: 10rem 0;
    position: relative;
    z-index: 20;
    background: var(--bg-color);
}

.content-section.alternate {
    background: var(--card-bg);
}

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

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h3 {
    font-size: 1rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-info p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.benefits {
    list-style: none;
}

.benefits li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    font-size: 1.1rem;
}

.product-image-container img {
    width: 100%;
    border-radius: 20px;
}

/* Cards */
.ingredient-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    padding: 3rem;
    background: var(--bg-color);
    border-radius: 20px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.card h4 {
    margin-bottom: 1rem;
}

.card p {
    opacity: 0.7;
    line-height: 1.6;
}

/* Nutrition Fact Card */
.nutrition-wrapper {
    display: flex;
    justify-content: center;
}

.nutrition-card {
    background: #fff;
    color: #000;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid #000;
}

.divider-thick {
    height: 10px;
    background: #000;
    margin: 5px 0;
}

.divider-thin {
    height: 1px;
    background: #000;
    margin: 5px 0;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.strong-line {
    border-bottom: 1px solid #000;
    font-weight: 900;
}

.calories {
    font-size: 2rem;
    font-weight: 900;
}

.indent-row {
    padding-left: 1rem;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Social Footer */
.social-footer {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.social-icon {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.social-icon:hover {
    opacity: 1;
}

/* Footer Section */
footer {
    background: #000 !important;
    color: #fff !important;
    padding: 5rem 0 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    opacity: 0.4;
    font-size: 0.8rem;
}

/* Respomsive */
@media (max-width: 968px) {
    #drink-name { font-size: 4rem; }
    .product-grid { grid-template-columns: 1fr; }
    .ingredient-cards { grid-template-columns: 1fr; }
    .hero-overlay { padding: 0 5%; }
}
