/* Custom styles for Hairzone */

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

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #f3e5ab);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f3e5ab, #d4af37);
}

/* Gold gradient text effect */
.gold-text {
    background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(3deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

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

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

.float-card-2 {
    animation: float-reverse 5s ease-in-out infinite;
}

.float-card-3 {
    animation: float 7s ease-in-out infinite;
}

/* Pulse animation for CTA buttons */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
}

.pulse-gold {
    animation: pulse-gold 2s ease-in-out infinite;
}

/* Glow effect for decorative elements */
@keyframes glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.glow-effect {
    animation: glow 4s ease-in-out infinite;
}

/* Service card hover effect */
.service-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card:hover .service-icon {
    background: linear-gradient(135deg, #d4af37, #f3e5ab);
    transform: rotate(360deg);
}

.service-icon {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gallery image hover effect */
.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
}

.gallery-item img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 500px;
}

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

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

/* 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;
    }
    
    .float-card-1,
    .float-card-2,
    .float-card-3,
    .pulse-gold,
    .glow-effect {
        animation: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* Print styles */
@media print {
    .bg-plum-950,
    .bg-plum-900 {
        background: white !important;
        color: black !important;
    }
    
    .text-amber-400,
    .text-white {
        color: black !important;
    }
    
    .text-gray-400 {
        color: #333 !important;
    }
}
