/* Tropical Escape Showcase - Main Styles */
#tropical-escape-showcase {
    font-family: 'Poppins', sans-serif;
    color: #333;
    margin: 0;
    background-color: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
}

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600&display=swap');

/* New Header Design with Creative Fonts and Animations */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(45deg, #4285f4, #34a853);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 80px;
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    position: relative;
    padding: 0 15px;
    height: 45px;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #333;
}

/* Creative underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #007AFF, #05a3b7);
    transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px;
    opacity: 0;
}

.nav-link:hover::after {
    width: calc(100% - 30px);
    opacity: 1;
}

/* Active state */
.nav-item.active .nav-link::after {
    width: calc(100% - 30px);
    opacity: 1;
}

/* Logo specifics with pulse animation */
.nav-item.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.logo-img {
    height: 70px;
    width: auto;
    display: block;
    transition: all 0.5s ease;
}

/* Logo hover effect */
.logo-link:hover .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 5px 15px rgba(0,122,255,0.4));
}

/* Enhanced Dropdown Menu Styling */
.nav-item.dropdown {
    position: relative;
}

.dropdown-icon {
    margin-left: 5px;
    font-size: 10px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.nav-item.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}



/* Beautiful hover effect */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 8px;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown menu items with staggered animation */
.dropdown-menu li {
    list-style: none;
    padding: 0;
    margin: 2px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(0.05s * var(--item-index, 0));
}

.nav-item.dropdown:hover .dropdown-menu li {
    opacity: 1;
    transform: translateY(0);
}

/* Set indices for staggered animation */
.dropdown-menu li:nth-child(1) { --item-index: 1; }
.dropdown-menu li:nth-child(2) { --item-index: 2; }
.dropdown-menu li:nth-child(3) { --item-index: 3; }
.dropdown-menu li:nth-child(4) { --item-index: 4; }
.dropdown-menu li:nth-child(5) { --item-index: 5; }
.dropdown-menu li:nth-child(6) { --item-index: 6; }
.dropdown-menu li:nth-child(7) { --item-index: 7; }
.dropdown-menu li:nth-child(8) { --item-index: 8; }
.dropdown-menu li:nth-child(9) { --item-index: 9; }
.dropdown-menu li:nth-child(10) { --item-index: 10; }

/* Beautiful menu item styling */
.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #333;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 200;
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Gradient hover effect */
.dropdown-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08), rgba(5, 163, 187, 0.08));
    border-radius: 10px;
    opacity: 0;
    transform: scaleX(0.9) scaleY(0.8);
    transform-origin: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.dropdown-menu a:hover {
    color: #007AFF;
    transform: translateX(5px);
}

.dropdown-menu a:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Beautiful icon animation */
.dropdown-menu i {
    margin-right: 12px;
    color: #007AFF;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    width: 20px;
}

.dropdown-menu a:hover i {
    transform: translateY(-2px) scale(1.1);
    color: #05a3b7;
}

/* Elegant dropdown header and divider */
.dropdown-header {
    padding: 15px 18px 8px;
    color: #007AFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    margin-top: 5px;
}

/* Decorative accent for header */
.dropdown-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #007AFF, #05a3b7);
    border-radius: 3px;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.03));
    margin: 8px 12px;
}

/* Mobile styles fixes */
.mobile-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-dropdown.active .mobile-submenu {
    max-height: 1000px;
}

.mobile-submenu-header {
    padding: 10px 15px;
    color: #007AFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.mobile-submenu-divider {
    height: 1px;
    background-color: rgba(0,0,0,0.06);
    margin: 5px 0;
}

/* Mobile toggle button - hide by default in desktop view */
.mobile-toggle {
    display: none !important; /* Force hide with !important */
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 6px auto;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    width: 24px;
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    width: 24px;
}

/* Mobile menu with enhanced animations */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(245,247,250,0.98));
    backdrop-filter: blur(10px);
    z-index: 99;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.05);
    visibility: hidden; /* Force hide when not active */
    opacity: 0; /* Make transparent when not active */
    pointer-events: none; /* Disable interactions when not active */
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible; /* Show when active */
    opacity: 1; /* Make fully visible when active */
    pointer-events: auto; /* Enable interactions when active */
}

.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transform: translateX(50px);
    opacity: 0;
    animation: slideInItems 0.5s forwards;
    animation-delay: calc(0.05s * var(--item-index, 0));
}

