/* Custom styles for Alisha's Hair Design */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f1a13;
}
::-webkit-scrollbar-thumb {
    background: #2d5038;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a6748;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #faf9f6;
}

/* Hero animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }
.hero-anim:nth-child(5) { animation-delay: 0.9s; }

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

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(15, 26, 19, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

/* Gold gradient text effect */
.gold-gradient {
    background: linear-gradient(135deg, #e8c97a 0%, #d4a843 50%, #c9972e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image hover effects */
img {
    transition: transform 0.5s ease;
}

/* Button focus states */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d4a843;
    outline-offset: 2px;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact form styles */
.form-input {
    background: rgba(30, 53, 39, 0.5);
    border: 1px solid rgba(212, 168, 67, 0.2);
    color: #faf9f6;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: rgba(212, 168, 67, 0.5);
}

.form-input::placeholder {
    color: rgba(250, 249, 246, 0.3);
}

/* Success message */
.success-message {
    display: none;
    background: rgba(212, 168, 67, 0.1);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: #d4a843;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    margin-top: 1rem;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
