/* Base Styles */
:root {
    --primary-color: #4e54c8;
    --primary-light: #8f94fb;
    --secondary-color: #38b2ac;
    --accent-color: #f6ad55;
    --dark-color: #2d3748;
    --light-color: #f7fafc;
    --text-color: #4a5568;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #e53e3e;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--dark-color);
}

section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.primary-button,
.secondary-button,
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--box-shadow);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.cta-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-light));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.learn-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.learn-more:hover {
    color: var(--primary-light);
}

.learn-more::after {
    content: "→";
    margin-left: 5px;
    transition: var(--transition);
}

.learn-more:hover::after {
    transform: translateX(3px);
}

.center-button {
    text-align: center;
    margin-top: 2rem;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.cta-button):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.cta-button):hover:after,
.nav-links a.active:after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, #f6f9fc, #edf2f7);
}

.hero-content {
    flex: 1;
    padding: 2rem;
    max-width: 600px;
    margin-left: 5%;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Hero Animation Styles */
.hero-animation {
    position: relative;
    width: 600px;
    /* Increased size */
    height: 600px;
    flex-shrink: 0;
    margin: 0 auto;
    /* Center the animation */
}

.animation-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Plate styling */
.plate {
    position: absolute;
    width: 220px;
    height: 220px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* Food items */
.food-item {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
}

.protein {
    width: 70px;
    height: 70px;
    background: #ff7675;
    top: 38%;
    left: 39%;
}

.vegetable1 {
    width: 60px;
    height: 60px;
    background: #55efc4;
    top: 48%;
    left: 57%;
}

.vegetable2 {
    width: 50px;
    height: 50px;
    background: #00b894;
    top: 58%;
    left: 46%;
}

.grain {
    width: 80px;
    height: 40px;
    background: #fdcb6e;
    border-radius: 20px;
    top: 55%;
    left: 35%;
}

.fruit {
    width: 55px;
    height: 55px;
    background: #e84393;
    top: 36%;
    left: 55%;
}

/* Health metrics */
.health-metric {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    width: 80px;
    text-align: center;
}

.heart-rate {
    top: 15%;
    left: 20%;
}

.calories {
    top: 15%;
    right: 20%;
}

.health-score {
    top: 50%;
    left: 7%;
    transform: translateY(-50%);
}

.hydration {
    top: 50%;
    right: 7%;
    transform: translateY(-50%);
}

.steps {
    bottom: 15%;
    left: 20%;
}

.sleep {
    bottom: 15%;
    right: 20%;
}

.health-metric i {
    font-size: 28px;
    margin-bottom: 8px;
}

.heart-rate i {
    color: #ff7675;
}

.calories i {
    color: #fdcb6e;
}

.health-score i {
    color: #74b9ff;
}

.hydration i {
    color: #0984e3;
}

.steps i {
    color: #a29bfe;
}

.sleep i {
    color: #6c5ce7;
}

.metric-value {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 2px;
}

.metric-label {
    font-size: 13px;
    color: #636e72;
    font-weight: 500;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Preview Section */
.features-preview {
    text-align: center;
    background-color: white;
}

.features-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.features-preview h2:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Testimonials Section */
.testimonials {
    background-color: #f8fafc;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.testimonials h2:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.testimonial-slider {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 2rem;
    padding: 1rem 0;
    width: calc(100% + 2rem)；
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 0;
    width: 100%;
    max-width: 500px;
    scroll-snap-align: start;
}

.testimonial-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    color: rgba(78, 84, 200, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author h4 {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta .primary-button {
    background: white;
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.cta .primary-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-logo h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-logo p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-column h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-light);
    bottom: -8px;
    left: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

/* Features Page Specific Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    text-align: center;
    padding: 8rem 2rem 5rem;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0.9;
}

.feature-section {
    padding: 5rem 2rem;
}

.feature-section:nth-child(even) {
    background-color: #f8fafc;
}

.feature-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.feature-section h2:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    left: 0;
    bottom: -10px;
    border-radius: 2px;
}

.feature-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.feature-content {
    flex: 1;
    min-width: 300px;
}

.feature-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-content p {
    margin-bottom: 1.5rem;
}

.feature-content ul {
    margin-bottom: 1.5rem;
}

.feature-content ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-content ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.feature-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Workflow Page Specific Styles */
.workflow-steps {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    margin-top: 3rem;
}

.workflow-steps:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.workflow-step {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.workflow-step:last-child {
    margin-bottom: 0;
}

.workflow-step-content {
    width: 45%;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.workflow-step:nth-child(odd) .workflow-step-content {
    margin-left: auto;
}

.workflow-step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.workflow-step-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1;
}

/* About Page Specific Styles */
.team-section {
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-member-image {
    height: 250px;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .team-member-image img {
    transform: scale(1.1);
}

.team-member-info {
    padding: 1.5rem;
}

.team-member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.team-member-info p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.team-member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-member-social a {
    color: var(--primary-color);
    transition: var(--transition);
}

.team-member-social a:hover {
    color: var(--primary-light);
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        padding: 2rem 1rem;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .feature-container {
        flex-direction: column;
    }

    .feature-section:nth-child(even) .feature-container {
        flex-direction: column-reverse;
    }

    .workflow-steps:before {
        left: 30px;
    }

    .workflow-step {
        flex-direction: column;
        align-items: flex-start;
    }

    .workflow-step-content {
        width: 100%;
        margin-left: 60px !important;
    }

    .workflow-step-number {
        left: 30px;
        transform: translateY(-50%);
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: white;
        height: calc(100vh - 70px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding: 2rem 0;
        transform: translateX(100%);
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        margin: 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0);
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-animation {
        width: 100%;
        height: 300px;
        margin: 2rem auto;
    }

    .plate {
        width: 140px;
        height: 140px;
    }

    .protein {
        width: 45px;
        height: 45px;
    }

    .vegetable1 {
        width: 35px;
        height: 35px;
    }

    .vegetable2 {
        width: 32px;
        height: 32px;
    }

    .grain {
        width: 50px;
        height: 27px;
    }

    .fruit {
        width: 35px;
        height: 35px;
    }

    .health-metric {
        width: 60px;
        padding: 8px;
    }

    .heart-rate,
    .calories {
        top: 0;
    }

    .health-score,
    .hydration {
        top: 50%;
    }

    .steps,
    .sleep {
        bottom: 0;
    }

    .testimonial {
        flex: 0 0 100%;
    }
}

@media screen and (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-animation {
        height: 300px;
    }

    .health-metric {
        width: 60px;
        padding: 6px;
        font-size: 0.8rem;
    }

    .metric-value {
        font-size: 16px;
    }

    .metric-label {
        font-size: 10px;
    }

    .features-preview h2,
    .testimonials h2,
    .feature-section h2 {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .feature-section {
        padding: 2rem 1rem;
    }

    .feature-content h3 {
        font-size: 1.3rem;
    }

    .feature-content p,
    .feature-content li {
        font-size: 0.9rem;
    }

    .feature-image iframe {
        height: 400px;
    }
}