/* ── Custom styles for Twiztid Monkey Ink ─────────────── */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ── Hero overlay ──────────────────────────────────────── */
.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(59, 10, 22, 0.82) 0%,
        rgba(108, 26, 49, 0.65) 50%,
        rgba(59, 10, 22, 0.82) 100%
    );
}

/* ── Navbar scroll state ──────────────────────────────── */
#site-header.scrolled {
    background: rgba(59, 10, 22, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

#site-header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ── Scroll indicator dot ─────────────────────────────── */
.scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ── Service cards ─────────────────────────────────────── */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    border-color: rgba(161, 29, 62, 0.2);
}

/* ── Gallery items ─────────────────────────────────────── */
.gallery-item {
    aspect-ratio: auto;
    overflow: hidden;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(3),
.gallery-item:nth-child(6) {
    aspect-ratio: 5 / 6;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(4),
.gallery-item:nth-child(5) {
    aspect-ratio: 5 / 4;
}

/* ── Mobile nav links ─────────────────────────────────── */
.mobile-nav-link {
    border-radius: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Reveal animations (progressive enhancement) ───────── */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger delays */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* When JS is disabled, all content stays visible */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* ── Mobile menu transition ────────────────────────────── */
#mobile-menu {
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive tweaks ─────────────────────────────────── */
@media (max-width: 640px) {
    .font-display {
        line-height: 1.1;
    }
}

@media (min-width: 768px) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
