/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Optimize animations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent layout shifts */
img {
    aspect-ratio: auto;
}

/* Optimize transforms */
.sliding-images-wrapper,
.trip-card,
.destination-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

:root {
    --primary-color: #dc3545;
    --secondary-color: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transform: translateY(-10px);
    margin-left: auto;
    display: block;
    width: fit-content;
    text-align: right;
    float: right;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 70px;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
}

.hero-prev,
.hero-next {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255,255,255,0.4);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
}

.section-header p {
    color: var(--text-light);
    margin-top: 1rem;
}

/* Tour Categories */
.tour-categories {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.tour-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 78, 137, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.tour-categories .container {
    position: relative;
    z-index: 1;
}

.standard-carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    overflow: hidden;
}

.standard-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.standard-item {
    position: absolute;
    width: 350px;
    height: 450px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8) translateX(100%);
    opacity: 0;
    overflow: visible;
    cursor: pointer;
}

.standard-item.active {
    transform: scale(1) translateX(0);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.2);
}

.standard-item.next {
    transform: scale(0.9) translateX(50%);
    opacity: 0.7;
    z-index: 5;
}

.standard-item.prev {
    transform: scale(0.9) translateX(-50%);
    opacity: 0.7;
    z-index: 5;
}

.standard-item.fade-out {
    animation: fadeOutStandard 1.2s ease-in-out forwards;
}

.standard-item.fade-in {
    animation: fadeInStandard 1.2s ease-in-out forwards;
}

@keyframes fadeOutStandard {
    0% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
    100% {
        transform: scale(0.8) translateX(-100%);
        opacity: 0;
    }
}

@keyframes fadeInStandard {
    0% {
        transform: scale(0.8) translateX(100%);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateX(0);
        opacity: 1;
    }
}

.category-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
    background: white;
    transition: all 0.5s ease;
    border-radius: 20px 20px 0 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.semicircle-item h4 {
    margin: 1.5rem 0 1rem;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.category-link {
    color: #dc3545 !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: transparent;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    font-size: 1rem;
}

.category-link i {
    transition: transform 0.4s ease;
}

.item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 0 0 20px 20px;
    backdrop-filter: blur(10px);
}

.standard-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.standard-item:hover .category-link {
    background: #dc3545;
    color: white !important;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
}

.standard-item:hover .category-link i {
    transform: translateX(5px) rotate(-45deg);
}

.semicircle-item:hover .category-link {
    gap: 1rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
}

.semicircle-item:hover .category-link i {
    transform: translateX(5px) rotate(-45deg);
}

.semicircle-item:hover .category-image img {
    transform: scale(1.1);
}

.semicircle-item:hover h4 {
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Continuous image animations */
.category-image img {
    animation: gentleFloat 6s ease-in-out infinite;
}

.category-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(220, 53, 69, 0.1) 0%,
        rgba(255, 107, 53, 0.1) 25%,
        rgba(0, 78, 137, 0.1) 50%,
        rgba(220, 53, 69, 0.1) 75%,
        rgba(255, 107, 53, 0.1) 100%);
    animation: colorShift 8s linear infinite;
    border-radius: 20px;
    pointer-events: none;
}

.category-image::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        rgba(220, 53, 69, 0.2),
        rgba(255, 107, 53, 0.2),
        rgba(0, 78, 137, 0.2),
        rgba(220, 53, 69, 0.2));
    border-radius: 22px;
    animation: borderGlow 4s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

.semicircle-item.active .category-image img {
    animation: gentleFloat 6s ease-in-out infinite, subtleZoom 4s ease-in-out infinite;
}

.semicircle-item.active .category-image::before {
    animation: colorShift 8s linear infinite, pulse 3s ease-in-out infinite;
}

.semicircle-item.active .category-image::after {
    animation: borderGlow 4s ease-in-out infinite alternate, rotateBorder 10s linear infinite;
}

/* Animation keyframes */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-0.5deg);
    }
}

@keyframes subtleZoom {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes colorShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

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

/* Additional continuous animations for different items */
.semicircle-item:nth-child(1) .category-image img {
    animation-delay: 0s;
}

.semicircle-item:nth-child(2) .category-image img {
    animation-delay: 1s;
}

.semicircle-item:nth-child(3) .category-image img {
    animation-delay: 2s;
}

.semicircle-item:nth-child(4) .category-image img {
    animation-delay: 3s;
}

.semicircle-item:nth-child(5) .category-image img {
    animation-delay: 4s;
}

.standard-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: buttonFloat 4s ease-in-out infinite;
}

