/* ===== MVN Mall Custom Styles ===== */
/* Minimal custom CSS - Most styling is done with Tailwind */

/* =========================
   Global Enhancements
   ========================= */

body {
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* =========================
   Navigation Styles
   ========================= */

/* Navbar scrolled state */
#navbar.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Nav link hover effect */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
    background: #10b981;
}

/* =========================
   Scroll Indicator Animation
   ========================= */

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.scroll-wheel {
    animation: scroll-bounce 2s ease-in-out infinite;
}

/* =========================
   Gallery Overlay
   ========================= */

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 80%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Gallery item border glow effect */
.gallery-item:hover > div {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

/* =========================
   Lightbox Modal
   ========================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
}

.lightbox-caption {
    text-align: center;
    color: #ffffff;
    padding: 1rem;
    font-size: 1.125rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-center;
    font-size: 1.25rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(16, 185, 129, 0.9);
    transform: scale(1.1);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* =========================
   Mobile Menu
   ========================= */

#mobile-menu {
    transition: opacity 0.3s ease;
}

#mobile-menu.active {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =========================
   Smooth Scroll
   ========================= */

html {
    scroll-behavior: smooth;
}

/* =========================
   Section Fade-In Animation
   ========================= */

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 1 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   Loading States
   ========================= */

img {
    image-rendering: -webkit-optimize-contrast;
}

/* =========================
   Responsive Adjustments
   ========================= */

@media (max-width: 768px) {
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }
}

/* =========================
   Enhanced Card Effects
   ========================= */

/* Card shimmer effect on hover */
.group:hover {
    position: relative;
}

.group:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    animation: shimmer 2s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* =========================
   Section Dividers
   ========================= */

section {
    position: relative;
}

/* Subtle gradient divider */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(16, 185, 129, 0.1),
        transparent
    );
}

/* =========================
   Utility Classes
   ========================= */

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth transitions for interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading state */
img {
    background: rgba(255, 255, 255, 0.02);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================
   Print Styles
   ========================= */

@media print {
    .lightbox,
    #mobile-menu,
    .sticky-whatsapp-btn,
    .sticky-booking-btn,
    .mobile-bottom-bar {
        display: none !important;
    }
}

/* =========================
   3D Card Hover Effects
   ========================= */

.perspective-1000 {
    perspective: 1000px;
}

.tilt-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Initial state */
    transform: rotateX(0) rotateY(0) translateZ(0);
}

.tilt-card:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.15); /* Slightly visible shadow on dark bg */
    z-index: 20;
}

/* Ensure content pops out */
.tilt-card img, 
.tilt-card span, 
.tilt-card i,
.tilt-card .text-center {
    transition: transform 0.4s ease;
    transform: translateZ(20px);
}

.tilt-card:hover img, 
.tilt-card:hover span, 
.tilt-card:hover i,
.tilt-card:hover .text-center {
    transform: translateZ(50px);
}

/* Background gradient depth */
.tilt-card .absolute {
    transition: transform 0.4s ease;
    transform: translateZ(10px);
}

.tilt-card:hover .absolute {
    transform: translateZ(30px);
}
