/**
 * =====================================================================
 * INGREDIENTS2MEALS STYLESHEET
 * =====================================================================
 * 
 * Purpose: Main styling for the Ingredients2Meals landing page
 * Architecture: Mobile-first responsive design with CSS custom properties
 * Browser Support: Modern browsers with CSS Grid and Flexbox support
 * 
 * Sections:
 * 1. CSS Custom Properties (Design Tokens)
 * 2. Global Reset and Base Styles
 * 3. Header and Navigation
 * 4. Hero Section
 * 5. Features Section
 * 6. Mission/Goal Section
 * 7. Footer
 * 8. Responsive Design (Mobile-first)
 * 
 * @author Ingredients2Meals Development Team
 * @version 2.0
 * @since 2025
 */

/* =====================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   Centralized color and spacing system for consistent theming
   ===================================================================== */
:root {
    /* Brand Colors */
    --color-primary: #D95921;        /* Primary orange - CTA buttons, brand elements */
    --color-secondary: #000000;      /* Secondary black - text, outlines */
    --color-accent: #F2D940;         /* Accent yellow - highlights, decorative elements */
    
    /* Background Colors */
    --color-bg-main: #FAF7F2;        /* Main background - warm off-white */
    --color-bg-card: #FFFFFF;        /* Card backgrounds - pure white */
    
    /* Typography Colors */
    --color-text-primary: #000000;   /* Primary text - headings, important content */
    --color-text-secondary: #555555; /* Secondary text - body text, descriptions */
    --color-text-caption: #888888;   /* Caption text - less important content */
}

/* =====================================================================
   2. GLOBAL RESET AND BASE STYLES
   Normalize browser defaults and establish base typography
   ===================================================================== */

/* Universal box-sizing reset for predictable layout behavior */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base body styles with Apple's SF Pro font stack */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: #FAF7F2;
    min-height: 100vh;
}

/* Flexible container for consistent width management */
.container {
    width: 100%;
}

/* =====================================================================
   3. HEADER AND NAVIGATION
   Fixed header with glassmorphism effect and brand identity
   ===================================================================== */

/* Fixed header with backdrop blur for glassmorphism effect */
.header {
    background-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);  /* Safari compatibility */
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;  /* Ensure header stays above content */
}

/* Navigation container with flexible layout */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Brand identity section with logo and company name */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo icon with consistent sizing */
.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Company name with brand typography */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

/* Download section container */
.nav-download {
    display: flex;
    align-items: center;
}

/* App Store badge with hover interaction */
.app-store-badge {
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Subtle scale effect on hover for better UX */
.app-store-badge:hover {
    transform: scale(1.05);
}

/* =====================================================================
   4. HERO SECTION
   Full-viewport landing area with value proposition and app preview
   ===================================================================== */

/* Main hero container with side-by-side layout */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 8rem 2rem 4rem;  /* Top padding accounts for fixed header */
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

/* Content area with value proposition */
.hero-content {
    flex: 1;
}

/* Primary headline with impact typography */
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

/* Supporting subtitle with clear value proposition */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Action button container with flexible layout */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Base button styles with modern rounded design */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Primary CTA button with brand color */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

/* Primary button hover with micro-interaction */
.btn-primary:hover {
    background-color: #c04a1a;  /* Darker shade of primary */
    transform: translateY(-2px);
}

/* Secondary button with outline style */
.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
}

/* Secondary button hover with fill effect */
.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: white;
    transform: translateY(-2px);
}

/* App preview section */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phone mockup container with realistic proportions */
.phone-mockup {
    width: 400px;
    height: 800px;
    background: var(--color-bg-main);
    border-radius: 30px;
    padding: 20px;
    max-width: 100%;
}

/* Phone screen area with overflow management */
.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-main);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

/* Container for rotating app screenshots */
.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Individual screenshot with fade transition */
.hero-rotating-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Active screenshot state */
.hero-rotating-image.active {
    opacity: 1;
}

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

/* =====================================================================
   5. FEATURES SECTION
   Interactive carousel showcasing app capabilities
   ===================================================================== */

/* Main features section container */
.features {
    padding: 2rem 0;
    background-color: transparent;
    min-height: 30vh;
}

