/* Custom styles for University Stylists & Barbers */

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

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #7d2e3b;
}

/* Image hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover .group-hover\\:scale-110 {
        transform: none;
    }
}

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

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

/* Form input focus animations */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(138, 58, 71, 0.2);
}

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

/* Gallery image hover overlay */
.aspect-square {
    position: relative;
}

.aspect-square::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(138, 58, 71, 0);
    transition: background 0.3s ease;
}

.aspect-square:hover::after {
    background: rgba(138, 58, 71, 0.1);
}

/* Hero text animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

.reveal:nth-child(2) {
    animation-delay: 0.2s;
}

.reveal:nth-child(3) {
    animation-delay: 0.4s;
}

.reveal:nth-child(4) {
    animation-delay: 0.6s;
}

/* Ensure text readability on all backgrounds */
.bg-burgundy-950 h1,
.bg-burgundy-950 h2,
.bg-burgundy-950 h3,
.bg-burgundy-950 h4 {
    color: #ffffff;
}

.bg-burgundy-950 p,
.bg-burgundy-950 li,
.bg-burgundy-950 span {
    color: rgba(255, 255, 255, 0.8);
}

/* Light background text */
.bg-burgundy-50 h1,
.bg-burgundy-50 h2,
.bg-burgundy-50 h3,
.bg-burgundy-50 h4,
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-white h4 {
    color: #2a0f14;
}

.bg-burgundy-50 p,
.bg-burgundy-50 li,
.bg-burgundy-50 span,
.bg-white p,
.bg-white li,
.bg-white span {
    color: #561f29;
}
