@font-face {
    font-family: 'OswaldLight';

    src: url({% static 'fonts/static/CaveatVariableFont_wght.ttf' %}) format('truetype');
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'OswaldLight'!important;
    letter-spacing: 2px;
    font-size: 1.3rem;
    text-rendering: optimizeLegibility;
}

nav a {
    /* font-family: 'Ubuntu Condensed', sans-serif; */
    font-family: 'OswaldLight'!important;
    letter-spacing: -1px;
    font-size: 1.0rem;
    text-rendering: optimizeLegibility;
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-link-custom {
    position: relative;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.1rem;
    border-radius: 10px;
    color: #2c3e50 !important;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 10px;
}

.nav-link-custom::after {
    content: '🏐';
    position: absolute;
    top: 50%;
    left: -24px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    font-size: 16px;
    line-height: 1;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: none;
}

.nav-link-custom:hover::before {
    left: 0;
}

.nav-link-custom:hover::after {
    left: calc(100% + 12px);
    animation: rollBall 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rollBall {
    0% {
        transform: translateY(-50%) rotate(0deg);
        left: -12px;
    }
    100% {
        transform: translateY(-50%) rotate(900deg);
        left: calc(100% - 12px);
    }
}

.nav-link-custom:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.menu-category {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.menu-category::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.menu-category:hover::before {
    transform: scale(1);
}

.menu-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.category-header,
.menu-items {
    position: relative;
    z-index: 1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.category-icon.primary { background: var(--primary-gradient); }
.category-icon.secondary { background: var(--secondary-gradient); }
.category-icon.accent { background: var(--accent-gradient); }
.category-icon.dark { background: var(--dark-gradient); }

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-items {
    display: grid;
    gap: 1rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.menu-item:hover::before {
    left: 0;
}

.menu-item:hover {
    color: #2c3e50;
    text-decoration: none;
    transform: translateX(8px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.menu-item-icon,
.menu-item-content {
    position: relative;
    z-index: 1;
}

.menu-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1976d2;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.menu-item:hover .menu-item-icon {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.menu-item-content h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.menu-item-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.hero-section {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 2rem 0 0.1px 0;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 3pt;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .menu-category {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
}

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