:root {
    --primary: #d93025;
    --primary-hover: #b71c1c;
    --secondary: #f3b2ac;
    --secondary-hover: #e59a94;
    --bg-light: #f8f9fa;
    --bg-dark: #0f172a;
    --card-light: #ffffff;
    --card-dark: #1e293b;
    --text-light: #333333;
    --text-dark: #f8fafc;
    --text-muted-light: #6b7280;
    --text-muted-dark: #94a3b8;
    --border-light: #eeeeee;
    --border-dark: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-light);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    --primary: #f87171;
    --primary-hover: #ef4444;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.dark-mode .navbar {
    background: rgba(17, 24, 39, 0.8);
    border-bottom-color: var(--border-dark);
}

.navbar.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close-menu-btn {
    display: none;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.btn-login {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.btn-admin {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.dark-mode .btn-admin {
    color: var(--text-dark);
    border-color: var(--border-dark);
}

.btn-admin:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dark-mode .btn-admin:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.btn-cashier:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
}

.dark-mode .theme-toggle {
    color: var(--text-dark);
}

/* Sections */
section {
    padding: 100px 5%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
    background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.1), transparent);
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.dark-mode .hero-desc {
    color: var(--text-muted-dark);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-main {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(2, 132, 199, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(2, 132, 199, 0.4);
}

.hero-image {
    width: 50%;
    position: relative;
}

.hero-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 50%;
}

.hero-img-card {
    background: var(--card-light);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.dark-mode .hero-img-card {
    background: var(--card-dark);
}

.hero-img-card:hover {
    transform: rotate(0deg);
}

/* Features Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0.5rem;
}

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

.feature-card {
    background: var(--card-light);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.dark-mode .feature-card {
    background: var(--card-dark);
    border-color: var(--border-dark);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(2, 132, 199, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-desc {
    color: var(--text-muted-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.dark-mode .feature-desc {
    color: var(--text-muted-dark);
}

/* Categories Section */
.categories {
    background: rgba(2, 132, 199, 0.03);
}

.dark-mode .categories {
    background: rgba(255, 255, 255, 0.02);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-item {
    position: relative;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-item:hover .category-img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.category-name {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Promotions Section */
.promos {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.promo-img {
    width: 45%;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.promo-content {
    flex: 1;
}

.promo-badge {
    background: #fee2e2;
    color: #ef4444;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.promo-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.promo-list {
    list-style: none;
    margin-bottom: 2rem;
}

.promo-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.promo-list li i {
    color: var(--secondary);
}

/* Footer Section */
.footer {
    background: #0f172a;
    color: white;
    padding: 80px 5% 40px 5%;
}

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

.footer-brand .nav-brand {
    color: white;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 0.8rem;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.dark-mode .mobile-toggle {
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .navbar {
        padding: 1rem 5%;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--card-light);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 2000;
        gap: 1.5rem;
    }

    .dark-mode .nav-links {
        background: var(--card-dark);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .close-menu-btn {
        display: block;
    }

    .btn-login {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .hero {
        flex-direction: column;
        height: auto;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-content {
        margin-bottom: 4rem;
        max-width: 100%;
    }

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

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
    }

    .hero-blob {
        width: 300px;
        height: 300px;
    }

    .hero-img-card {
        transform: rotate(0deg);
    }

    .promos {
        flex-direction: column;
        gap: 2rem;
    }

    .promo-img {
        width: 100%;
        height: 300px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}
