/* Custom styles for Atwell Suites Miami Brickell */

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

/* Hero entrance animations */
.hero-elem {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease forwards;
}

.hero-elem:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-elem:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-elem:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-elem:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animations for scroll sections */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.hidden-reveal {
    opacity: 0;
    transform: translateY(40px);
}

/* Mobile menu animations */
.mobile-nav-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.mobile-menu-open .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }

/* Navbar transitions */
.nav-logo {
    transition: color 0.3s ease;
}

.nav-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .hero-elem,
    .reveal,
    .mobile-nav-link {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .overflow-hidden img {
        transition: none;
    }
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-bottom-color: #ffad24 !important;
}

/* Button hover effects */
button[type="submit"]:hover {
    transform: translateY(-1px);
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}
