/* ===== Modern Slides Design - Foodi AI ===== */

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

:root {
    /* Colors */
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #5eead4;
    --accent: #14b8a6;
    --gradient: linear-gradient(135deg, #10b981 0%, #5eead4 50%, #14b8a6 100%);
    
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #94a3b8;
    
    /* Timing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Progress Bar ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient);
    width: 0%;
    z-index: 10000;
    transition: width 0.3s var(--ease-smooth);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    transition: all 0.3s var(--ease-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-download {
    transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
}

.btn-download:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* ===== Slide Navigation Dots ===== */
.slide-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.slide-dot:hover {
    transform: scale(1.3);
}

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

/* ===== Slides Container ===== */
.slides-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
    scroll-behavior: smooth;
}

.slide {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 40px 40px;
    background: #ffffff;
}

.slide-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.fade-in {
    animation: fadeIn 1s var(--ease-smooth);
}

.fade-in-up {
    animation: fadeInUp 1s var(--ease-smooth);
}

/* ===== Typography ===== */
.mega-title {
    font-size: clamp(48px, 8vw, 92px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 64px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* ===== SLIDE 1: HERO ===== */
.slide-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2f1 100%);
}

.slide-hero .slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-float {
    animation: float 6s ease-in-out infinite;
    margin-top: 300px;
}

.app-mockup {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.3));
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 600;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    50% {
        transform: translateY(10px) rotate(-45deg);
    }
}

/* ===== SLIDE 2: FEATURES SPLIT ===== */
.slide-features {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.features-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 80px;
    align-items: center;
}

.feature-side {
    padding: 60px 48px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 2px solid rgba(16, 185, 129, 0.1);
    transition: all 0.4s var(--ease-smooth);
    position: relative;
}

.feature-side:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.feature-planning {
    border: 3px solid var(--primary);
}

.feature-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 8px 20px;
    background: var(--gradient);
    color: white;
    font-size: 12px;
    font-weight: 800;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-icon {
    font-size: 72px;
    margin-bottom: 24px;
}

.feature-side h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.feature-side p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.feature-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-points li {
    font-size: 16px;
    padding-left: 32px;
    position: relative;
}

.feature-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.feature-divider {
    width: 2px;
    height: 300px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

/* ===== SLIDE 3: MODES ===== */
.slide-modes {
    background: linear-gradient(135deg, #f1f5f9 0%, #ecfdf5 100%);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.mode-card {
    padding: 48px 32px;
    background: white;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s var(--ease-smooth);
    border: 2px solid transparent;
}

.mode-card:hover {
    transform: translateY(-16px) scale(1.05);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.mode-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.mode-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.mode-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== SLIDE 4: SCIENCE ===== */
.slide-science {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.slide-science .badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--secondary);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
}

.feature-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.check-circle {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    font-size: 22px;
    margin-bottom: 8px;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

.phone-showcase {
    position: relative;
}

.showcase-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.5));
    animation: float 6s ease-in-out infinite;
}

/* ===== SLIDE 5: GLOBAL ===== */
.slide-global {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2f1 50%, #f0fdfa 100%);
}

.global-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.global-card {
    padding: 48px 32px;
    background: white;
    border-radius: 28px;
    text-align: center;
    transition: all 0.4s var(--ease-smooth);
    border: 2px solid transparent;
}

