/* Custom Styles for Downtown Uncorked Winebar */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #faf8f5;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #faf8f5;
}

::-webkit-scrollbar-thumb {
    background: #d95a35;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c44525;
}

/* Navbar Styles */
#navbar {
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(26, 26, 26, 0.08);
}

/* Mobile Menu */
.mobile-menu-line {
    transition: all 0.3s ease;
}

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

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

#mobile-menu-btn.active .mobile-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 3s ease-in-out infinite 1.5s;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    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;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.bg-white.rounded-3xl {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-white.rounded-3xl:hover {
    transform: translateY(-5px);
}

/* Image Hover Effects */
.rounded-2xl.overflow-hidden img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form Styles */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    transform: translateY(-2px);
}

/* Back to Top Button */
#back-to-top {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-3px);
}

/* Mobile Menu Link Styles */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
    transition: all 0.3s ease;
}

/* 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;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    h2 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid #d95a35;
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: #f7c6b8;
    color: #1a1a1a;
}

::-moz-selection {
    background: #f7c6b8;
    color: #1a1a1a;
}
