/* Pancho's Costa Rica - Modern Glass Design */

/* Import Google Fonts - Clean modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* New Color Palette */
:root {
    --primary-orange: #E67514;
    --dark-charcoal: #212121;
    --forest-green: #06923E;
    --light-mint: #D3ECCD;
    --white: #ffffff;
    --black: #000000;
    
    /* Glass effects */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 20px;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
    background: transparent;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--white);
    background: transparent;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: smooth;
}

/* Hero Section Video Background */
.video-background-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height for hero */
    z-index: -2;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Content Sections Video Background */
.video-background-content {
    position: fixed;
    top: 100vh; /* Start after hero section */
    left: 0;
    width: 100%;
    height: 100vh; /* Full height for content sections */
    z-index: -2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Video Placeholder Images */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    /* Optimize background rendering */
    will-change: opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.video-placeholder.fade-out {
    opacity: 0;
}

/* Optimize placeholder images */
.hero-placeholder {
    /* Slightly darker overlay for better text readability */
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.15);
}

.content-placeholder {
    /* Slight blue tint to match video theme */
    background-blend-mode: overlay;
    background-color: rgba(0, 123, 255, 0.1);
}

.video-background-hero video,
.video-background-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optimized for crisp, high resolution video rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    /* Hardware acceleration for smooth playback */
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* Better scaling for high-res videos */
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    /* Ensure no anti-aliasing blur */
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: auto;
    /* Hide any possible video controls */
    pointer-events: none;
}

/* Ensure video controls are completely hidden */
.video-background-hero video::-webkit-media-controls,
.video-background-content video::-webkit-media-controls {
    display: none !important;
}

.video-background-hero video::-webkit-media-controls-enclosure,
.video-background-content video::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-background-hero video::-webkit-media-controls-panel,
.video-background-content video::-webkit-media-controls-panel {
    display: none !important;
}

/* Especially optimize video #1 for 3000px resolution */
.video-background-hero video {
    /* Minimal filters to maintain video sharpness */
    filter: saturate(1.05) contrast(1.02) brightness(1.01);
    /* Force hardware acceleration for smooth playback */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Ensure crisp rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Show content video when scrolled past hero */
body.scrolled-past-hero .video-background-hero {
    opacity: 0;
}

body.scrolled-past-hero .video-background-content {
    opacity: 1;
    top: 0; /* Move to cover full screen */
}

/* Text readability over video backgrounds */
.text-over-video {
    background: var(--dark-charcoal) !important;
    color: var(--white) !important;
    padding: 1rem !important;
    border-radius: 10px !important;
    border: 1px solid var(--glass-border) !important;
}

/* Card content over video */
.card {
    background: var(--glass-bg) !important;
    color: var(--dark-charcoal) !important;
    border: 1px solid var(--glass-border) !important;
}

/* Service cards over video */
.service-card {
    background: var(--glass-bg) !important;
    color: var(--dark-charcoal) !important;
    border: 1px solid var(--glass-border) !important;
}

/* Destination cards over video */
.destination-content {
    background: var(--dark-charcoal) !important;
    color: var(--white) !important;
}

/* Removed old wave animations to improve performance */

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--white);
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Glass Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    transition: var(--transition-smooth);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(25px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white) !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.navbar-brand:hover {
    color: var(--primary-orange) !important;
    transform: scale(1.05);
}

.navbar-nav {
    gap: 1rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--white) !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    transition: var(--transition-spring);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin: 0 0.25rem;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    background: var(--primary-orange);
    color: var(--white) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(230, 117, 20, 0.4);
    border-color: var(--primary-orange);
}

.navbar-nav .nav-link:active {
    transform: translateY(0) scale(0.98);
}

/* Dropdown menus */
.dropdown-menu {
    background: rgba(33, 33, 33, 0.95);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--primary-orange);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--primary-orange);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
    border: none;
    background: none;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateX(5px);
}

/* Mobile navbar toggle */
.navbar-toggler {
    border: 2px solid var(--primary-orange);
    border-radius: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(230, 117, 20, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E67514' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5rem;
    height: 1.5rem;
}

/* Hero Section - Totalmente transparente */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    animation: subtle-zoom 20s ease-in-out infinite alternate;
}

@keyframes subtle-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(33, 33, 33, 0.3);
    /* Removed backdrop-filter blur to keep video sharp */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white) !important;
    max-width: 900px;
    padding: 2rem;
    animation: fade-in-up 1.2s ease-out;
    /* Totalmente transparente para welcome */
    background: transparent;
    border: none;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white) !important;
    text-shadow: none;
    animation: fade-in-up 1.2s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--white) !important;
    opacity: 1;
    animation: fade-in-up 1.2s ease-out 0.6s both;
}

.hero-cta {
    animation: fade-in-up 1.2s ease-out 0.9s both;
}

.hero-cta .btn {
    color: var(--white) !important;
}

/* Modern Glass Buttons */
.btn {
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    border: none;
    transition: var(--transition-spring);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 180px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-smooth);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), #FF8C42);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(230, 117, 20, 0.4);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF8C42, var(--primary-orange));
    color: var(--white);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(230, 117, 20, 0.5);
}

