/* Custom styles for The Main Street Barbershop of Garrettsville */

/* Gold gradient for buttons */
.gold-gradient-btn {
    background: linear-gradient(135deg, #C8A656 0%, #E0C97E 50%, #B8943F 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.gold-gradient-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #E0C97E 0%, #C8A656 50%, #D4B76A 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gold-gradient-btn:hover::before {
    opacity: 1;
}

.gold-gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 166, 86, 0.3);
}

.gold-gradient-btn span,
.gold-gradient-btn svg,
.gold-gradient-btn * {
    position: relative;
    z-index: 1;
}

/* Gold divider line */
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #C8A656 50%, transparent 100%);
    opacity: 0.3;
}

/* Gold accent line in hero */
.gold-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, #C8A656, transparent);
}

.gold-line.vertical {
    width: 1px;
    height: 120px;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #C8A656, transparent);
}

/* Section label */
.section-label {
    display: inline-flex;
    align-items: center;
}

/* Hero fade-in animations */
.hero-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-fade-in:nth-child(1) { animation-delay: 0.2s; }
.hero-fade-in:nth-child(2) { animation-delay: 0.4s; }
.hero-fade-in:nth-child(3) { animation-delay: 0.6s; }
.hero-fade-in:nth-child(4) { animation-delay: 0.8s; }

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

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* Service card hover effects */
.service-card {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Gallery hover */
.gallery-item {
    overflow: hidden;
    position: relative;
}

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

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(7, 15, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(200, 166, 86, 0.1);
}

/* Mobile menu link animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Intersection observer animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.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; }

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

/* Selection color */
::selection {
    background: rgba(200, 166, 86, 0.3);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #070F1A;
}

::-webkit-scrollbar-thumb {
    background: #1A3456;
    border-radius: 4px;
}

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

/* Mobile menu button active state */
.menu-line {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gold-line.vertical {
        display: none;
    }
}
