/* ===========================
   Advanced Animations & Effects
   =========================== */

/* Luxurious Particle Background Effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 15% 25%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(3px 3px at 55% 65%, rgba(201, 169, 97, 0.3), transparent),
        radial-gradient(1px 1px at 45% 45%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(2px 2px at 75% 15%, rgba(212, 175, 55, 0.25), transparent),
        radial-gradient(1px 1px at 85% 85%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 250% 250%;
    animation: particleMove 25s ease-in-out infinite;
    z-index: 1;
    opacity: 0.8;
}

@keyframes particleMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 80% 10%, 20% 80%;
        opacity: 0.8;
    }
    33% {
        background-position: 50% 50%, 50% 50%, 70% 30%, 30% 70%, 80% 20%;
        opacity: 0.6;
    }
    66% {
        background-position: 100% 100%, 0% 0%, 30% 70%, 70% 30%, 40% 60%;
        opacity: 0.9;
    }
}

/* Luxury Shine Effect */
@keyframes luxuryShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Gradient Animation for Buttons */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-primary,
.book-now-btn {
    background: linear-gradient(45deg, #c9a961, #d4af37, #c9a961, #d4af37);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
}

/* Floating Animation for Icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.experience-icon {
    animation: float 3s ease-in-out infinite;
}

.experience-card:nth-child(1) .experience-icon {
    animation-delay: 0s;
}

.experience-card:nth-child(2) .experience-icon {
    animation-delay: 0.2s;
}

.experience-card:nth-child(3) .experience-icon {
    animation-delay: 0.4s;
}

.experience-card:nth-child(4) .experience-icon {
    animation-delay: 0.6s;
}

.experience-card:nth-child(5) .experience-icon {
    animation-delay: 0.8s;
}

.experience-card:nth-child(6) .experience-icon {
    animation-delay: 1s;
}

/* Shimmer Effect on Hover */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.destination-card::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;
    z-index: 3;
}

.destination-card:hover::before {
    left: 100%;
}

/* Pulse Animation for Package Badges */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(201, 169, 97, 0.6);
    }
}

.package-badge {
    animation: pulse 2s ease-in-out infinite;
}

/* Glow Effect on Hover */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(201, 169, 97, 0.5), 0 0 10px rgba(201, 169, 97, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(201, 169, 97, 0.8), 0 0 30px rgba(201, 169, 97, 0.5);
    }
}

.nav-link:hover,
.social-link:hover {
    animation: glow 1.5s ease-in-out infinite;
}

/* Typewriter Effect for Hero Subtitle */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-subtitle {
    overflow: hidden;
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    margin: 0 auto;
    animation:
        typewriter 3s steps(40, end) 1s forwards,
        blink 0.75s step-end infinite;
}

/* Stagger Animation for Cards */
@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.destination-card:nth-child(1) {
    animation: staggerFadeIn 0.6s ease-out 0.1s both;
}

.destination-card:nth-child(2) {
    animation: staggerFadeIn 0.6s ease-out 0.2s both;
}

.destination-card:nth-child(3) {
    animation: staggerFadeIn 0.6s ease-out 0.3s both;
}

.destination-card:nth-child(4) {
    animation: staggerFadeIn 0.6s ease-out 0.4s both;
}

.destination-card:nth-child(5) {
    animation: staggerFadeIn 0.6s ease-out 0.5s both;
}

/* 3D Tilt Effect on Cards */
.package-card {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    perspective: 1000px;
}

.package-card:hover {
    transform: perspective(1500px) rotateX(2deg) rotateY(-3deg) translateY(-15px) scale(1.02);
}

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

/* Luxury Gradient Background Animation */
@keyframes luxuryGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.destination-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top,
        rgba(10, 24, 40, 0.95) 0%,
        rgba(26, 58, 82, 0.7) 40%,
        transparent 100%);
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

/* Ripple Effect on Button Click */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Parallax Layers */
.hero-content {
    animation: parallaxFloat 6s ease-in-out infinite;
}

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

/* Fade-in Slide Animation for Sections */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-header {
    animation: fadeInSlide 1s ease-out;
}

/* Rotating Border Effect */
@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.testimonial-author img {
    position: relative;
}

.testimonial-author img::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #c9a961;
    border-right-color: #c9a961;
    animation: rotateBorder 2s linear infinite;
}