.standard-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
    animation: none;
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(-50%) translateX(0px);
    }
    33% {
        transform: translateY(-50%) translateX(2px);
    }
    66% {
        transform: translateY(-50%) translateX(-2px);
    }
}

.standard-prev {
    left: 20px;
}

.standard-next {
    right: 20px;
}

.standard-dots {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    align-items: center;
}

.autoplay-status {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 15px;
    opacity: 0.7;
    animation: autoPulse 2.5s ease-in-out infinite;
}

@keyframes autoPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.standard-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: dotBreath 3s ease-in-out infinite;
}

.standard-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
    animation: activeDotPulse 2.5s ease-in-out infinite;
}

.standard-dot.autoplay-indicator {
    animation: autoplayGlow 2.5s ease-in-out infinite;
}

@keyframes dotBreath {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes activeDotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.3);
    }
}

@keyframes autoplayGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.2);
    }
}

/* Entrance animation for semicircle items - only first 3 visible */
.semicircle-item:nth-child(1) {
    animation: semicircleFadeIn 1s ease forwards, subtleBounce 2s ease-in-out infinite 2s;
    animation-delay: 0.1s, 2s;
}

.semicircle-item:nth-child(2) {
    animation: semicircleFadeIn 1s ease forwards, subtleBounce 2s ease-in-out infinite 2.2s;
    animation-delay: 0.2s, 2.2s;
}

.semicircle-item:nth-child(3) {
    animation: semicircleFadeIn 1s ease forwards, subtleBounce 2s ease-in-out infinite 2.4s;
    animation-delay: 0.3s, 2.4s;
}

/* Items 4 and 5 are hidden initially and will be shown when carousel rotates */

.semicircle-item.active {
    animation: activePulse 1.5s ease-in-out infinite;
}

@keyframes semicircleFadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 20px 50px rgba(220, 53, 69, 0.3);
    }
    50% {
        box-shadow: 0 25px 60px rgba(220, 53, 69, 0.5);
    }
}

/* Continuous title animation */
.semicircle-item h4 {
    animation: titleGlow 3s ease-in-out infinite;
}

.semicircle-item.active h4 {
    animation: titleGlow 3s ease-in-out infinite, titlePulse 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(44, 62, 80, 0.2);
    }
    50% {
        text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
    }
}

@keyframes titlePulse {
    0%, 100% {
        color: var(--text-dark);
    }
    50% {
        color: var(--primary-color);
    }
}

