/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

/* Element Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fade-in {
    animation-name: fadeIn;
}

.slide-in-left {
    animation-name: slideInLeft;
}

.slide-in-right {
    animation-name: slideInRight;
}

.slide-in-up {
    animation-name: slideInUp;
}

.scale-in {
    animation-name: scaleIn;
}

/* Delay Classes */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Button Hover Effects */
.btn-hover-float {
    transition: transform 0.3s ease;
}

.btn-hover-float:hover {
    transform: translateY(-5px);
}

/* Image Hover Effects */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.05);
}

/* Card Hover Effects */
.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Animated Counter */
.counter {
    transition: color 0.3s ease;
}

.counter.highlighted {
    color: var(--secondary-color);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Hero Slider Animation */
.hero-slide {
    animation: fadeIn 1.5s ease;
}

.hero-content h1 {
    animation: slideInLeft 1s ease 0.5s both;
}

.hero-content p {
    animation: slideInLeft 1s ease 0.7s both;
}

.hero-content .btn {
    animation: slideInLeft 1s ease 0.9s both;
}

/* Mobile Menu Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Form Field Animation */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
    top: 0;
    left: 10px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    background-color: white;
    padding: 0 5px;
    color: var(--primary-color);
}

/* Floating Images Effect */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

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

/* Continuous Subtle Animation */
.subtle-pulse {
    animation: pulse 3s infinite;
}

/* Logo Animation */
.logo img {
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Social Icons Animation */
.social-link {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) rotate(5deg);
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter.animated {
    animation: countUp 1s ease forwards;
}

/* House Cards Staggered Animation */
.houses-grid .house-card:nth-child(1) {
    animation-delay: 0.1s;
}

.houses-grid .house-card:nth-child(2) {
    animation-delay: 0.2s;
}

.houses-grid .house-card:nth-child(3) {
    animation-delay: 0.3s;
}

.houses-grid .house-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Advantage Cards Staggered Animation */
.advantages-grid .advantage-item:nth-child(1) {
    animation-delay: 0.1s;
}

.advantages-grid .advantage-item:nth-child(2) {
    animation-delay: 0.2s;
}

.advantages-grid .advantage-item:nth-child(3) {
    animation-delay: 0.3s;
}

.advantages-grid .advantage-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* Infrastructure Items Staggered Animation */
.infrastructure-list .infrastructure-item:nth-child(1) {
    animation-delay: 0.1s;
}

.infrastructure-list .infrastructure-item:nth-child(2) {
    animation-delay: 0.2s;
}

.infrastructure-list .infrastructure-item:nth-child(3) {
    animation-delay: 0.3s;
}

.infrastructure-list .infrastructure-item:nth-child(4) {
    animation-delay: 0.4s;
} 