/* Cloud Trek Balloon Co - Enhanced Mobile-Responsive Styles */
:root {
    --primary-color: #E74C3C; /* Red */
    --secondary-color: #1A2942; /* Navy blue */
    --accent-color: #F1C40F; /* Yellow accent */
    --text-dark: #2C3E50;
    --text-light: #fff;
    --bg-light: #f9f9f9;
    --bg-dark: #1A2942;
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 5px;
}

/* Import additional Google Fonts for a more distinctive look */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&family=Quicksand:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Ensures proper viewport sizing on mobile */
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    word-wrap: break-word; /* Ensures text wraps properly on mobile */
}

p {
    margin-bottom: 1rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
}

img {
    max-width: 100%; /* Critical for responsive images */
    height: auto;
    display: block;
}

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

section {
    padding: 80px 0; /* Slightly reduced padding for mobile */
    position: relative;
    overflow: hidden; /* Prevents horizontal scroll on mobile */
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin: 10px 0;
    min-width: 150px; /* Ensures touch-friendly button size */
}

.btn:hover, .btn:active {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 41, 66, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Enhanced Navbar with better mobile support */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 24px; /* Slightly smaller for mobile */
    font-weight: 800;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: 1.5px;
}

.site-logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    cursor: pointer;
    font-size: 24px;
    color: var(--secondary-color);
    padding: 10px; /* Larger touch area */
    z-index: 1002; /* Ensures it stays above the menu */
    background: transparent;
    border: none;
    outline: none;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 5px; /* Larger touch target */
    font-family: 'Poppins', sans-serif;
    display: inline-block; /* Ensures proper padding application */
}

.nav-link span {
    position: relative;
    z-index: 2;
}

.nav-link:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-link:hover:before, .nav-link.active:before {
    width: 100%;
}

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

/* Video Slideshow Styles */
.video-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.video-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.video-slide.active {
    opacity: 1;
    z-index: 2;
}

.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

/* Hero Section Enhancement */
#hero {
    height: 100vh;
    min-height: 500px; /* Minimum height for very small screens */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 15px; /* Side padding for mobile */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 100%;
    padding: 0 15px;
    z-index: 4; /* Ensure content is above video and overlay */
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem); /* Responsive font size */
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-family: 'Quicksand', sans-serif;
}

.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-style: italic;
    margin-bottom: 30px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-family: 'Playfair Display', serif;
}

/* About Section Enhancement */
#about {
    background-color: #fff;
}

.about-content {
    display: flex;
    flex-direction: column; /* Stack on mobile by default */
    gap: 40px;
    margin-bottom: 40px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    margin: 0 auto; /* Center on mobile */
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.feature-icons {
    display: flex;
    flex-direction: column; /* Stack on mobile by default */
    gap: 20px;
}

.feature {
    text-align: center;
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.feature p {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
}

/* Why Munnar Section Enhancement */
#why-munnar {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('munnar-bg.jpg') center/cover no-repeat fixed;
    color: var(--text-light);
    background-attachment: scroll; /* Fix for iOS */
}

#why-munnar .section-title {
    color: var(--text-light);
}

.munnar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.munnar-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 100%;
    padding: 0 10px;
}

.munnar-header h3 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 15px;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.munnar-header p {
    font-size: 18px;
    font-style: italic;
    font-family: 'Quicksand', sans-serif;
}

.munnar-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile by default */
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.munnar-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    transition: var(--transition);
}

.munnar-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.munnar-item i {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.munnar-item h4 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.munnar-item p {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.munnar-cta {
    text-align: center;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 600;
    margin-top: 30px;
    color: var(--accent-color);
    font-family: 'Playfair Display', serif;
    padding: 0 15px;
}

/* Services Section Enhancement */
#services {
    background-color: #f8f8f8;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile by default */
    gap: 30px;
    width: 100%;
}

.service-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    max-width: 100%;
}

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

.service-image {
    height: 0;
    padding-bottom: 60%; /* Aspect ratio for responsive images */
    position: relative;
    overflow: hidden;
}

.service-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.service-content {
    padding: 25px 20px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.service-content p {
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-time {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--secondary-color);
    font-family: 'Poppins', sans-serif;
}

.service-time i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 16px;
}

/* Features Section Enhancement */
#features {
    background-color: #fff;
}

.features-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile by default */
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column; /* Stack icon and text on mobile */
    align-items: center;
    background-color: #f8f8f8;
    padding: 25px 20px;
    border-radius: 12px;
    transition: var(--transition);
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.feature-text h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-align: center;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 15px;
    color: #555;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
}

