/* Custom styles for The General's Lounge */

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

/* Clip diagonal for hero background */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Float animation for hero badge */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Navbar scroll state */
nav.scrolled {
    background: rgba(250, 247, 242, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

nav.scrolled a:not(.bg-terracotta-500) {
    color: #2C2C2C !important;
}

/* Mobile menu transitions */
#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobileMenu.close {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hamburger animation */
#mobileMenuBtn.active #bar1 {
    transform: translateY(8px) rotate(45deg);
}

#mobileMenuBtn.active #bar2 {
    opacity: 0;
}

#mobileMenuBtn.active #bar3 {
    transform: translateY(-8px) rotate(-45deg);
    width: 1.5rem;
}

/* Intersection Observer 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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Back to top button */
#backToTop.visible {
    opacity: 1 !important;
    pointer-events: all !important;
    transform: translateY(0) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #C06C4B;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #C06C4B;
    color: white;
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Image loading placeholder */
img {
    background-color: #f5ecda;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: polygon(0% 0, 100% 0, 100% 100%, 0% 100%);
    }
}
