/* Custom styles for Brooks Cafe */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #1f2329;
}
::-webkit-scrollbar-thumb {
    background: #ef4444;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Hero animations */
.hero-title {
    animation: fadeInUp 0.8s ease forwards;
}
.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}
.hero-desc {
    animation: fadeInUp 0.8s ease 0.4s forwards;
}
.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s forwards;
}
.hero-image-wrapper {
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(15, 18, 22, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-logo-text {
    color: #ffffff !important;
}

.nav-scrolled .nav-link {
    color: #a1a5aa !important;
}

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

.mobile-menu-open .mobile-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-open .mobile-menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-open .mobile-menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Menu card hover effect */
.menu-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.15);
}

/* Gallery item hover */
.gallery-item {
    position: relative;
    overflow: hidden;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 35, 41, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* About images animation */
.about-img-1 { animation: slideInLeft 0.8s ease 0.2s forwards; opacity: 0; transform: translateX(-30px); }
.about-img-2 { animation: slideInLeft 0.8s ease 0.4s forwards; opacity: 0; transform: translateX(-30px); }
.about-img-3 { animation: slideInRight 0.8s ease 0.3s forwards; opacity: 0; transform: translateX(30px); }
.about-img-4 { animation: slideInRight 0.8s ease 0.5s forwards; opacity: 0; transform: translateX(30px); }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Stat counter animation */
.stat-item {
    position: relative;
}
.stat-item::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ef4444;
    transition: width 0.4s ease;
}
.stat-item:hover::after {
    width: 100%;
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Button ripple effect */
button {
    position: relative;
    overflow: hidden;
}
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}
button:active::after {
    width: 300px;
    height: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem !important;
    }
    
    .hero-image-wrapper {
        margin-top: 2rem;
    }
    
    .floating-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
    }
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .gallery-item {
        display: none;
    }
}