.adrenaline-cta {
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 25px 20px;
    border-radius: 12px;
    margin-top: 30px;
    width: 100%;
}

.adrenaline-cta p {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
    color: var(--accent-color);
}

/* Gallery Section Enhancement */
#gallery {
    background-color: #f8f8f8;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    max-width: 100%;
    padding: 0 15px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Quicksand', sans-serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile by default */
    gap: 20px;
    width: 100%;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: relative;
    height: 0;
    padding-bottom: 75%; /* Aspect ratio for images */
    overflow: hidden;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
}

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

/* Modal Styles Enhancement */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    transition: opacity 0.5s ease;
    border-radius: 5px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1101;
    transition: all 0.3s ease;
    width: 40px; /* Larger touch target */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-prev,
.modal-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: bold;
    font-size: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1101;
}

.modal-prev {
    left: 15px;
}

.modal-next {
    right: 15px;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: var(--primary-color);
}

/* Contact Section Enhancement */
#contact {
    background-color: #fff;
    position: relative;
    padding: 80px 0 60px;
}

#contact .section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    max-width: 100%;
    padding: 0 15px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Quicksand', sans-serif;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile by default */
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info-box {
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(26, 41, 66, 0.2);
    color: white;
}

.contact-info-header {
    padding: 30px 20px;
    background-color: rgba(0, 0, 0, 0.2);
}

.contact-info-header h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.contact-info-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin-bottom: 0;
    font-family: 'Quicksand', sans-serif;
}

.contact-items {
    padding: 25px 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.1rem;
    color: white;
}

.contact-text h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    font-size: 15px;
    font-family: 'Quicksand', sans-serif;
}

.contact-cta {
    padding: 25px 20px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-cta h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', sans-serif;
    width: calc(100% - 10px); /* Full width on mobile with margin */
    max-width: 200px;
}

.contact-button i {
    margin-right: 10px;
}

.contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.contact-button.whatsapp {
    background-color: #25D366;
}

.contact-social-box {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-social-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
}

.contact-social-box p {
    color: #666;
    margin-bottom: 25px;
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 20px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.social-card i {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.social-card span {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.social-card:nth-child(1) {
    color: #3b5998;
}

.social-card:nth-child(2) {
    color: #e1306c;
}

.social-card:nth-child(3) {
    color: #ff0000;
}

.social-card:nth-child(4) {
    color: #25D366;
}

.map-container {
    height: 350px; /* Slightly shorter on mobile */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Enhancement */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 30px 0;
}

.footer-links li {
    margin: 5px 15px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 5px; /* Larger touch target */
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    margin: 25px 0;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 10px;
    color: var(--text-light);
    font-size: 18px;
    transition: var(--transition);
}

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

.copyright {
    margin-top: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Quicksand', sans-serif;
}

/* Enhanced Preloader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--secondary-color), #0f1a2e);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.loader-balloon {
    width: 90px; /* Slightly smaller on mobile */
    height: 120px;
    background-color: var(--primary-color);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    margin: 0 auto;
    animation: loader-float 3s ease-in-out infinite;
    box-shadow: 0 15px 35px rgba(231, 76, 60, 0.4);
}

.loader-balloon::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 15px;
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

.loader-balloon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 30px;
    background-color: inherit;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
}

.loader-strings {
    width: 2px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    margin: 5px auto;
    position: relative;
}

.loader-strings::before, .loader-strings::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    bottom: 0;
}

.loader-strings::before {
    transform: rotate(-15deg);
    transform-origin: bottom center;
    left: -8px;
}

.loader-strings::after {
    transform: rotate(15deg);
    transform-origin: bottom center;
    right: -8px;
}

.loader-basket {
    width: 70px;
    height: 35px;
    background-color: #8B4513;
    border-radius: 5px 5px 10px 10px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.loader-basket::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 10px;
    background-color: #A0522D;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.loader-content p {
    margin-top: 25px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(to right, white, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 2s linear infinite;
    font-family: 'Playfair Display', serif;
}

@keyframes loader-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes text-shine {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 200%;
    }
}

/* Cloud and Balloon Animations Enhancement */
.cloud {
    position: absolute;
    opacity: 0.8;
    pointer-events: none;
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.1));
    z-index: 1; /* Ensure clouds are behind content */
}

