/* Custom Styles for Robe Hotel */

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

/* Custom Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.animate-float-delayed {
    animation: float-delayed 4s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in-up-delay {
    animation: fade-in-up 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-up-delayed {
    animation: fade-in-up 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fade-in-up-delayed-2 {
    animation: fade-in-up 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Button Styles */
.btn-primary {
    @apply bg-burgundy-800 text-white px-8 py-4 rounded-full font-semibold 
           hover:bg-burgundy-700 transition-all duration-300 
           hover:shadow-lg hover:shadow-burgundy-500/25 
           hover:-translate-y-0.5 inline-flex items-center;
}

.btn-secondary {
    @apply bg-transparent text-burgundy-800 px-8 py-4 rounded-full font-semibold 
           border-2 border-burgundy-800 hover:bg-burgundy-800 hover:text-white 
           transition-all duration-300 inline-flex items-center;
}

/* Room Card */
.room-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(134, 19, 56, 0.15);
}

/* Amenity Card */
.amenity-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.amenity-card:hover {
    transform: translateY(-4px);
}

/* Navigation */
.nav-link {
    position: relative;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(255, 250, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(134, 19, 56, 0.1);
}

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #861338;
    transition: width 0.3s ease;
}

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

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

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

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

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

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

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

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

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

/* Selection */
::selection {
    background: #fce7eb;
    color: #701533;
}

/* Focus Styles */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(134, 19, 56, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-scroll {
        animation-duration: 20s;
    }
}
