/* Custom Styles for Young Ki Son */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fefcfb;
}
::-webkit-scrollbar-thumb {
    background: #d4a8b0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9c1e38;
}

/* Selection color */
::selection {
    background: #fce7eb;
    color: #7d1930;
}

/* Reveal animations - progressive enhancement */
.reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Mobile menu transitions */
#mobileMenu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}
#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

/* Menu button animations */
.menu-line {
    transition: all 0.3s ease;
}
body.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
body.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6rem;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(125, 25, 48, 0.08);
}

/* Service card hover effects */
.group:hover .group-hover\:bg-burgundy-700 {
    background-color: #7d1930;
}

/* Button ripple effect */
a[href="tel:+18476356080"] {
    position: relative;
    overflow: hidden;
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

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

/* Mobile link animations */
.mobile-link {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
body.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Staggered reveal delays */
.reveal-up:nth-child(1) { transition-delay: 0.05s; }
.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.reveal-up:nth-child(3) { transition-delay: 0.15s; }
.reveal-up:nth-child(4) { transition-delay: 0.2s; }
.reveal-up:nth-child(5) { transition-delay: 0.25s; }
.reveal-up:nth-child(6) { transition-delay: 0.3s; }
.reveal-up:nth-child(7) { transition-delay: 0.35s; }
.reveal-up:nth-child(8) { transition-delay: 0.4s; }
