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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.chef-hat-icon {
    color: #ea580c;
    margin-bottom: 1rem;
    animation: spin-scale 2s infinite ease-in-out;
}

.preloader h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.preloader p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    background: #ea580c;
    border-radius: 50%;
    animation: bounce-dot 0.6s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes spin-scale {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(360deg);
    }
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

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

.logo-icon {
    color: #ea580c;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.desktop-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ea580c;
}

.btn-signin {
    background: #ea580c;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.btn-signin:hover {
    background: #c2410c;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
}

.mobile-menu.active {
    display: block;
}

.mobile-link {
    display: block;
    color: #374151;
    text-decoration: none;
    padding: 0.75rem 0;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: #ea580c;
}

.btn-signin.mobile {
    width: 100%;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 4rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://i.pinimg.com/1200x/77/fc/d3/77fcd384cc664ffb0a2c5b50e726f7e9.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    color: white;
    z-index: 10;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.text-orange {
    color: #fb923c;
}

.hero-description {
    font-size: 1rem;
    color: #e5e7eb;
    max-width: 36rem;
    margin-bottom: 1.25rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #ea580c;
    color: white;
}

.btn-primary:hover {
    background: #c2410c;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 0.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fb923c;
}

.stat-label {
    color: #d1d5db;
    font-size: 0.875rem;
}

.hero-image {
    display: none;
}

.chef-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.chef-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    position: relative;
}

.chef-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
}

.chef-info h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.chef-info p {
    color: #d1d5db;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-image {
        display: block;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-description {
        font-size: 1.125rem;
    }
}

/* Dishes Section */
.dishes-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.dishes-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.filter-btn:hover {
    border-color: #ea580c;
    color: #ea580c;
}

.filter-btn.active {
    background: #ea580c;
    color: white;
    border-color: #ea580c;
}

.filter-btn[data-filter="veg"].active {
    background: #16a34a;
    border-color: #16a34a;
}

.filter-btn[data-filter="non-veg"].active {
    background: #dc2626;
    border-color: #dc2626;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #ea580c;
}

.results-count {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.dishes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.dish-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.5s forwards;
}

.dish-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dish-image-container {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.dish-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.dish-card:hover .dish-image {
    transform: scale(1.1);
}

.dish-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-veg {
    background: #16a34a;
}

.badge-non-veg {
    background: #dc2626;
}

.dish-content {
    padding: 1rem;
}

.dish-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.dish-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item svg {
    width: 1rem;
    height: 1rem;
}

.btn-cook {
    width: 100%;
    padding: 0.5rem 1rem;
    background: #ea580c;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-cook:hover {
    background: #c2410c;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results p {
    color: #6b7280;
    font-size: 1.125rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.page-btn:hover:not(:disabled) {
    border-color: #ea580c;
    color: #ea580c;
}

.page-btn.active {
    background: #ea580c;
    color: white;
    border-color: #ea580c;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .search-box {
        width: 20rem;
    }
}

@media (min-width: 1024px) {
    .dishes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .dishes-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Footer */
.footer {
    background: #111827;
    color: #d1d5db;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-text {
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: #d1d5db;
    transition: color 0.3s;
}

.social-link:hover {
    color: #ea580c;
}

.footer-heading {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

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

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ea580c;
}

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.footer-contact svg {
    color: #ea580c;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #ea580c;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
