/* ===== CUSTOM STYLES FOR MIYO FLOW ===== */

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

/* Scroll indicator animation */
@keyframes scrollLine {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.scroll-line {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, #7B2D3B, transparent);
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Hero badge animation */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

/* Hero text animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

#hero h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

#hero p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

#hero a {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Scroll reveal base (progressive enhancement - hidden by default, shown via JS) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .scroll-line { animation: none; opacity: 0.5; }
    .hero-badge, #hero h1, #hero p, #hero a { animation: none; opacity: 1; transform: none; }
}

/* Navbar scroll state */
.nav.scrolled {
    box-shadow: 0 1px 12px rgba(123, 45, 59, 0.08);
}

/* Service cards stagger animation (JS-driven) */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.open {
    transform: translateX(0);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5F5;
}
::-webkit-scrollbar-thumb {
    background: #EBC8CC;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C4707E;
}
