/* ===== Native CSS Scroll Carousel (Hardware Accelerated for Mobile) ===== */
.carousel-track-wrapper {
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 3%,
            black 97%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 3%,
            black 97%,
            transparent 100%);
    
    /* Native scrolling configuration */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling on iOS */
}

/* Hide scrollbar completely to keep it clean */
.carousel-track-wrapper::-webkit-scrollbar {
    display: none;
}
.carousel-track-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 10px 24px 30px;
}

/* Snap each card to the start of the container for precision */
.carousel-track > div {
    scroll-snap-align: start;
    
    /* GPU Optimizations */
    transform: translateZ(0);    
    will-change: transform;      
    backface-visibility: hidden;
}

/* Luxury Resorts Collection Image Hover Animation (Same as News Section) */
.resort-slider {
    position: relative;
    overflow: hidden;
}

.resort-slider::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, 0) skewX(-45deg) scaleX(0);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.group:hover .resort-slider::before {
    animation: Image-white-mist-overlay-openDoors 1.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.group:hover .slider-wrapper img.active-img {
    transform: scale(1.1);
    transition: transform 1.8s cubic-bezier(0.2, 1, 0.3, 1) !important;
}

.slider-wrapper img {
    transition: none; /* Matches blog cards' instant snap back on leave */
}


/* ===== About Otravel Section ===== */
.about-section {
    padding: 100px 0;
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* Collage Side */
.about-collage {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
}

.collage-main,
.collage-top,
.collage-bottom {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.collage-main img,
.collage-top img,
.collage-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-main {
    width: 380px;
    height: 520px;
    left: 0;
    z-index: 2;
}

.collage-top {
    width: 280px;
    height: 220px;
    right: 0;
    top: 50px;
    z-index: 1;
}

.collage-bottom {
    width: 320px;
    height: 240px;
    right: 40px;
    bottom: 50px;
    z-index: 3;
}

/* Badge overlay */
.collage-badge {
    position: absolute;
    bottom: 80px;
    left: -40px;
    background: #007bff;
    color: white;
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    animation: floating 3s ease-in-out infinite;
}

.badge-content {
    display: flex;
    flex-direction: column;
}

.badge-number {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.badge-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* About Section Refinement */
.about-section {
    padding: 80px 0 240px;
    /* Reduced top padding as requested, kept bottom padding for balance */
    background: #fff;
    overflow: hidden;
    position: relative;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 120px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Collage Side */
.about-collage {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decor-wavy {
    position: absolute;
    left: 40px;
    top: 20px;
    width: 45px;
    z-index: 1;
    pointer-events: none;
    animation: floatTB 6.5s ease-in-out infinite;
}

.about-main-card {
    position: relative;
    width: 380px;
    height: 520px;
    top: -30px;
    left: 40px;
    z-index: 5;
    border-radius: 40px;
    overflow: visible;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.collage-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

.decor-balloon {
    position: absolute;
    top: -40px;
    right: -100px;
    width: 140px !important;
    height: auto !important;
    z-index: 10;
    animation: floating 4s ease-in-out infinite;
    pointer-events: none;
}

.decor-flag {
    position: absolute;
    left: -60px;
    bottom: -60px;
    width: 250px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-10deg);
}

.about-right-card {
    position: absolute;
    bottom: -60px;
    right: -40px;
    width: 280px;
    height: 440px;
    z-index: 6;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.reveal-active.about-main-card {
    animation: floatLR 6.5s ease-in-out infinite;
}

.reveal-active.about-right-card {
    animation: floatLR 6.5s ease-in-out infinite;
}

.reveal-active.about-left-card {
    animation: floatTB 6.5s ease-in-out infinite;
}

.about-right-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.about-left-card {
    position: absolute;
    top: 240px;
    left: -40px;
    width: 260px;
    height: 260px;
    z-index: 7;
    border-radius: 30px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-left-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}



.about-content {
    flex: 1;
    padding-right: 50px;
}

.about-title {
    font-size: 44px;
    font-weight: 700;
    color: #007bff;
    line-height: 1.2;
    margin-bottom: 24px;
}

.about-sub-heading {
    font-size: 24px;
    font-weight: 600;
    color: #444;
    margin: 32px 0 12px;
    display: block;
}

.about-content .description {
    font-size: 17px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Button More */
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #007bff;
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-more::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn-more:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-more:hover::before {
    left: 0;
}

.btn-more .arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    transform: rotate(-45deg);
    /* Permanent angle as requested */
}



/* Animations */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes floatLR {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(30px);
    }
}

@keyframes floatTB {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-40px);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Responsive */
@media (max-width: 1200px) {
    .about-container {
        gap: 40px;
    }

    .about-title {
        font-size: 38px;
    }
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        padding: 0 20px;
    }

    .about-collage {
        width: 100%;
        max-width: 500px;
        margin: 0 auto 60px;
        height: 550px;
    }

    .feature-item {
        justify-content: flex-start;
        padding-left: 20px; /* Adding some padding to keep it balanced when left-aligned on mobile */
    }
}

@media (max-width: 600px) {
    .about-section {
        padding: 80px 0;
    }

    .about-title {
        font-size: 32px;
    }

    .about-collage {
        height: 450px;
    }

    .collage-main {
        width: 220px;
        height: 330px;
    }

    .collage-bottom-right {
        width: 160px;
        height: 230px;
    }

    .collage-bottom-left {
        width: 140px;
        height: 140px;
        left: 10px;
        bottom: -20px;
    }

    .weather-badge {
        padding: 8px 12px;
        top: -15px;
        left: -10px;
    }

    .decor-balloon {
        top: -40px;
        right: -20px;
        transform: scale(0.7);
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ===== Contact Section Collage (Section 7) ===== */
.contact-main-card {
    position: absolute;
    top: -60px;
    left: -60px;
    z-index: 5;
    width: 480px;
    height: 580px;
}

.contact-main-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.contact-decor-parachute {
    width: 120px;
    position: absolute;
    top: 20px;
    right: 80px;
    z-index: 20;
    animation: floating 4s ease-in-out infinite;
}

.contact-secondary-card {
    position: absolute;
    bottom: -220px;
    right: 15px;
    z-index: 10;
    width: 300px;
    height: 420px;
}

.contact-secondary-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    border: 6px solid #ffffff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.contact-decor-logo {
    width: 200px;
    position: absolute;
    bottom: -200px;
    left: 20px;
    z-index: 25;
    animation: floatSR 6s ease-in-out infinite;
}

.contact-decor-parachute img,
.contact-decor-logo img {
    width: 100%;
    height: auto;
}

@keyframes floatSR {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.05) rotate(2deg);
    }
}

@media (max-width: 992px) {
    .contact-section .max-w-7xl {
        gap: 60px;
    }

    .contact-collage-wrapper.reveal-up.active {
        height: 550px;
    }

    .contact-main-card {
        width: 320px;
        height: 420px;
        top: 0;
        left: 0;
    }

    .contact-secondary-card {
        width: 240px;
        height: 340px;
        right: 0;
        bottom: 0;
    }

    .contact-secondary-card img {
        border-width: 8px;
    }

    .contact-decor-parachute,
    .contact-decor-logo {
        display: none;
    }
}

@media (max-width: 600px) {
    .contact-collage-wrapper.reveal-up.active {
        height: 450px;
    }
}

/* NEWS & BLOG SECTION (Section 8) Styles */
#blog-section {
    position: relative;
    overflow: hidden;
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 350px;
    cursor: pointer;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
   Image white mist overlay-openDoors 
   Signature Diagonal Shutter Flash Effect
*/
@keyframes Image-white-mist-overlay-openDoors {
    0% {
        transform: translate(-50%, 0) skewX(-45deg) scaleX(0);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, 0) skewX(-45deg) scaleX(3);
        opacity: 0;
    }
}

.blog-card-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    /* Using full width but scaling it down */
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, 0) skewX(-45deg) scaleX(0);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
    transition: transform 1.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.blog-card:hover .blog-card-image::before {
    animation: Image-white-mist-overlay-openDoors 1.8s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    /* Instant snap back on leave */
}

/* Badges and Labels */
.blog-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #005cb9;
    color: white;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
}

.blog-date-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    color: #4b5563;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
}

