/* Custom styles for Pearl Heart Foundation */

/* Custom styles for Pearl Heart Foundation */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Base animations */
.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.loaded .animate-fade-in {
    opacity: 1;
}

/* Slower bounce for floating elements */
.animate-bounce-slow {
    animation: bounceSlow 4s ease-in-out infinite;
}

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

.animate-pulse-slow {
    animation: pulseSlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseSlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .7;
    }
}

/* Custom header scroll effect */
.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
    border-bottom-color: transparent !important;
}
.header-scrolled nav > div {
    height: 4rem !important; /* h-16 equivalent */
    transition: height 0.3s ease;
}

/* Hide scrollbar for gallery or clean elements */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Cursor interactions */
.cursor-zoom-in {
    cursor: zoom-in;
}

/* Stats counter */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Custom focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f0fdfa;
    border-top: 2px solid #14b8a6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Gallery grid zoom overlay */
.gallery-zoom-overlay {
    background: rgba(255,255,255,0.1);
    transition: opacity 0.2s;
    pointer-events: none;
    font-family: inherit;
}
.gallery-zoom-wrap:hover .gallery-zoom-overlay {
    opacity: 1;
}
.gallery-img {
    cursor: zoom-in;
}
@media (max-width: 767px) {
    .gallery-img {
        cursor: pointer;
    }
}
.gallery-item[style*="display: none"] {
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}