/* Features content container with max-width constraint */
.features-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Two-column layout for feature display */
.feature-showcase {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    min-height: 300px;
    position: relative;
}

/* Left panel for feature images */
.feature-image-panel {
    flex: 1;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Feature images with smooth transitions */
.feature-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    transition: all 0.5s ease;
}

.feature-content-panel {
    flex: 1;
    padding-left: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.feature-nav-controls {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
}

.feature-nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.feature-nav-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--color-text-primary);
}

.feature-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.feature-nav-btn:disabled:hover {
    transform: scale(1);
    background: rgba(255, 255, 255, 0.9);
}

.feature-text-content {
    margin-bottom: 0;
}

.feature-category {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.feature-description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
}

.feature-indicators {
    display: flex;
    gap: 0.5rem;
    margin-top: 2rem;
    justify-content: flex-start;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

.indicator:hover {
    background: var(--color-primary);
    opacity: 0.7;
}




.testimonials {
    padding: 5rem 0;
    background-color: transparent;
}

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

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-text-secondary);
}

.download {
    padding: 5rem 0;
    background: white;
    color: var(--color-text-primary);
    text-align: center;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-secondary);
}

.download-buttons {
    margin-bottom: 1.5rem;
}

.app-store-btn img {
    height: 60px;
    transition: transform 0.3s ease;
}

.app-store-btn:hover img {
    transform: scale(1.05);
}

.download-note {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* =====================================================================
   6. MISSION/GOAL SECTION
   Environmental impact messaging and company mission
   ===================================================================== */

/* Our Goal section styles start around line 507 - see below */

/* =====================================================================
   7. FOOTER SECTION
   Company information, legal links, and contact details
   ===================================================================== */

/* Main footer with gradient background */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 3rem;
}

.footer-brand {
    flex: 1;
    max-width: 400px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-brand p {
    color: #bdc3c7;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.footer-links a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #95a5a6;
    font-size: 0.95rem;
}

.footer-bottom p {
    margin: 0;
}

/* Our Goal Section */
.our-goal {
    padding: 5rem 0;
    background-color: transparent;
    min-height: 50vh;
}

.our-goal .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.our-goal-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.our-goal-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.our-goal-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 1rem auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.our-goal-image:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.our-goal-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.our-goal-cta {
    margin-top: 3rem;
    text-align: center;
}

.our-goal-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* =====================================================================
   8. RESPONSIVE DESIGN (MOBILE-FIRST)
   Adaptive layouts for tablets and mobile devices
   ===================================================================== */

/* Tablet and mobile breakpoint (768px and below) */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1rem 4rem;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        max-width: 90vw;
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-showcase {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
    }
    
    .feature-image-panel {
        max-width: 100%;
    }
    
    .feature-content-panel {
        padding-left: 0;
        min-height: 350px;
    }
    
    .feature-title {
        font-size: 2rem;
    }
    
    .feature-description {
        font-size: 1rem;
    }
    
    .our-goal {
        padding: 3rem 0;
        min-height: 30vh;
    }
    
    .our-goal-title {
        font-size: 2rem;
    }
    
    .our-goal-image {
        max-width: 85%;
        margin: 1rem auto;
    }
    
    .our-goal-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .our-goal-cta {
        margin-top: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }
}

/* Small mobile breakpoint (480px and below) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
        max-width: 85vw;
    }
    
    .hero {
        padding: 5rem 1rem 3rem;
    }
    
    .features {
        padding: 4rem 1rem;
    }
    
    .features-container {
        padding: 0 1rem;
    }
    
    .our-goal {
        padding: 2.5rem 0;
        min-height: 25vh;
    }
    
    .our-goal-title {
        font-size: 1.8rem;
    }
    
    .our-goal-image {
        max-width: 90%;
        margin: 0.8rem auto;
    }
    
    .our-goal-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .feature-indicators {
        justify-content: center;
    }
    
    .feature-tab,
    .gallery-content,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .feature-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .feature-nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .feature-nav-controls {
        margin-top: auto;
        padding-top: 1.5rem;
        padding-right: 1rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }
    
    .footer .container {
        padding: 0 1rem;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
    
    .footer-brand p {
        font-size: 1rem;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}