/* Custom styles for Russellmonster's Abode of Awesomeness */

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

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal hidden state - applied via JS for progressive enhancement */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero decorative shapes animation */
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 15px) scale(1.08); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 25px) scale(0.95); }
}

@keyframes float-4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, -30px) scale(1.03); }
}

@media (prefers-reduced-motion: no-preference) {
    .shape-1 { animation: float-1 8s ease-in-out infinite; }
    .shape-2 { animation: float-2 10s ease-in-out infinite; }
    .shape-3 { animation: float-3 12s ease-in-out infinite; }
    .shape-4 { animation: float-4 9s ease-in-out infinite; }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(128, 26, 59, 0.1);
}

.nav-scrolled .logo-text {
    color: #711f38 !important;
}

.nav-scrolled .nav-link {
    color: #841d3a !important;
}

.nav-scrolled .nav-link:hover {
    color: #c2284b !important;
}

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

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

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

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

/* Selection color */
::selection {
    background: #f9d0d0;
    color: #3f0d1a;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Form focus styles */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(219, 70, 104, 0.2);
}

/* Image loading placeholder */
img {
    background-color: #fce7eb;
}

/* Button ripple effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}