.cloud-1 {
    top: 15%;
    left: -80px; /* Smaller offset for mobile */
    animation: cloud-move-right 60s linear infinite;
    width: 80px; /* Smaller clouds for mobile */
    height: auto;
}

.cloud-2 {
    top: 35%;
    right: -70px;
    animation: cloud-move-left 45s linear infinite;
    width: 70px;
    height: auto;
}

.cloud-3 {
    bottom: 25%;
    left: -90px;
    animation: cloud-move-right 70s linear infinite;
    width: 90px;
    height: auto;
}

@keyframes cloud-move-right {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(100vw + 200px));
    }
}

@keyframes cloud-move-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100vw - 200px));
    }
}

/* Back to Top Button Enhancement */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(26, 41, 66, 0.3);
}

/* Fix for iOS video playback */
@supports (-webkit-touch-callout: none) {
    .video-slide video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translateX(-50%) translateY(-50%);
    }
    
    /* Fix for 100vh issue on iOS Safari */
    #hero {
        height: -webkit-fill-available;
    }
    
    /* Fix for background-attachment: fixed not working on iOS */
    #why-munnar {
        background-attachment: scroll;
    }
}

/* Mobile Menu Styles - Fixed */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
        color: var(--secondary-color);
        padding: 10px;
        z-index: 1002;
        background: transparent;
        border: none;
        outline: none;
        position: relative;
    }
    
    /* Menu toggle hover effect */
    .menu-toggle:hover {
        color: var(--primary-color);
    }
    
    /* Active state for menu toggle */
    .menu-toggle.active {
        color: var(--primary-color);
    }
    
    /* Fixed navigation links for mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease-in-out;
        z-index: 1001;
        padding: 50px 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    /* Show the menu when active */
    .nav-links.active {
        right: 0;
    }
    
    /* Navigation link items in mobile menu */
    .nav-links li {
        margin: 15px 0;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInDown 0.5s forwards;
        animation-delay: calc(0.1s * var(--item-index, 0));
    }
    
    /* Apply indices for staggered animation */
    .nav-links li:nth-child(1) { --item-index: 1; }
    .nav-links li:nth-child(2) { --item-index: 2; }
    .nav-links li:nth-child(3) { --item-index: 3; }
    .nav-links li:nth-child(4) { --item-index: 4; }
    .nav-links li:nth-child(5) { --item-index: 5; }
    .nav-links li:nth-child(6) { --item-index: 6; }
    .nav-links li:nth-child(7) { --item-index: 7; }
    
    /* Navigation links appearance in mobile menu */
    .nav-link {
        color: var(--text-light) !important;
        font-size: 18px;
        padding: 10px 25px;
        display: block;
        text-align: center;
        width: 100%;
    }
    
    /* Active link styling */
    .nav-link.active {
        color: var(--primary-color) !important;
    }
    
    /* Navigation link hover effect */
    .nav-link:hover {
        color: var(--primary-color) !important;
    }
    
    /* Fade-in animation for menu items */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Mobile responsiveness for video slideshow */
@media (max-width: 767px) {
    .video-slide video {
        object-position: center center;
    }
    
    .menu-toggle {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .nav-container {
        position: relative;
    }
}

/* Fix for very narrow screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Improved Responsive Media Queries */
/* Medium devices: Tablets (768px and up) */
@media (min-width: 768px) {
    section {
        padding: 90px 0;
    }
    
    .section-title {
        font-size: 2.8rem;
        margin-bottom: 50px;
    }
    
    .about-content {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }
    
    .feature-icons {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .munnar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    
    .feature-icon {
        margin-right: 20px;
        margin-bottom: 0;
    }
    
    .feature-text h4, .feature-text p {
        text-align: left;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-wrapper {
        grid-template-columns: 3fr 2fr;
    }
    
    .contact-button {
        width: auto;
        margin: 0 10px;
    }
}

/* Desktop and larger tablets (992px and up) */
@media (min-width: 992px) {
    .navbar {
        padding: 20px 0;
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
    }
    
    .nav-links li {
        margin-left: 30px;
        opacity: 1;
        transform: translateY(0);
        animation: none;
    }
    
    .nav-links a {
        color: var(--secondary-color);
        font-size: 15px;
        padding: 8px 5px;
        display: inline-block;
        text-align: left;
        width: auto;
    }
    
    .nav-link {
        color: var(--secondary-color) !important;
    }
    
    .nav-link.active, .nav-link:hover {
        color: var(--primary-color) !important;
    }
    
    .munnar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}