/* ===================================================================
   FUTURISTIC GALLERY DESIGN - Professional Tourism UI/UX 2024
   Based on latest industry trends and accessibility standards
   ================================================================= */

/* Enhanced navbar visibility */
.navbar .nav-link,
.navbar .logo-text {
    color: #fff !important;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar .bar {
    background: #fff !important;
}

/* ===================================================================
   FUTURISTIC HERO SECTION - Tourism Industry Best Practices
   Features: Liquid Glass, Interactive Elements, Mobile-First Design
   ================================================================= */

.gallery-hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3e 25%, #2d3561 50%, #1e2a5e 75%, #0f1829 100%);
    padding: 140px 0 20px 0;
}

@media (max-width: 900px) {
  .gallery-hero {
    padding-top: 110px !important;
  }
}
@media (max-width: 600px) {
  .gallery-hero {
    padding-top: 90px !important;
  }
}

/* Floating Particle System */
.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(46, 134, 171, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(241, 143, 1, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(162, 59, 114, 0.06) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.7;
    }
    33% { 
        transform: translate(-20px, -30px) scale(1.1);
        opacity: 0.9;
    }
    66% { 
        transform: translate(30px, -20px) scale(0.9);
        opacity: 0.8;
    }
}

/* Dynamic Background System */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    border-radius: 0;
    background: none;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.7) contrast(1.1) saturate(1.2);
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 0.8;
    animation: slideZoom 20s ease-in-out infinite;
}

@keyframes slideZoom {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.1); }
}

/* Advanced Liquid Glass Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, 
            rgba(10, 14, 39, 0.4) 0%, 
            rgba(46, 134, 171, 0.3) 30%,
            rgba(162, 59, 114, 0.2) 70%,
            rgba(15, 24, 41, 0.5) 100%
        ),
        radial-gradient(ellipse at center, 
            rgba(46, 134, 171, 0.1) 0%, 
            transparent 70%
        );
    backdrop-filter: blur(2px) saturate(150%);
    z-index: 3;
}

/* Direct Hero Content Positioning */
.gallery-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Futuristic Content Container with Liquid Glass */
.hero-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    animation: heroFadeInUp 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 2rem 1rem 2rem; /* Reduced top padding */
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Changed from space-between to center */
    align-items: center;
    height: auto; /* Changed from fixed height to auto */
    min-height: 60vh; /* Reduced minimum height */
    max-height: 70vh; /* Reduced maximum height */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 4;
}

@media (max-width: 900px) {
  .hero-content {
    padding: 1.2rem 1.2rem 0.7rem 1.2rem;
    height: auto;
    min-height: 50vh;
    max-height: 60vh;
  }
}
@media (max-width: 600px) {
  .hero-content {
    padding: 1rem 1rem 0.5rem 1rem;
    height: auto;
    min-height: 45vh;
    max-height: 55vh;
  }
}

/* Content Glow Effect */
.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(46, 134, 171, 0.6) 20%, 
        rgba(241, 143, 1, 0.8) 50%, 
        rgba(162, 59, 114, 0.6) 80%, 
        transparent 100%
    );
    animation: borderGlow 3s ease-in-out infinite;
}

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

/* Futuristic Badge with Pulse Effect */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.5rem;
    background: rgba(46, 134, 171, 0.15);
    border: 1px solid rgba(46, 134, 171, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(46, 134, 171, 0.2);
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-badge:hover::before {
    left: 100%;
}

.hero-badge:hover {
    background: rgba(46, 134, 171, 0.25);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 48px rgba(46, 134, 171, 0.3);
}

.hero-badge i {
    font-size: 1.2rem;
    color: #F18F01;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Modern Typography with White Color */
.hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: clamp(2.2rem, 4vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 auto 0.5rem auto !important; /* Added small bottom margin */
    text-align: center !important;
    width: 100% !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-size: unset !important;
    animation: none !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3) !important;
    display: block !important;
    word-wrap: break-word !important;
    letter-spacing: -0.02em !important;
    position: relative !important;
}

/* Title Glow Effect - White */
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #ffffff;
    filter: blur(4px);
    opacity: 0.3;
    z-index: -1;
}

@keyframes titleGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Enhanced Text Gradient with Animation - Restored */
.text-gradient {
    background: linear-gradient(135deg, #F18F01 0%, #A23B72 50%, #2E86AB 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-size: 300% 300% !important;
    animation: gradientShift 4s ease-in-out infinite !important;
    display: inline-block !important;
    word-wrap: break-word !important;
    font-weight: 900 !important;
    position: relative !important;
}

.text-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #F18F01 0%, #A23B72 50%, #2E86AB 100%);
    background-size: 300% 300%;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
    animation: gradientShift 4s ease-in-out infinite;
}

