/* ===== CSS Variables ===== */
:root {
    --primary-color: #0a2463;
    --secondary-color: #1e3a8a;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --gradient-start: #0a2463;
    --gradient-end: #1e40af;
    --text-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f1f5f9;
    --card-shadow: 0 10px 40px rgba(0,0,0,0.08);
    --card-shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Global ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ===== Navbar ===== */
.navbar {
    background: rgba(10, 36, 99, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-text {
    background: linear-gradient(135deg, #fff 60%, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 10px;
    transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.navbar .nav-link i {
    margin-right: 6px;
}

.dropdown-menu {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 8px;
}

.dropdown-item {
    border-radius: 10px;
    padding: 10px 20px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--bg-light);
    transform: translateX(4px);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 100px 0 120px;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-badge i {
    margin-right: 8px;
    color: var(--accent-color);
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-color), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
}

/* Search */
.search-container {
    margin-bottom: 32px;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 60px;
    padding: 6px 6px 6px 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.search-wrapper:focus-within {
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.3);
    transform: scale(1.02);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-input {
    flex: 1;
    border: none;
    padding: 16px 16px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 500;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

/* Quick Categories */
.quick-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-tag {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.quick-tag:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-illustration {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    animation: float 8s ease-in-out infinite;
}

.floating-element.element-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}
.floating-element.element-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}
.floating-element.element-3 {
    top: 10%;
    right: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* ===== Section Common ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.title-icon {
    font-size: 2.2rem;
    margin-right: 8px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== Categories Section ===== */
.categories-section {
    padding: 80px 0;
    background: #fff;
}

/* Category Card */
.category-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent-color);
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--gradient-start);
    height: 200px;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6));
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
}

.category-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
    background: rgba(255,255,255,0.95);
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Card Body */
.card-body {
    padding: 20px 22px;
    flex: 1;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.category-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Popular Items */
.popular-items {
    border-top: 2px solid var(--bg-light);
    padding-top: 14px;
    margin-top: 4px;
}

.items-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

.item-row:last-child {
    border-bottom: none;
}

.item-name {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
}

.item-price {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.85rem;
}

.view-more {
    margin-top: 10px;
}

.view-more-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.view-more-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Card Footer */
.card-footer {
    padding: 16px 22px;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
}

.btn-order {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.btn-order:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    color: #fff;
}

.item-count-badge {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.item-count-badge i {
    margin-right: 4px;
}

/* ===== How It Works ===== */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-light);
}

.step-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--accent-color);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.step-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.step-card h4 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 4px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
    font-weight: 400;
}

/* ===== Footer ===== */
.footer {
    background: #0f172a;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transition: var(--transition);
    color: #fff;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 6px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.6);
}

.contact-info i {
    color: var(--accent-color);
    width: 20px;
}

.footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 30px 0;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 80px 0 100px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .category-card {
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0;
    }
    
    .hero-section {
        padding: 60px 0 80px;
        min-height: auto;
    }
    
    .search-wrapper {
        flex-wrap: wrap;
        border-radius: 30px;
        padding: 12px;
    }
    
    .search-input {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
        margin-top: 8px;
    }
    
    .search-icon {
        display: none;
    }
    
    .quick-categories {
        gap: 8px;
    }
    
    .quick-tag {
        font-size: 0.75rem;
        padding: 6px 14px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card-image-wrapper {
        height: 160px;
    }
    
    .floating-element {
        display: none;
    }
    
    .footer .col-md-4,
    .footer .col-md-2,
    .footer .col-md-3 {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .step-card {
        padding: 30px 20px;
    }
}