/* Custom styles for Riley Hope B */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f5;
}
::-webkit-scrollbar-thumb {
    background: #c94842;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a83530;
}

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

/* Mobile menu lines */
.menu-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #742723;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}
#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateX(-50%) rotate(45deg);
    top: 5px;
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateX(-50%) rotate(-45deg);
    top: 5px;
}

/* Mobile nav links */
.mobile-nav-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
}

/* Fixed nav background */
.nav-scrolled {
    background: rgba(254, 252, 251, 0.97) !important;
    box-shadow: 0 1px 0 rgba(116, 39, 35, 0.08);
}
.nav-scrolled .nav-text {
    color: #742723 !important;
}

/* Reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Input focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(201, 72, 66, 0.1);
}

/* Button hover lift */
button, a {
    transition: all 0.3s ease;
}

/* Image loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Selection color */
::selection {
    background: #fce7e7;
    color: #742723;
}
