/* ============================================
   AG VIEW FS CAFE 40 — Custom Styles
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0005;
}
::-webkit-scrollbar-thumb {
    background: #800020;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a51a42;
}

/* Selection */
::selection {
    background: #ff80a3;
    color: #3a000d;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(26, 0, 5, 0.92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============================================
   MOBILE NAV
   ============================================ */
#mobile-nav.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff80a3;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(26, 0, 5, 0.92) 0%,
        rgba(26, 0, 5, 0.75) 50%,
        rgba(26, 0, 5, 0.45) 100%
    );
}

/* Hero shapes animation */
.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
    animation-delay: 0s;
}

.hero-shape-2 {
    animation-delay: -2s;
    animation-duration: 8s;
}

.hero-shape-3 {
    animation-delay: -4s;
    animation-duration: 7s;
}

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

/* Hero badge pulse */
.hero-badge {
    animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 128, 163, 0.2); }
    50% { box-shadow: 0 0 20px 4px rgba(255, 128, 163, 0.15); }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger children */
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.2s; }
.reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-shape {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   MENU CARDS
   ============================================ */
.menu-card {
    transform: translateY(0);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -20px rgba(255, 128, 163, 0.15);
}

/* ============================================
   BUTTONS
   ============================================ */
a, button {
    cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .font-display {
        font-weight: 700;
    }

    #hero h1 {
        font-size: 3.5rem;
    }

    .hero-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    .max-w-7xl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
