/* ====== GALLERY PAGE SPECIFIC STYLES ====== */
:root {
    --primary-blue: #2c3e50;
    --dark-blue: #1a252f;
    --light-blue: #3498db;
    --accent-gold: #f1c40f;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --text-dark: #343a40;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --transition-slow: all 0.8s ease;
    --border-radius: 15px;
    --border-radius-lg: 25px;
}

/* ====== ANIMATION BASE CLASSES (Enhanced) ====== */
[data-animate] {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].animated {
    opacity: 1;
    visibility: visible;
}

/* Slide Up Animation */
[data-animate="slide-up"].animated {
    animation: slideUp 0.8s ease forwards;
}

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

/* Slide Down Animation */
[data-animate="slide-down"].animated {
    animation: slideDown 0.8s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Left Animation */
[data-animate="slide-left"].animated {
    animation: slideLeft 0.8s ease forwards;
}

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

/* Slide Right Animation */
[data-animate="slide-right"].animated {
    animation: slideRight 0.8s ease forwards;
}

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

/* Zoom In Animation */
[data-animate="zoom-in"].animated {
    animation: zoomIn 0.8s ease forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Grow and Turn Animation */
[data-animate="grow-turn"].animated {
    animation: growTurn 0.8s ease forwards;
}

@keyframes growTurn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Bounce In Animation */
[data-animate="bounce-in"].animated {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Flip In Animation */
[data-animate="flip-in"].animated {
    animation: flipIn 0.8s ease forwards;
    transform-origin: center;
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: rotateY(0);
    }
}

/* Fade Up Animation */
[data-animate="fade-up"].animated {
    animation: fadeUp 0.8s ease forwards;
}

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

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(241, 196, 15, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0);
    }
}

/* Wipe Animation for Images */
@keyframes imageWipe {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ====== GALLERY HERO SECTION ====== */
.gallery-hero {
    position: relative;
    height: 85vh;
    min-height: 650px;
    background: linear-gradient( rgba(0.1, 0.1, 0.1, 0.09)), 
                url('imgs/gallery/4.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gallery-hero {
        height: 50vh;
        min-height: 450px;
    }
}

.hero-full-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.5) 0%, rgba(26, 37, 47, 0.8) 100%);
    z-index: 1;
}

.hero-wipe {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: heroWipe 8s infinite linear;
    pointer-events: none;
    z-index: 2;
}

@keyframes heroWipe {
    0% { left: -100%; }
    100% { left: 100%; }
}

.hero-main-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-align: center;
    z-index: 3;
    position: relative;
    animation: titleFadeIn 1.5s ease forwards;
}

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

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.8rem;
    }
}

/* ====== GALLERY FILTER SECTION ====== */
.gallery-filter {
    padding: 60px 0 30px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.gallery-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.02) 0%, rgba(241, 196, 15, 0.02) 100%);
    z-index: 1;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.filter-tab {
    background: var(--light-gray);
    border: 2px solid transparent;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-size: 1rem;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.filter-tab::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: left 0.7s ease;
}

.filter-tab:hover::before {
    left: 100%;
}

.filter-tab:hover {
    background: rgba(44, 62, 80, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.3);
    animation: pulse 2s infinite;
}

.filter-tab i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .gallery-filter {
        padding: 40px 0 20px;
    }
    
    .filter-tabs {
        gap: 10px;
        margin: 20px 0;
    }
    
    .filter-tab {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .filter-tab i {
        font-size: 1rem;
    }
}

