/* Custom styles for Central Tower Building */

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

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

@keyframes float-delay {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

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

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 250, 246, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px rgba(127, 34, 34, 0.08) !important;
}

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

.nav-scrolled .font-display {
    color: #7f2222 !important;
}

.nav-scrolled .text-burgundy-500 {
    color: #9a2626 !important;
}

/* Mobile menu animation */
.mobile-link {
    transform: translateX(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.open .mobile-link {
    transform: translateX(0);
    opacity: 1;
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9a2626;
}

/* Selection color */
::selection {
    background: #f9d0d0;
    color: #3a0e0e;
}
