/* Reset dan Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    min-height: 100vh;
    background-color: #fff;
    color: #333;
    overflow-x: hidden;
}

/* Header & Navbar */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #04AA6D 0%, #039e5b 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 700;
}

.logo-navbar {
    height: 45px;
    width: 45px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid white;
}

.brand-name {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Search Bar */
.navbar-search {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 5px 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: 8px 12px;
    width: 200px;
    font-size: 14px;
    background: transparent;
}

.search-button {
    background: none;
    border: none;
    color: #04AA6D;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: rgba(4, 170, 109, 0.1);
    transform: scale(1.1);
}

.profile-icon {
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
}

.profile-icon:hover {
    color: #ffd166;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-button {
    background: linear-gradient(135deg, #e67e22 0%, #ff9500 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(231, 126, 34, 0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(231, 126, 34, 0.4);
    background: linear-gradient(135deg, #ff9500 0%, #e67e22 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(4, 170, 109, 0.3), rgba(231, 126, 34, 0.3));
    z-index: 1;
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-wrapper {
    padding: 20px;
}

.main-content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: #04AA6D;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-subtitle {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 28px;
    border: 2px solid #04AA6D;
    background: white;
    color: #04AA6D;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.category-btn:hover {
    background: rgba(4, 170, 109, 0.1);
    transform: translateY(-3px);
}

.category-btn.active {
    background: linear-gradient(135deg, #04AA6D 0%, #039e5b 100%);
    color: white;
    border-color: #04AA6D;
    box-shadow: 0 5px 15px rgba(4, 170, 109, 0.2);
}

/* Restaurant Grid */
.resto-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.resto-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.resto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.resto-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.resto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.resto-card:hover .resto-img {
    transform: scale(1.1);
}

.resto-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.food-badge {
    background: linear-gradient(135deg, #e67e22 0%, #ff9500 100%);
}

.drink-badge {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.resto-info {
    padding: 20px;
}

.resto-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.resto-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.resto-rating, .resto-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.resto-rating {
    color: #f1c40f;
    font-weight: 600;
}

.resto-price {
    font-size: 22px;
    font-weight: 800;
    color: #04AA6D;
    margin-bottom: 20px;
}

.resto-actions {
    display: flex;
    justify-content: center;
}

.order-btn {
    background: linear-gradient(135deg, #04AA6D 0%, #039e5b 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.order-btn:hover {
    background: linear-gradient(135deg, #039e5b 0%, #028c4f 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(4, 170, 109, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 60px;
    width: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 3px solid white;
}

.footer-logo h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
    color: #fff;
}

.footer-logo p {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h4, .footer-contact h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #04AA6D;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: #04AA6D;
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #bdc3c7;
    font-size: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #04AA6D;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .resto-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-left, .nav-center, .nav-right {
        width: 100%;
        justify-content: center;
    }
    
    .brand-name {
        font-size: 24px;
    }
    
    .navbar-search {
        width: 100%;
        max-width: 300px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .resto-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-button {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .resto-list {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        align-items: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Login/Logout Button Style */
.auth-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-button:hover {
    background: white;
    color: #04AA6D;
    transform: translateY(-2px);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.profile-dropdown:hover .profile-menu {
    display: block;
}

.profile-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.profile-menu a:hover {
    background: rgba(4, 170, 109, 0.1);
    color: #04AA6D;
}