/* Global Styles */
:root {
    --primary-color: #00BCD4;
    --secondary-color: #008B9B;
    --accent-color: #4DD0E1;
    --text-color: #1D3557;
    --light-bg: #F8FDFF;
    --card-bg: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #00BCD4 0%, #4DD0E1 100%);
    --box-shadow: 0 8px 32px rgba(0, 187, 212, 0.1);
    --section-bg: #FFFFFF;
    --hero-gradient: linear-gradient(135deg, #F8FDFF 0%, #E3F2FD 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-bg);
    transition: background-color 0.3s ease;
}

/* Logo Styles */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    margin-right: 10px;
    width: auto;
    opacity: 1;
    transition: none;
    display: block;
}

/* Remove old logo styles */
.light-logo,
.dark-logo {
    display: none;
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
    opacity: 1;
    transition: none;
    display: block;
}

.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

/* Button Styles */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.download-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 187, 212, 0.2);
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    transition: background-color 0.3s ease;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.banner-spacing{
    margin-bottom: 2rem
}

.hero-section .lead {
    font-size: 1.5rem;
    color: #546E7A;
    margin-bottom: 2.5rem;
}

.hero-mockup {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-mockup .phone-mockup {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.hero-mockup .phone-mockup:hover {
    transform: translateY(-10px);
}

/* Phone Mockup Styles */
.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #000;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 2;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
}

.phone-screen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 30px;
}

.phone-mockup:nth-child(2) {
    transform: translateY(30px);
}

.phone-mockup:nth-child(2):hover {
    transform: translateY(20px);
}

/* Floating Food Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    opacity: 0.08;
    animation: float 8s infinite;
    filter: blur(1px);
    transform-origin: center;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--section-bg);
    transition: background-color 0.3s ease;
}

.feature-card {
    padding: 2.5rem;
    text-align: center;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(0, 187, 212, 0.15);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background: var(--light-bg);
    transition: background-color 0.3s ease;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

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

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--section-bg);
    transition: background-color 0.3s ease;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin: 1rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.star-rating {
    color: #FFC107;
    margin-bottom: 1rem;
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --text-color: #E0E0E0;
    --light-bg: #121212;
    --card-bg: #1E1E1E;
    --section-bg: #1A1A1A;
    --hero-gradient: linear-gradient(135deg, #121212 0%, #1A1A1A 100%);
    background-color: #121212;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.9) !important;
}

[data-theme="dark"] .navbar-brand,
[data-theme="dark"] .nav-link {
    color: var(--text-color) !important;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card {
    background: #1A1A1A;
}

[data-theme="dark"] .features-section {
    background: var(--section-bg);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(-30px) rotate(8deg) scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .hero-mockup {
        flex-direction: column;
        gap: 40px;
        padding: 10px;
        align-items: center;
    }
    
    .phone-mockup {
        width: 240px;
        height: 500px;
        margin: 0 auto;
    }
    
    .phone-mockup:nth-child(2) {
        transform: translateY(0);
    }
    
    .phone-mockup:nth-child(2):hover {
        transform: translateY(-10px);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Confetti Animation */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: confetti-fall linear forwards;
    pointer-events: none;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Dark mode transition */
body, .navbar, .feature-card, .testimonial-card {
    transition: background-color 0.3s ease;
}

/* Download button hover effect */
.download-btn {
    position: relative;
    overflow: hidden;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.download-btn:hover::after {
    transform: translateX(0);
}

[data-theme="dark"] .download-btn::after {
    opacity: 0;
}

/* Food Images Grid */
.food-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.food-image {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
}

.food-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.food-image:hover img {
    transform: scale(1.05);
}

/* Lifestyle Images */
.lifestyle-image {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    overflow: hidden;
}

.lifestyle-image .phone-mockup {
    margin: 0 auto;
    box-shadow: none;
    background: #000;
}

.lifestyle-image .phone-screen {
    background: transparent;
}

.lifestyle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
}

[data-theme="dark"] .theme-toggle {
    color: #FFC107;
    border-color: #FFC107;
}

[data-theme="dark"] .theme-toggle:hover {
    background: #FFC107;
    color: #1A1A1A;
}

/* Food Gallery Section */
.food-gallery {
    background: var(--light-bg) !important;
    transition: background-color 0.3s ease;
}

/* Footer */
[data-theme="dark"] .footer {
    background-color: #0A0A0A !important;
}

/* Text Colors in Dark Mode */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] p,
[data-theme="dark"] .lead {
    color: var(--text-color);
}

/* Phone Mockup Dark Mode Adjustments */
[data-theme="dark"] .phone-mockup {
    background: #000000;
}

[data-theme="dark"] .phone-mockup::before {
    background: #000000;
}

[data-theme="dark"] .phone-screen::before {
    background: #000000;
}

/* Floating Icons Adjustment */
[data-theme="dark"] .floating-icon {
    opacity: 0.05;
}

/* Download Button Dark Mode */
[data-theme="dark"] .download-btn {
    background: var(--gradient-primary);
    box-shadow: 0 8px 32px rgba(0, 187, 212, 0.15);
}

