/* Custom Styles for Luminous Hair Studio I */

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

/* Base Typography */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

::-webkit-scrollbar-thumb {
    background: #6A1B2D;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4A0E1B;
}

/* Selection Color */
::selection {
    background: #6A1B2D;
    color: #F5E6E8;
}

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

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

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

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(250, 248, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(106, 27, 45, 0.1);
}

/* Mobile Menu Active State */
.mobile-menu-active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Form Focus States */
input:focus,
textarea:focus {
    outline: none;
}

/* Button Hover Effects */
button, 
a {
    -webkit-tap-highlight-color: transparent;
}

/* Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Mobile Menu Button Animation */
#mobile-menu-btn span {
    display: block;
    transition: all 0.3s ease;
}

#mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Gallery Hover Overlay */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Custom Animations */
@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 {
    animation: fadeIn 0.8s ease-out forwards;
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* Print Styles */
@media print {
    nav, 
    #mobile-menu,
    .reveal,
    button,
    iframe {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-luminous-burgundy-dark,
    .bg-luminous-charcoal {
        background: #fff !important;
        color: #000 !important;
    }
}
