/* Custom styles for Shear Luxury Salon */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
}

/* Fade-in animation for scroll reveals */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    
    .fade-in-section {
        transition: none;
    }
}

/* Selection color */
::selection {
    background-color: rgba(190, 24, 93, 0.2);
    color: inherit;
}

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

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

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

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(254, 252, 249, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(190, 24, 93, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Service card hover glow */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Subtle gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #be185d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gallery grid responsive adjustments */
@media (max-width: 768px) {
    .grid-cols-2 > :first-child {
        grid-column: span 2;
    }
}

/* Ensure all images have consistent aspect ratios */
.rounded-2xl img,
.rounded-3xl img {
    display: block;
}

/* Print styles */
@media print {
    #navbar,
    #mobile-menu-btn,
    .animate-float,
    .animate-float-delayed {
        display: none !important;
    }
}
