/* =====================================================================
   MonoAgency — Global Styles (style.css)
   Purpose: Small, framework-agnostic helpers for visual polish.

   SUMMARY
   1) Backdrop Blur Utility (safe on modern browsers)
   2) Scroll Animations (fade-in, slide-in from left/right/top)
   3) Animation Delays (cascade timing helpers)
   4) Work Section Filter Buttons

   Conventions:
   - Keep these classes minimal; prefer Tailwind utilities elsewhere.
   - All comments are in EN-US with numbered sections for quick scanning.
   ===================================================================== */


/* =============================
   1) Backdrop Blur Utility
   -----------------------------
   Used on the sticky header panel to add a subtle glass effect.
   The saturate() + blur() combo improves legibility over imagery.
   ============================= */
.backdrop-blur-safe { 
    backdrop-filter: saturate(180%) blur(8px); 
}

/* =============================
   2) Scroll Animations
   -----------------------------
   Base states + "is-visible" states toggled via IntersectionObserver.
   Keep transitions snappy and consistent across variants.
   ============================= */

/* Base state for animated elements */
.fade-in-section,
.slide-in-from-left,
.slide-in-from-right,
.slide-in-from-top {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* 2.1) Fade In (rise from bottom) */
.fade-in-section {
    transform: translateY(30px);
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2.2) Slide In (from left) */
.slide-in-from-left {
    transform: translateX(-50px);
}
.slide-in-from-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 2.3) Slide In (from right) */
.slide-in-from-right {
    transform: translateX(50px);
}
.slide-in-from-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 2.4) Slide In (drop from top) */
.slide-in-from-top {
    transform: translateY(-30px);
}
.slide-in-from-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================
   3) Animation Delays
   -----------------------------
   Optional helpers to stagger items in a grid or list.
   ============================= */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }


/* =============================
   4) Work Section Filter Buttons
   -----------------------------
   Styles for the portfolio filter buttons.
   ============================= */
.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    background-color: #f3f4f6; /* Equivalent to Tailwind's gray-100 */
    color: #374151; /* gray-700 */
}

.dark .filter-btn {
    background-color: #1f2937; /* gray-800 */
    color: #d1d5db; /* gray-300 */
}

.filter-btn:hover {
    background-color: #e5e7eb; /* gray-200 */
}

.dark .filter-btn:hover {
    background-color: #374151; /* gray-700 */
}

.filter-btn.active {
    background-color: #6c63ff; /* accent */
    color: white;
    font-weight: 500;
}