/* ========== BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* ========== NAVBAR ========== */
.navbar {
    background: rgba(250, 245, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91, 44, 111, 0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(250, 245, 255, 0.97);
    box-shadow: 0 4px 30px rgba(91, 44, 111, 0.1);
}

.navbar-brand-text {
    transition: color 0.2s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

/* Mobile menu */
.mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    padding: 8px 0;
    border-bottom: 1px solid rgba(91, 44, 111, 0.08);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #5B2C6F;
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.btn-primary:hover {
    background: #4a1d5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 44, 111, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #5B2C6F;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid #5B2C6F;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.btn-secondary:hover {
    background: #5B2C6F;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 44, 111, 0.2);
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(135deg, #faf5ff 0%, #fef3c7 50%, #f3e8ff 100%);
    position: relative;
}

.hero-blob {
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    animation-delay: 0s;
}

.blob-2 {
    animation-delay: -3s;
}

.blob-3 {
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-10px, 15px) scale(0.95);
    }
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 8px);
    }
}

/* ========== SECTIONS ========== */
.section-about,
.section-menu,
.section-vibe,
.section-visit,
.section-contact {
    position: relative;
}

/* ========== REVEAL ANIMATIONS (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

    /* Hidden by default for JS-enhanced reveal */
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(30px);
    }

    .reveal[data-reveal].revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback: always visible if JS disabled */
.reveal {
    opacity: 1;
    transform: none;
}

/* ========== MENU CARDS ========== */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ========== VIBE CARDS ========== */
.vibe-card {
    transition: transform 0.3s ease, background 0.3s ease;
}

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

/* ========== INPUT FIELDS ========== */
.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9d5ff;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    color: #3b1450;
    background: #faf5ff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: #a855f7;
    opacity: 0.5;
}

.input-field:hover {
    border-color: #c084fc;
    background: #fff;
}

.input-field:focus {
    border-color: #5B2C6F;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(91, 44, 111, 0.1);
}

/* ========== FOOTER ========== */
.footer-blob {
    animation: float 10s ease-in-out infinite;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
    .hero {
        padding-top: 100px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        order: -1;
    }

    .section-about,
    .section-menu,
    .section-vibe,
    .section-visit,
    .section-contact {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .section-about h2,
    .section-menu h2,
    .section-vibe h2,
    .section-visit h2,
    .section-contact h2 {
        font-size: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .section-about h2,
    .section-menu h2,
    .section-vibe h2,
    .section-visit h2,
    .section-contact h2 {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible for keyboard nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
    border-radius: 4px;
}
