/* FoodSaver - Custom Styles */
/* Design: Material Design with Natural Color Palette */

:root {
    --primary-green: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --accent-orange: #FF9800;
    --accent-yellow: #FFC107;
    --dark-bg: #1a1a1a;
    --dark-surface: #2d2d2d;
    --dark-card: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-dark: #333333;
    --success-green: #66BB6A;
    --gradient-start: #2E7D32;
    --gradient-end: #81C784;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation Styles */
nav {
    background: linear-gradient(135deg, var(--gradient-start), var(--primary-green));
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav .brand-logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 20px;
}

nav .brand-logo i {
    font-size: 1.8rem;
}

nav ul li a {
    font-weight: 500;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.1);
}

.sidenav {
    background: var(--dark-bg);
}

.sidenav li a {
    color: var(--text-primary);
}

.sidenav li a:hover {
    background-color: var(--dark-surface);
}

.sidenav .user-view {
    background: linear-gradient(135deg, var(--gradient-start), var(--primary-green));
    padding: 32px 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
    padding: 80px 0 60px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(76, 175, 80, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    color: var(--text-primary);
    text-align: left;
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-green);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    height: 48px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-transform: none;
}

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

.hero-buttons .btn-primary:hover {
    background: var(--primary-dark);
}

.hero-buttons .btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(76, 175, 80, 0.1);
}

/* Device Mockup */
.device-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.device-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: 36px;
    padding: 12px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px #333;
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

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

/* Screenshot Carousel Section */
.screenshots-section {
    background: var(--dark-bg);
    padding: 60px 0;
    max-height: 500px;
    overflow: hidden;
}

.screenshots-section h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    font-weight: 600;
}

.carousel-container {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    height: 350px;
}

.screenshot-carousel {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    display: flex;
    opacity: 1;
}

.carousel-device {
    position: relative;
    max-width: 200px;
}

.carousel-device-frame {
    background: #2d2d2d;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.carousel-device-frame img {
    width: 100%;
    border-radius: 20px;
    display: block;
    max-height: 300px;
    object-fit: cover;
    cursor: pointer;
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.carousel-device-frame img.loaded {
    filter: blur(0);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-green);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -60px;
}

.carousel-nav.next {
    right: -60px;
}

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

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-card);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #ffffff;
}

.features-section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

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

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 80px 0;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 50px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-secondary);
    text-align: left;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--gradient-start), var(--primary-green));
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn {
    background: white;
    color: var(--primary-green);
    font-weight: 600;
    padding: 0 40px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
}

.cta-section .btn:hover {
    background: #f5f5f5;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-secondary);
    padding: 60px 0 30px;
}

footer h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

footer ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--dark-surface);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--dark-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-green);
    color: white;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-surface));
    padding: 100px 0 60px;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Content Sections */
.content-section {
    padding: 60px 0;
    background: white;
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.content-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.content-card h2:first-child {
    margin-top: 0;
}

.content-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.content-card p {
    color: var(--text-dark);
    line-height: 1.8;
    text-align: left;
    margin-bottom: 15px;
}

.content-card ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.content-card ul li {
    margin-bottom: 8px;
    color: var(--text-dark);
    text-align: left;
}

.content-card a {
    color: var(--primary-green);
    text-decoration: none;
}

.content-card a:hover {
    text-decoration: underline;
}

.last-updated {
    background: var(--primary-light);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: var(--gradient-start);
    font-weight: 500;
}

/* Contact Form */
.contact-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-info {
    padding: 20px;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-info p {
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-detail i {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gradient-start);
    font-size: 1.2rem;
}

.contact-detail span {
    color: var(--text-dark);
    text-align: left;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.contact-form .input-field {
    margin-bottom: 20px;
}

.contact-form .input-field label {
    color: var(--text-secondary);
}

.contact-form .input-field input,
.contact-form .input-field textarea {
    border-bottom: 2px solid #e0e0e0;
}

.contact-form .input-field input:focus,
.contact-form .input-field textarea:focus {
    border-bottom: 2px solid var(--primary-green);
    box-shadow: none;
}

.contact-form .input-field input:focus + label,
.contact-form .input-field textarea:focus + label {
    color: var(--primary-green);
}

.file-upload {
    margin-bottom: 25px;
}

.file-upload label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-upload input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload input[type="file"]:hover {
    border-color: var(--primary-green);
}

.submit-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0 40px;
    height: 48px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.form-success {
    display: none;
    background: var(--primary-light);
    color: var(--gradient-start);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.form-success.show {
    display: block;
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-container {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
}

.privacy-accept-container.show {
    display: block;
}

.privacy-accept-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.privacy-accept-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Responsive Design */
@media only screen and (max-width: 992px) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: auto;
    }

    .hero-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        margin: 0 auto 25px;
    }

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

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

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }
}

@media only screen and (max-width: 600px) {
    nav .brand-logo {
        font-size: 1.2rem;
        padding-left: 10px;
    }

    .hero-section {
        padding: 40px 0 30px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }

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

    .carousel-container {
        max-width: 100%;
        padding: 0 50px;
        height: 300px;
    }

    .carousel-device {
        max-width: 150px;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .carousel-nav.prev {
        left: 5px;
    }

    .carousel-nav.next {
        right: 5px;
    }

    .features-section,
    .how-it-works,
    .content-section {
        padding: 50px 0;
    }

    .features-section h2,
    .how-it-works h2 {
        font-size: 1.8rem;
    }

    .page-header {
        padding: 80px 0 40px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .content-card {
        padding: 25px 20px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    footer {
        padding: 40px 0 20px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

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

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 20px !important;
}

.green-text {
    color: var(--primary-green) !important;
}
