/* ========================================
   Madcap Ink Studios — Custom Styles
   ======================================== */

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

/* Prevent scroll-reveal from hiding content before JS loads */
.reveal {
    opacity: 1;
    transform: none;
}

/* Scroll-reveal animation — progressive enhancement, only active with JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    .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; }
}

/* Navbar styles */
.nav-logo-text {
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-logo-text {
    color: #1a1a22;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f7f7f8;
}

::-webkit-scrollbar-thumb {
    background: #d4d4de;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #afafb8;
}

/* Selection color */
::selection {
    background: #ff6b3f;
    color: white;
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Subtle hero image parallax */
#hero .absolute img {
    will-change: transform;
}

/* Service card hover glow */
.group:hover .w-14 {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Gallery image hover overlay */
.group:hover img {
    filter: brightness(1.05);
}

/* Testimonial card hover */
.reveal > div:hover {
    transform: translateY(-4px);
}

/* Print styles */
@media print {
    #navbar,
    #hero .absolute.bottom-8,
    button {
        display: none !important;
    }

    body {
        color: #1a1a22;
        background: white;
    }
}
