/* --- CSS Reset & Variables --- */
:root {
    /* Color Palette */
    --primary-color: #22C55E; /* Fresh green */
    --primary-dark: #16A34A; /* Deep clear green for hover */
    --primary-light: #ecfdf5; /* Very subtle green for backgrounds */
    --accent-color: #F97316; /* Soft modern orange */
    --text-main: #111827; /* Dark slate for high contrast text */
    --text-muted: #4B5563; /* Neutral gray for supporting text */
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC; /* Slightly off-white */
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1240px;
    --nav-height: 90px;
    
    /* Animations */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 10px 25px -5px rgba(34, 197, 94, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-muted);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(22, 163, 74, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* --- Navbar Section --- */
.navbar {
    position: fixed;
    top: 0;
    padding-block: 16px;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: transparent;
    z-index: 1000;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal), height var(--transition-normal);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    height: 80px; /* Slimmer on scroll */
    backdrop-filter: blur(10px);
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001; /* Stay above mobile menu */
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-btn {
    margin-left: 0.5rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all var(--transition-normal);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -5%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(34,197,94,0.04) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249,115,22,0.03) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.hero-text h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

/* Decorative underline for "Smart Nutrition" */
.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--primary-light);
    z-index: -1;
    border-radius: 10px;
    transform: rotate(-1deg);
}

.subheadline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.supporting-text {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Image Section */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; /* For 3D floating effect if desired */
}

.image-bg-shape {
    position: absolute;
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-morph 8s ease-in-out infinite alternate;
    z-index: 0;
    box-shadow: inset 0 0 50px rgba(255,255,255,0.5);
}

.image-inner {
    position: relative;
    z-index: 1;
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform: rotate(2deg);
    transition: transform var(--transition-normal);
}

.image-inner:hover {
    transform: rotate(0deg) translateY(-5px);
}

.hero-image {
    width: 100%;
    max-width: 550px;
    height: 650px;
    object-fit: cover;
    display: block;
    animation: floating-image 6s ease-in-out infinite;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.875rem 1.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
    animation: floating-badge 5s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.8);
}

.badge-1 {
    top: 15%;
    left: -10%;
    animation-delay: 1s;
}

.badge-2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 2.5s;
}

.badge-icon {
    font-size: 2rem;
    background: var(--primary-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.badge-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Animations --- */
@keyframes blob-morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes floating-image {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes floating-badge {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* CSS Classes for JS IntersectionObserver */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 3.25rem;
    }
    
    .hero-image {
        height: 550px;
    }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-text {
        margin: 0 auto;
    }
    
    .hero-text h1 span::after {
        display: none; /* Hide underline on mobile for clean look */
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .badge-1 { left: 0; top: 5%; }
    .badge-2 { right: 0; bottom: 5%; }
}

@media (max-width: 768px) {
    /* Mobile Menu Toggle */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile Nav styling */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        height: 100vh;
        justify-content: center;
        transition: left var(--transition-normal);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .nav-item {
        margin: 1.25rem 0;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .nav-link::after {
        display: none;
    }

    .nav-btn {
        margin-top: 2rem;
        margin-left: 0;
        width: 80%;
        max-width: 300px;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }
    
    .subheadline {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image {
        height: 400px;
    }
    
    .floating-badge {
        display: none; /* Hide on small screens for cleaner layout */
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}
