/* Custom styles for Frank's Fairy Hair */

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

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

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

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

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

/* Selection color */
::selection {
    background: rgba(255, 107, 63, 0.3);
    color: #fff;
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Service card hover */
.service-card {
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial card hover */
.testimonial-card {
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu transitions */
#mobileMenu {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Subtle gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #ff8a5c 0%, #ff6b3f 50%, #f05020 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated underline for links */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b3f;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    img {
        transition: none;
    }
    
    .service-card:hover img,
    .testimonial-card:hover img {
        transform: none;
    }
}

/* Ensure all text is readable */
.text-white/60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white/50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-white/80 {
    color: rgba(255, 255, 255, 0.8);
}

/* Coral text variants */
.text-coral-300 {
    color: #ffb08a;
}

.text-coral-400 {
    color: #ff8a5c;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #ff6b3f !important;
    box-shadow: 0 0 0 1px rgba(255, 107, 63, 0.2) !important;
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #ff6b3f;
    outline-offset: 2px;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff8a5c' 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 1rem center;
    background-size: 16px;
    padding-right: 3rem;
}