/* Bounce-in Animation for Stats */
@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.stat {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.stat:nth-child(1) {
    animation-delay: 0.1s;
}

.stat:nth-child(2) {
    animation-delay: 0.2s;
}

.stat:nth-child(3) {
    animation-delay: 0.3s;
}

.stat:nth-child(4) {
    animation-delay: 0.4s;
}

/* Text gradient removed for better readability */

/* Removed for performance */

/* Slide-in from Bottom */
@keyframes slideInBottom {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.contact-form {
    animation: slideInBottom 0.8s ease-out;
}

/* Zoom-in Effect */
@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.about-image {
    animation: zoomIn 0.8s ease-out;
}

/* Flip Animation for Experience Cards */
.experience-card {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.experience-card:hover {
    transform: rotateY(10deg) rotateX(10deg);
}

/* Loading Bar Animation */
@keyframes loadingBar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Infinite Scroll Indicator */
.scroll-indicator span {
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Elastic Bounce */
@keyframes elasticBounce {
    0%, 100% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(0.9);
    }
    70% {
        transform: scale(1.05);
    }
}

.book-now-btn:active {
    animation: elasticBounce 0.6s ease;
}

/* Underline Expand Effect */
.destination-link {
    position: relative;
    display: inline-block;
}

.destination-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

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

/* Wave Animation for Background */
@keyframes wave {
    0%, 100% {
        clip-path: polygon(
            0% 45%,
            10% 48%,
            20% 50%,
            30% 49%,
            40% 46%,
            50% 45%,
            60% 46%,
            70% 49%,
            80% 50%,
            90% 48%,
            100% 45%,
            100% 100%,
            0% 100%
        );
    }
    50% {
        clip-path: polygon(
            0% 50%,
            10% 48%,
            20% 46%,
            30% 48%,
            40% 51%,
            50% 52%,
            60% 51%,
            70% 48%,
            80% 46%,
            90% 48%,
            100% 50%,
            100% 100%,
            0% 100%
        );
    }
}

/* Glitch Effect (Optional) */
@keyframes glitch {
    0% {
        text-shadow: 1px 0 0 red, -1px 0 0 blue;
        transform: translate(0);
    }
    20% {
        text-shadow: 1px 0 0 red, -1px 0 0 blue;
        transform: translate(-2px, 2px);
    }
    40% {
        text-shadow: 1px 0 0 red, -1px 0 0 blue;
        transform: translate(-2px, -2px);
    }
    60% {
        text-shadow: 1px 0 0 red, -1px 0 0 blue;
        transform: translate(2px, 2px);
    }
    80% {
        text-shadow: 1px 0 0 red, -1px 0 0 blue;
        transform: translate(2px, -2px);
    }
    100% {
        text-shadow: 1px 0 0 red, -1px 0 0 blue;
        transform: translate(0);
    }
}

/* Smooth Color Transition */
.nav-link,
.social-link,
.destination-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Image Zoom on Hover */
.destination-image,
.package-image,
.about-image {
    overflow: hidden;
}

.destination-image img,
.package-image img,
.about-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.destination-card:hover .destination-image img,
.package-card:hover .package-image img,
.about-image:hover img {
    transform: scale(1.15);
}

/* Spotlight Effect */
@keyframes spotlight {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(26, 58, 82, 0.4) 100%);
    animation: spotlight 8s ease-in-out infinite;
}

/* Ken Burns Effect for Images */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(-10%, -10%);
    }
}

/* Breathing Light Effect */
@keyframes breathe {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: breathe 8s ease-in-out infinite;
}

.showcase-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: breathe 10s ease-in-out infinite;
}

/* Fade Slide Up for Testimonials */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeSlideUp 0.6s ease-out;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

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

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

/* Rotate on Hover */
.social-link:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Input Focus Effect */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.08), 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Premium Morphing Background */
@keyframes morphBackground {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        background-position: 0% 50%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        background-position: 100% 50%;
    }
}

/* Luxury Pulse Effect */
@keyframes luxuryPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 0 20px rgba(201, 169, 97, 0);
    }
}

/* Smooth Scale In */
@keyframes smoothScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Elegant Slide */
@keyframes elegantSlide {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

/* Parallax Effect Enhancement */
.destinations,
.packages,
.experiences {
    transform-style: preserve-3d;
}

.section-header {
    transform: translateZ(50px);
}

/* Advanced Image Parallax */
@keyframes imageParallax {
    0% {
        transform: scale(1) translateY(0);
    }
    100% {
        transform: scale(1.15) translateY(-20px);
    }
}

/* Cinematic Zoom */
@keyframes cinematicZoom {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
    100% {
        transform: scale(1.1);
        filter: brightness(1.05);
    }
}

/* Luxury Card Enter */
@keyframes luxuryCardEnter {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateX(10deg);
    }
    60% {
        transform: translateY(-10px) scale(1.02) rotateX(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0);
    }
}

/* Fade in removed - all content visible by default */

/* Removed for better performance */

/* ===========================
   Advanced Glassmorphism
   =========================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Magnetic Button Effect
   =========================== */
@keyframes magneticPull {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===========================
   Luxury Reveal Animation
   =========================== */
@keyframes luxuryReveal {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
        filter: blur(15px);
    }
    60% {
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.reveal {
    animation: luxuryReveal 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* ===========================
   Premium Card Glow
   =========================== */
.destination-card:hover,
.package-card:hover {
    position: relative;
}

.destination-card:hover::before,
.package-card:hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #c9a961, #d4af37, #e8c5a5);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.3;
        transform: scale(1);
    }
}

/* ===========================
   Smooth Video Transitions
   =========================== */
video {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.6s ease,
                filter 0.6s ease;
    will-change: transform;
}

/* ===========================
   Luxury Text Shine
   =========================== */
@keyframes textShine {
    0% {
        background-position: -200%;
    }
    100% {
        background-position: 200%;
    }
}

.hero-title,
.section-title {
    background-size: 200% auto;
    animation: textShine 8s linear infinite;
}

/* ===========================
   Advanced Hover States
   =========================== */
.btn,
.book-now-btn,
.social-link {
    position: relative;
    z-index: 1;
}

.btn::after,
.book-now-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: -1;
}

.btn:hover::after,
.book-now-btn:hover::after {
    opacity: 1;
}

/* ===========================
   Perspective Depth Effect
   =========================== */
.destinations,
.packages,
.experiences,
.about {
    transform-style: preserve-3d;
    perspective: 2000px;
}

/* ===========================
   Cinematic Loading
   =========================== */
@keyframes cinematicFadeIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

body {
    animation: cinematicFadeIn 1s ease-out;
}

/* ===========================
   Premium Hover Scale
   =========================== */
.experience-card,
.stat {
    transform-origin: center;
    will-change: transform;
}