/* ====== GALLERY GRID SECTION (Enhanced with Wipe Effect) ====== */
.gallery-grid-section {
    padding: 40px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Different animation types for different grid positions */
.gallery-item[data-animate-type="slide-up"] {
    animation: slideUp 0.8s ease forwards;
}

.gallery-item[data-animate-type="slide-left"] {
    animation: slideLeft 0.8s ease forwards;
}

.gallery-item[data-animate-type="slide-right"] {
    animation: slideRight 0.8s ease forwards;
}

.gallery-item[data-animate-type="zoom-in"] {
    animation: zoomIn 0.8s ease forwards;
}

.gallery-item[data-animate-type="grow-turn"] {
    animation: growTurn 0.8s ease forwards;
}

.gallery-item[data-animate-type="flip-in"] {
    animation: flipIn 0.8s ease forwards;
}

.gallery-item[data-animate-type="fade-up"] {
    animation: fadeUp 0.8s ease forwards;
}

.gallery-item[data-animate-type="bounce-in"] {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.gallery-item[data-animate-type="scale-in"] {
    animation: scaleIn 0.8s ease forwards;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-style: preserve-3d;
    perspective: 1000px;
    height: 320px;
    opacity: 0;
    cursor: pointer;
}

.gallery-item.animated {
    opacity: 1;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(241, 196, 15, 0.1) 0%, 
        rgba(44, 62, 80, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: imageWipe 0.8s ease forwards;
    pointer-events: none;
    z-index: 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: block;
    filter: brightness(0.9);
    transform: scale(1.05);
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

/* Remove the yellow category tag from overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: all 0.5s ease;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    z-index: 2;
    transform: translateY(20px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-info {
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

/* Removed the category badge from here */
.gallery-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.gallery-info p {
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease 0.2s;
    line-height: 1.5;
}

.gallery-item:hover .gallery-info p {
    opacity: 0.9;
    transform: translateY(0);
}

.gallery-view-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(241, 196, 15, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.5rem;
    z-index: 3;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    opacity: 0;
}

.gallery-item:hover .gallery-view-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: float 3s infinite ease-in-out;
}

.gallery-load-more {
    text-align: center;
    margin-top: 60px;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border: none;
    padding: 18px 50px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    font-size: 1.1rem;
    box-shadow: 0 15px 35px rgba(44, 62, 80, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.load-more-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: left 0.7s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 45px rgba(44, 62, 80, 0.4);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.load-more-btn:disabled:hover::before {
    left: -100%;
}

.load-more-text {
    margin-top: 20px;
    color: var(--dark-gray);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ====== INSTAGRAM FEED SECTION ====== */
.instagram-feed-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
}

.instagram-feed-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.02) 0%, rgba(241, 196, 15, 0.02) 100%);
    z-index: 1;
}

.instagram-container {
    position: relative;
    z-index: 2;
}

.instagram-header {
    text-align: center;
    margin-bottom: 50px;
}

.instagram-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.instagram-header h2 i {
    color: #E1306C;
    font-size: 2.2rem;
}

.instagram-header p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.instagram-feed-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Instagram widget styling */
.elfsight-app-1f2c23ea-3c1d-4a8a-88e6-c51ef80594bd {
    width: 100% !important;
    border-radius: var(--border-radius-lg) !important;
    overflow: hidden !important;
}

.instagram-cta {
    text-align: center;
    margin-top: 40px;
}

.insta-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(224, 58, 132, 0.3);
}

.insta-follow-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(224, 58, 132, 0.4);
}

.insta-follow-btn i {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .instagram-feed-section {
        padding: 60px 0;
    }
    
    .instagram-header h2 {
        font-size: 2rem;
    }
    
    .instagram-header p {
        font-size: 1rem;
    }
    
    .insta-follow-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* ====== GALLERY CTA SECTION WITH FIXED BACKGROUND ====== */
.gallery-cta {
    padding: 120px 0;
    position: relative;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.5)), 
                url('imgs/gallery/11.png') center/cover no-repeat fixed;
    overflow: hidden;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .gallery-cta {
        padding: 80px 0;
        background-attachment: scroll;
    }
}

.cta-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    font-size: 3rem;
    color: var(--accent-gold);
    animation: pulse 2s infinite ease-in-out;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(241, 196, 15, 0.3);
    box-shadow: 0 0 40px rgba(241, 196, 15, 0.3);
}

.cta-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    letter-spacing: 1px;
    animation: float 6s infinite ease-in-out;
}

