/* Hero Slider - Fixed for Mobile */
.hero-slider {
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-item {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    min-height: 100%;
    min-width: 100%;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active img {
    opacity: 1;
}

/* Fix carousel caption positioning */
.carousel-caption {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 550px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    left: 10%;
    right: auto;
    bottom: auto;
    margin: 0;
    z-index: 2;
}

/* Add overlay for better text readability */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.carousel-caption h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.carousel-caption .lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

/* Enhanced Mouse Scroll Effect */
.mouse-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: white;
    animation: fadeInUp 1.5s ease-out;
    cursor: pointer;
}

.mouse {
    width: 30px;
    height: 48px;
    border: 2px solid white;
    border-radius: 18px;
    margin: 0 auto 12px;
    position: relative;
    animation: mouseFloat 3s infinite ease-in-out;
}

.wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2.2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 12px;
    font-weight: 500;
    animation: textPulse 2s infinite;
}

.scroll-arrow {
    position: relative;
    width: 18px;
    height: 18px;
    margin: 8px auto 0;
    animation: arrowBounce 2s infinite;
}

.scroll-arrow::before,
.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 0;
    height: 10px;
    width: 2px;
    background: white;
}

.scroll-arrow::before {
    left: 6px;
    transform: rotate(45deg);
}

.scroll-arrow::after {
    right: 6px;
    transform: rotate(-45deg);
}

/* Keyframe Animations */
@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(12px);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(24px);
    }
}

@keyframes mouseFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Section Title */
.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Features Section */
.feature-card {
    border-radius: 8px;
    padding: 25px 15px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    background: white;
    margin-bottom: 15px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.feature-icon i {
    font-size: 32px;
    color: var(--primary);
}

/* Destination Highlights */
.destination-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 280px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.destination-card:hover {
    transform: scale(1.02);
}

.destination-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.destination-card:hover img {
    transform: scale(1.08);
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white;
    padding: 20px 15px 15px;
}

.destination-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.destination-overlay p {
    font-size: 0.85rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(38, 70, 83, 0.9), rgba(38, 70, 83, 0.9)), url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-4.0.3&auto=format&fit=crop&w=2074&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 10px 0;
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid var(--primary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Popular Tours */
.tour-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    height: 100%;
    margin-bottom: 20px;
}

.tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.tour-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.tour-price {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Changed to Indian Rupee */
.tour-price:before {
    content: '₹';
}

.tour-rating {
    color: var(--accent);
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.card-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1400px) {
    .hero-slider {
        height: 80vh;
        min-height: 450px;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1200px) {
    .hero-slider {
        height: 75vh;
        min-height: 400px;
    }
    
    .carousel-caption {
        left: 5%;
        right: 5%;
        max-width: 500px;
        padding: 20px;
    }
    
    .carousel-caption h1 {
        font-size: 2.2rem;
    }
    
    .carousel-caption .lead {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 70vh;
        min-height: 350px;
        max-height: 600px;
    }
    
    .carousel-caption {
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        width: 85%;
        max-width: 85%;
        text-align: center;
        padding: 20px;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .carousel-caption .lead {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    
    .carousel-caption .btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    
    .mouse-scroll {
        bottom: 20px;
    }
    
    /* Reduce section gaps */
    section {
        padding: 40px 0 !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .section-title:after {
        width: 60px;
        height: 3px;
        bottom: -10px;
    }
    
    /* Adjust feature cards */
    .feature-card {
        margin-bottom: 15px;
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .feature-icon i {
        font-size: 28px;
    }
    
    /* Adjust destination cards */
    .destination-card {
        height: 220px;
        margin-bottom: 15px;
    }
    
    .destination-overlay {
        padding: 15px 12px 12px;
    }
    
    .destination-overlay h4 {
        font-size: 1.1rem;
    }
    
    .destination-overlay p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 65vh;
        min-height: 300px;
        max-height: 500px;
    }
    
    .carousel-caption {
        padding: 15px;
        width: 90%;
        max-width: 90%;
    }
    
    .carousel-caption h1 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }
    
    .carousel-caption .lead {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .carousel-caption .btn {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    .mouse-scroll {
        bottom: 15px;
    }
    
    .mouse {
        width: 24px;
        height: 40px;
    }
    
    .wheel {
        height: 8px;
        top: 8px;
    }
    
    /* Carousel controls larger for mobile */
    .carousel-control-prev, .carousel-control-next {
        width: 10%;
    }
    
    /* Further reduce section gaps */
    section {
        padding: 30px 0 !important;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    /* Reduce gap in stats section */
    .stats-section {
        padding: 40px 0 !important;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Adjust testimonials */
    .testimonial-card {
        padding: 15px;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .author-avatar {
        width: 45px;
        height: 45px;
    }
    
    /* Adjust tour cards */
    .tour-card img {
        height: 180px;
    }
    
    .tour-price {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 60vh;
        min-height: 280px;
        max-height: 450px;
    }
    
    .carousel-caption {
        padding: 12px;
        width: 92%;
    }
    
    .carousel-caption h1 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption .lead {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }
    
    .carousel-caption .btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .mouse-scroll {
        bottom: 10px;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }
    
    /* Minimal section gaps for mobile */
    section {
        padding: 0px 0 !important;
    }
    
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .my-5 {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .lead {
        font-size: 0.9rem;
    }
    
    h5 {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Reduce gap between rows */
    .row.g-4 {
        --bs-gutter-y: 1rem;
        --bs-gutter-x: 1rem;
    }
    
    /* Adjust destination cards */
    .destination-card {
        height: 200px;
    }
    
    .destination-overlay h4 {
        font-size: 1rem;
    }
    
    .destination-overlay p {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }
    
    .destination-overlay .btn {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .hero-slider {
        height: 40vh;
        min-height: 250px;
        max-height: 400px;
    }
    
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h1 {
        font-size: 1.2rem;
    }
    
    .carousel-caption .lead {
        font-size: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .mouse-scroll {
        display: none;
    }
}

/* For very small devices in landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
        min-height: 300px;
    }
    
    .carousel-caption {
        top: 45%;
        padding: 10px;
        width: 80%;
    }
    
    .carousel-caption h1 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .carousel-caption .lead {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 2;
    }
    
    .mouse-scroll {
        display: none;
    }
}

/* General Responsive Improvements */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: -8px;
    margin-right: -8px;
}

.row > * {
    padding-left: 8px;
    padding-right: 8px;
}

.lead {
    font-size: 1rem;
    line-height: 1.5;
}

/* Reduced overall spacing */
.mb-5 {
    margin-bottom: 2rem !important;
}

.mt-5 {
    margin-top: 2rem !important;
}

.pb-5 {
    padding-bottom: 2rem !important;
}

.pt-5 {
    padding-top: 2rem !important;
}

@media (max-width: 768px) {
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 1.5rem !important;
    }
    
    .pb-5 {
        padding-bottom: 1.5rem !important;
    }
    
    .pt-5 {
        padding-top: 1.5rem !important;
    }
    
    .btn-lg {
        padding: 8px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .mb-5 {
        margin-bottom: 1rem !important;
    }
    
    .mt-5 {
        margin-top: 1rem !important;
    }
    
    .pb-5 {
        padding-bottom: 1rem !important;
    }
    
    .pt-5 {
        padding-top: 1rem !important;
    }
}

/* Mobile-specific fixes to reduce gaps */
.mobile-reduced-gap {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}