/* ===== CSS Variables ===== */
:root {
    --deep-blue: #3338A0;
    --gold: #FCC61D;
    --warm-cream: #FFFBEB;
    --dark-blue: #2a2f85;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.2);
    --glow-gold: 0 0 20px rgba(252, 198, 29, 0.4);
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--warm-cream);
    color: var(--text-dark);
    overflow-x: hidden;
    padding-top: 70px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--deep-blue), var(--dark-blue));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 2s forwards;
}

.loading-icon {
    position: relative;
    animation: bounce 1s ease infinite;
}

.loading-icon .fa-egg {
    font-size: 4rem;
    color: var(--gold);
    filter: drop-shadow(0 0 20px rgba(252, 198, 29, 0.6));
}

.loading-pan {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.loading-pan .fa-circle {
    font-size: 6rem;
    color: var(--warm-cream);
    opacity: 0.3;
}

.loading-screen p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-top: 3rem;
    animation: pulse 1.5s ease infinite;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== HERO SECTION ===== */
.menu-hero {
    position: relative;
    min-height: 60vh;
    height: auto;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -70px;
    padding-top: 70px;
    padding-bottom: 2rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-food {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.food-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.food-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.food-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.food-4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(-50px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    animation: slideDown 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideDown 0.8s ease 0.4s backwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #f0b800);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(252, 198, 29, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(252, 198, 29, 0.6);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 100px;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    position: sticky;
    top: 70px;
    background: var(--warm-cream);
    padding: 1.5rem 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid rgba(252, 198, 29, 0.2);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--text-light);
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.filter-btn i {
    font-size: 1.2rem;
}

.filter-btn:hover {
    background: rgba(252, 198, 29, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--deep-blue), var(--dark-blue));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(51, 56, 160, 0.3);
    border-bottom: 3px solid var(--gold);
}

/* ===== MENU GRID SECTION ===== */
.menu-grid-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.menu-card {
    background: var(--text-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    animation: fadeUp 0.6s ease backwards;
}

.menu-card:nth-child(1) { animation-delay: 0.1s; }
.menu-card:nth-child(2) { animation-delay: 0.2s; }
.menu-card:nth-child(3) { animation-delay: 0.3s; }
.menu-card:nth-child(4) { animation-delay: 0.4s; }
.menu-card:nth-child(5) { animation-delay: 0.5s; }
.menu-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-card.hidden {
    display: none;
}

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

.menu-card.featured {
    border: 2px solid var(--gold);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--gold), #f0b800);
    color: var(--text-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(51, 56, 160, 0.1), rgba(252, 198, 29, 0.1));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-card:hover .card-image img {
    transform: scale(1.1) rotate(2deg);
}

.steam-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
    opacity: 0;
    transition: var(--transition);
}

.menu-card:hover .steam-effect {
    opacity: 1;
    animation: steam 2s ease infinite;
}

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

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.card-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.price {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-btn {
    background: linear-gradient(135deg, var(--gold), #f0b800);
    color: var(--text-dark);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(252, 198, 29, 0.3);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    font-size: 0.9rem;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
}

.add-btn i {
    font-size: 1rem;
}

/* ===== FAVORITES SECTION ===== */
.favorites-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--warm-cream) 0%, rgba(252, 198, 29, 0.05) 100%);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--deep-blue);
    text-align: center;
    margin-bottom: 3rem;
}

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

.favorite-card {
    background: var(--text-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--gold);
    transition: var(--transition);
}

.favorite-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.favorite-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.favorite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-content {
    padding: 1.5rem;
    text-align: center;
}

.stars {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.favorite-quote {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.customer-name {
    font-weight: 600;
    color: var(--deep-blue);
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-blue) 100%);
    padding: 5rem 2rem;
    text-align: center;
    overflow: hidden;
}

.floating-rice {
    position: absolute;
    font-size: 2rem;
    opacity: 0.2;
    animation: floatRice 15s ease-in-out infinite;
}

.grain-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.grain-2 {
    top: 20%;
    right: 15%;
    animation-delay: 3s;
}

.grain-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 6s;
}

.grain-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 9s;
}

@keyframes floatRice {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .filter-btn {
        font-size: 0.95rem;
        padding: 0.7rem 1.3rem;
    }
}

/* Mobile and Tablets */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
    
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .menu-hero {
        min-height: 50vh;
        padding: 5rem 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 90%;
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .filter-section {
        position: relative;
        top: 0;
        padding: 1rem 0;
    }
    
    .filter-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        flex: 0 0 auto;
    }
    
    .filter-btn i {
        font-size: 1rem;
    }
    
    .menu-grid-section {
        padding: 2rem 0 3rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }
    
    .card-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    
    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .price {
        font-size: 1.6rem;
        align-self: flex-start;
    }
    
    .add-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .menu-hero {
        min-height: 45vh;
        padding: 4.5rem 0.75rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 95%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .filter-section {
        padding: 0.75rem 0;
    }
    
    .filter-container {
        padding: 0 0.5rem;
        gap: 0.4rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .filter-btn span {
        display: none;
    }
    
    .filter-btn i {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .card-image {
        height: 140px;
    }
    
    .card-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
        top: 10px;
        right: 10px;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .card-description {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }
    
    .card-footer {
        gap: 0.5rem;
    }
    
    .price {
        font-size: 1.4rem;
    }
    
    .add-btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
    
    .add-btn i {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .menu-hero {
        padding: 4rem 0.5rem 1.25rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .filter-container {
        padding: 0 0.25rem;
        gap: 0.3rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.6rem;
    }
    
    .filter-btn i {
        font-size: 1.1rem;
    }
    
    .menu-grid {
        gap: 0.5rem;
    }
    
    .card-image {
        height: 120px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-description {
        font-size: 0.7rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
}

/* Large Screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* Ultra-wide Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1800px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== LOGIN MODAL ===== */
.login-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.login-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--deep-blue);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--deep-blue), var(--dark-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(51, 56, 160, 0.3);
}

.modal-content h2 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-modal {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-login {
    background: linear-gradient(135deg, var(--deep-blue), var(--dark-blue));
    color: white;
    flex: 1;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(51, 56, 160, 0.3);
}

.btn-cancel {
    background: #f0f0f0;
    color: #666;
    flex: 1;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
