/* ============================================
   TISHA DOMINGO — Editorial Portfolio
   Design System: Onyx Editorial
   ============================================ */

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}

/* Selection */
::selection {
    background: #ffffff;
    color: #1a1c1c;
}

/* Scrollbar — minimal */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #353535;
}

/* Hero text utility */
.hero-text {
    letter-spacing: -0.04em;
    line-height: 0.85;
}

/* Newsreader thin */
.newsreader-thin {
    font-family: 'Newsreader', serif;
    font-weight: 200;
}

/* No scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Password page input */
.password-input::placeholder {
    color: #474747 !important;
    opacity: 1;
    font-style: italic;
    font-weight: 300;
    letter-spacing: normal;
}

/* Contact form focus states */
.contact-input:focus {
    outline: none !important;
    border-bottom-color: #ffffff !important;
    box-shadow: none !important;
}

/* Page transition */
.page-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger children animation */
.stagger-in > * {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}
.stagger-in > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-in > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-in > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-in > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-in > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-in > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-in > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-in > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-in > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-in > *:nth-child(10) { animation-delay: 0.5s; }

/* Image container */
.img-zoom {
    overflow: hidden;
}

/* Eliminate sub-pixel gaps on images */
figure {
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}
figure img {
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* Shake animation for wrong password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}
.shake {
    animation: shake 0.5s ease-in-out;
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Masonry-like grid for portfolio */
.portfolio-grid {
    columns: 1;
    column-gap: 6px;
}
@media (min-width: 640px) {
    .portfolio-grid {
        columns: 2;
    }
}
@media (min-width: 1024px) {
    .portfolio-grid {
        columns: 3;
    }
}
.portfolio-grid .grid-item {
    break-inside: avoid;
    margin-bottom: 6px;
}
