:root {
    /* iOS Core Palette - Light (Default) */
    --primary-electric: #FF4D00;
    --primary-gradient: linear-gradient(135deg, #FF4D00 0%, #FF9000 100%);
    --secondary-deep: #0F0F1A;
    --text-main: #1d1d1f;
    --text-dim: #515154; /* Darker for better contrast in light mode */
    --bg-white: #f5f5f7;
    --card-bg: rgba(255, 255, 255, 0.9); /* More opaque */
    
    /* Glassmorphism System - Vibrant */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(25px) saturate(200%); /* Increased saturation */
    --btn-glass: rgba(0, 0, 0, 0.05);
    
    /* Precision Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --section-pad: 5rem;
    
    /* Diffuse Shadows */
    --shadow-diffuse: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-high: 0 20px 50px rgba(0, 0, 0, 0.12);
    
    /* Standardized Component Heights */
    --input-height: 50px;
    --btn-height: 50px;
    
    --transition-ios: all 0.4s cubic-bezier(0.15, 0, 0.15, 1);
}

/* Dark Mode Overrides - Deeper/Richer */
[data-theme="dark"] {
    --text-main: #ffffff;
    --text-dim: #a1a1a6;
    --bg-white: #000000;
    --card-bg: rgba(22, 22, 23, 0.92);
    --secondary-deep: #ffffff;
    
    --glass-bg: rgba(28, 28, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.15);
    --btn-glass: rgba(255, 255, 255, 0.1);
    
    --shadow-diffuse: 0 8px 32px rgba(0,0,0,0.8);
}

[data-theme="dark"] .mobile-nav-toggle { color: #f5f5f7 !important; }
[data-theme="dark"] .drawer-overlay { background: rgba(0, 0, 0, 0.6); }
[data-theme="dark"] .navbar-brand { color: #f5f5f7 !important; }
[data-theme="dark"] body::after { background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%); }

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

/* Atmospheric Background Spots */
body::before {
    content: "";
    position: fixed;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* iOS-Style Typography */
h1 { font-size: 3.2rem; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1; }
h2 { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.8px; line-height: 1.2; }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; }

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar - Sleeker */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-fast);
    background: transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 0.8rem 8%;
    border-bottom: 0.5px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar.scrolled .navbar-brand, 
.navbar.scrolled .nav-links a,
.navbar.scrolled .theme-toggle,
.navbar.scrolled .mobile-nav-toggle {
    color: var(--text-main);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: white;
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
    letter-spacing: -0.2px;
}

.theme-toggle {
    background: var(--btn-glass);
    border: 0.5px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: white; /* White by default for hero */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-ios);
}

.nav-links a:hover { color: var(--primary-electric); }

/* Glassy Buttons - Pure iOS Style */
.btn-electric {
    background: rgba(255, 77, 0, 0.82); /* Increased for more punch */
    color: white !important;
    height: var(--btn-height);
    padding: 0 2rem;
    border-radius: 50px; /* Fully rounded pill shape */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition-ios);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.15);
}

.btn-electric:hover {
    background: rgba(255, 77, 0, 0.9);
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 77, 0, 0.25);
}

/* Theme toggle styles moved up to navbar section */

.theme-toggle:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

/* Hero Section - Immersive/Compact */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(15, 15, 26, 0.7), rgba(15, 15, 26, 0.7)), url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1.5rem 0 2.5rem;
    opacity: 0.8;
}

/* Compact Sections */
.section {
    padding: var(--section-pad) 10%;
}

.section-head {
    text-align: center;
    margin-bottom: 4rem;
}

/* Cards - Scaled Down */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Food Cards - REDESIGNED FROM SCRATCH (Clean Stacked Layout) */
.item-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-diffuse);
    transition: var(--transition-ios);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-high);
}

.item-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 0.5px solid var(--glass-border);
}

.item-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
}

.item-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
    text-shadow: none; /* Removed text shadow for clean look */
}

/* Bottom action bar */
.item-footer {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: auto;
}

.item-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-electric);
    letter-spacing: -0.02em;
}

.item-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.item-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-text {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border-radius: 50px; /* Fully rounded pill shape */
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-ios);
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text.btn-detail {
    background: var(--btn-glass);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-text.btn-detail:hover {
    background: rgba(255, 255, 255, 0.4);
}

.btn-text.btn-order {
    background: rgba(255, 77, 0, 0.82);
    color: white !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.15);
}

.btn-text.btn-order:hover {
    background: rgba(255, 77, 0, 0.9);
    transform: scale(1.03) translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 77, 0, 0.25);
}

.category-nav {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem;
    gap: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    max-width: 90%;
    margin: 0 auto 3rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE */
    justify-content: flex-start;
}

.category-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

