/* Custom styles for Creative Corner Hair Salon */

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

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #fbbf24, #34d399);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #fcd34d, #6ee7b7);
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

/* Reveal animation - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

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

/* Image hover effects */
.group:hover .group-hover\:-translate-y-2 {
    transform: translateY(-0.5rem);
}

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

/* Mint glow effect */
.glow-mint {
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.2);
}

/* Gold glow effect */
.glow-gold {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

/* Button hover effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Card hover effects */
.group:hover {
    transform: translateY(-0.5rem);
}

/* Decorative line animation */
.w-24 {
    transition: width 0.3s ease;
}

section:hover .w-24 {
    width: 6rem;
}

/* Floating animation for badges */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

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

/* Gradient border effect */
.gradient-border {
    position: relative;
    background: #0f1f3a;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #fbbf24, #34d399, #fbbf24);
    border-radius: 1.1rem;
    z-index: -1;
    opacity: 0.5;
}

/* Nav blur effect */
nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Gallery grid adjustments */
.md\:row-span-2 {
    grid-row: span 2;
}

/* Ensure proper contrast for all text */
.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.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);
}

/* Form placeholder styling */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Select option styling */
select option {
    background: #0f1f3a;
    color: #fff;
}

/* Success message animation */
#success-message {
    animation: fadeIn 0.5s ease-out;
}

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

/* Hide success message */
.hidden {
    display: none;
}

/* Tablet and desktop adjustments */
@media (min-width: 768px) {
    .md\:order-1 {
        order: 1;
    }
    
    .md\:order-2 {
        order: 2;
    }
}

/* Prevent layout shift on images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