/* Modern Description with Better Typography */
.hero-description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 auto 1rem auto; /* Added bottom margin for spacing */
    opacity: 0.92;
    max-width: 650px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    position: relative;
}

/* Futuristic Stats Grid with Floating Cards */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem auto; /* Reduced margin */
    max-width: 750px;
    position: relative;
}

/* Interactive Stat Cards with Liquid Glass */
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.3rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(46, 134, 171, 0.1) 0%, 
        rgba(241, 143, 1, 0.05) 50%, 
        rgba(162, 59, 114, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-12px) scale(1.05);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(46, 134, 171, 0.3);
    box-shadow: 0 24px 60px rgba(46, 134, 171, 0.2);
}

/* Animated Stat Icons */
.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2E86AB 0%, #F18F01 50%, #A23B72 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    animation: iconFloat 3s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(46, 134, 171, 0.3);
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

.stat-item:hover .stat-icon {
    animation-duration: 1s;
    transform: scale(1.1);
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Modern Typography for Numbers */
.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.3rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Modern Action Buttons with Advanced Interactions */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin: 0.5rem auto 0rem auto; /* Reduced top margin */
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Futuristic Button Base */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    min-width: 170px;
    justify-content: center;
}

/* Primary CTA Button with Magnetic Effect */
.btn-primary {
    background: linear-gradient(135deg, #2E86AB 0%, #F18F01 50%, #A23B72 100%);
    color: white;
    box-shadow: 0 12px 40px rgba(46, 134, 171, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(255, 255, 255, 0.15) 100%);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #2E86AB, #F18F01, #A23B72);
    border-radius: 50px;
    z-index: -1;
    filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::after {
    opacity: 0.7;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 60px rgba(46, 134, 171, 0.5);
}

/* Secondary Button with Glass Morphism */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s ease;
}

.btn-secondary:hover::before {
    transform: translateX(100%) skewX(-15deg);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(46, 134, 171, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 48px rgba(46, 134, 171, 0.2);
}

/* Button Icons with Animation */
.hero-btn i {
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Accessibility Focus States */
.hero-btn:focus-visible {
    outline: 2px solid #F18F01;
    outline-offset: 4px;
}

/* Modern Hero Indicators with Liquid Glass */
.hero-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.indicator::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E86AB, #F18F01);
    opacity: 0;
    z-index: -1;
    filter: blur(4px);
    transition: opacity 0.3s ease;
}

.indicator:hover::after {
    opacity: 0.5;
}

.indicator.active {
    background: linear-gradient(135deg, #2E86AB, #F18F01);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    box-shadow: 0 4px 16px rgba(46, 134, 171, 0.4);
}

.indicator.active::after {
    opacity: 0.7;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 0.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 1rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

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



.scroll-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Enhanced Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafb 0%, #f0f7ff 100%);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, rgba(46, 134, 171, 0.1), rgba(162, 59, 114, 0.1));
    border: 1px solid rgba(46, 134, 171, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.section-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 134, 171, 0.15);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 700;
    color: #000000 !important;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Override gradient for section titles - make them black */
.section-title.text-gradient {
    display: inline-block !important;
    width: auto !important;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    color: #000000 !important;
    animation: none !important;
}

/* Make hero title white */
.hero-title.text-gradient {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    color: #ffffff !important;
    animation: none !important;
    word-wrap: break-word !important;
    font-weight: 900 !important;
    position: relative !important;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Enhanced Filter Menu */
.filter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    flex: 1;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border: 2px solid rgba(46, 134, 171, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary, #2d3748);
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 44px;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    background: rgba(46, 134, 171, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 134, 171, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(46, 134, 171, 0.3);
    transform: translateY(-2px);
}

.filter-btn i {
    font-size: 1rem;
}

.filter-btn .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.3rem;
}

.filter-btn.active .count {
    background: rgba(255, 255, 255, 0.3);
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.3rem;
    border-radius: 15px;
    border: 1px solid rgba(46, 134, 171, 0.1);
    backdrop-filter: blur(10px);
}

.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: rgba(46, 134, 171, 0.1);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Enhanced Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    transition: all 0.5s ease;
}

.gallery-grid.masonry {
    columns: 3;
    column-gap: 2rem;
    grid-template-columns: none;
}

.gallery-grid.masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    display: inline-block;
    width: 100%;
}

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* All items now have uniform size */

.gallery-card {
    border-radius: 25px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    will-change: transform;
}

.gallery-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 60px rgba(46, 134, 171, 0.2);
}

.image-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-card:hover .image-wrapper img {
    transform: scale(1.15);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.8) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
}

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

/* Location badge styles removed - no longer used */

.overlay-content {
    color: white;
}

/* Overlay content h3 styles removed - no longer used */

/* Description and tags styles removed - no longer used */

.zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .zoom-btn {
    opacity: 1;
    transform: scale(1);
}

.zoom-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .favorite-btn {
    opacity: 1;
    transform: scale(1);
}

.favorite-btn:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* Enhanced Pagination */
.gallery-pagination {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 134, 171, 0.1);
}