@keyframes slideInItems {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.mobile-menu.active .mobile-nav li {
    --item-index: 0;
}

.mobile-menu.active .mobile-nav li:nth-child(1) { --item-index: 1; }
.mobile-menu.active .mobile-nav li:nth-child(2) { --item-index: 2; }
.mobile-menu.active .mobile-nav li:nth-child(3) { --item-index: 3; }
.mobile-menu.active .mobile-nav li:nth-child(4) { --item-index: 4; }
.mobile-menu.active .mobile-nav li:nth-child(5) { --item-index: 5; }
.mobile-menu.active .mobile-nav li:nth-child(6) { --item-index: 6; }
.mobile-menu.active .mobile-nav li:nth-child(7) { --item-index: 7; }
.mobile-menu.active .mobile-nav li:nth-child(8) { --item-index: 8; }

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.mobile-nav a:active {
    transform: scale(0.98);
}

.mobile-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-dropdown > a .dropdown-icon {
    transition: transform 0.3s ease;
}

.mobile-dropdown.active > a .dropdown-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    border-left: 2px solid #007AFF;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-dropdown.active .mobile-submenu {
    margin: 10px 0;
}

.mobile-submenu li {
    margin-bottom: 5px;
    border-bottom: none;
    transform: none;
    opacity: 1;
    animation: none;
}

.mobile-submenu a {
    padding: 8px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    color: #555;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.mobile-submenu a:hover,
.mobile-submenu a:active {
    color: #007AFF;
    padding-left: 5px;
}

.mobile-submenu i {
    margin-right: 10px;
    color: #007AFF;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-submenu a:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Add subtle glow to mobile menu */
.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .nav-list {
        display: none;
    }
    
    .mobile-toggle {
        display: block !important; /* Only show in mobile view */
    }
    
    .site-header {
        height: 70px;
    }
    
    .mobile-menu {
        top: 70px;
    }
    
    /* Handle phone orientation changes */
    @media (orientation: landscape) {
        .mobile-menu {
            padding-bottom: 50px;
        }
    }
}

body:not(.inner-page) .mobile-toggle span {
    background-color: white;
}

body:not(.inner-page) .site-header.scrolled .mobile-toggle span {
    background-color: #333;
}

/* Transparent header for homepage with enhanced transitions */
body:not(.inner-page) .site-header {
    background-color: transparent;
    box-shadow: none;
}

body:not(.inner-page) .nav-link {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

body:not(.inner-page) .nav-link::before {
    background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0.7));
}

body:not(.inner-page) .site-header.scrolled {
    background: linear-gradient(45deg, #4285f4, #34a853);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

body:not(.inner-page) .site-header.scrolled .nav-link {
    color: #333;
    text-shadow: none;
}

body:not(.inner-page) .site-header.scrolled .nav-link::before {
    background: linear-gradient(90deg, #05a3b7, #007AFF);
}

/* Page content adjustment to account for fixed header */
body {
    padding-top: 80px;
}

body:not(.inner-page) {
    padding-top: 0;
}

/* Original styles continue below */
.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    position: relative;
    background: linear-gradient(135deg, rgba(248,249,250,0.97), rgba(243,246,249,0.95));
    backdrop-filter: blur(5px);
    animation: gradientShift 15s ease infinite alternate;
    background-size: 200% 200%;
}

.showcase-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    animation: slideInLeft 1s ease-out forwards;
    animation-delay: 0.3s;
}

.showcase-header {
    margin-bottom: 1.5rem;
}

.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #05a3b7, #037ade);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.accent-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    animation: accentGlow 4s ease-in-out infinite;
}

@keyframes accentGlow {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

/* Enhanced Title Animation & Styling */
.showcase-title {
    position: relative;
    font-size: 2.5rem;
    line-height: 1.3;
    overflow: visible;
    margin-bottom: 2.5rem;
}

/* Split word effect */
.showcase-title .word-wrapper {
    display: inline-block;
    overflow: visible;
    margin-right: 0.5rem;
}

/* Highlight styling */
.showcase-title .highlight {
    display: inline-block;
    background: linear-gradient(120deg, #05a3b7 0%, #037ade 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    overflow: visible;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
}


@keyframes floatLeaf {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-5px); }
}

@keyframes floatLeaf2 {
    0%, 100% { transform: translateY(0) rotate(0) scale(1); }
    50% { transform: translateY(-3px) rotate(-10deg) scale(1.1); }
}

