:root {
    --primary-color: #8B5CF6;
    --secondary-color: #A855F7;
    --accent-color: #db2777;
    --dark-color: #1F2937;
    --light-color: #F8FAFC;
    --danger-color: #EF4444;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Minimal Pink Hamburger Navigation */
.minimal-nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger-menu {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B5CF6 0%, #db2777 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.hamburger-menu:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #be185d 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.hamburger-menu span {
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

.hamburger-menu:hover span {
    background: white;
}

/* Offcanvas Menu Styling */
.offcanvas {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.offcanvas-body .nav-link {
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(219, 39, 119, 0.2) 100%);
    color: #8B5CF6;
}

.offcanvas-body .badge {
    background: linear-gradient(135deg, #8B5CF6 0%, #db2777 100%) !important;
}

/* Full-height Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 0; /* Remove any top margin */
}

.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: opacity;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
    z-index: 4;
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 5;
}

.hero-prev,
.hero-next {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.hero-logo {
    max-width: 360px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Hero tagline styling */
.hero-section .lead {
    font-size: 1.1rem;
}

/* Dynamic font support */
body {
    font-family: var(--font-family);
}

/* Purple-Pink Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #db2777 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #be185d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #8B5CF6;
    color: #8B5CF6;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #8B5CF6 0%, #db2777 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

/* Menu buttons styling */
.card .btn-primary,
.menu-item .btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #db2777 100%);
    border: none;
    font-weight: 600;
}

/* Bootstrap component overrides */
.bg-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #db2777 100%) !important;
}

/* Responsive hero adjustments */
@media (max-width: 768px) {
    .hero-nav {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .hero-logo {
        max-width: 150px;
    }
}

/* Bootstrap color overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-logo {
    height: 55px;
    width: auto;
    max-width: 280px;
}

.hero-logo {
    height: 240px;
    width: auto;
    max-width: 720px;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.3));
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(168, 85, 247, 0.2) 100%);
    display: flex;
    align-items: center;
}

.hero-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
}

.hero-prev, .hero-next {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-prev:hover, .hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Menu Items */
.menu-item-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .card-img-container img {
    transform: scale(1.05);
}

/* Cart Items */
.cart-item {
    transition: background-color 0.2s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.flash-messages .alert {
    margin-bottom: 0;
    border-radius: 0;
}

/* Admin Styles */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: calc(100vh - 76px);
}

.admin-sidebar .nav-link {
    color: #9CA3AF;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #374151;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: var(--primary-color);
}

/* Service Icons */
.service-icon {
    transition: transform 0.3s ease;
}

.service-icon:hover {
    transform: translateY(-10px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #111827 100%);
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Custom Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .hero-nav {
        bottom: 20px;
        right: 20px;
    }
    
    .hero-prev, .hero-next {
        width: 40px;
        height: 40px;
    }
    
    .card-img-container {
        height: 150px;
    }
    
    .navbar-logo {
        height: 45px;
        max-width: 200px;
    }
    
    .hero-logo {
        height: 120px;
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .hero-nav, .btn, .flash-messages {
        display: none !important;
    }
    
    .hero-section {
        height: auto;
        min-height: 200px;
    }
    
    .menu-item-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .menu-item-card,
    .service-icon,
    .card-img-container img {
        transition: none;
    }
    
    .hero-prev:hover,
    .hero-next:hover {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #374151;
        border-color: #4B5563;
    }
    
    .card-body {
        color: #F9FAFB;
    }
    
    .text-muted {
        color: #9CA3AF !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-primary:hover {
        background-color: #333;
        border-color: #333;
    }
    
    .text-primary {
        color: #000 !important;
    }
}
