/* ========================================
   Durand's Cafe — Custom Styles
   Burgundy + Blush · Vibrant Modern
   ======================================== */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #FFF8F5;
    color: #3c0818;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FFF8F5;
}
::-webkit-scrollbar-thumb {
    background: #851533;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a11636;
}

/* ========================================
   Hero Geometric Shapes
   ======================================== */
.hero-shape {
    position: absolute;
    pointer-events: none;
}

.shape-circle-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 128, 128, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    bottom: -5%;
    left: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 179, 179, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-rect-1 {
    top: 20%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: rgba(255, 77, 77, 0.08);
    border-radius: 24px;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.shape-triangle {
    bottom: 25%;
    right: 15%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 128, 128, 0.07);
    animation: float 6s ease-in-out infinite;
}

.shape-dots {
    top: 40%;
    left: 3%;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, rgba(255, 179, 179, 0.3) 2px, transparent 2px);
    background-size: 16px 16px;
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
    background: rgba(255, 248, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(133, 21, 51, 0.08);
    transition: all duration-500;
}

#navbar.scrolled {
    background: rgba(255, 248, 245, 0.98);
    box-shadow: 0 4px 30px rgba(60, 8, 24, 0.08);
}

.nav-link {
    position: relative;
}

/* Mobile Menu */
.mobile-link {
    position: relative;
}

/* ========================================
   Menu Cards
   ======================================== */
.menu-card {
    position: relative;
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #851533, #ff8080, #851533);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.menu-card:hover::before {
    opacity: 1;
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* ========================================
   Gallery Items
   ======================================== */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(60, 8, 24, 0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ========================================
   Scroll Reveal Animations
   (Progressive Enhancement — content is visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .shape-circle-2 {
        width: 180px;
        height: 180px;
    }
    
    .shape-rect-1 {
        width: 60px;
        height: 60px;
    }
    
    .shape-triangle {
        display: none;
    }
}

/* ========================================
   Focus Styles
   ======================================== */
a:focus-visible,
button:focus-visible {
    outline: 3px solid #ff8080;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ========================================
   Selection
   ======================================== */
::selection {
    background: rgba(133, 21, 51, 0.2);
    color: #3c0818;
}
