/* Custom Styles for Hair by Susan */

/* Color Variables */
:root {
    --burgundy-50: #fdf2f4;
    --burgundy-100: #fce7eb;
    --burgundy-200: #fad5de;
    --burgundy-300: #f5b0be;
    --burgundy-400: #ed7a95;
    --burgundy-500: #e04d72;
    --burgundy-600: #cc3357;
    --burgundy-700: #ae2444;
    --burgundy-800: #8f1d38;
    --burgundy-900: #76182f;
    --burgundy-950: #3f0a14;
    
    --blush-50: #fef7f5;
    --blush-100: #fdf0ec;
    --blush-200: #fce3d9;
    --blush-300: #f8cdb8;
    
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;
}

/* Tailwind Config */
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
    .nav-link {
        position: relative;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 1px;
        bottom: -4px;
        left: 0;
        background-color: currentColor;
        transition: width 0.3s ease;
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
    
    .mobile-nav-link {
        position: relative;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-link:hover {
        transform: translateX(10px);
    }
}

/* Hero Animations */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 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; }

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

.hero-image-anim {
    opacity: 0;
    transform: translateX(50px);
    animation: heroImageSlide 1s ease 0.5s forwards;
}

@keyframes heroImageSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(40px);
}

/* Navbar Styles */
#navbar {
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 247, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

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

#navbar.scrolled .nav-logo {
    color: var(--burgundy-900);
}

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

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

::-webkit-scrollbar-track {
    background: var(--blush-50);
}

::-webkit-scrollbar-thumb {
    background: var(--burgundy-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--burgundy-600);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-anim,
    .hero-image-anim,
    .scroll-reveal {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
    
    img {
        transition: none;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .animate-bounce {
        display: none;
    }
}
