/* Custom styles for Barberology */

:root {
    --color-off-white: #f5f2eb;
    --color-gold-300: #e8d5a3;
    --color-gold-400: #d4af66;
    --color-gold-500: #c9a255;
    --color-gold-600: #b08a3e;
    --color-forest-400: #97c5a3;
    --color-forest-500: #66a374;
    --color-forest-700: #234b30;
    --color-forest-900: #173120;
    --color-dark-900: #080a09;
    --color-dark-950: #040504;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--color-dark-950);
    color: var(--color-off-white);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark-950);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--color-gold-500), var(--color-forest-700));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-400);
}

/* Selection color */
::selection {
    background: rgba(201, 162, 85, 0.3);
    color: var(--color-off-white);
}

/* Radial gradient utility */
.bg-radial-gradient {
    background: radial-gradient(ellipse at center, transparent 0%, var(--color-dark-950) 70%);
}

/* Service card hover effect */
.service-card {
    will-change: transform;
}

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

/* Smooth transitions for all interactive elements */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Navbar styles */
#navbar {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#navbar.scrolled {
    background: rgba(4, 5, 4, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 85, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Fade in animation for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-fade-in-delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-fade-in-delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-fade-in-delay-3 {
    animation-delay: 0.6s;
    opacity: 0;
}

/* Scroll reveal base styles (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Select dropdown styling */
select option {
    background: var(--color-dark-900);
    color: var(--color-off-white);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px var(--color-dark-950) inset !important;
    -webkit-text-fill-color: var(--color-off-white) !important;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-gold-400);
    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;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .hero-fade-in {
        animation: fadeInUp 0.8s ease-out forwards;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .service-card:hover {
        border-color: rgba(201, 162, 85, 0.3);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(201, 162, 85, 0.05);
    }
}