/* Popular Destinations */
.popular-destinations {
    padding: 5rem 0;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-item {
    position: absolute;
    width: 300px;
    height: 450px;
    left: 50%;
    top: 50%;
    margin-left: -150px;
    margin-top: -225px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.6;
    transform: translateZ(-150px) rotateY(0deg);
}

.carousel-item.active {
    opacity: 1;
    transform: translateZ(0) rotateY(0deg);
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.carousel-item.prev-1 {
    transform: translateZ(-100px) translateX(-300px) scale(0.9) rotateY(-15deg);
    opacity: 0.7;
}

.carousel-item.next-1 {
    transform: translateZ(-100px) translateX(300px) scale(0.9) rotateY(15deg);
    opacity: 0.7;
}

.carousel-item.prev-2 {
    transform: translateZ(-150px) translateX(-500px) scale(0.8) rotateY(-25deg);
    opacity: 0.4;
}

.carousel-item.next-2 {
    transform: translateZ(-150px) translateX(500px) scale(0.8) rotateY(25deg);
    opacity: 0.4;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: var(--shadow);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

.destination-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.destination-image {
    height: 450px;
    overflow: hidden;
    position: relative;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-item:hover .destination-image img {
    transform: scale(1.05);
}

.destination-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    color: var(--white);
}

.destination-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.destination-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

/* Plan Trip */
.plan-trip {
    padding: 5rem 0;
    background: var(--bg-light);
}

.plan-trip-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sliding-images-container {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.sliding-images-wrapper {
    display: flex;
    width: calc(350px * 10); /* 5 images * 2 for seamless loop */
    animation: slideRight 25s linear infinite;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform;
}

.sliding-image {
    width: 350px;
    height: 400px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.sliding-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.sliding-image:hover img {
    transform: scale(1.05) translateZ(0);
    filter: brightness(1.1);
}

.sliding-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.1), rgba(255, 107, 53, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sliding-image:hover::after {
    opacity: 1;
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* Move half the width to create seamless loop */
    }
}

.plan-trip-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.plan-trip-text h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.plan-trip-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.plan-features {
    margin-bottom: 2rem;
}

.plan-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plan-feature i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.plan-feature h4 {
    margin-bottom: 0.5rem;
}

.plan-feature p {
    color: var(--text-light);
    margin: 0;
}

.plan-trip-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.plan-trip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Popular Packages */
.popular-packages {
    padding: 5rem 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.package-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.package-image {
    height: 200px;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

.package-content {
    padding: 1.5rem;
}

.package-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.package-location {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.package-duration {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    background: var(--primary-color);
    color: var(--white);
}

.newsletter-content {
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
    margin-bottom: 0.75rem;
}

.contact-info i {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-cta {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .plan-trip-content {
        grid-template-columns: 1fr;
    }

    .sliding-images-container {
        height: 300px;
    }

    .sliding-image {
        width: 250px;
        height: 300px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header h3 {
        font-size: 1.2rem;
    }

    /* 3D Carousel mobile */
    .carousel-container {
        height: 450px;
        perspective: 600px;
    }

    .carousel-item {
        width: 250px;
        height: 370px;
        margin-left: -125px;
        margin-top: -185px;
        transform: translateZ(-100px) rotateY(0deg);
    }

    .destination-image {
        height: 370px;
    }

    .carousel-item.prev-1 {
        transform: translateZ(-70px) translateX(-180px) scale(0.9);
    }

    .carousel-item.next-1 {
        transform: translateZ(-70px) translateX(180px) scale(0.9);
    }

    .carousel-item.prev-2 {
        transform: translateZ(-100px) translateX(-280px) scale(0.8);
    }

    .carousel-item.next-2 {
        transform: translateZ(-100px) translateX(280px) scale(0.8);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    /* Standard carousel mobile optimization */
    .standard-carousel-container {
        height: 400px;
        margin-top: 1rem;
    }

    .standard-item {
        width: 280px;
        height: 380px;
        transform: scale(0.7) translateX(150%);
    }

    .standard-item.active {
        transform: scale(1) translateX(0);
    }

    .standard-item.next {
        transform: scale(0.8) translateX(40%);
    }

    .standard-item.prev {
        transform: scale(0.8) translateX(-40%);
    }

    .category-image {
        height: 240px;
    }

    .standard-item h4 {
        font-size: 1.1rem;
        margin: 0 0 0.5rem 0;
    }

    .item-content {
        padding: 0.8rem;
    }

    .standard-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .standard-prev {
        left: 5px;
    }

    .standard-next {
        right: 5px;
    }
}

/* Decorative Images - Bottom Right */
.decorative-images {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0.7;
}

.decorative-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.decorative-image:hover {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.decorative-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Image Details Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 25px;
    text-align: center;
}

.modal-details h2 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.modal-details p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-actions {
    margin-top: 20px;
}


/* Enhanced hover effects for clickable images */
.carousel-item,
.sliding-image,
.standard-item {
    cursor: pointer;
}

.carousel-item:hover,
.sliding-image:hover,
.standard-item:hover {
    transform: scale(1.02);
}

/* WhatsApp Chat Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    background: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.whatsapp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
    background: #e55a2b;
}

.whatsapp-icon {
    margin-right: 12px;
    font-size: 24px;
}

.whatsapp-text span {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* Mobile responsive for WhatsApp widget */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 15px;
        right: 15px;
    }

    .decorative-images {
        bottom: 80px;
        right: 15px;
        gap: 10px;
    }

    .decorative-image {
        width: 60px;
        height: 60px;
    }

    .whatsapp-link {
        padding: 10px 16px;
    }

    .whatsapp-icon {
        margin-right: 8px;
        font-size: 20px;
    }

    .whatsapp-text span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .btn-primary.btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

