/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #C75B39;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a44a2d;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Navbar Transition Styles */
nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

nav.scrolled .change-text-on-scroll {
    color: #1f2937 !important;
}

nav.scrolled .change-text-on-scroll:hover {
    color: #C75B39 !important;
}

/* Hero Text Shadow */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hide scrollbar for horizontal scroll containers */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Animation Utilities */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #C75B39, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-right: 0.15em;
    padding-left: 0.15em;
}

/* Typing Cursor Blink */
@keyframes blink-caret {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.typing-cursor::after {
    content: '|';
    display: inline-block;
    color: #C75B39;
    animation: blink-caret 1s step-end infinite;
    margin-left: 2px;
    font-weight: 300;
}

/* Button Shine Effect */
@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: none;
}

.btn-shine:hover::after {
    animation: shine 0.6s ease-in-out;
}

/* Card Lift on Hover */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Feature Card Hover */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.1);
}

/* Destination Card Hover */
.destination-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
}

/* Icon Spin on Parent Hover */
.group:hover .icon-hover-spin {
    transform: rotate(12deg) scale(1.1);
    transition: transform 0.3s ease;
}

.icon-hover-spin {
    transition: transform 0.3s ease;
}

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.open {
    max-height: 200px;
}

/* Counter Animation */
@keyframes count-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter-item {
    animation: count-fade-in 0.6s ease forwards;
    opacity: 0;
}

.counter-item:nth-child(1) {
    animation-delay: 0.1s;
}

.counter-item:nth-child(2) {
    animation-delay: 0.25s;
}

.counter-item:nth-child(3) {
    animation-delay: 0.4s;
}

.counter-item:nth-child(4) {
    animation-delay: 0.55s;
}

/* Progress Steps */
.step-line {
    height: 2px;
    background: linear-gradient(90deg, #C75B39 var(--progress, 0%), #E2E2DE var(--progress, 0%));
    transition: --progress 0.3s ease;
}

/* Wave Divider */
.wave-divider {
    position: relative;
    overflow: hidden;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Hero Floating Destination Cards */
@keyframes drift {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-12px) rotate(1deg);
    }

    75% {
        transform: translateY(8px) rotate(-1deg);
    }
}

.hero-float-1 {
    animation: drift 7s ease-in-out infinite;
}

.hero-float-2 {
    animation: drift 8s ease-in-out infinite 1s;
}

.hero-float-3 {
    animation: drift 6s ease-in-out infinite 2s;
}

/* Scroll Indicator Bounce */
@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.5;
    }
}

.scroll-indicator {
    animation: scroll-bounce 2s ease-in-out infinite;
}

/* Parallax Depth Layers */
.parallax-slow {
    will-change: transform;
}

/* Step connector line */
.step-connector {
    position: relative;
}

.step-connector::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #C75B39, #D4AF37);
    opacity: 0.2;
}

@media (min-width: 768px) {
    .step-connector::before {
        display: none;
    }
}

/* Glow ring pulse */
@keyframes glow-ring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(199, 91, 57, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(199, 91, 57, 0);
    }
}

.glow-pulse {
    animation: glow-ring 2.5s ease-in-out infinite;
}

/* Image reveal on scroll */
.img-reveal {
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Gradient border */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #C75B39, #D4AF37, #004E64);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Comparison Table Styles */
.comparison-table {
    border-collapse: separate;
    border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
    border-bottom: 1px solid #E2E2DE;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Section Anchor Target Offset */
#faq {
    scroll-margin-top: 100px;
}

/* Smooth fade-in for elements */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease forwards;
}