/* Section Transitions */
.hero-section,
.features-section,
.how-it-works,
.food-gallery,
.testimonials,
.footer,
.feature-card,
.step-card,
.testimonial-card {
    transition: background-color 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        margin-right: auto;
    }

    .d-flex.align-items-center {
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    .navbar-toggler {
        margin-left: 0.5rem;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 0.5rem;
        box-shadow: var(--box-shadow);
        display: none;
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    .nav-link {
        padding: 0.5rem 0;
    }

    .d-flex.align-items-center {
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .navbar-collapse {
        background: var(--card-bg);
    }

    [data-theme="dark"] .d-flex.align-items-center {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* App Store Badges */
.app-badges {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.store-badge {
    transition: transform 0.3s ease;
    display: inline-block;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
}

.store-badge:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.store-badge img {
    height: 50px;
    width: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 1;
    visibility: visible;
}

/* Ensure images are always visible */
.store-badge img {
    height: 50px !important;
    width: auto !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fallback for missing images */
.store-badge img:not([src]), 
.store-badge img[src=""],
.store-badge img[src*="error"] {
    display: none;
}

.store-badge:has(img:not([src])), 
.store-badge:has(img[src=""]),
.store-badge:has(img[src*="error"]) {
    display: none;
}

/* Responsive adjustments for app badges */
@media (max-width: 768px) {
    .app-badges {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .store-badge img {
        height: 45px;
        width: auto;
        max-width: none;
    }
    
    /* Ensure both buttons are the same size on mobile */
    .store-badge {
        flex: 0 0 auto;
        width: auto;
    }
    
    .store-badge img {
        height: 45px !important;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    .app-badges {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .store-badge img {
        height: 40px !important;
        width: auto !important;
    }
}

/* Mobile navigation adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse .d-flex.align-items-center {
        justify-content: center;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse .btn-outline-primary {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }
    
    [data-theme="dark"] .navbar-collapse .d-flex.align-items-center {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* Treasure Chest Animation */
.mystery-box {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    margin: 0 5px;
}

.box {
    width: 60px;
    height: 45px;
    position: relative;
    display: inline-block;
    transform-style: preserve-3d;
    animation: chestFloat 3s ease-in-out infinite;
}

.box-lid {
    width: 100%;
    height: 25px;
    background: #8B4513;
    position: absolute;
    top: 0;
    transform-origin: bottom;
    animation: chestLidOpen 3s ease-in-out infinite;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.box-lid::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #FFD700;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.box-bottom {
    width: 100%;
    height: 45px;
    background: #8B4513;
    position: absolute;
    bottom: 0;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.box-bottom::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 10px;
    background: #A0522D;
    bottom: 0;
    border-radius: 0 0 5px 5px;
}

.box-gift {
    width: 30px;
    height: 30px;
    background: #FFD700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: giftGlow 2s ease-in-out infinite;
}

.box-gift::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, #FFD700 45%, #FFD700 55%, transparent 55%);
    animation: giftSparkle 1s ease-in-out infinite;
}

@keyframes chestFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes chestLidOpen {
    0%, 100% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(-120deg);
    }
}

@keyframes giftGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

@keyframes giftSparkle {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Dark mode adjustments for treasure chest */
[data-theme="dark"] .box-lid,
[data-theme="dark"] .box-bottom {
    background: #654321;
}

[data-theme="dark"] .box-bottom::before {
    background: #8B4513;
}

[data-theme="dark"] .box-gift {
    background: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* About Page Styles */
.about-hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-gradient);
}

.mission-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    height: 100%;
}

.mission-card:hover {
    transform: translateY(-10px);
}

.team-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

/* Blog Page Styles */
.blog-hero {
    padding-top: 120px !important;
    background: var(--hero-gradient);
    text-align: center;
}

@media (max-width: 768px) {
    .blog-hero {
        padding-top: 130px;
    }
}

.blog-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card.featured {
    border: 2px solid var(--primary-color);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: var(--text-color);
    font-size: 0.9rem;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.sidebar-widget h4 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.sidebar-widget ul li {
    margin-bottom: 0.5rem;
}

.sidebar-widget ul li a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.sidebar-widget ul li a:hover {
    color: var(--primary-color);
}

.popular-post {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.popular-post:last-child {
    border-bottom: none;
}

.popular-post h6 {
    margin-bottom: 0.5rem;
}

.popular-post a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.popular-post a:hover {
    color: var(--primary-color);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .mission-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .sidebar-widget {
    background: var(--card-bg);
}

[data-theme="dark"] .popular-post {
    border-bottom-color: rgba(255,255,255,0.1);
}

/* Mystery Text Styling */
.mystery-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 25%, var(--secondary-color) 50%, var(--primary-color) 75%, var(--accent-color) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.mission-image {
    width: 100%;
    max-height: 500px !important;
    object-fit: cover;
    border-radius: 1.5rem; /* matches rounded-3 */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991.98px) {
    .mission-image {
        max-height: 300px !important ;
    }
}

@media (min-width: 992px) {
    .mission-section .row.align-items-center {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
    }
    .mission-section .col-lg-6 {
        display: flex;
        flex-direction: column;
        justify-content: stretch;
        flex: 1 1 0;
        max-width: 50%;
        height: 100%;
    }
    .mission-section .row > .col-lg-6:first-child .row {
        flex: 1 1 0;
        height: 100%;
    }
    .mission-section .mission-card {
        flex: 1 1 0;
        margin-bottom: 16px;
    }
    .mission-section .mission-card:last-child {
        margin-bottom: 0;
    }
    .mission-image {
        height: 100%;
        max-height: none;
        object-fit: cover;
        border-radius: 1.5rem;
        width: 100%;
        min-height: 300px;
    }
} 