@media (max-width: 768px) {
    .category-nav {
        max-width: 100%;
        width: 100%;
        border-radius: 16px;
        margin: 0 0 3rem 0 !important;
        padding: 0.5rem !important;
        border: 1px solid var(--glass-border);
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        gap: 0.4rem;
    }

    /* Spacer to ensure last item is fully visible on scroll */
    .category-nav::after {
        content: "";
        flex: 0 0 0.5rem;
    }
}

@media (min-width: 769px) {
    .category-nav {
        max-width: fit-content;
        justify-content: center;
    }
}

.category-tab {
    padding: 0.7rem 1.6rem;
    border-radius: 40px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition-ios);
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0; /* Prevent items from shrinking */
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.category-tab.active {
    background: var(--primary-gradient);
    color: white !important;
    box-shadow: 0 4px 12px rgba(255, 77, 0, 0.2);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-ios);
    box-shadow: var(--shadow-diffuse);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: var(--primary-electric);
    color: white;
    border-color: var(--primary-electric);
}

/* Pagination - Professional Styling */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

/* Laravel & Custom Pagination - Glass Aesthetic */
ul.pagination, .pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

ul.pagination li.page-item, .pagination li {
    display: inline-block;
}

ul.pagination li.page-item a.page-link,
ul.pagination li.page-item span.page-link,
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 1rem;
    border-radius: 50px; /* Fully rounded */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 0.5px solid var(--glass-border);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-ios);
}

ul.pagination li.page-item a.page-link:hover,
.pagination a:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: black;
}

ul.pagination li.page-item.active span.page-link,
.pagination .active span {
    background: var(--primary-gradient);
    color: white !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

ul.pagination li.page-item.disabled span.page-link,
.pagination .disabled span {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
/* Modal Styles - Glass - Ultra Clean */
/* Modal Styles - Complete Theme Fix */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: var(--glass-blur); /* Use system glass blur */
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    width: 90%;
    max-width: 550px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-high);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: white;
    background: rgba(15,15,26,0.5);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-body {
    padding: 2.5rem;
}

/* Footer - Glass - Ultra Clean */
.footer-sleek {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-dim);
    padding: 5rem 10% 2.5rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand h2 { 
    color: var(--text-main); 
    font-size: 1.5rem; 
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.footer-col h4 { 
    color: var(--text-main); 
    margin-bottom: 1.5rem; 
    font-size: 0.85rem;
    font-weight: 700;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-dim); text-decoration: none; transition: 0.2s; font-size: 0.9rem; font-weight: 500; }
.footer-links a:hover { color: var(--primary-electric); }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

/* Mobile Navigation Drawer */
.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: white; /* White by default for hero */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.navbar.scrolled .mobile-nav-toggle { color: var(--text-main); }

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 1050;
    padding: 6rem 2rem;
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-left: 1px solid var(--glass-border);
}

.mobile-drawer.active { right: 0; }

.mobile-drawer .navbar-brand {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.mobile-drawer a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.mobile-drawer .btn-electric {
    width: fit-content;
    align-self: center;
    font-size: 0.85rem;
    padding: 0.7rem 1.8rem;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    h1 { font-size: 3.2rem; }
    .section { padding: 5rem 5%; }
}

@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .navbar { padding: 1rem 5%; }
    .navbar.scrolled { padding: 0.7rem 5%; }
}

@media (max-width: 768px) {
    /* Navbar Mobile */
    .nav-links, .navbar .btn-electric { display: none; }
    .mobile-nav-toggle { display: block; }
    
    /* Hero Mobile */
    .hero { height: auto; min-height: 80vh; padding: 120px 5% 60px; }
    h1 { font-size: 2.4rem; letter-spacing: -1px; }
    .hero p { font-size: 1rem; }
    .hero .reveal[style*="display: flex"] { flex-direction: column; width: 100%; gap: 1rem; }
    
    /* Grids & Layouts */
    .card-grid { grid-template-columns: 1fr; }
    .section { padding: 4rem 5%; }
    .section-head { margin-bottom: 2.5rem; }
    
    /* Narrative & Catering Grid */
    div[style*="grid-template-columns: 1.2fr 1fr"],
    div[style*="grid-template-columns: 1fr 1.2fr"] { grid-template-columns: 1fr !important; gap: 3rem !important; }
    
    /* Contact Page Grid */
    div[style*="grid-template-columns: 1fr 1.5fr"] { grid-template-columns: 1fr !important; gap: 4rem !important; }
    .reveal[style*="padding: 4rem"] { padding: 2rem !important; }
    
    /* Visual Strip / Gallery */
    div[style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: 1fr 1fr !important; height: auto !important; }
    div[style*="height: 350px"] { height: auto !important; }
    div[style*="height: 350px"] > div { height: 200px !important; }
    
    /* Footer Mobile */
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-brand, .footer-col, .footer-bottom { text-align: center; align-items: center; }
    .footer-brand div { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .item-img { height: 180px; }
    .btn-electric { width: 100%; justify-content: center; }
}
