/* Custom styles for Fantastic Rise */

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

/* Scroll reveal base styles */
.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);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Mobile menu animations */
.menu-line {
    display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 245, 248, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(107, 45, 91, 0.08);
}

.nav-scrolled .nav-link {
    color: rgb(90, 36, 75) !important;
}

.nav-scrolled .nav-link:hover {
    color: rgb(224, 110, 6) !important;
}

.nav-scrolled .font-serif {
    color: rgb(61, 22, 48) !important;
}

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

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

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

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

/* Selection color */
::selection {
    background: #F5A623;
    color: #3d1630;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid #F5A623;
    outline-offset: 2px;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f5e8ef 0%, #ebcddb 100%);
}

/* Print styles */
@media print {
    nav, #hero, #testimonials, #contact, footer, .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
    }
}
