/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1A237E;     /* Deep Navy Blue */
    --primary-dark: #0d1446;
    --secondary: #FFD700;   /* Warm Gold */
    --accent: #25D366;      /* WhatsApp Green */
    --accent-dark: #128C7E;
    --light: #FFF8E1;       /* Cream White */
    --dark: #333333;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --success: #4CAF50;
    --warning: #FF9800;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary: #90cdf4;
    --primary-dark: #63b3ed;
    --secondary: #fbbf24;
    --accent: #25D366;
    --accent-dark: #128C7E;
    --light: #1a202c;
    --dark: #f7fafc;
    --gray: #cbd5e0;
    --light-gray: #2d3748;
    --success: #48bb78;
    --warning: #ed8936;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    left: 20px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    z-index: 2001;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

body.dark-mode .theme-toggle {
    background: var(--secondary);
    color: #1a202c;
}

body.dark-mode .theme-toggle:hover {
    background: #eab308;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

body.dark-mode .btn-secondary {
    background: #4a5568;
    color: var(--dark);
}

body.dark-mode .btn-secondary:hover {
    background: #5a6578;
}

.btn-whatsapp {
    background: var(--accent);
    color: white;
}

.btn-whatsapp:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-block {
    width: 100%;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

body.dark-mode .navbar {
    background: #1a202c;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-accent {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--light);
    color: var(--primary);
}

body.dark-mode .nav-links a {
    color: #e2e8f0;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    background: #2d3748;
    color: var(--primary);
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

body.dark-mode .menu-toggle {
    color: #e2e8f0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    margin-bottom: 1rem;
    font-size: 3rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Badges Section */
.badges-section {
    padding: 4rem 0;
    background: white;
    transition: var(--transition);
}

body.dark-mode .badges-section {
    background: #1a202c;
}

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

body.dark-mode .section-title {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.badge-item {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

body.dark-mode .badge-item {
    background: #2d3748;
}

.badge-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Restaurants Section */
.restaurants-section {
    padding: 4rem 0;
    background: var(--light);
    transition: var(--transition);
}

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

.restaurant-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

body.dark-mode .restaurant-card {
    background: #2d3748;
    color: #e2e8f0;
}

.restaurant-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.restaurant-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, #667eea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.restaurant-badges {
    padding: 1rem 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    background: var(--light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.dark-mode .badge {
    background: #4a5568;
    color: var(--primary);
}

.badge.certified {
    background: rgba(255, 215, 0, 0.1);
    color: #b8860b;
}

body.dark-mode .badge.certified {
    background: rgba(255, 215, 0, 0.2);
}

.restaurant-content {
    padding: 1.5rem;
}

.restaurant-name {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.restaurant-tagline {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.restaurant-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.info-item i {
    color: var(--primary);
    width: 20px;
}

.info-text {
    font-size: 0.9rem;
    color: var(--dark);
}

body.dark-mode .info-text {
    color: #e2e8f0;
}

.info-text small {
    display: block;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 2px;
}

.restaurant-actions {
    display: flex;
    gap: 1rem;
}

.restaurant-actions .btn {
    flex: 1;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: white;
    transition: var(--transition);
}

body.dark-mode .how-it-works {
    background: #1a202c;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--radius);
    position: relative;
    transition: var(--transition);
}

body.dark-mode .step {
    background: #2d3748;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* WhatsApp CTA */
.whatsapp-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 4rem 0 2rem;
    transition: var(--transition);
}

body.dark-mode .footer {
    background: #1a237e;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--secondary);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: var(--accent);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: var(--shadow);
    z-index: 2000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: var(--accent-dark);
}

/* Animation for WhatsApp float */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Notification Animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1001;
    }
    
    body.dark-mode .nav-links {
        background: #1a202c;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .restaurants-grid {
        grid-template-columns: 1fr;
    }
    
    .restaurant-actions {
        flex-direction: column;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .theme-toggle {
        bottom: 90px;
        left: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}