/* Continue Reading Button */
.blog-continue-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    border: 1px solid #005cb9;
    color: #005cb9;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.blog-continue-btn:hover {
    background: #005cb9;
    color: white;
}

.blog-continue-btn i {
    font-size: 12px;
}

/* Flight Schedule Decoration */
.flight-decor-left {
    position: absolute;
    top: 20px;
    left: 0px;
    width: 280px;
    z-index: 2;
    pointer-events: none;
    transform-origin: center;
}

.flight-decor-left img {
    width: 100%;
    animation: flightFloatL 10s ease-in-out infinite;
}

.flight-decor-right {
    position: absolute;
    top: 40px;
    right: 20px;
    width: 220px;
    z-index: 2;
    pointer-events: none;
    transform-origin: center;
}

.flight-decor-right img {
    width: 100%;
    animation: flightFloatR 8s ease-in-out infinite;
}

@keyframes flightFloatL {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

@keyframes flightFloatR {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-10px, -10px) scale(1.08);
    }
}

@media (max-width: 992px) {

    .flight-decor-left,
    .flight-decor-right {
        display: none;
    }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .contact-main-card {
        width: 260px;
        height: 340px;
    }

    .contact-secondary-card {
        width: 200px;
        height: 280px;
    }

    .contact-secondary-card img {
        border-width: 6px;
    }
}