/* Custom Styles for Oluchi Hair & Day Spa */

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

/* Delay Classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Image Hover Zoom */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* Gradient Backgrounds */
.gradient-plum {
    background: linear-gradient(135deg, #d94d72 0%, #a02243 100%);
}

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

.gradient-mixed {
    background: linear-gradient(135deg, #fdf4f6 0%, #fffbeb 100%);
}

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

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

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

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

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

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 77, 114, 0.2);
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Text Selection */
::selection {
    background: #d94d72;
    color: white;
}

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

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #333 !important;
    }
    
    .text-white\/70 {
        color: #fff !important;
    }
}

/* Reduced Transparency */
@media (prefers-reduced-transparency: reduce) {
    .bg-white\/10 {
        background: rgba(255, 255, 255, 0.8) !important;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem !important;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    
    .lg\:col-span-7 {
        grid-column: span 1 / span 1 !important;
    }
    
    .lg\:col-start-2 {
        grid-column: 1 / span 1 !important;
    }
    
    .lg\:order-2 {
        order: 2 !important;
    }
    
    .lg\:order-1 {
        order: 1 !important;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

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

/* Utility Classes */
.container-custom {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Decorative Elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    pointer-events: none;
}

.decorative-circle-1 {
    width: 300px;
    height: 300px;
    background: #d94d72;
    top: -100px;
    right: -100px;
}

.decorative-circle-2 {
    width: 200px;
    height: 200px;
    background: #fbbf24;
    bottom: -50px;
    left: -50px;
}

/* Card Shadows */
.shadow-plum {
    box-shadow: 0 10px 40px rgba(217, 77, 114, 0.15);
}

.shadow-amber {
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.15);
}

/* Border Gradients */
.border-gradient {
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #d94d72, #fbbf24);
    border-radius: inherit;
    z-index: -1;
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(61, 10, 25, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Sticky Navigation Background */
.nav-scrolled {
    background: rgba(253, 244, 246, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

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

/* Pulse Animation */
@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

/* Rotate on Hover */
.rotate-hover:hover {
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

/* Scale on Hover */
.scale-hover:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Glow Effect */
.glow-plum {
    box-shadow: 0 0 20px rgba(217, 77, 114, 0.5);
}

.glow-amber {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #d94d72, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Pattern */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d94d72' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
