/* Custom Styles for Cesar Luna Hair Salon */

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a2227;
}
::-webkit-scrollbar-thumb {
    background: #3d4d54;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C27C63;
}

/* Hero Animations */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}
.hero-reveal:nth-child(1) { animation-delay: 0.1s; }
.hero-reveal:nth-child(2) { animation-delay: 0.2s; }
.hero-reveal:nth-child(3) { animation-delay: 0.3s; }
.hero-reveal:nth-child(4) { animation-delay: 0.4s; }
.hero-reveal:nth-child(5) { animation-delay: 0.5s; }
.hero-reveal:nth-child(6) { animation-delay: 0.6s; }
.hero-reveal:nth-child(7) { animation-delay: 0.7s; }
.hero-reveal:nth-child(8) { animation-delay: 0.8s; }
.hero-reveal:nth-child(9) { animation-delay: 0.9s; }
.hero-reveal:nth-child(10) { animation-delay: 1.0s; }

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

.hero-image {
    animation: heroImage 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes heroImage {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-float {
    animation: heroFloat 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes heroFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Service Card Hover */
.service-card {
    transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.service-card:hover {
    box-shadow: 0 20px 60px rgba(194, 124, 99, 0.1);
}

/* Gallery Item */
.gallery-item {
    transition: transform 0.5s ease;
}
.gallery-item:hover {
    transform: scale(1.02);
}

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(26, 34, 39, 0.95);
    backdrop-filter: blur(20px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }

/* Menu Button Animation */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

/* Selection Color */
::selection {
    background: #C27C63;
    color: #1a2227;
}

/* Focus Styles */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 2px rgba(194, 124, 99, 0.3);
}

/* Button Hover Glow */
button:hover {
    box-shadow: 0 10px 40px rgba(194, 124, 99, 0.3);
}

/* Image Hover Zoom */
img {
    transition: transform 0.7s ease;
}

/* Subtle Pattern Overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(194,124,99,0.15) 1px, transparent 0);
    background-size: 30px 30px;
}
