/* ===== Custom Styles for Premier Cuts Barber Shop ===== */

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

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

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(6, 95, 70, 0.08);
}

#navbar.scrolled .font-display.font-bold {
    color: #065f46 !important;
}

#navbar.scrolled a:not([class*="bg-emerald"]) {
    color: #374151 !important;
}

/* ===== Mobile Menu ===== */
.mobile-link {
    border-bottom: 1px solid rgba(6, 95, 70, 0.1);
}

.mobile-link:last-child {
    border-bottom: none;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #065f46, #10b981, #f59e0b);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 95, 70, 0.1), rgba(6, 95, 70, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

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

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* ===== Hero text animation ===== */
.hero-content {
    animation: fadeInUp 1s ease forwards;
}

.hero-delay-1 { animation-delay: 0.2s; opacity: 0; }
.hero-delay-2 { animation-delay: 0.4s; opacity: 0; }
.hero-delay-3 { animation-delay: 0.6s; opacity: 0; }
.hero-delay-4 { animation-delay: 0.8s; opacity: 0; }

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

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

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

.float-medium {
    animation: float-reverse 4s ease-in-out infinite;
}

/* ===== Button ripple effect ===== */
button, a {
    position: relative;
    overflow: hidden;
}

/* ===== Selection ===== */
::selection {
    background: #10b981;
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #fdf9f0;
}

::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}

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

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
}