@media (max-width: 992px) {
    .cta-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .cta-title {
        font-size: 2.3rem;
        margin-bottom: 20px;
    }
    
    .cta-icon {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

.cta-text {
    font-size: 1.4rem;
    margin-bottom: 60px;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 1s ease 0.3s forwards;
    opacity: 0;
}

.cta-text.animated {
    opacity: 0.95;
}

@media (max-width: 768px) {
    .cta-text {
        font-size: 1.2rem;
        margin-bottom: 50px;
    }
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 20px 45px;
    border-radius: 35px;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    text-decoration: none;
    min-width: 260px;
    justify-content: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
}

.cta-btn.animated {
    opacity: 1;
    transform: translateY(0);
}

.cta-btn:nth-child(1) {
    animation-delay: 0.5s;
}

.cta-btn:nth-child(2) {
    animation-delay: 0.7s;
}

@media (max-width: 768px) {
    .cta-btn {
        width: 100%;
        max-width: 320px;
        padding: 18px 30px;
        font-size: 1.1rem;
        min-width: auto;
    }
    
    .cta-buttons {
        gap: 20px;
    }
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: mirrorWipe 3s infinite linear;
    pointer-events: none;
}

@keyframes mirrorWipe {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cta-btn.primary {
    background: linear-gradient(135deg, #f1c40f 0%, #e0b30a 100%);
    color: #2c3e50;
    box-shadow: 0 20px 50px rgba(241, 196, 15, 0.5);
}

.cta-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 20px 50px rgba(37, 211, 102, 0.5);
}

.cta-btn:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #e0b30a 0%, #d4ab0a 100%);
}

.cta-btn.whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0e735c 100%);
}

.cta-btn i {
    font-size: 1.3rem;
}

/* ====== IMAGE VIEWER MODAL (Enhanced) ====== */
.image-viewer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.image-viewer-modal.active {
    display: flex;
    opacity: 1;
}

.viewer-modal-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(50px);
    opacity: 0;
}

.image-viewer-modal.active .viewer-modal-content {
    transform: translateY(0);
    opacity: 1;
}

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

.close-viewer-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(44, 62, 80, 0.9);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-viewer-modal:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
    transform: rotate(90deg) scale(1.1);
}

.viewer-main {
    padding: 40px;
    position: relative;
}

@media (max-width: 768px) {
    .viewer-main {
        padding: 30px 20px;
    }
}

.viewer-image-container {
    width: 100%;
    height: 550px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    animation: imageWipe 0.8s ease forwards;
}

@media (max-width: 992px) {
    .viewer-image-container {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .viewer-image-container {
        height: 350px;
    }
}

#viewerImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    transition: transform 0.5s ease;
    cursor: pointer;
}

#viewerImage.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--white);
    padding: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.viewer-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
    z-index: 2;
}

.viewer-control {
    background: rgba(44, 62, 80, 0.9);
    color: var(--white);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: all;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.viewer-control:hover {
    background: var(--accent-gold);
    color: var(--text-dark);
    transform: scale(1.15);
}

.viewer-info {
    padding: 0 40px 30px;
    color: var(--white);
}

@media (max-width: 768px) {
    .viewer-info {
        padding: 0 20px 20px;
    }
}

.viewer-category {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.viewer-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.viewer-thumbnails {
    padding: 0 40px 40px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) transparent;
}

.viewer-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.viewer-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.viewer-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .viewer-thumbnails {
        padding: 0 20px 30px;
    }
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--accent-gold);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== RESPONSIVE TAB STYLES ====== */
@media (max-width: 768px) {
    .filter-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        margin: 20px 0;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) transparent;
    }
    
    .filter-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-tabs::-webkit-scrollbar-track {
        background: var(--light-gray);
        border-radius: 2px;
    }
    
    .filter-tabs::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 2px;
    }
    
    .filter-tab {
        padding: 10px 18px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .filter-tab i {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        gap: 8px;
    }
    
    .filter-tab {
        padding: 8px 15px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .filter-tab i {
        font-size: 0.8rem;
    }
}

/* ====== SCROLL TO TOP BUTTON ====== */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e0b30a 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.3);
}

