/* === Custom Styles for Stacey Misell Hair === */

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

/* Custom selection color */
::selection {
    background-color: rgba(232, 106, 59, 0.3);
    color: #fff;
}

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

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === Service Cards === */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(244, 132, 95, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* === Navbar Transition === */
.nav-scrolled {
    background: rgba(13, 13, 13, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Mobile Menu Animation === */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* === Input Focus Styles === */
input:focus,
select:focus,
textarea:focus {
    border-color: #E86A3B !important;
    box-shadow: 0 0 0 1px rgba(232, 106, 59, 0.2);
}

/* === Gold Accent Line === */
.gold-divider {
    background: linear-gradient(90deg, transparent, #C8956C, transparent);
}

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

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }

    img {
        transition: none !important;
    }
}

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

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

::-webkit-scrollbar-track {
    background: #0D0D0D;
}

::-webkit-scrollbar-thumb {
    background: #2E2E2E;
    border-radius: 4px;
}

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