/* ===========================
   Global Styles & Variables
   =========================== */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --accent-color: #F7931E;
    --light-bg: #F5F5F5;
    --dark-text: #1A1A1A;
    --light-text: #666666;
    --border-color: #EEEEEE;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    background-color: #FFFFFF;
}

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

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--light-text);
    margin-bottom: 50px;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

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

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

.btn-secondary {
    background-color: transparent;
    color: var(--dark-text);
    border: 2px solid var(--dark-text);
}

.btn-secondary:hover {
    background-color: var(--dark-text);
    color: white;
}

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

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

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ===========================
   Navigation Bar
   =========================== */

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.logo-text {
    color: var(--dark-text);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

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

/* ===========================
   Hero Section
   =========================== */

.hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dark-text);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.hero-graphic {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
}

.food-item {
    position: absolute;
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

.item-1 {
    top: 20px;
    left: 30px;
    animation-delay: 0s;
}

.item-2 {
    top: 50%;
    right: 40px;
    animation-delay: 0.3s;
}

.item-3 {
    bottom: 30px;
    left: 50px;
    animation-delay: 0.6s;
}

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

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

/* ===========================
   Features Section
   =========================== */

.features {
    padding: 100px 0;
    background-color: white;
}

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

.feature-card {
    padding: 40px;
    background-color: var(--light-bg);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* ===========================
   How It Works Section
   =========================== */

.how-it-works {
    padding: 100px 0;
    background: linear-gradient(135deg, #F5F5F5 0%, #FFFFFF 100%);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 200px;
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    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 h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.step p {
    color: var(--light-text);
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0 10px;
}

@media (max-width: 768px) {
    .step-arrow {
        display: none;
    }
}

/* ===========================
   Restaurants Section
   =========================== */

.restaurants {
    padding: 100px 0;
    background-color: white;
}

.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.restaurant-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.restaurant-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
}

.restaurant-image.pizza {
    background: linear-gradient(135deg, #FFE5CC 0%, #FFD4A3 100%);
}

.restaurant-image.burger {
    background: linear-gradient(135deg, #FFD4A3 0%, #FFC26F 100%);
}

.restaurant-image.sushi {
    background: linear-gradient(135deg, #A8D8EA 0%, #7EC8E3 100%);
}

.restaurant-image.noodles {
    background: linear-gradient(135deg, #FFE5CC 0%, #FFCBA4 100%);
}

.restaurant-card h3 {
    font-size: 1.3rem;
    padding: 20px 20px 10px;
    color: var(--dark-text);
}

.restaurant-card .rating {
    padding: 0 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.restaurant-card .cuisine {
    padding: 5px 20px;
    color: var(--light-text);
    font-size: 0.9rem;
}

.restaurant-card .delivery-time {
    padding: 10px 20px 20px;
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===========================
   CTA Section
   =========================== */

.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

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

.cta .btn-primary:hover {
    background-color: #F5F5F5;
    color: var(--primary-color);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background-color: var(--dark-text);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #CCCCCC;
    line-height: 1.6;
}

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

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

.footer-section a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333333;
    color: #999999;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .section-title {
        font-size: 2rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .restaurants-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}
