/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff;
}
::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}

/* Dropdown transition */
.dropdown-menu {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s ease;
}
.dropdown-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Image Hover Zoom */
.img-zoom-container {
    overflow: hidden;
}
.img-zoom {
    transition: transform 0.5s ease;
}
.img-zoom-container:hover .img-zoom {
    transform: scale(1.05);
}

/* Mobile Menu */
#mobile-menu {
    transition: transform 0.3s ease-in-out;
}


/* Navigation Alignment Fixes */
nav .max-w-[1440px] {
    justify-content: space-between; /* Ensures logo is left, menu center, icons right */
}

/* Ensure icons are always visible */
.lucide {
    stroke-width: 1.5px; /* Makes icons look cleaner/thinner like the design */
}

/* Mobile Menu Z-Index fix */
#mobile-menu {
    z-index: 40; /* Ensures it sits below the nav bar but above content */
    top: 0;
    padding-top: 80px; /* Account for header height */
}

/* --- Gallery Page Styles --- */

/* Hide scrollbar for filter menu */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Gallery Filtering Animations */
.gallery-item {
    transition: all 0.4s ease-in-out;
}

/* Hiding class */
.gallery-item.hidden {
    display: none;
}

/* Showing class with Fade In */
.gallery-item.visible {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Active State for Filter Buttons */
.filter-btn.active {
    color: #000;
    border-bottom: 2px solid #000;
}

/* --- Gallery Page Styles --- */

/* 1. Frosted Glass Container */
.glass-filter-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* 2. Filter Buttons */
.filter-btn {
    padding: 10px 24px;
    border-radius: 9999px; /* Full pill shape */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

/* Hover State */
.filter-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}

/* Active State (Black Pill) */
.filter-btn.active {
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* 3. Grid Animations */
.gallery-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hiding class */
.gallery-item.hidden {
    display: none;
}

/* Showing class with Upward Fade */
.gallery-item.visible {
    display: block;
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* Hide scrollbar for filter menu */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ... (Previous styles for gallery, frosted glass, etc.) ... */

/* --- Ink Spill Animation --- */
.ink-spill-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ensure it doesn't interfere with clicks */
    z-index: 0; /* Place it behind the hero content */
    overflow: hidden;
}

.ink-spill-left,
.ink-spill-right {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
}

.ink-spill-left {
    /* Pink/Magenta Spill */
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8) 0%, rgba(236, 72, 153, 0) 70%);
    top: 20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    animation: spillLeft 12s infinite alternate ease-in-out;
}

.ink-spill-right {
    /* Blue/Cyan Spill */
    background: radial-gradient(circle, rgba(14, 165, 233, 0.8) 0%, rgba(14, 165, 233, 0) 70%);
    bottom: 10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    animation: spillRight 15s infinite alternate-reverse ease-in-out;
}

@keyframes spillLeft {
    0% {
        transform: scale(0.8) translate(0, 0);
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        transform: scale(1.4) translate(20%, 10%);
        opacity: 0.2;
    }
}

@keyframes spillRight {
    0% {
        transform: scale(0.8) translate(0, 0);
        opacity: 0;
    }
    40% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5) translate(-20%, -10%);
        opacity: 0.1;
    }
}