/* VARIABLES & SETUP */
:root {
    --bg-dark: #ffffff;
    --bg-card: #f5f5f5;
    --text-main: #333333;
    --text-muted: #666666;
    
    /* Herbalife Green and Premium Gold */
    --accent-green: #7AAC2A;
    --accent-green-glow: rgba(122, 172, 42, 0.4);
    --accent-gold: #4CAE4F;
    --accent-gold-glow: rgba(76, 174, 79, 0.4);
    
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

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

/* GRADIENTS */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-green), #6eee80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-gold {
    background: linear-gradient(90deg, var(--accent-gold), #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-green);
}

.nav-urgent {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* BUTTONS */
.primary-btn, .secondary-btn, .urgent-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.primary-btn {
    background: var(--accent-green);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-green-glow);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-green-glow);
    background: #40c955;
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.urgent-btn {
    background: #25D366; /* WhatsApp Green */
    color: #fff;
}

.urgent-btn.outline {
    background: transparent;
    border: 2px solid #25D366;
    color: #25D366;
}

.urgent-btn.outline:hover {
    background: #25D366;
    color: #fff;
}

.pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 var(--accent-green-glow); }
    70% { box-shadow: 0 0 0 15px rgba(55,179,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(55,179,74,0); }
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #e9ecef; /* Generic background for demo */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    padding-top: 120px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* IMC CALCULATOR SECTION */
.imc-section {
    padding: 6rem 0;
    background: #fdfdfd;
}

.imc-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.imc-text {
    flex: 1;
}

.imc-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.imc-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.imc-calculator-card {
    flex: 1;
    background: var(--bg-dark);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.imc-form .form-group-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.imc-form .form-group {
    flex: 1;
}

.imc-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.imc-form label i {
    color: var(--accent-green);
    margin-right: 5px;
}

.imc-form input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.imc-form input:focus {
    border-color: var(--accent-green);
}

.imc-result {
    text-align: center;
}

.imc-result.hidden {
    display: none;
}

#imc-form-container.hidden {
    display: none;
}

#imc-score {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.imc-category-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* IMC Color Bar */
.imc-bar {
    display: flex;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.imc-segment {
    height: 100%;
}

.imc-underweight { width: 25%; background: #3498db; }
.imc-normal { width: 25%; background: #2ecc71; }
.imc-overweight { width: 25%; background: #f1c40f; }
.imc-obese { width: 25%; background: #e74c3c; }

.imc-marker {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 22px;
    background: #333;
    border-radius: 2px;
    transition: left 0.5s ease;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    z-index: 10;
}

.imc-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.imc-labels span {
    flex: 1;
    text-align: center;
}

.imc-action p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    margin-top: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
}

/* QUOTES SECTION */
.quotes-section {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.quote-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px var(--accent-gold-glow);
}

.quote-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.quote-card p {
    font-style: italic;
    color: var(--text-muted);
}

.center-cta {
    text-align: center;
}

/* BENEFITS SECTION */
.benefits-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.benefits-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.benefits-text {
    flex: 1;
}

.benefits-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.benefits-text p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.benefits-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefits-list i {
    color: var(--accent-green);
    font-size: 1.2rem;
    margin-top: 5px;
}

.benefits-image {
    flex: 1;
    position: relative;
}

.glass-card {
    position: relative;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* COACH PROFILE */
.coach-profile {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.profile-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 350px;
    height: 450px;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(135deg, var(--accent-green), #4CAE4F);
}

.profile-text {
    flex: 1.5;
}

.profile-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.profile-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.coach-quotes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mini-quote {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-gold);
}

.mini-quote i {
    color: var(--accent-gold);
    font-size: 1.5rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* BUSINESS OPPORTUNITY SECTION */
.business-section {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.business-cards {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.business-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.business-card.premium-card {
    border: 2px solid var(--accent-gold);
    position: relative;
}

.business-card.premium-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gold);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.business-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.business-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.business-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-gold {
    background: var(--accent-gold);
    color: white;
    border: none;
}

.btn-gold:hover {
    background: #45a049;
}

/* FINAL CTA */
.final-cta {
    padding: 8rem 0;
    text-align: center;
    background: #e9ecef;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}

.final-cta-box {
    position: relative;
    z-index: 2;
}

.final-cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.final-cta-box p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* FOOTER */
footer {
    background: var(--bg-card);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--accent-green);
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-main);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CHAT WIDGET */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-green);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s, transform 0.3s;
    transform-origin: bottom right;
}

.chat-window.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.chat-header {
    background: var(--accent-green);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-status {
    display: block;
    font-size: 0.75rem;
    color: #e0ffd4;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.bot-message {
    background: #ffffff;
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-message {
    background: var(--accent-green);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chat-input-area {
    padding: 10px;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
}

.chat-input-area button {
    background: var(--accent-green);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

/* ANIMATIONS API */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .navbar { padding: 1rem; flex-direction: column; gap: 1rem; top: 40px; }
    .hero { padding-top: 150px; }
    .benefits-container, .profile-container, .imc-container { flex-direction: column; }
    .cta-buttons { flex-direction: column; }
    .primary-btn, .urgent-btn, .secondary-btn { width: 100%; justify-content: center; }
}
