/* Custom styles for Rise High Tattoo */

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

/* Prevent FOUC on scroll reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll reveal hidden state — applied by JS for progressive enhancement */
.no-js .scroll-reveal,
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .js .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .js .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero orbs animation */
@media (prefers-reduced-motion: no-preference) {
    .hero-orb-1 {
        animation: float1 8s ease-in-out infinite;
    }
    .hero-orb-2 {
        animation: float2 10s ease-in-out infinite;
    }
    .hero-orb-3 {
        animation: float3 12s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 15px) scale(1.08); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(8, 14, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

/* FAQ animations */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.active .faq-content {
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(20, 184, 166, 0.3);
    color: #0f172a;
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2dd4bf;
}

/* Typography refinements */
.font-serif {
    text-wrap: balance;
}

/* Print styles */
@media print {
    nav, #contact-form, .scroll-reveal {
        display: block !important;
        opacity: 1 !important;
    }
}
