/* ==========================================================
   MZift Portfolio - Custom Styles
   ========================================================== */

/* Smooth scroll */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Glassmorphism utility */
.mz-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dark .mz-glass {
    background: rgba(255, 255, 255, 0.03);
}
html:not(.dark) .mz-glass {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
}

/* Scroll-triggered animation base */
.mz-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.mz-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skip link */
.mz-skip:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: #000;
    color: #fff;
    border-radius: 0.5rem;
    outline: 2px solid #fff;
}

/* ---- Geometric Decorations ---- */

/* Gradient orb */
.mz-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.09;
    pointer-events: none;
    z-index: 0;
}
html:not(.dark) .mz-orb {
    opacity: 0.06;
}

/* Dotted grid pattern */
.mz-dots {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}
html:not(.dark) .mz-dots {
    opacity: 0.15;
}

/* Floating geometric shapes */
.mz-geo {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.09;
}
html:not(.dark) .mz-geo {
    opacity: 0.09;
}

/* Subtle grain texture overlay */
.mz-grain::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.09;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}
html:not(.dark) .mz-grain::before {
    opacity: 0.04;
}

/* Section divider line */
.mz-divider {
    height: 1px;
    max-width: 6rem;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.15;
}

/* ---- WCAG Focus Rings ---- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 0.5rem;
}
.mz-glass:focus-visible,
a:has(.mz-glass):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Interactive card focus */
article:focus-within {
    outline: 2px solid rgba(0, 0, 0, 0.1);
    outline-offset: 2px;
    border-radius: 1rem;
}
.dark article:focus-within {
    outline-color: rgba(255, 255, 255, 0.1);
}
