/* ========================================
   Bo's Barber Shop — Custom Styles
   ======================================== */

/* ---------- Base & Utilities ---------- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 154, 34, 0.2);
    color: #102a43;
}

/* ---------- Hero Gradient ---------- */
.hero-gradient {
    background: linear-gradient(135deg, #102a43 0%, #243b53 30%, #334e68 55%, #1a3a5c 80%, #0d1f30 100%);
}

/* ---------- Gold Button ---------- */
.btn-gold {
    background: linear-gradient(135deg, #e0af38 0%, #d49a22 50%, #bf7c16 100%);
    box-shadow: 0 4px 15px rgba(212, 154, 34, 0.35);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ebc970 0%, #e0af38 50%, #d49a22 100%);
    box-shadow: 0 8px 30px rgba(212, 154, 34, 0.45);
}

/* ---------- White Outline Button ---------- */
.btn-outline-white {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Section Label ---------- */
.section-label {
    letter-spacing: 0.15em;
}

/* ---------- Nav ---------- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e0af38, #d49a22);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

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

/* ---------- Scrolled Nav ---------- */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

.nav-scrolled .nav-link {
    color: #243b53;
}

.nav-scrolled .nav-link:hover {
    color: #d49a22;
}

.nav-scrolled .font-serif {
    color: #102a43 !important;
}

/* ---------- Mobile Menu ---------- */
.mobile-link {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Hamburger Animation */
#menuBtn.active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active #bar2 {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu:not(.open) {
    transform: translateX(-100%);
}

/* ---------- Scroll Indicator ---------- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- Floating Decorations ---------- */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-3deg); }
}

@keyframes float-slower {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(8deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-slower {
    animation: float-slower 10s ease-in-out infinite;
}

/* ---------- Decorative Circles ---------- */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    background: white;
}

.deco-circle-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    animation: float 12s ease-in-out infinite;
}

.deco-circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation: float-slow 15s ease-in-out infinite;
}

.deco-circle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 10%;
    animation: float-slower 9s ease-in-out infinite;
}

/* ---------- Hero Animations ---------- */
.hero-badge {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.hero-title {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.hero-ctas {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

.hero-trust {
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1s;
}

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

/* ---------- Service Cards ---------- */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e0af38, #d49a22);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 42, 67, 0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item {
    position: relative;
}

/* ---------- Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal.revealed:nth-child(2) { transition-delay: 100ms; }
.reveal.revealed:nth-child(3) { transition-delay: 200ms; }
.reveal.revealed:nth-child(4) { transition-delay: 300ms; }

/* ---------- Back to Top ---------- */
#backToTop {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 42, 67, 0.3);
}

/* ---------- Success Message ---------- */
.success-message {
    animation: fadeUp 0.5s ease forwards;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-title::after {
        content: 'looking sharp.';
        display: block;
        font-size: 0.6em;
        margin-top: 0.2em;
    }
}

@media (min-width: 641px) {
    .hero-title::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-trust {
        gap: 4px 12px;
    }
}

/* ---------- 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;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
