/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* MyFitnessPal Color Palette */
:root {
    --primary-green: #4CAF50;
    --secondary-green: #45a049;
    --accent-blue: #2196F3;
    --light-blue: #E3F2FD;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --text-dark: #212529;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    background: #2196F3;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.logo-icon {
    margin-right: 8px;
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-green);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

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

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-green);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-green);
}

/* Hero Stats Mobile */
.hero-stats-mobile {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-blue);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}


.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-screen {
    width: 280px;
    height: 500px;
    background: var(--white);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.app-title {
    font-weight: 600;
    color: var(--text-dark);
}

.app-menu {
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.calories-card {
    background: var(--accent-blue);
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.calories-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.calories-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.calorie-item .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.calorie-item .label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.action-buttons {
    display: grid;
    gap: 15px;
}

.app-btn {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scan-btn {
    background: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
}

.meal-btn {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.features-grid-noDisplay {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--medium-gray);
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 1.5rem;
}

.step-icon i {
    font-size: 2rem;
    color: var(--white);
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.step-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* App Screenshots Section */
.app-screenshots {
    padding: 80px 0;
    background: var(--light-gray);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.screenshot-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease;
}

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

.screenshot-header {
    background: var(--accent-blue);
    color: var(--white);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.screenshot-content {
    padding: 1.5rem;
}

/* Mock Profile */
.mock-profile {
    text-align: center;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.profile-icon {
    font-size: 2rem;
}

.profile-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.profile-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat .value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.25rem;
}

.stat .label {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* Mock Meal Plan */
.mock-meal-plan {
    text-align: center;
}

.meal-summary h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.meal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meal-stat .value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.meal-stat .label {
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.meal-items {
    text-align: left;
}

.meal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.meal-item:last-child {
    border-bottom: none;
}

.meal-name {
    color: var(--text-dark);
    font-weight: 500;
}

.meal-calories {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Mock Scan */
.mock-scan {
    text-align: center;
}

.scan-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.scan-instruction {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.scan-buttons {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.scan-btn-mock {
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-btn-mock {
    background: var(--light-gray);
    color: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.scan-tips {
    text-align: left;
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 8px;
}

.scan-tips h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.scan-tips ul {
    list-style: none;
    font-size: 0.8rem;
    color: var(--dark-gray);
}

.scan-tips li {
    margin-bottom: 0.25rem;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

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

.download-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.download-text p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.download-btn.app-store {
    background: var(--text-dark);
    color: var(--white);
}

.download-btn.google-play {
    background: var(--primary-green);
    color: var(--white);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.download-btn i {
    font-size: 2rem;
}

.download-text .download-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
}

.download-text .download-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
}

.download-features {
    display: grid;
    gap: 0.5rem;
}

.download-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-gray);
}

.download-features .feature i {
    color: var(--primary-green);
}

/* Download Steps */
.download-steps {
    margin-bottom: 2rem;
}

.download-steps h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.download-steps p {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.steps-list {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.steps-list li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

.steps-list strong {
    color: var(--primary-green);
    font-weight: 600;
}

/* QR Code Section */
.qr-code-section {
    margin: 2rem 0;
    text-align: center;
}

.qr-code-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.qr-code-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    border: 3px solid var(--primary-green);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-instruction {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
}

/* Floating Phone */
.floating-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 250px;
    height: 450px;
    background: var(--text-dark);
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen-demo {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.demo-header {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.demo-calories h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.demo-progress {
    margin-bottom: 20px;
}

.demo-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.demo-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-blue));
    border-radius: 4px;
}

.demo-progress span {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.demo-macros {
    display: grid;
    gap: 15px;
}

.macro-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.macro-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.macro-icon.protein {
    background: #ff6b6b;
}

.macro-icon.carbs {
    background: #4ecdc4;
}

.macro-icon.fat {
    background: #45b7d1;
}

.macro-item span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.about-highlights {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.highlight i {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.highlight h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.highlight p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.about-stat {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--primary-green);
}

.about-stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.about-stat p {
    color: var(--dark-gray);
    font-weight: 500;
}

/* Footer */
.footer {
    background: #333333;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.footer-section p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 2rem;
    text-align: center;
    color: #adb5bd;
}

/* Footer Features Grid */
.footer-section.features-grid {
    text-align: center;
    grid-column: 2;
}

.features-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    text-align: center;
}

.features-grid-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.feature-item {
    padding: 0.25rem;
    transition: all 0.3s ease;
    color: #adb5bd;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.feature-item:hover {
    color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats-mobile {
        justify-content: center;
    }
    
    .phone-screen {
        width: 250px;
        height: 450px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .download-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .features-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section.features-grid {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .phone-screen {
        width: 220px;
        height: 400px;
        padding: 15px;
    }
    
    .download-btn {
        min-width: 180px;
        padding: 0.8rem 1.2rem;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
    
    .qr-code-section h3 {
        font-size: 1.2rem;
    }
}