.pagination-info {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(46, 134, 171, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 134, 171, 0.4);
}

/* Enhanced CTA Section */
.gallery-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2E86AB 0%, #F18F01 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    color: white;
}

.cta-content p {
    font-size: 1.35rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 500;
}

.feature i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-buttons .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-buttons .btn-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

/* Enhanced Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: calc(100vw - 4rem);
    max-height: calc(100vh - 8rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#lightbox-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100% - 120px);
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    display: block;
    margin: 0 auto;
}

.lightbox-info {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    z-index: 10000;
    max-width: 80%;
    margin-top: 0;
}

.lightbox-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-family: 'Playfair Display', serif;
    color: #F18F01;
}

.lightbox-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0 3rem;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid.masonry {
        columns: 2;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ===================================================================
   MOBILE RESPONSIVE DESIGN - Tourism Best Practices
   Mobile-first approach with accessibility considerations
   ================================================================= */

@media (max-width: 768px) {
    .gallery-hero {
        min-height: 100vh;
        padding: 70px 0 20px 0;
        align-items: center;
        overflow: hidden;
    }
    
    .gallery-hero {
        padding: 0 1rem;
    }
    
    /* Mobile Hero Content with Optimized Glass Effect */
    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1.2rem 1.2rem 1rem 1.2rem; /* Increased padding */
        height: auto;
        min-height: 55vh; /* Increased from 50vh */
        max-height: 65vh; /* Increased from 60vh */
        background: rgba(255, 255, 255, 0.06);
        backdrop-filter: blur(15px) saturate(160%);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        width: 95%;
        margin: 0 auto;
    }
    
    /* Mobile Badge */
    .hero-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        gap: 0.6rem;
    }
    
    .hero-slide {
        background-attachment: scroll;
    }

    /* Mobile Typography */
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin: 0 auto 0.3rem auto; /* Added small bottom margin */
        text-align: center;
        width: 100%;
        line-height: 1.1;
        display: block;
        word-wrap: break-word;
        letter-spacing: -0.02em;
        font-weight: 800;
        color: #ffffff !important;
        background: none !important;
        animation: none !important;
    }

    .hero-description {
        font-size: 1rem;
        margin: 0 auto 0.8rem auto; /* Added bottom margin */
        line-height: 1.4;
        max-width: 100%;
        opacity: 0.9;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        margin: 0.3rem 0; /* Reduced margin */
        max-width: 100%;
    }

    .stat-item {
        padding: 0.5rem 0.7rem;
        flex-direction: row;
        text-align: left;
        gap: 0.5rem;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    /* Mobile Stats Grid */
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
        margin: 0.5rem auto; /* Reduced margin */
        max-width: 100%;
    }
    
    .stat-item {
        padding: 1rem 0.8rem;
        margin: 0;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
        margin: 0.3rem auto 0.5rem auto; /* Reduced margins */
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    /* Mobile Action Buttons */
    .hero-actions {
        flex-direction: row;
        gap: 0.8rem;
        margin: 0.2rem auto 0.2rem auto; /* Reduced margins */
        width: 100%;
    }

    .hero-btn {
        width: auto;
        max-width: none;
        justify-content: center;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 130px;
        gap: 0.5rem;
    }
    
    /* Mobile Indicators - Hidden for better touch experience */
    .hero-indicators {
        display: none !important;
    }
    
    /* Mobile Scroll Indicator */
    .scroll-indicator {
        display: none;
    }

    .hero-indicators {
        bottom: 2rem;
    }



    .section-title {
        font-size: 2.8rem;
    }
    
    .section-title.text-gradient {
        display: inline-block !important;
        width: auto !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        background-clip: initial !important;
        color: #000000 !important;
        animation: none !important;
    }

    .filter-container {
        flex-direction: column;
        align-items: center;
        margin-bottom: 2.5rem;
        gap: 1.2rem;
    }

    .filter-menu {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.6rem;
        justify-content: center;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        flex-shrink: 0;
        color: var(--text-primary, #2d3748);
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid rgba(46, 134, 171, 0.2);
        min-height: 40px;
        border-radius: 20px;
    }

    .filter-btn span {
        display: inline-block;
    }

    .view-toggle {
        align-self: center;
        margin-top: 0.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-grid.masonry {
        columns: 1;
    }

    .image-wrapper {
        height: 300px;
    }

    .overlay-content {
        padding: 1rem;
    }

    /* Overlay content h3 styles removed - no longer used */

    .cta-content h2 {
        font-size: 2.5rem;
    }

    .cta-content p {
        font-size: 1.15rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 250px;
        justify-content: center;
    }

    .lightbox-content {
        padding: 1rem;
    }
    
    .lightbox-image-container {
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 6rem);
    }
    
    #lightbox-image {
        max-height: calc(100% - 80px);
        border-radius: 10px;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .lightbox-info {
        bottom: 1rem;
        padding: 0.75rem 1rem;
        max-width: 90%;
        font-size: 0.8rem;
    }
    
    .lightbox-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    .lightbox-info p {
        font-size: 0.8rem;
    }

    .lightbox-nav {
        padding: 0 1rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Extra Small Mobile Optimization */
@media (max-width: 480px) {
    .gallery-section {
        padding: 4rem 0;
    }
    
    .gallery-hero {
        padding: 60px 0 15px 0;
    }
    
    .gallery-hero {
        padding: 0 0.5rem;
    }
    
    .hero-content {
        padding: 1rem 1rem 0.8rem 1rem; /* Increased padding */
        border-radius: 20px;
        height: auto;
        min-height: 45vh; /* Increased from 40vh */
        max-height: 55vh; /* Increased from 50vh */
        width: 98%;
        margin: 0 auto;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
        margin: 0 auto 0.2rem auto; /* Added small bottom margin */
        text-align: center;
        width: 100%;
        line-height: 1.1;
        display: block;
        word-wrap: break-word;
        letter-spacing: -0.02em;
        font-weight: 800;
        color: #ffffff !important;
        background: none !important;
        animation: none !important;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin: 0 auto 0.6rem auto; /* Added bottom margin */
        line-height: 1.4;
    }
    
    .hero-stats {
        margin: 0.4rem auto; /* Reduced margin */
    }
    
    .stat-item {
        padding: 0.6rem 0.5rem; /* Reduced padding */
        gap: 0.5rem;
    }
    
    .stat-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .hero-actions {
        margin: 0.1rem auto 0.1rem auto; /* Reduced margins */
        gap: 0.6rem;
    }
    
    .hero-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-width: 110px;
    }
    
    .hero-indicators {
        display: none !important;
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .section-title.text-gradient {
        display: inline-block !important;
        width: auto !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: initial !important;
        background-clip: initial !important;
        color: #000000 !important;
        animation: none !important;
    }

    .filter-menu {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
        padding: 0 0.3rem;
    }

    .filter-btn {
        padding: 0.5rem 0.8rem;
        min-width: auto;
        color: var(--text-primary, #2d3748);
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid rgba(46, 134, 171, 0.2);
        font-size: 0.85rem;
        min-height: 36px;
        border-radius: 18px;
    }

    .gallery-grid {
        gap: 1rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .load-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Extra Small Mobile Lightbox */
    .lightbox-content {
        padding: 0.5rem;
    }
    
    .lightbox-image-container {
        max-width: calc(100vw - 1rem);
        max-height: calc(100vh - 4rem);
    }
    
    #lightbox-image {
        max-height: calc(100% - 60px);
        border-radius: 8px;
    }
    
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .lightbox-info {
        bottom: 0.5rem;
        padding: 0.5rem 0.75rem;
        max-width: 95%;
        border-radius: 6px;
    }
    
    .lightbox-info h3 {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .lightbox-info p {
        font-size: 0.75rem;
    }
    
    .lightbox-nav {
        padding: 0 0.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* High Performance Optimizations */
.gallery-item {
    will-change: transform, opacity;
}

.gallery-card {
    will-change: transform;
}

.image-wrapper img {
    will-change: transform;
}

.hero-slide {
    will-change: opacity;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    

    
    .hero-slide {
        transition: none;
    }
}

/* Focus styles for accessibility */
.filter-btn:focus,
.view-btn:focus,
.zoom-btn:focus,
.favorite-btn:focus,
.hero-btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .gallery-hero,
    .filter-container,
    .lightbox,
    .hero-indicators {
        display: none;
    }
    
    .gallery-grid {
        display: block;
    }
    
    .gallery-item {
        break-inside: avoid;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
    
    .gallery-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Cache bust - Force reload */