/* Heart of Glass Salon — Custom Styles */

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

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

/* Navigation */
.nav-link {
    position: relative;
    color: rgba(250, 250, 248, 0.75);
    transition: color 0.3s ease;
}

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

.nav-link:hover {
    color: #FAFAF8;
}

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu */
.mobile-nav-link {
    color: #1A1A1A;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #E8635B;
}

/* Hero animations */
.hero-tagline {
    animation: slideUp 0.8s ease forwards;
}

.hero-headline {
    animation: slideUp 0.8s ease 0.15s forwards;
    opacity: 0;
}

.hero-subtext {
    animation: slideUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: slideUp 0.8s ease 0.45s forwards;
    opacity: 0;
}

.hero-image-wrapper {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Service cards */
.service-card {
    border: 1px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    border-color: rgba(232, 99, 91, 0.2);
    transform: translateY(-4px);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-tagline,
    .hero-headline,
    .hero-subtext,
    .hero-ctas,
    .hero-image-wrapper {
        animation: none;
        opacity: 1;
    }
    
    .reveal {
        transition: none;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .service-card {
        transition: none;
    }
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #3D3D3D;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(232, 99, 91, 0.3);
    color: #1A1A1A;
}