/* Wave underline effect */
.title-underline {
    position: absolute;
    width: 100%;
    height: 8px;
    bottom: -15px;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='10' viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 5 C 20 0, 30 10, 50 5 C 70 0, 80 10, 100 5' stroke='%2305a3b7' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 100px 10px;
    background-repeat: repeat-x;
    animation: moveWave 5s linear infinite;
}

@keyframes moveWave {
    from { background-position-x: 0; }
    to { background-position-x: 100px; }
}

/* Individual letter animations */
.showcase-title .letter {
    display: inline-block;
    animation: wavyText 3s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--index));
    transform-origin: bottom center;
}

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

/* Island glow effect */
.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 163, 183, 0.15), transparent 70%);
    filter: blur(15px);
    z-index: -1;
    animation: pulseGlow 5s ease-in-out infinite;
}

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

.showcase-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.showcase-description p {
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.showcase-description p:nth-child(1) {
    animation-delay: 0.5s;
}

.showcase-description p:nth-child(2) {
    animation-delay: 0.9s;
}

/* Feature Icons */
.showcase-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: space-between;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    flex: 1;
}

.feature-item:nth-child(1) { animation-delay: 0.6s; }
.feature-item:nth-child(2) { animation-delay: 0.8s; }
.feature-item:nth-child(3) { animation-delay: 1s; }
.feature-item:nth-child(4) { animation-delay: 1.2s; }

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background-color: rgba(5, 163, 183, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    position: relative;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
    background-color: rgba(5, 163, 183, 0.2);
}

/* Touch-friendly interactions for mobile devices */
@media (hover: none) and (pointer: coarse) {
    .feature-item:active .feature-icon {
        transform: translateY(-3px) scale(1.05);
        background-color: rgba(5, 163, 183, 0.25);
        transition: all 0.2s ease;
    }
    
    .feature-item:active {
        transform: scale(0.98);
        transition: all 0.2s ease;
    }
    
    .gallery-image:active {
        transform: scale(0.95) !important;
        transition: all 0.2s ease;
    }
}