.btn-outline-primary {
    background: var(--glass-bg);
    color: var(--white);
    border: 2px solid var(--primary-orange);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary:hover {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(230, 117, 20, 0.5);
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* Button icon spacing */
.btn i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Special glow effect for primary buttons */
.btn-primary {
    box-shadow: 
        0 10px 30px rgba(230, 117, 20, 0.4),
        0 0 0 1px rgba(230, 117, 20, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 
        0 15px 40px rgba(230, 117, 20, 0.5),
        0 0 20px rgba(230, 117, 20, 0.3),
        0 0 0 1px rgba(230, 117, 20, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Ripple effect for buttons */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 600ms linear;
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Glass Cards */
.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition-spring);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.25);
}

/* Old destination cards removed - using new wildlife gallery instead */

/* Service Cards */
.service-card {
    padding: 2.5rem 2rem;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition-spring);
    height: 100%;
    color: var(--white);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.05);
    background: var(--primary-orange);
    box-shadow: 0 25px 60px rgba(230, 117, 20, 0.3);
    color: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--forest-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition-spring);
    box-shadow: 0 8px 25px rgba(6, 146, 62, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    background: var(--primary-orange);
    box-shadow: 0 15px 40px rgba(230, 117, 20, 0.4);
}

/* Clean Sections */
.destinations-section, .services-section {
    padding: 6rem 0;
    position: relative;
}

.destinations-section {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    /* Glass effect leve */
}

.services-section {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    /* Glass effect leve */
}

/* About Section - Glass blur leve */
.about-section {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    /* Glass effect leve para about section */
}

/* Modern Expedition Grid - 2x2 Layout */
.expedition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.expedition-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-spring);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.expedition-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Card Header with Main Image - Larger size */
.card-header {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    cursor: zoom-in;
}

/* Alternative image for hover effect */
.header-image.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.expedition-card:hover .header-image:not(.hover-image) {
    opacity: 0;
}

.expedition-card:hover .header-image.hover-image {
    opacity: 1;
    transform: scale(1.05);
}

