/* Leisure Life Real Estate - Animations */

/* ===== SCROLL-TRIGGERED ANIMATIONS ===== */

/* Fade in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Slide in from left */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Slide in from right */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Scale in animation */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations for lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HOVER EFFECTS ===== */

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-info:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

/* Card hover effects */
.hover-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Image hover effects */
.col-image {
    transition: all 0.4s ease;
    cursor: pointer;
}

.col-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Contact info card hover */
.contact-info-card {
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Service card hover */
.service-card {
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 8px;
}

.service-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1);
}

/* ===== NAVIGATION ANIMATIONS ===== */

/* Navbar brand hover */
.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Navbar scroll effect */
.navbar {
    transition: all 0.3s ease;
}

.navbar-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Nav links hover */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

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

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

/* Dropdown animation */
.dropdown-menu {
    transition: all 0.3s ease;
    transform-origin: top;
    opacity: 0;
    transform: scaleY(0);
}

.dropdown-menu.show {
    opacity: 1;
    transform: scaleY(1);
}

/* ===== FORM ANIMATIONS ===== */

/* Form field focus effects */
.form-control, .form-select {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.form-control:focus, .form-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 202, 240, 0.2);
    border-color: #0dcaf0;
}

/* Form validation animations */
.form-control.is-valid {
    animation: validPulse 0.6s ease;
}

.form-control.is-invalid {
    animation: invalidShake 0.6s ease;
}

@keyframes validPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes invalidShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Submit button loading animation */
.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== HERO SECTION ANIMATIONS ===== */

/* Header title animation */
.header-title {
    animation: titleReveal 1.2s ease-out 0.3s both;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header subtitle animation */
.header-subtitle {
    animation: subtitleReveal 1.2s ease-out 0.6s both;
}

@keyframes subtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon grid floating animation */
.header-icon-grid {
    animation: float 6s ease-in-out infinite;
}

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

/* ===== BANNER ANIMATIONS ===== */

/* Banner wrapper animations */
.banner-wrap-1, .banner-wrap-2, .banner-wrap-3 {
    transition: all 0.5s ease;
}

.banner-wrap-1:hover {
    transform: scale(1.02);
}

.banner-wrap-2:hover {
    transform: scale(1.01);
}

/* ===== LIST ANIMATIONS ===== */

/* Staggered list animation */
.activity-list-columns ul li,
.clubs-cols ul li {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.activity-list-columns ul li.animate,
.clubs-cols ul li.animate {
    opacity: 1;
    transform: translateX(0);
}

/* ===== FOOTER ANIMATIONS ===== */

/* Footer logo hover */
.footer-logo {
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
}

/* Social icons hover */
.footer .d-inline-flex a {
    transition: all 0.3s ease;
}

.footer .d-inline-flex a:hover {
    transform: translateY(-3px) scale(1.2);
    color: #0dcaf0 !important;
}

/* ===== RESPONSIVE ANIMATIONS ===== */

@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .fade-in, .slide-in-left, .slide-in-right {
        transform: translateY(15px);
    }
    
    .col-image:hover {
        transform: scale(1.02);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== LOADING STATES ===== */

/* Page load animations */
.page-loading {
    opacity: 0;
    animation: pageLoad 0.8s ease-out forwards;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
} 