/* Custom Styles for Good Life Barbershop */

:root {
    --charcoal: #2C2C2C;
    --coral: #FF6B6B;
    --coral-dark: #E85555;
    --stone-50: #FAFAF8;
    --stone-100: #F5F5F3;
}

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

html {
    scroll-behavior: smooth;
}

body {
    color: var(--charcoal);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.font-serif {
    font-family: 'Cormorant Garamond', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--charcoal);
    border-radius: 3px;
}

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

/* Hero Animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-title {
    animation: slideUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    animation: slideUp 0.8s ease forwards 0.8s;
}

.hero-image {
    animation: fadeIn 1s ease forwards 0.5s;
    opacity: 0;
}

.hero-card {
    animation: slideUp 0.6s ease forwards 1s;
}

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

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

@keyframes scroll {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-scroll {
    animation: scroll 1.5s ease-in-out infinite;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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

#navbar.scrolled {
    background: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(44, 44, 44, 0.1);
}

/* Mobile Menu */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#menuBtn.active #line1 {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active #line2 {
    opacity: 0;
}

#menuBtn.active #line3 {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

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

/* Service Cards */
.service-card {
    transition: all 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card:hover svg {
    transform: scale(1.1);
}

.service-card svg {
    transition: transform 0.3s ease;
}

/* Back to Top */
.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

/* Line Animations */
.w-px {
    position: relative;
    overflow: hidden;
}

/* Image hover effects */
.overflow-hidden {
    overflow: hidden;
}

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Selection color */
::selection {
    background: var(--coral);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

/* Print styles */
@media print {
    #navbar,
    .back-to-top,
    .animate-scroll {
        display: none;
    }
}
