/* Custom styles for D'Stilo by felrosalo */

:root {
    --charcoal: #2C2C2C;
    --charcoal-dark: #1A1A1A;
    --coral: #FF6B6B;
    --coral-light: #FF8E8E;
    --offwhite: #FAFAFA;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Preloader */
#preloader {
    animation: fadeInOut 1.5s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.8s ease forwards;
}

.reveal:nth-child(1) { animation-delay: 0.2s; }
.reveal:nth-child(2) { animation-delay: 0.4s; }
.reveal:nth-child(3) { animation-delay: 0.6s; }
.reveal:nth-child(4) { animation-delay: 0.8s; }

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal for sections */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
#mobile-menu.active {
    transform: translateX(0);
}

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

::-webkit-scrollbar-track {
    background: var(--offwhite);
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--coral);
}

/* Focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--coral);
}

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

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

/* 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;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal,
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}