/* Enhanced touch interactions */
@media (max-width: 768px) {
    .feature-item {
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .feature-item:active {
        transform: scale(0.95);
        background-color: rgba(5, 163, 183, 0.1);
    }
    
    .feature-icon {
        transition: all 0.3s ease;
    }
    
    .feature-item:active .feature-icon {
        transform: scale(1.1);
        background-color: rgba(5, 163, 183, 0.3);
    }
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(5, 163, 183, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(5, 163, 183, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(5, 163, 183, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(5, 163, 183, 0);
    }
}

.feature-text {
    font-size: 0.85rem;
    font-weight: 200;
    color: #444;
}

/* Enhanced Gallery Styles with Square Floating Images */
.showcase-gallery {
    position: relative;
    overflow: visible; /* Allow floating effects to extend outside container */
    opacity: 0;
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 0.3s;
    padding: 20px;
}

.gallery-container {
    position: relative;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    perspective: none; /* Remove perspective which can cause hover issues */
    z-index: 1;
    cursor: default; /* Reset cursor */
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer; /* Show pointer cursor on hoverable images */
    opacity: 1 !important; /* Force images to always be visible */
    transform: scale(1) !important; /* Force proper scaling */
}

/* Staggered animation timing for each image */
.gallery-image:nth-child(1) {
    animation-delay: 0.3s;
    transform-origin: top left;
}

.gallery-image:nth-child(2) {
    animation-delay: 0.5s;
    transform-origin: top right;
}

.gallery-image:nth-child(3) {
    animation-delay: 0.7s;
    transform-origin: bottom left;
}

.gallery-image:nth-child(4) {
    animation-delay: 0.9s;
    transform-origin: bottom right;
}

/* Unique floating animation for each image */
.gallery-image:nth-child(1) {
    animation: floatIn 0.8s forwards cubic-bezier(0.17, 0.67, 0.47, 1.34),
               floatAnimation1 6s ease-in-out infinite alternate;
}

.gallery-image:nth-child(2) {
    animation: floatIn 0.8s forwards cubic-bezier(0.17, 0.67, 0.47, 1.34),
               floatAnimation2 7s ease-in-out infinite alternate;
}

.gallery-image:nth-child(3) {
    animation: floatIn 0.8s forwards cubic-bezier(0.17, 0.67, 0.47, 1.34),
               floatAnimation3 8s ease-in-out infinite alternate;
}

.gallery-image:nth-child(4) {
    animation: floatIn 0.8s forwards cubic-bezier(0.17, 0.67, 0.47, 1.34),
               floatAnimation4 9s ease-in-out infinite alternate;
}

/* Remove floating animations that could interfere with hover */
@keyframes floatAnimation1 {
    0%, 100% { transform: translateY(0); }
}

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

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

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

/* Simplify the hover effect */
.gallery-image:hover {
    z-index: 10;
    transform: scale(0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Updated caption styling to ensure it always shows on hover */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: 2;
}

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

/* Final improved caption styling */
.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(45deg, #4285f4, #34a853);
    padding: 15px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 50;
    border-radius: 0 0 12px 12px;
    pointer-events: none;
    font-size: 0.9rem;
    font-weight: 200;
    color: #222;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.image-caption p {
    text-align: justify;
    margin: 0;
    line-height: 1.5;
}

.gallery-image:hover .image-caption {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Gallery controls repositioned for new layout */
.gallery-controls {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Experience Section Styles */
#srilanka-experience {
    padding: 3rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
    overflow: hidden;
}

#srilanka-experience::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 163, 183, 0.1) 0%, transparent 70%);
    animation: floatBubble 15s infinite ease-in-out;
}

#srilanka-experience::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(3, 122, 222, 0.1) 0%, transparent 70%);
    animation: floatBubble 10s infinite ease-in-out reverse;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -30px);
    }
    50% {
        transform: translate(0, -60px);
    }
    75% {
        transform: translate(-30px, -30px);
    }
}

.experience-container {
    max-width: 900px;
    margin: 0 auto;
}

.experience-header {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInOnScroll 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

/* Animated Experience the Magic of Sri Lanka section */
.experience-title {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #222, #05a3b7, #037ade, #222);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

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

/* Add magical sparkles around the title */
.experience-header::before,
.experience-header::after {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0;
    -webkit-text-fill-color: #ffdd00;
    text-shadow: 0 0 5px rgba(255, 221, 0, 0.7);
    animation: sparkleAnimation 4s ease-in-out infinite;
}

.experience-header::before {
    left: 20%;
    top: -10px;
    animation-delay: 0.5s;
}

.experience-header::after {
    right: 25%;
    top: 5px;
    animation-delay: 1.5s;
}

@keyframes sparkleAnimation {
    0%, 100% { opacity: 0; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(10deg); }
}

/* Magical floating effect for the accent line */
.experience-header .accent-line {
    position: relative;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #05a3b7, #037ade);
    margin: 0.8rem auto 1.5rem;
    animation: floatLine 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(5, 163, 183, 0.3);
}

@keyframes floatLine {
    0%, 100% { transform: translateY(0) scaleX(1); }
    50% { transform: translateY(-3px) scaleX(1.2); }
}

/* Add magical particles to the experience section */
#srilanka-experience {
    position: relative;
    overflow: hidden;
}

.magic-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(5, 163, 183, 0.6);
    animation: floatParticle 10s linear infinite;
    opacity: 0.7;
}

.magic-particle:nth-child(odd) {
    background-color: rgba(3, 122, 222, 0.5);
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    20% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(0);
        opacity: 0;
    }
}

/* Enhance the CTA button with glow */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(30deg);
    animation: ctaShine 6s infinite linear;
    z-index: -1;
}

@keyframes ctaShine {
    from {
        transform: translateX(-100%) rotate(30deg);
    }
    to {
        transform: translateX(100%) rotate(30deg);
    }
}

.experience-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInOnScroll 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.highlight-text {
    font-weight: 200;
    font-style: italic;
    color: black !important;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    display: inline-block;
}

