/* ========================================
   Kim Molioo Hair & Beauty Stylist
   Premium Dark Luxury Stylesheet
   ======================================== */

/* --- Base Reset & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #f8fafc;
}

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

::-webkit-scrollbar-track {
    background: #060c17;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

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

/* --- Hero Animations --- */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroScale {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 3rem;
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateY(6px);
    }
}

.hero-img {
    animation: heroScale 1.2s ease-out forwards;
}

.hero-title {
    animation: heroFadeUp 0.9s ease-out 0.3s both;
}

.hero-subtitle {
    animation: heroFadeUp 0.9s ease-out 0.5s both;
}

.hero-cta {
    animation: heroFadeUp 0.9s ease-out 0.7s both;
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Navbar --- */
.navbar-scrolled {
    background: rgba(6, 12, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-scrolled .nav-link {
    color: #94a3b8;
}

/* --- 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(251, 191, 36, 0), transparent);
    transition: background 0.5s ease;
}

.service-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), transparent);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.02) 0%, transparent 50%, rgba(20, 184, 166, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

/* --- Gallery --- */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
    .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
    .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
    .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
    .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* --- Mobile Menu --- */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.menu-line:nth-child(1) {
    transform-origin: center;
}

.menu-line:nth-child(2) {
    width: 1.5rem;
}

.menu-line:nth-child(3) {
    transform-origin: center;
}

.menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
    margin: 0;
}

/* --- Form Styles --- */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.3);
}

/* --- Button Hover Effects --- */
button, a {
    cursor: pointer;
}

/* --- Image Aspect Ratios --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 2px solid rgba(251, 191, 36, 0.5);
    outline-offset: 2px;
}

/* --- Reduced Motion --- */
@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;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    @media (min-width: 640px) {
        .hero-title {
            font-size: 3rem;
        }
    }
}

/* --- Print Styles --- */
@media print {
    nav, .scroll-line, #contact-form {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
