/* Custom Styles for Kim's Oriental Nails */

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

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

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

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

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

/* Selection Color */
::selection {
    background: #fce7e7;
    color: #3a0d0d;
}

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

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

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

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Stagger Animation Delays */
.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;
}

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

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #dc4c4c;
    outline-offset: 2px;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(90deg, #fce7e7 0%, #fadada 50%, #fce7e7 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

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

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

/* Navbar Scroll Effect */
#navbar.scrolled {
    background: rgba(255, 248, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(58, 13, 13, 0.08);
}

/* Button Hover Effects */
a[href="tel:16093055257"],
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

a[href="tel:16093055257"]::before,
button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

a[href="tel:16093055257"]:hover::before,
button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Gallery Hover */
.grid img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Card Hover Shadows */
.group:hover {
    box-shadow: 0 20px 40px rgba(58, 13, 13, 0.12);
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 76, 76, 0.1);
}

/* Print Styles */
@media print {
    nav,
    #contact-form,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-burgundy-950,
    .bg-burgundy-800 {
        background: #3a0d0d !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
