/* ============================================
   Rere's Cafe — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

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

body {
    background-color: #070e0a;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #070e0a;
}
::-webkit-scrollbar-thumb {
    background: #c9a84c33;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c9a84c66;
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #f5f0e8;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(7, 14, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #c9a84c !important;
}

/* ---------- Mobile Menu ---------- */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ---------- Menu Lines ---------- */
.menu-line {
    display: block;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
    margin-right: 0;
}

/* ---------- Scroll Indicator ---------- */
@keyframes scrollLine {
    0% {
        height: 0;
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        height: 40px;
        opacity: 1;
    }
    100% {
        height: 40px;
        opacity: 0;
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

.animate-scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.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; }

/* ---------- Hover Image Tilt ---------- */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Button Press Effect ---------- */
button[type="submit"]:active {
    transform: scale(0.98);
}

/* ---------- Form Focus ---------- */
input:focus,
textarea:focus,
select:focus {
    background: rgba(13, 22, 16, 0.8);
}

/* ---------- Select Arrow ---------- */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }

    #contact-form .grid {
        grid-template-columns: 1fr;
    }
}

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

    .font-display.text-4xl {
        font-size: 2.25rem;
    }
}
