/* Highland Domes - Animations CSS */

/* AOS Animation Overrides */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Custom Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease-out;
}

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

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

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

/* Hero Animations */
.hero-logo {
    animation: logoFloat 6s ease-in-out infinite;
}

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

.hero-title {
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(179, 146, 54, 0.3);
    }
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #b39236;
    background: -webkit-linear-gradient(135deg, #b39236 0%, #9a7d2e 100%);
    background: linear-gradient(135deg, var(--gold) 0%, #9a7d2e 100%);
    border: none;
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2E5651;
    background: -webkit-linear-gradient(135deg, #2E5651 0%, #1d3b37 100%);
    background: linear-gradient(135deg, var(--dark-green) 0%, #1d3b37 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

/* Card Hover Animations */
.dome-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dome-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dome-image {
    overflow: hidden;
}

.dome-image img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dome-card:hover .dome-image img {
    transform: scale(1.15) rotate(2deg);
}

.dome-overlay {
    background: rgba(46, 86, 81, 0.85);
    background: -webkit-linear-gradient(135deg, rgba(46, 86, 81, 0.9) 0%, rgba(140, 175, 180, 0.8) 100%);
    background: linear-gradient(135deg, rgba(46, 86, 81, 0.9) 0%, rgba(140, 175, 180, 0.8) 100%);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Gallery Animations */
.gallery-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.05);
    z-index: 10;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.2);
}

.gallery-overlay {
    background: rgba(46, 86, 81, 0.92);
    background: -webkit-linear-gradient(135deg, rgba(46, 86, 81, 0.95) 0%, rgba(140, 175, 180, 0.9) 100%);
    background: linear-gradient(135deg, rgba(46, 86, 81, 0.95) 0%, rgba(140, 175, 180, 0.9) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Navigation Animations */
.navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(179, 146, 54, 0.1), transparent);
    transition: left 0.5s;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

/* Form Animations */
.form-control,
.form-select {
    transition: all 0.3s ease;
    position: relative;
}

.form-control:focus,
.form-select:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(179, 146, 54, 0.15);
}

.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.44 1.44 3.1-3.1.94.94-4.04 4.04z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Loading Animations */
.loading {
    position: relative;
    overflow: hidden;
}

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

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

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

.parallax-slow {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
}

/* Scroll Indicator Animation */
.scroll-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Feature Item Animations */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item i {
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2) rotate(10deg);
    background: var(--dark-green);
}

/* Amenity Animations */
.amenity {
    transition: all 0.3s ease;
}

.amenity:hover {
    transform: translateX(5px);
    color: var(--gold);
}

.amenity i {
    transition: all 0.3s ease;
}

.amenity:hover i {
    transform: scale(1.1);
    background: var(--gold);
}

/* Social Link Animations */
.social-link {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(179, 146, 54, 0.3);
}

/* Modal Animations */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Filter Button Animations */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: #2E5651;
    background: -webkit-linear-gradient(135deg, #2E5651 0%, #1d3b37 100%);
    background: linear-gradient(135deg, var(--dark-green) 0%, #1d3b37 100%);
    box-shadow: 0 4px 15px rgba(46, 86, 81, 0.3);
}

/* Map Pin Animation */
.map-pin {
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(179, 146, 54, 0.7);
    }
    70% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 0 10px rgba(179, 146, 54, 0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(179, 146, 54, 0);
    }
}

/* Experience Block Animations */
.experience-block {
    position: relative;
    overflow: hidden;
}

.experience-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.8s ease;
}

.experience-block:hover::before {
    left: 100%;
}

/* Footer Animations */
.footer-nav a {
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

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

/* Logo Rotation Animation */
.navbar-brand .logo {
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo {
    animation: logoRotate 0.6s ease-in-out;
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

/* Stagger Animation for Lists */
.attraction-list li,
.wildlife-list li,
.activity-list li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInStagger 0.6s ease forwards;
}

.attraction-list li:nth-child(1) { animation-delay: 0.1s; }
.attraction-list li:nth-child(2) { animation-delay: 0.2s; }
.attraction-list li:nth-child(3) { animation-delay: 0.3s; }
.attraction-list li:nth-child(4) { animation-delay: 0.4s; }

.wildlife-list li:nth-child(1) { animation-delay: 0.1s; }
.wildlife-list li:nth-child(2) { animation-delay: 0.2s; }
.wildlife-list li:nth-child(3) { animation-delay: 0.3s; }
.wildlife-list li:nth-child(4) { animation-delay: 0.4s; }

.activity-list li:nth-child(1) { animation-delay: 0.1s; }
.activity-list li:nth-child(2) { animation-delay: 0.2s; }
.activity-list li:nth-child(3) { animation-delay: 0.3s; }
.activity-list li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInStagger {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Season Highlights Animation */
.season {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.season:nth-child(1) { animation-delay: 0.1s; }
.season:nth-child(2) { animation-delay: 0.2s; }
.season:nth-child(3) { animation-delay: 0.3s; }
.season:nth-child(4) { animation-delay: 0.4s; }

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

/* Contact Form Field Animations */
.form-control,
.form-select {
    position: relative;
}

.form-control:focus + .form-label,
.form-select:focus + .form-label {
    transform: translateY(-5px) scale(0.9);
    color: var(--gold);
}

/* Success Animation */
.success-animation {
    animation: successPulse 0.6s ease-in-out;
}

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

/* Error Shake Animation */
.error-shake {
    animation: shake 0.5s ease-in-out;
}

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

/* Loading Spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Smooth Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: textReveal 0.6s ease forwards;
}

.text-reveal span:nth-child(1) { animation-delay: 0.1s; }
.text-reveal span:nth-child(2) { animation-delay: 0.2s; }
.text-reveal span:nth-child(3) { animation-delay: 0.3s; }
.text-reveal span:nth-child(4) { animation-delay: 0.4s; }
.text-reveal span:nth-child(5) { animation-delay: 0.5s; }

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


