/* General Styles */
:root {
    --primary-color: #4e7a9e;       /* Medium blue - different from original */
    --secondary-color: #6abaa7;     /* Aqua green - different from original */
    --accent-color: #f39c56;        /* Soft orange - different from original */
    --background-color: #f5f7fa;    /* Light blue background */
    --text-color: #334155;          /* Dark blue-gray for text */
    --light-color: #ffffff;         /* White */
    --dark-color: #1e293b;          /* Very dark gray */
    --border-radius: 8px;           /* More rounded borders than original */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --nav-height: 80px;             /* Navigation height */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 4px 6px rgba(78, 122, 158, 0.2);
    width: 100%;
    margin: auto;
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(78, 122, 158, 0.3);
}
#calculate-btn{
    width: 50%;

}

.btn-cta {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 14px 28px;
    width: 100%;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(243, 156, 86, 0.2);
}

.btn-cta:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(243, 156, 86, 0.3);
}

section {
    padding: 80px 0;
}

/* Header and Navigation */
header {
    background-color: var(--light-color);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.logo p {
    font-size: 1rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 0;
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-nav ul li a.nav-cta {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.main-nav ul li a.nav-cta:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(243, 156, 86, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-color) 0%, #e4eff7 100%);
    padding: 100px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var (--primary-color);
    margin-bottom: 15px;
}

.hero-content h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.hero-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transform: rotate(2deg);
}

/* Benefits Section */
.benefits {
    background-color: var(--light-color);
}

.benefits h2 {
    text-align: center;
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

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

.benefit-card {
    background-color: var(--light-color);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.benefit-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(106, 186, 167, 0.05);
    transition: height 0.3s ease;
    z-index: 1;
}

.benefit-card:hover:after {
    height: 100%;
}

.benefit-card i, .benefit-card h3, .benefit-card p {
    position: relative;
    z-index: 2;
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.benefit-card p {
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, var(--background-color) 0%, #dbe9f6 100%);
    padding: 100px 0;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.testimonial-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--secondary-color);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var (--secondary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Offer Section */
.offer {
    background-color: var(--light-color);
    position: relative;
}

.offer h2 {
    text-align: center;
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.offer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, var(--background-color) 0%, #e2e8f0 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.offer-details {
    flex: 3;
    min-width: 300px;
}

.offer-details h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.offer-details ul {
    list-style: none;
    margin-bottom: 30px;
}

.offer-details ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.offer-details ul li i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.price {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.6);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-color);
    font-size: 1.1rem;
}

.new-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 5px 0;
}

.payment {
    font-size: 0.9rem;
    color: var(--text-color);
}

.guarantee {
    display: flex;
    align-items: center;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 15px;
    border-radius: var(--border-radius);
}

.guarantee i {
    color: var(--accent-color);
    font-size: 2rem;
    margin-right: 15px;
}

.guarantee p {
    font-weight: 600;
    margin-bottom: 0;
}

.offer-image {
    flex: 2;
    min-width: 250px;
    transform: rotate(-2deg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Improved Calculator Results Styles */
.calculator-result {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.calculator-result h3 {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    margin: 0;
    text-align: center;
}

.calculator-result table {
    width: 100%;
    border-collapse: collapse;
}

.calculator-result table tr {
    border-bottom: 1px solid #eee;
}

.calculator-result table tr:last-child {
    border-bottom: none;
}

.calculator-result table th,
.calculator-result table td {
    padding: 12px 15px;
    text-align: left;
}

calcuator-result table th {
    font-weight: 600;
    width: 65%;
}

.calculator-result table td {
    font-weight: 500;
    color: var(--accent-color);
    text-align: right;
}

.bmi-category {
    display: inline-block;
    min-width: 140px;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 5px;
}

/* FAQ Section */
.faq {
    background-color: var(--background-color);
}

.faq h2 {
    text-align: center;
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.faq-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-toggle {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    font-size: 16px;
    color: var(--secondary-color);
    background-color: rgba(106, 186, 167, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.faq-item h3:hover .faq-toggle {
    background-color: var(--secondary-color);
    color: white;
    transform: rotate(90deg);
}

.faq-item p {
    color: var(--text-color);
    padding-top: 10px;
    transition: all 0.3s ease;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--light-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #cbd5e1;
}

.footer-links h3, .footer-social h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--light-color);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid #475569;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .offer-content {
        flex-direction: column;
        padding: 10px;
    }
    
    .offer-details, .offer-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content > div {
        width: 100%;
        margin-bottom: 30px;
    }

    .header-content {
        position: relative;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 101;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--light-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
        padding-top: var(--nav-height);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .main-nav ul li:last-child a {
        border-bottom: none;
    }

    .main-nav ul li a.nav-cta {
        margin-top: 15px;
        text-align: center;
    }

    .calculator-container {
        flex-direction: column;
    }
    
    .calculator-result {
        margin-top: 30px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content, .benefit-card, .testimonial, .offer-details, .faq-item {
    animation: fadeIn 0.8s ease-out forwards;
}

.benefit-card:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-card:nth-child(3) {
    animation-delay: 0.4s;
}

.benefit-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* Nutrition Calculator */
.calculator {
    padding: 80px 0;
    background-color: var(--background-color);
    text-align: center;
}

.calculator h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 40px;
}

.calculator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    align-content: center;
    width: 100%;
    background-color: white;
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: left;
}

/* Calculator button container */
.calculator-button-container {
    margin: 20px 0;
}

/* Calculator calculate button styles */
.calculator-button-container .btn {
    padding: 14px 40px;
    font-size: 1.1rem;
}

/* Unified calculator result styles */
.calculator-result {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.calculator-result h3 {
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    margin: 0;
    text-align: center;
}

.calculator-result table {
    width: 100%;
    border-collapse: collapse;
}

.calculator-result table tr {
    border-bottom: 1px solid #eee;
}

.calculator-result table tr:last-child {
    border-bottom: none;
}

.calculator-result table th,
.calculator-result table td {
    padding: 12px 15px;
    text-align: left;
}

.calculator-result table th {
    font-weight: 600;
    width: 65%;
}

.calculator-result table td {
    font-weight: 500;
    color: var(--accent-color);
    text-align: right;
}


.bmi-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    color: var(--text-color);
}

/* Testimonial Section Styles */
.testimonials-section {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Testimonial image container */
.testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--primary-color);
}

/* Direct img inside testimonial without container */
.testimonial > img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
}

/* Images inside testimonial-image container */
.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin: 10px 0;
}

/* Responsive testimonial images */
@media (max-width: 768px) {
    .testimonial {
        padding: 20px 15px;
    }
    
    .testimonial-image {
        width: 80px;
        height: 80px;
    }
    
    .testimonial > img {
        width: 80px;
        height: 80px;
    }
}

/* General responsive adjustments */
@media (max-width: 480px) {
    .testimonials-container {
        gap: 20px;
    }
    
    .testimonial {
        max-width: 100%;
        margin: 0 10px;
    }
}