/* 
   Nepal Pashupatinath Tour and Travels
   Animations and Professional Enhancements
*/

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Animated Elements */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 1s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 1s ease forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.8s ease forwards;
}

.animate-bounce {
    animation: bounce 2s ease infinite;
}

/* Animation Delays */
.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;
}

/* Scroll Animations */
.reveal {
    position: relative;
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-left.active {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-right.active {
    transform: translateX(0);
}

.reveal-top {
    transform: translateY(-50px);
}

.reveal-top.active {
    transform: translateY(0);
}

.reveal-bottom {
    transform: translateY(50px);
}

.reveal-bottom.active {
    transform: translateY(0);
}

.reveal-zoom {
    transform: scale(0.9);
}

.reveal-zoom.active {
    transform: scale(1);
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    lbackground: linear-gradient(135deg, rgba(230, 57, 70, 0.7) 0%, rgba(29, 53, 87, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
    animation: bounce 2s infinite;
}

/* Enhanced Navigation */
.nav-menu ul li a {
    position: relative;
    padding: 8px 0;
}

.nav-menu ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    opacity: 0;
}

.nav-menu ul li a:hover::before,
.nav-menu ul li a.active::before {
    width: 100%;
    opacity: 1;
}

/* Sticky Header */
header.sticky {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Enhanced Buttons */
.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: all 0.5s ease;
}

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

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

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

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

/* Card Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

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

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d32836;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--dark-color) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Floating Elements */
.floating {
    animation: floating 3s ease infinite;
}

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

/* Enhanced Form Elements */
.form-group {
    position: relative;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--gray-color);
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: transparent;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: white;
    padding: 0 5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 15px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .hero-scroll-down {
        bottom: 20px;
        font-size: 1.5rem;
    }
    
    .preloader .loader {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }
}
