/* Custom styles for Nipa's Eyebrow Threading */

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

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

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

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Hero text animation */
.hero-content {
    animation: fadeInUp 1s ease-out forwards;
}

/* Gradient backgrounds */
.gradient-plum {
    background: linear-gradient(135deg, #7a2c4e 0%, #d1418e 100%);
}

.gradient-amber {
    background: linear-gradient(135deg, #fb8c00 0%, #ffb703 100%);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #d1418e;
    outline-offset: 2px;
}

/* 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;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

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

/* Navigation active state */
nav a.active {
    color: #d1418e;
}

/* Button ripple effect */
button::after,
a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after,
a:active::after {
    width: 200px;
    height: 200px;
}

/* Custom selection color */
::selection {
    background: #fadcee;
    color: #7a2c4e;
}

/* Loading state for buttons */
button:disabled,
button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Card hover glow */
.group:hover .group-hover\\:shadow-glow {
    box-shadow: 0 0 30px rgba(209, 65, 142, 0.3);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