/* ====== ACCESSIBILITY ====== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* EMERGENCY FIX: Force CTA buttons visibility */
.gallery-cta .cta-btn {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: inline-flex !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Remove any hiding animations */
.cta-btn[style*="opacity: 0"],
.cta-btn[style*="visibility: hidden"],
.cta-btn[style*="transform: translateY(30px)"] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Make sure buttons are always above other elements */
.cta-buttons {
    position: relative;
    z-index: 100;
}



/* ====== COMPLETE MODAL CLEANUP - NO TEXT AT ALL ====== */
.image-caption,
.viewer-info,
.viewer-category,
.viewer-description {
    display: none !important;
}

/* Clean modal layout */
.viewer-modal-content {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.viewer-main {
    padding: 0 !important;
}

.viewer-image-container {
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    height: 80vh !important;
    background: #000 !important;
}

/* Position close button better */
.close-viewer-modal {
    top: 20px !important;
    right: 20px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px) !important;
}

/* Thumbnails at bottom */
.viewer-thumbnails {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 800px !important;
    padding: 10px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Navigation controls */
.viewer-controls {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .viewer-image-container {
        height: 60vh !important;
    }
    
    .viewer-thumbnails {
        width: 95% !important;
        padding: 8px !important;
    }
    
    .thumbnail {
        width: 60px !important;
        height: 60px !important;
    }
}


/* ====== LEGAL MODALS STYLES ====== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.5s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(241, 196, 15, 0.2);
    color: var(--white);
}

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

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(241, 196, 15, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
}

.modal-header h3 {
    color: var(--accent-gold);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-header h3 i {
    font-size: 1.5rem;
}

.close-modal {
    background: rgba(241, 196, 15, 0.9);
    color: var(--text-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-weight: bold;
}

.close-modal:hover {
    background: var(--white);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 30px;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.legal-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-gold);
}

.legal-section h4 {
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-section h4:before {
    content: '•';
    color: var(--accent-gold);
    font-size: 1.5rem;
}

.legal-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 10px;
}

.legal-section a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

.legal-section a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive legal modals */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .legal-section {
        padding: 15px;
    }
    
    .legal-section h4 {
        font-size: 1.2rem;
    }
}


/* Footer legal links styling */
.footer-legal {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.privacy-link,
.terms-link-footer {
    color: var(--accent-gold) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 4px;
}

.privacy-link:hover,
.terms-link-footer:hover {
    color: var(--white) !important;
    background: rgba(241, 196, 15, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-legal {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}



/* ====== QUICK FIX FOR MOBILE MENU VISIBILITY ====== */
@media (max-width: 992px) {
    /* Make sure navbar appears properly when active */
    .navbar.active {
        display: flex !important;
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
        z-index: 999999 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 40px 20px !important;
        overflow-y: auto !important;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1) !important;
        border-top: 3px solid var(--accent-gold) !important;
    }
    
    /* Mobile menu slide-in animation */
    .navbar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .navbar.active {
        transform: translateX(0);
    }
    
    /* Ensure nav-links are properly styled */
    .navbar.active .nav-links {
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
        padding: 0 !important;
    }
    
    .navbar.active .nav-link {
        color: #2c3e50 !important;
        width: 100% !important;
        text-align: left !important;
        padding: 15px 25px !important;
        font-size: 1.1rem !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        font-weight: 300 !important; /* Changed from 600 to 300 (light) */
        border-left: 4px solid transparent !important;
        background: transparent !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .navbar.active .nav-link:hover {
        background: rgba(44, 62, 80, 0.05) !important;
        border-left-color: var(--accent-gold) !important;
        transform: translateX(5px) !important;
        color: var(--primary-blue) !important;
    }
    
    /* Add menu category headings */
    .navbar.active .nav-link:not(.btn-book) {
        position: relative;
        padding-left: 35px !important;
    }
    
    .navbar.active .nav-link:not(.btn-book)::before {
        content: "→";
        position: absolute;
        left: 15px;
        color: var(--accent-gold);
        font-weight: bold;
        transition: transform 0.3s ease;
    }
    
    .navbar.active .nav-link:not(.btn-book):hover::before {
        transform: translateX(5px);
    }
    
    /* Book button styling */
    .navbar.active .nav-link.btn-book {
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%) !important;
        color: white !important;
        font-weight: 700 !important;
        margin-top: 30px !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
        border-radius: 8px !important;
        padding: 18px 25px !important;
        border: none !important;
        box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2) !important;
        border-left: none !important;
        font-size: 1.1rem !important;
    }
    
    .navbar.active .nav-link.btn-book:hover {
        background: linear-gradient(135deg, var(--dark-blue) 0%, #15202b 100%) !important;
        transform: translateY(-3px) !important;
        box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3) !important;
    }
    
    .navbar.active .nav-link.btn-book::before {
        content: "📅";
        position: absolute;
        left: 25px;
        color: white;
        font-weight: normal;
    }
    
    /* Add some spacing and visual separation */
    .navbar.active .nav-links::before {
        content: "";
        display: block;
        width: 80%;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-gold), transparent);
        margin: 10px auto 25px 0;
        opacity: 0.5;
    }
    
    /* WhatsApp link styling */
    .navbar.active .nav-link[href*="whatsapp"] {
        background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
        color: white !important;
        border-left: none !important;
        text-align: center !important;
        margin-top: 15px !important;
    }
    
    .navbar.active .nav-link[href*="whatsapp"]::before {
        content: "💬";
        position: absolute;
        left: 25px;
        color: white;
    }
    
    .navbar.active .nav-link[href*="whatsapp"]:hover {
        background: linear-gradient(135deg, #128C7E 0%, #0e735c 100%) !important;
    }
    
    /* Active/current page indicator */
    .navbar.active .nav-link.active {
        background: rgba(241, 196, 15, 0.1) !important;
        border-left-color: var(--accent-gold) !important;
        color: var(--primary-blue) !important;
        font-weight: 700 !important;
    }
}

/* ====== MOBILE MENU TOGGLE ICON STYLES ====== */
@media (max-width: 992px) {
    /* Menu button styling for mobile - NO BACKGROUND */
    .menu-btn {
        background: transparent !important;
        color: #2c3e50 !important; /* Black/dark color */
        border: none !important;
        padding: 10px !important;
        transition: all 0.3s ease !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .menu-btn:hover {
        background: transparent !important;
        transform: scale(1.1) !important;
        color: var(--primary-blue) !important;
    }
    
    .menu-btn:active {
        transform: scale(0.95) !important;
    }
    
    /* Menu icon styling */
    .menu-btn i {
        font-size: 1.5rem !important;
        transition: all 0.3s ease !important;
    }
    
    /* When menu is active, change icon color */
    .menu-btn.active i {
        color: var(--primary-blue) !important;
    }
    
    /* Header styles for mobile */
    #header {
        background: white !important;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 999998 !important;
    }
    
    /* Logo color on mobile */
    .logo {
        color: #2c3e50 !important;
    }
    
    /* Optional: Add a subtle animation to the hamburger icon */
    @keyframes pulse-light {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
    }
    
    .menu-btn:hover i {
        animation: pulse-light 2s infinite;
    }
}

/* ====== SCROLL STATE STYLES ====== */
@media (max-width: 992px) {
    /* When header is scrolled, keep menu icon black */
    #header.scrolled .menu-btn {
        color: #2c3e50 !important;
    }
    
    #header.scrolled .menu-btn i {
        color: #2c3e50 !important;
    }
    
    /* When header is not scrolled, menu icon is black */
    #header:not(.scrolled) .menu-btn {
        color: #2c3e50 !important;
    }
    
    #header:not(.scrolled) .menu-btn i {
        color: #2c3e50 !important;
    }
}

/* ====== MOBILE MENU SCROLLBAR STYLING ====== */
@media (max-width: 992px) {
    .navbar.active {
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) #f0f0f0;
    }
    
    .navbar.active::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar.active::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }
    
    .navbar.active::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 3px;
    }
    
    .navbar.active::-webkit-scrollbar-thumb:hover {
        background: #e0b30a;
    }
}