/* NutriPulse - Creative & Playful Design System */
/* Color Mood: Energetic | Spacing: Generous | Borders: Soft | Animation: Flowing */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --success-green: #6BCF7F;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), #FF8C5F);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: white !important;
}

.navbar-item {
    color: white !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-item:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FFE6E6 0%, #E6F9FF 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: left;
    animation: fadeInUp 1s ease-out;
}

.hero-device {
    flex: 0 0 300px;
    position: relative;
    animation: floatDevice 3s ease-in-out infinite;
}

.device-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.device-frame {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.device-frame img {
    width: 100%;
    border-radius: 15px;
    display: block;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #FF8C5F);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #6BE4DB);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(78, 205, 196, 0.4);
}

/* Screenshots Section */
.screenshots-section {
    padding: 60px 20px;
    background: white;
    max-height: 500px;
}

.screenshot-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 380px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.carousel-slide img {
    max-height: 340px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.05);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 80px;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    text-align: left;
}

.feature-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: left;
}

.feature-icon {
    flex: 0 0 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: linear-gradient(135deg, var(--success-green), #57E089);
    color: white;
    padding: 16px 48px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(107, 207, 127, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-accept-button:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 35px rgba(107, 207, 127, 0.5);
}

.privacy-accept-button:active {
    transform: translateX(-50%) translateY(-1px);
}

/* Content Sections */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content-section h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.content-section h2 {
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.content-section p, .content-section ul, .content-section li {
    text-align: left;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.content-section ul {
    padding-left: 20px;
}

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

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

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2C3E50, #34495E);
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-section p,
.footer-section a {
    color: #BDC3C7;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    text-align: left;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #BDC3C7;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@keyframes floatDevice {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 40px;
    }

    .hero-device {
        flex: 0 0 auto;
        max-width: 250px;
    }

    .device-mockup {
        max-width: 250px;
    }

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

    .hero-text p {
        text-align: center;
    }

    .download-buttons {
        justify-content: center;
    }

    .feature-row {
        flex-direction: column !important;
        gap: 30px;
    }

    .feature-content {
        text-align: center;
    }

    .feature-content p {
        text-align: center;
    }

    .screenshots-section {
        max-height: 400px;
    }

    .screenshot-carousel {
        height: 320px;
    }

    .carousel-slide img {
        max-height: 280px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section p,
    .footer-section a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .privacy-accept-button {
        padding: 14px 36px;
        font-size: 1rem;
    }
}
