/* ============================================
   Bella Hair By Renada — Custom Styles
   ============================================ */

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #fbbf24;
    color: #581c87;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #faf5ff;
}
::-webkit-scrollbar-thumb {
    background: #d8b4fe;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

/* Selection animation for reveal elements - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-element {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .reveal-element.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transitions */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(107, 33, 168, 0.08);
}

#navbar.scrolled .nav-logo {
    color: #581c87;
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu .mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Menu toggle animation */
.menu-line {
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

/* Form styles */
input::placeholder, textarea::placeholder {
    color: rgba(88, 28, 135, 0.15);
}

input:focus, textarea:focus, select:focus {
    border-bottom-color: #fbbf24 !important;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b21a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 2rem;
}

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

/* Button focus styles for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Service card hover - text visibility fix */
.group:hover .group-hover\:text-white {
    color: #ffffff;
}
.group:hover .group-hover\:text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}
.group:hover .group-hover\:text-amber-400 {
    color: #fde68a;
}

/* Gallery image hover */
.group:hover img {
    filter: brightness(1.05);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* Large screen adjustments */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}
