/* Custom styles for Skin Jurnee */

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

/* Navbar transition */
.nav {
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(20, 20, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-logo-text {
    transition: color 0.3s ease;
}

.nav.scrolled .nav-logo-text {
    color: #ffffff;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff8a66;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

/* Hero section */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(20, 20, 23, 0.85) 0%, rgba(20, 20, 23, 0.6) 50%, rgba(20, 20, 23, 0.75) 100%);
}

/* Scroll indicator */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    border-color: rgba(255, 138, 102, 0.5);
    background: rgba(255, 138, 102, 0.1);
}

/* Service cards */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Gallery items */
.gallery-item {
    aspect-ratio: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.gallery-item:nth-child(1) { aspect-ratio: 4/5; }
.gallery-item:nth-child(2) { aspect-ratio: 4/3; }
.gallery-item:nth-child(3) { aspect-ratio: 4/5; }
.gallery-item:nth-child(4) { aspect-ratio: 4/3; }
.gallery-item:nth-child(5) { aspect-ratio: 4/3; }
.gallery-item:nth-child(6) { aspect-ratio: 4/5; }
.gallery-item:nth-child(7) { aspect-ratio: 4/3; }
.gallery-item:nth-child(8) { aspect-ratio: 4/5; }

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile menu */
.mobile-menu {
    max-height: 0;
}

.mobile-menu.open {
    max-height: 400px;
}

.mobile-nav-link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Selection color */
::selection {
    background: rgba(255, 107, 63, 0.3);
    color: #2c2c32;
}

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

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

::-webkit-scrollbar-thumb {
    background: #38383f;
    border-radius: 4px;
}

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

/* 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;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}
