/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(148, 29, 60, 0.15);
    color: #7c1c37;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #fdf0f2;
}
::-webkit-scrollbar-thumb {
    background: #d44264;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #941d3c;
}

/* Navigation */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #b52647;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(253, 247, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(148, 29, 60, 0.08);
}
.nav-scrolled .nav-link {
    color: #7c1c37 !important;
}
.nav-scrolled .nav-link:hover {
    color: #b52647 !important;
}
.nav-scrolled .nav-link::after {
    background: #b52647 !important;
}

/* Hero animations */
.hero-sub {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}
.hero-desc {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll line animation */
.scroll-line {
    animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
    0% { top: -50%; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 150%; opacity: 0; }
}

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

/* Menu button animation */
.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(3px, 3px);
}
.menu-open .menu-line:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover */
.service-card:hover .service-line {
    width: 4rem;
}

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

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #941d3c;
    outline-offset: 4px;
    border-radius: 2px;
}