.global-card:hover {
    transform: translateY(-16px) rotate(2deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.global-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.global-number {
    font-size: 56px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.global-label {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.global-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== SLIDE 6: DOWNLOAD ===== */
.slide-download {
    background: linear-gradient(135deg, #10b981 0%, #5eead4 100%);
    color: white;
    flex-direction: column;
    justify-content: space-between;
}

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

.download-subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 56px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.download-button {
    margin-bottom: 32px;
}

.btn-store-large {
    display: inline-block;
    transition: transform 0.3s var(--ease-bounce);
}

.btn-store-large:hover {
    transform: scale(1.1) translateY(-8px);
}

.download-note {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.slide-footer {
    width: 100%;
    text-align: center;
    padding: 24px 0;
}

.footer-links {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .slide-hero .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-float {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .features-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-divider {
        display: none;
    }
    
    .modes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .global-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop-only layering tweak: ensure slide 3 appears above slide 4 */
@media (min-width: 1025px) {
    .slide { position: relative; z-index: 0; }
    .slide-modes { z-index: 3; }
    .slide-science { z-index: 1; margin-top: -20px; padding-top: 120px; }
    .slide-global { z-index: 2; }
    .slide-science .phone-showcase { margin-top: 100px; }
}

@media (max-width: 768px) {
    /* Disable side dots on mobile */
    .slide-nav { display: none; }

    /* Make container behave like normal page flow */
    .slides-container {
        scroll-snap-type: none;
        height: auto;
        overflow-y: visible;
    }
    .slide {
        padding: 110px 20px 16px; /* tighter top/bottom */
        overflow-y: auto;
    }
    .slide > *:last-child { margin-bottom: 0 !important; }
    .slide-features { padding-top: 96px !important; }
    .slide-modes { padding-top: 96px !important; }
    .slide-science { padding-top: 110px !important; }
    .slide-global { padding-top: 96px !important; }
    .slide-download { padding-top: 72px !important; padding-bottom: 16px !important; }
    
    .slide-nav {
        right: 12px;
        gap: 10px;
    }
    
    .slide-dot {
        width: 8px;
        height: 8px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .logo-image {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .btn-download img {
        height: 32px;
    }
    
    .mega-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 24px;
        margin-top: 0;
        padding-top: 0;
    }
    
    .badge {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .phone-float {
        margin-top: 40px !important;
        max-width: 300px;
    }
    
    .app-mockup {
        max-width: 300px;
    }
    
    .scroll-indicator {
        bottom: 20px;
        font-size: 12px;
    }
    
    /* Slide 2: Features */
    .feature-side {
        padding: 32px 24px;
    }
    
    .feature-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .feature-side h3 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .feature-side p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .feature-points li {
        font-size: 14px;
    }
    
    /* Slide 3: Modes */
    .modes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mode-card {
        padding: 32px 24px;
    }
    
    .mode-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .mode-card h3 {
        font-size: 20px;
    }
    
    .mode-card p {
        font-size: 14px;
    }
    
    /* Slide 4: Science */
    .slide-science {
        padding: 140px 20px 40px !important;
    }
    
    .split-layout {
        gap: 32px;
        text-align: center;
    }
    
    .visual-half {
        order: -1;
    }
    
    .phone-showcase {
        margin: 0 auto;
    }
    
    .features-list {
        gap: 20px;
        margin-top: 24px;
    }
    
    .check-circle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .feature-item {
        gap: 12px;
        text-align: left;
    }
    
    .feature-item strong {
        font-size: 17px;
        margin-bottom: 4px;
    }
    
    .feature-item p {
        font-size: 14px;
    }
    
    .showcase-image {
        max-width: 280px;
        margin-bottom: 24px;
    }
    
    /* Slide 5: Global */
    .global-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .global-card {
        padding: 32px 24px;
    }
    
    .global-icon {
        font-size: 48px;
    }
    
    .global-number {
        font-size: 40px;
    }
    
    .global-label {
        font-size: 16px;
    }
    
    .global-card p {
        font-size: 13px;
    }
    
    /* Slide 6: Download */
    .download-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .btn-store-large img {
        height: 60px;
    }
    
    .download-note {
        font-size: 14px;
    }
    
    .footer-links {
        gap: 20px;
        font-size: 14px;
    }
    
    .copyright {
        font-size: 12px;
    }
}

/* Extra Small Devices (phones in portrait, less than 480px) */
@media (max-width: 480px) {
    .slide {
        padding: 120px 16px 16px; /* tighter top/bottom */
        overflow-y: auto;
    }
    .slide > *:last-child { margin-bottom: 0 !important; }
    .slide-features { padding-top: 96px !important; }
    .slide-modes { padding-top: 96px !important; }
    .slide-science { padding-top: 110px !important; }
    .slide-global { padding-top: 96px !important; }
    .slide-download { padding-top: 72px !important; padding-bottom: 12px !important; }
    
    .mega-title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 24px;
        margin-top: 0;
        padding-top: 0;
    }
    
    .showcase-image {
        max-width: 240px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .phone-float {
        margin-top: 30px !important;
        max-width: 260px;
    }
    
    .app-mockup,
    .showcase-image {
        max-width: 260px;
    }
    
    .feature-side {
        padding: 24px 20px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
    
    .feature-side h3 {
        font-size: 20px;
    }
    
    .feature-side p {
        font-size: 15px;
    }
    
    .mode-card {
        padding: 28px 20px;
    }
    
    .mode-icon {
        font-size: 40px;
    }
    
    .mode-card h3 {
        font-size: 18px;
    }
    
    .mode-card p {
        font-size: 13px;
    }
    
    .global-card {
        padding: 28px 20px;
    }
    
    .global-icon {
        font-size: 40px;
    }
    
    .global-number {
        font-size: 36px;
    }
    
    .global-label {
        font-size: 15px;
    }
    
    .download-subtitle {
        font-size: 16px;
    }
    
    .btn-store-large img {
        height: 50px;
    }
}

