/* ===================================
   Red Lounge — Custom Styles
   =================================== */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(160, 67, 46, 0.2);
    color: #2C1810;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FAF5F0;
}
::-webkit-scrollbar-thumb {
    background: #D9B078;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A0432E;
}

/* ===================================
   Navbar
   =================================== */
#navbar {
    background: rgba(250, 245, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 24, 16, 0.06);
}

#navbar.scrolled {
    background: rgba(250, 245, 240, 0.95);
    box-shadow: 0 1px 20px rgba(44, 24, 16, 0.06);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu button */
.menu-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 1.5px;
    background: #2C1810;
    transition: all 0.3s ease;
}

#menu-btn.active .menu-line.top-3 {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

#menu-btn.active .menu-line.top-1/2 {
    opacity: 0;
}

#menu-btn.active .menu-line.bottom-3 {
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

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

/* ===================================
   Hero Animations
   =================================== */
.hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.2s; }
.hero-anim:nth-child(3) { animation-delay: 0.3s; }
.hero-anim:nth-child(4) { animation-delay: 0.4s; }
.hero-anim:nth-child(5) { animation-delay: 0.5s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll line animation */
@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

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

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

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

/* Stagger children */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

/* ===================================
   Form styles */
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='%232C1810' 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;
}

/* ===================================
   Reduced motion
   =================================== */
@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 {
        opacity: 1;
        transform: none;
    }
}

/* ===================================
   Tablet
   =================================== */
@media (max-width: 768px) {
    .font-serif {
        word-spacing: -0.02em;
    }
}

/* ===================================
   Mobile
   =================================== */
@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