.cta-button-container {
    text-align: center;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInOnScroll 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(90deg, #05a3b7, #037ade);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 200;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 10px rgba(3, 122, 222, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.5s;
    transform: skewX(-15deg);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(3, 122, 222, 0.3);
}

.cta-button:hover::before {
    transform: translateX(200%) skewX(-15deg);
}

/* Enhanced Mobile Responsive Styles for Showcase Features */
@media (max-width: 1200px) {
    .showcase-features {
        gap: 1.2rem;
    }
    
    .feature-item {
        flex: 1;
        min-width: 0;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
    
    .feature-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .showcase-container {
        grid-template-columns: 1fr;
        padding-top: 20px;
    }
    
    .showcase-gallery {
        height: auto;
        margin: 20px;
        padding-bottom: 50px;
    }
    
    .showcase-content {
        padding: 2rem;
    }
    
    #srilanka-experience {
        padding: 2rem;
    }
    
    .showcase-title {
        font-size: 2rem;
    }
    
    #tropical-escape-showcase {
        margin-top: -20px;
    }
    
    .showcase-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
        justify-items: center;
    }
    
    .feature-item {
        width: 100%;
        max-width: 200px;
        flex: none;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .showcase-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-item {
        width: 100%;
        max-width: 150px;
        margin-bottom: 0;
        padding: 0.5rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }
    
    .feature-text {
        font-size: 0.75rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .showcase-gallery {
        height: 400px;
    }
    
    .gallery-container {
        height: 450px;
    }
    
    .experience-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .showcase-title {
        font-size: 1.8rem;
    }
    
    .showcase-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 1rem;
        padding: 0 0.5rem;
    }
    
    .feature-item {
        width: 100%;
        max-width: 120px;
        padding: 0.3rem;
        margin-bottom: 0;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    
    .feature-text {
        font-size: 0.7rem;
        line-height: 1.2;
        text-align: center;
        font-weight: 500;
    }
    
    .showcase-gallery {
        height: 250px;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 160px);
        height: auto;
    }
    
    .gallery-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .showcase-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin-top: 0.8rem;
        padding: 0 0.3rem;
    }
    
    .feature-item {
        width: 100%;
        max-width: 100px;
        padding: 0.2rem;
    }
    
    .feature-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .feature-text {
        font-size: 0.65rem;
        line-height: 1.1;
        text-align: center;
        font-weight: 500;
    }
    
    .showcase-content {
        padding: 1.5rem;
    }
    
    .showcase-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .showcase-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 360px) {
    .showcase-features {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1rem;
        padding: 0 0.2rem;
    }
    
    .feature-item {
        width: 100%;
        max-width: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 0.5rem;
        background: rgba(5, 163, 183, 0.05);
        border-radius: 8px;
        border: 1px solid rgba(5, 163, 183, 0.1);
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        margin-bottom: 0;
        margin-right: 0.8rem;
        flex-shrink: 0;
    }
    
    .feature-text {
        font-size: 0.8rem;
        line-height: 1.3;
        text-align: left;
        font-weight: 500;
        flex: 1;
    }
    
    .showcase-content {
        padding: 1rem;
    }
    
    .showcase-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .showcase-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add smooth transition for the hero section */
.banner.homepage {
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Add a subtle shadow to create depth */
#tropical-escape-showcase::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.03));
    z-index: 1;
}

/* Ensure proper stacking of elements */
.showcase-content {
    position: relative;
    z-index: 2;
}

/* Add scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .js-scroll {
        opacity: 0;
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .js-scroll.scrolled {
        opacity: 1;
        transform: translateY(0) !important;
    }
    
    .scrolled.fade-in {
        animation: fade-in 0.8s ease-in-out both;
    }
    
    .scrolled.fade-in-bottom {
        animation: fade-in-bottom 0.8s ease-in-out both;
    }
    
    .scrolled.slide-left {
        animation: slide-in-left 0.8s ease-in-out both;
    }
    
    .scrolled.slide-right {
        animation: slide-in-right 0.8s ease-in-out both;
    }
}

@keyframes fade-in-bottom {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-in-left {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes textGradient {
    to {
        background-position: 200% center;
    }
}

/* Enhanced Gallery with Sri Lanka Landmark Animations */

/* Create a highlight shine effect on images */
.gallery-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(45deg, 
        #ff5e00, #ffb86c, #2cccff, #20e3b2, #ffcc70, #ff5e00);
    background-size: 600% 600%;
    border-radius: 14px; /* Slightly larger than image border-radius */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    animation: borderGlow 10s infinite linear;
    filter: blur(8px);
}

.gallery-image:hover::before {
    opacity: 0.7;
    transform: scale(1.03);
}

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

/* Location marker styling */
.location-marker {
    display: none; /* Hide the location marker instead of removing the code */
}

.location-dot {
    display: none; /* Hide the location dot */
}

.location-ring {
    display: none; /* Hide the location ring */
}

/* Enhanced image hover effects */
.gallery-image:nth-child(1):hover {
    box-shadow: 0 15px 30px rgba(255, 100, 50, 0.3);
}

.gallery-image:nth-child(2):hover {
    box-shadow: 0 15px 30px rgba(50, 200, 80, 0.3);
}

.gallery-image:nth-child(3):hover {
    box-shadow: 0 15px 30px rgba(200, 160, 50, 0.3);
}

.gallery-image:nth-child(4):hover {
    box-shadow: 0 15px 30px rgba(50, 100, 255, 0.3);
}

/* Landmark-specific overlays */
.gallery-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-image:nth-child(1)::after {
    /* Removed background-image */
}

.gallery-image:nth-child(2)::after {
    /* Removed background-image */
}

.gallery-image:nth-child(3)::after {
    /* Removed background-image */
}

.gallery-image:nth-child(4)::after {
    /* Removed background-image */
}

.gallery-image:hover::after {
    opacity: 0.7;
}

/* Enhanced caption with attraction info */
.image-caption {
    backdrop-filter: blur(5px);
    transform: perspective(500px) translateY(30px) rotateX(-15deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.475);
    border-left: 3px solid #05a3b7;
}

.gallery-image:hover .image-caption {
    transform: perspective(500px) translateY(0) rotateX(0);
    background: linear-gradient(45deg, #4285f4, #34a853);
}

/* 3D flip effect on hover */
.gallery-container:hover .gallery-image:not(:hover) {
    filter: grayscale(50%) brightness(0.8);
    transition: all 0.5s ease;
}

/* Custom floating animations for each landmark */
@keyframes floatAnimation1 {
    0%, 100% { transform: translateY(0); }
}

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

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

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

/* Enhanced Gallery Animation Effects */

/* 1. Interactive 3D Card Effects */
.gallery-container {
    perspective: 2000px;
}

.gallery-image {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-image:hover {
    z-index: 10;
    transform: scale(0.95) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* 2. Glowing Border Animation */
.gallery-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(45deg, 
        #ff5e00, #ffb86c, #2cccff, #20e3b2, #ffcc70, #ff5e00);
    background-size: 600% 600%;
    border-radius: 14px; /* Slightly larger than image border-radius */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    animation: borderGlow 10s infinite linear;
    filter: blur(8px);
}

.gallery-image:hover::before {
    opacity: 0.7;
    transform: scale(1.03);
}

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

/* 3. Reveal Animation */
.gallery-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    transform: none;
    animation: none;
    border-radius: 12px;
}

.gallery-image:hover::after {
    animation-play-state: paused;
}

/* 4. Ripple Effect on Click */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.8s linear;
    pointer-events: none;
}

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

/* 5. Magnetic Hover Effect */
.magnetic-area {
    position: absolute;
    inset: -50px;
    z-index: 1;
    pointer-events: none;
}

/* 6. Image Focus/Zoom Effect */
.focus-in {
    animation: focusIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    filter: none !important;
    z-index: 10;
}

@keyframes focusIn {
    0% {
        transform: scale(1) translateZ(0px);
        filter: blur(2px);
    }
    100% {
        transform: scale(1.1) translateZ(30px);
        filter: blur(0);
    }
}

/* 7. Custom Image Highlight Effect */
.gallery-image .image-highlight {
    display: none; /* Hide the image highlight effect */
}

.gallery-image:hover .image-highlight {
    opacity: 0; /* Ensure it stays hidden on hover */
}

/* 8. Particle Trails */
.particle-trail {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 100;
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.3); }
}

