/* Custom Styles for Jules Emily Skincare */

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

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

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

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

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

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .group img {
        transition: none;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Animation for elements below fold */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Custom Selection Color */
::selection {
    background: #FF6B6B;
    color: white;
}

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

/* Image Aspect Ratios */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Gradient Backgrounds */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to));
}

/* Hover Effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Button Hover Shadows */
.hover\\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Coral Shadow */
.hover\\:shadow-coral-500\\/30:hover {
    box-shadow: 0 20px 25px -5px rgba(255, 107, 107, 0.3), 0 10px 10px -5px rgba(255, 107, 107, 0.2);
}

.hover\\:shadow-coral-500\\/25:hover {
    box-shadow: 0 10px 15px -3px rgba(255, 107, 107, 0.25), 0 4px 6px -2px rgba(255, 107, 107, 0.15);
}

/* Coral Shadow Small */
.hover\\:shadow-coral-500\\/30:hover {
    box-shadow: 0 20px 25px -5px rgba(255, 107, 107, 0.3), 0 10px 10px -5px rgba(255, 107, 107, 0.2);
}

/* Card Hover Effects */
.group:hover .group-hover\\:bg-coral-500 {
    background-color: #FF6B6B;
}

.group:hover .group-hover\\:text-white {
    color: white;
}

/* Image Hover Scale */
img {
    transition: transform 0.5s ease;
}

/* Smooth Transitions */
.transition-transform {
    transition-property: transform;
}

.transition-all {
    transition-property: all;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Responsive Typography */
@media (max-width: 768px) {
    .font-serif {
        font-size: 1.5rem;
    }
    
    .text-5xl {
        font-size: 2.25rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
    
    .text-7xl {
        font-size: 3.5rem;
    }
}

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

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

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

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

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

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