/* Custom styles for Reyan's African Hair Braiding and Barber Shop */

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 253, 249, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(132, 19, 52, 0.08);
}

.navbar-scrolled .font-display {
    color: #841334 !important;
}

.navbar-scrolled a:not(.bg-burgundy-800) {
    color: #374151 !important;
}

/* Hero geometric shape animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(12deg); }
    50% { transform: translateY(-20px) rotate(12deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(45deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.25; }
    50% { transform: scale(1.1); opacity: 0.35; }
}

.hero-shape-1 {
    animation: float-slow 8s ease-in-out infinite;
}

.hero-shape-2 {
    animation: float-medium 6s ease-in-out infinite;
}

.hero-shape-3 {
    animation: float-fast 4s ease-in-out infinite;
}

.hero-shape-4, .hero-shape-5 {
    animation: pulse-glow 5s ease-in-out infinite;
}

.hero-shape-5 {
    animation-delay: 1s;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-shape-1,
    .hero-shape-2,
    .hero-shape-3,
    .hero-shape-4,
    .hero-shape-5 {
        animation: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

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

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

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

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

/* Image hover effects */
.rounded-2xl overflow-hidden img {
    transition: transform 0.5s ease;
}

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

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

/* Selection color */
::selection {
    background: #fce7eb;
    color: #6e1330;
}