/* 9. Custom Cursor for Gallery */
.gallery-container {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(5, 163, 183, 0.3);
    border: 2px solid rgba(5, 163, 183, 0.6);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    z-index: 9999;
    mix-blend-mode: exclusion;
}

.custom-cursor.active {
    width: 40px;
    height: 40px;
    background: rgba(5, 163, 183, 0.1);
}

.custom-cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #05a3b7;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: transform 0.1s;
}

/* 10. Caption Animation Enhancement */
.image-caption {
    transform: translateY(100%) !important;
    opacity: 0;
    filter: blur(0);
    transition: all 0.4s ease-out;
    z-index: 20;
}

.gallery-image:hover .image-caption {
    transform: translateY(0) !important;
    opacity: 1;
    filter: blur(0);
}

/* 11. Floating Highlight Dots */
.highlight-dots {
    display: none; /* Hide highlight dots */
}

.highlight-dot {
    display: none; /* Hide highlight dot */
}

.gallery-image:hover .highlight-dots {
    opacity: 0; /* Ensure they stay hidden on hover */
}

/* Additional styles to ensure mobile menu is hidden in desktop */
@media (min-width: 992px) {
    .mobile-menu {
        display: none !important; /* Force hide on desktop */
    }
}

/* Adjust appearance for mobile only */
@media (max-width: 991px) {
    .mobile-menu {
        visibility: hidden; /* Hidden by default, even on mobile */
        display: block !important; /* But make sure it exists in the DOM */
    }
    
    .mobile-menu.active {
        visibility: visible; /* Only visible when active */
    }
} 