/* EnchantXP Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom gradient text */
.gradient-text {
    background: linear-gradient(135deg, #C41E3A, #6B21A8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom gradient background */
.gradient-bg {
    background: linear-gradient(135deg, #C41E3A, #6B21A8);
}

.gradient-bg-light {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05), rgba(107, 33, 168, 0.05));
}

/* Navbar transparent to solid transition */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
}

.navbar-scrolled .nav-link {
    color: #1a1a1a !important;
}

.navbar-scrolled .logo-white {
    display: none;
}

.navbar-scrolled .logo-dark {
    display: block;
}

/* Hero carousel overlay */
.hero-slide {
    position: relative;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(107, 33, 168, 0.4));
    z-index: 1;
}

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

/* Destination card hover effect */
.destination-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.destination-card .card-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.destination-card:hover .card-img {
    transform: scale(1.08);
}

/* Feature card hover */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(196, 30, 58, 0.15);
}

/* Button animations */
.btn-primary-gradient {
    background: linear-gradient(135deg, #C41E3A, #6B21A8, #C41E3A);
    background-size: 200% 200%;
    background-position: left center;
    transition: background-position 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-gradient:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(196, 30, 58, 0.5);
}

/* Outline button */
.btn-outline-gradient {
    position: relative;
    background: transparent;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #C41E3A, #6B21A8);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.btn-outline-gradient:hover {
    background-image: linear-gradient(135deg, #C41E3A, #6B21A8), linear-gradient(135deg, #C41E3A, #6B21A8);
    color: white;
    transform: translateY(-2px);
}

/* Stats counter animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Testimonial card */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Blog card hover */
.blog-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

.blog-card .blog-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* FAQ accordion animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 500px;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #C41E3A, #6B21A8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6B21A8;
}

/* Page hero banners */
.page-hero {
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9), rgba(107, 33, 168, 0.9)),
                url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1920') center/cover;
    min-height: 350px;
}

/* Input focus styles */
input:focus, textarea:focus, select:focus {
    border-color: #C41E3A !important;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1) !important;
}

/* Swiper custom styles */
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: white !important;
    width: 32px !important;
    border-radius: 6px !important;
}

/* Loading animation for stats */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Parallax-like subtle movement */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Timeline connector */
.timeline-connector {
    position: relative;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -2rem;
    width: 4rem;
    height: 2px;
    background: linear-gradient(90deg, #C41E3A, #6B21A8);
}

/* Mobile menu slide */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Itinerary timeline vertical line */
.itinerary-timeline {
    position: relative;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        #C41E3A 0,
        #C41E3A 8px,
        transparent 8px,
        transparent 16px
    );
    opacity: 0.3;
}

/* Itinerary day card */
.itinerary-day-card {
    transition: all 0.3s ease;
}

.itinerary-day-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(196, 30, 58, 0.1);
}

/* Attraction card hover */
.attraction-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.attraction-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.attraction-card .attraction-img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.attraction-card:hover .attraction-img {
    transform: scale(1.08);
}

/* Night stepper button animation */
.stepper-btn {
    transition: all 0.2s ease;
}

.stepper-btn:active {
    transform: scale(0.92);
}

/* Trip type / destination card selection pulse */
@keyframes selectPulse {
    0% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.3); }
    70% { box-shadow: 0 0 0 10px rgba(196, 30, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
}

.select-pulse {
    animation: selectPulse 0.6s ease-out;
}

/* Quick facts floating card */
.facts-card {
    backdrop-filter: blur(10px);
}

/* Selection color */
::selection {
    background: rgba(196, 30, 58, 0.2);
    color: #1a1a1a;
}