.header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 33, 33, 0.9);
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.header-overlay h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.location-tag {
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Experience Highlights */
.experience-highlights {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.highlight img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
    transition: var(--transition-smooth);
    border: 2px solid var(--glass-border);
    margin-bottom: 0.5rem;
}

.highlight img:hover {
    transform: scale(1.1);
    border-color: var(--primary-orange);
    box-shadow: 0 8px 25px rgba(230, 117, 20, 0.4);
}

.highlight span {
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Modal styles removed - expedition cards now redirect to destination pages */

/* Testimonials Section - Totalmente transparente */
.testimonials-section {
    padding: 6rem 0;
    position: relative;
    background: transparent;
    /* Sin backdrop-filter para transparencia total */
}

/* Testimonial Cards - Totalmente transparentes */
.testimonial-card {
    background: transparent;
    border: none;
    color: var(--white);
    text-align: center;
    padding: 1rem;
}

.testimonial-card .blockquote {
    color: var(--white);
}

.testimonial-card .blockquote p {
    color: var(--white);
}

/* Títulos en secciones transparentes */
.testimonials-section h2,
.testimonials-section .display-4 {
    color: var(--white);
}

.testimonials-section p.lead {
    color: var(--white);
}

/* Solid Color Text - Using Primary Orange from palette */
.text-gradient {
    color: var(--primary-orange);
    /* Removed gradient, using solid color from palette */
}

/* Footer - Glass blur effect */
footer {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--primary-orange);
    color: var(--white);
    position: relative;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
}

footer a {
    color: var(--primary-orange);
    transition: var(--transition-smooth);
    text-decoration: none;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Social media links in footer */
footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    text-decoration: none !important;
}

footer .social-link:hover {
    background: var(--primary-orange);
    color: var(--white) !important;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(230, 117, 20, 0.4);
}

footer .social-link i {
    transition: var(--transition-smooth);
}

footer .social-link:hover i {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Smooth scrolling enhancement for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Minimalista Glass Mobile Navigation */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 15px !important;
        padding: 1rem !important;
        margin: 0.8rem !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    }
    
    .navbar-nav {
        gap: 0.5rem !important;
    }
    
    .navbar-nav .nav-link {
        color: var(--white) !important;
        padding: 0.8rem 1.2rem !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        transition: all 0.3s ease !important;
        font-weight: 500 !important;
        font-size: 1rem !important;
        text-align: center !important;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--primary-orange) !important;
        color: var(--white) !important;
        border-color: var(--primary-orange) !important;
        transform: translateY(-2px) !important;
    }
    
    /* Simple dropdown - solo los principales */
    .navbar-nav .dropdown-menu {
        background: rgba(33, 33, 33, 0.95) !important;
        backdrop-filter: blur(15px) !important;
        border: 1px solid var(--primary-orange) !important;
        border-radius: 10px !important;
        margin-top: 0.5rem !important;
        padding: 0.5rem !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    }
    
    .navbar-nav .dropdown-item {
        color: var(--white) !important;
        padding: 0.6rem 1rem !important;
        border-radius: 6px !important;
        font-size: 0.9rem !important;
        transition: all 0.2s ease !important;
    }
    
    .navbar-nav .dropdown-item:hover {
        background: var(--primary-orange) !important;
        color: var(--white) !important;
    }
    
    /* Glass toggle button */
    .navbar-toggler {
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-radius: 8px !important;
        padding: 0.6rem !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 2px rgba(230, 117, 20, 0.4) !important;
        outline: none !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        width: 1.3rem !important;
        height: 1.3rem !important;
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        margin-top: 80px; /* Account for fixed navbar */
        width: 100%;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 2.5rem;
        padding: 0 1rem;
        line-height: 1.4;
        text-align: center;
    }
    
    .hero-cta {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Button improvements for mobile */
    .btn {
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        min-width: 200px;
        min-height: 54px;
        border-radius: 25px;
        font-weight: 600;
        margin: 0.8rem 0.5rem;
        touch-action: manipulation;
    }
    
    .btn-primary {
        background: linear-gradient(45deg, var(--primary-orange), var(--forest-green));
        border: none;
        box-shadow: 0 4px 15px rgba(230, 117, 20, 0.3);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(230, 117, 20, 0.4);
    }
    
    /* Content sections mobile optimization */
    .expedition-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .expedition-card {
        min-height: auto;
        margin-bottom: 1.5rem;
    }
    
    .card-header {
        height: 220px;
    }
    
    .experience-highlights {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .highlight img {
        width: 50px;
        height: 50px;
    }
    
    /* Mobile typography improvements */
    h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    /* Mobile padding and spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Video background mobile optimization */
    .video-background-hero,
    .video-background-content {
        transform: scale(1.05);
    }
    
    .video-background-hero video,
    .video-background-content video {
        object-fit: cover;
        width: 100%;
        height: 100%;
        object-position: center center;
    }
    
    /* Optimize video placeholder for mobile */
    .video-placeholder {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
    
    /* Service cards mobile */
    .service-card {
        margin-bottom: 2rem;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    /* Package cards mobile */
    .package-card {
        margin-bottom: 2rem;
        border-radius: 20px;
    }
    
    /* Footer mobile optimization */
    footer {
        text-align: center;
        padding: 3rem 1rem 2rem;
    }
    
    footer .row > div {
        margin-bottom: 2rem;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        min-width: 140px;
    }
    
    .expedition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Large mobile screens (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 2rem;
    }
    
    .btn {
        min-width: 180px;
        font-size: 1.05rem;
        padding: 1.1rem 1.8rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 1.05rem !important;
        padding: 1.1rem 1.4rem !important;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Small mobile screens (≤575px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        padding: 0 1rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        padding: 0 1rem;
        line-height: 1.3;
    }
    
    .hero-content {
        padding: 1.5rem 0.5rem;
        margin-top: 70px;
    }
    
    .btn {
        min-width: calc(100% - 1rem);
        margin: 0.5rem 0.5rem;
        padding: 1.3rem 1.5rem;
        font-size: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 1rem !important;
        padding: 1rem 1.2rem !important;
        min-height: 52px !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .package-card,
    .service-card {
        margin: 0 0 1.5rem;
    }
    
    /* Improve touch targets on very small screens */
    .navbar-toggler {
        min-width: 48px !important;
        min-height: 48px !important;
        padding: 0.9rem !important;
    }
}

/* Mobile landscape optimization */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content {
        padding: 1rem;
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .btn {
        min-width: auto;
        margin: 0.3rem;
        padding: 0.8rem 1.5rem;
    }
    
    /* Compact navbar in landscape */
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1.2rem !important;
        min-height: 44px !important;
        font-size: 0.95rem !important;
    }
}

/* High DPI screens optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
    
    .glass-effect {
        backdrop-filter: blur(calc(var(--glass-blur) * 0.8));
    }
}

/* Utility Classes */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure all text uses palette colors */
p, span, div, li, small {
    color: inherit;
}

/* Footer specific text colors */
footer h5, footer h6 {
    color: var(--white);
}

footer p {
    color: var(--white);
    opacity: 0.9;
}

footer .list-unstyled li {
    color: var(--white);
    opacity: 0.8;
}

/* Service card text */
.service-card h4 {
    color: inherit;
}

.service-card p {
    color: inherit;
    opacity: 0.9;
}

/* About section text */
.about-section p {
    color: var(--white);
}

.about-section h6 {
    color: var(--white);
}

.about-section small {
    color: var(--white);
    opacity: 0.75;
}

/* Remove any conflicting Bootstrap overrides */
.bg-primary {
    background-color: var(--primary-orange) !important;
}

.text-primary {
    color: var(--primary-orange) !important;
}

.bg-light {
    background-color: var(--light-mint) !important;
}

.bg-dark {
    background-color: var(--dark-charcoal) !important;
}