/* Custom styles for Majesty Family Hair Spa */

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

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

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

::-webkit-scrollbar-thumb {
    background: #C9A962;
    border-radius: 5px;
}

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

/* Selection color */
::selection {
    background: #C9A962;
    color: #0D0D0D;
}

/* Animation for floating elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Shimmer effect for gold elements */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(201, 169, 98, 0.1);
}

/* Service card hover effect */
.service-card {
    transition: all 0.5s ease;
}

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

/* Image hover zoom */
.gallery-image {
    transition: transform 0.5s ease;
}

.gallery-image:hover {
    transform: scale(1.1);
}

/* Button hover effect */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Input focus effect */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.3);
}

/* Decorative line animation */
.decorative-line {
    position: relative;
}

.decorative-line::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C9A962;
    transition: width 0.3s ease;
}

.decorative-line:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: 2.5rem !important;
    }
    
    .font-display {
        font-size: 2rem !important;
    }
}

/* Reduced motion preference */
@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;
    }
}

/* Loading state for form */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #C9A962;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
