/* Base styles and utilities */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Navigation styles */
.nav-link {
    color: rgb(75, 85, 99);
    position: relative;
}

.nav-link:hover {
    color: rgb(217, 119, 6);
}

.nav-link.active {
    color: rgb(217, 119, 6);
    border-bottom: 2px solid rgb(217, 119, 6);
}

.mobile-nav-link {
    color: rgb(75, 85, 99);
}

.mobile-nav-link:hover {
    color: rgb(217, 119, 6);
    background-color: rgb(249, 250, 251);
}

.mobile-nav-link.active {
    color: rgb(217, 119, 6);
    background-color: rgb(254, 243, 199);
}

/* Hero Section */
.hero-carousel {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-btn {
    transition: all 0.2s ease-in-out;
}

.hero-btn:hover {
    transform: scale(1.05);
}

.hero-btn:active {
    transform: scale(0.95);
}

.hero-dot {
    cursor: pointer;
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeInLeft 0.6s ease-out forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(20px);
    animation: fadeInRight 0.6s ease-out forwards;
}

.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }

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

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Menu Section */
.menu-category-btn {
    background-color: white;
    color: rgb(75, 85, 99);
    border: 1px solid rgb(209, 213, 219);
    transition: all 0.2s ease-in-out;
}

.menu-category-btn:hover {
    border-color: rgb(217, 119, 6);
    color: rgb(217, 119, 6);
    transform: scale(1.05);
}

.menu-category-btn:active {
    transform: scale(0.95);
}

.menu-category-btn.active {
    background-color: rgb(217, 119, 6);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: rgb(217, 119, 6);
}

.menu-item {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.4s ease-out forwards;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Contact Forms */
.tab-btn {
    color: rgb(75, 85, 99);
    transition: all 0.2s ease-in-out;
}

.tab-btn:hover {
    color: rgb(17, 24, 39);
}

.tab-btn.active {
    background-color: rgb(217, 119, 6);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tab-content {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.4s ease-out forwards;
}

.tab-content.slide-right {
    transform: translateX(20px);
    animation: slideInRight 0.4s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-input {
    transition: all 0.2s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgb(217, 119, 6);
}

.submit-btn {
    transition: all 0.2s ease-in-out;
}

.submit-btn:hover {
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Intersection Observer animation trigger */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Menu item stagger animation */
.menu-item:nth-child(1) { animation-delay: 0s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.2s; }
.menu-item:nth-child(4) { animation-delay: 0.3s; }
.menu-item:nth-child(5) { animation-delay: 0.4s; }
.menu-item:nth-child(6) { animation-delay: 0.5s; }

/* Success message animation */
.success-message {
    opacity: 0;
    transform: scale(0.9);
    animation: successPop 0.5s ease-out forwards;
}

@keyframes successPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile menu animation */
.mobile-menu-enter {
    opacity: 0;
    height: 0;
    animation: mobileMenuSlideDown 0.3s ease-out forwards;
}

.mobile-menu-exit {
    animation: mobileMenuSlideUp 0.3s ease-out forwards;
}

@keyframes mobileMenuSlideDown {
    to {
        opacity: 1;
        height: auto;
    }
}

@keyframes mobileMenuSlideUp {
    to {
        opacity: 0;
        height: 0;
    }
}

/* Header background on scroll */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fade-in-left,
    .fade-in-right {
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Menu category fade transition */
.menu-fade-exit {
    opacity: 1;
    transform: translateY(0);
    animation: fadeOut 0.2s ease-out forwards;
}

.menu-fade-enter {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

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

/* Loading states */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Image lazy loading effect */
.hero-slide img {
    transition: transform 0.8s ease-out;
}

.hero-slide.active img {
    transform: scale(1);
}

.hero-slide img {
    transform: scale(1.1);
}

/* Smooth transitions for all interactive elements */
button, a, input, select, textarea {
    transition: all 0.2s ease-in-out;
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgb(217, 119, 6);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(243, 244, 246);
}

::-webkit-scrollbar-thumb {
    background: rgb(217, 119, 6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(180, 83, 9);
}