/* ========== CSS Variables ========== */
:root {
    --background: hsl(215, 30%, 12%);
    --foreground: hsl(210, 20%, 95%);
    --card: hsl(215, 25%, 16%);
    --card-foreground: hsl(210, 20%, 95%);
    --primary: hsl(210, 100%, 65%);
    --primary-foreground: hsl(215, 30%, 10%);
    --secondary: hsl(215, 25%, 20%);
    --secondary-foreground: hsl(210, 20%, 85%);
    --muted: hsl(215, 20%, 22%);
    --muted-foreground: hsl(210, 15%, 55%);
    --border: hsl(215, 20%, 22%);
    --radius: 0.5rem;
    --font-display: 'Roboto Slab', serif;
    --font-body: 'Roboto', sans-serif;
}

/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 6rem 0;
}

.hidden {
    display: none !important;
}

/* ========== Utilities ========== */
.text-gradient {
    background: linear-gradient(135deg, hsl(215, 90%, 50%), hsl(215, 80%, 65%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-secondary-50 {
    background: hsla(215, 25%, 20%, 0.5);
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-xs {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.icon-primary {
    color: var(--primary);
}

.icon-primary-fill {
    color: var(--primary);
    fill: var(--primary);
}

/* ========== Animations ========== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.animate-fade-up {
    animation: fadeUp 0.6s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.3s, background 0.3s;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, hsl(215, 90%, 50%), hsl(215, 95%, 35%));
    color: var(--foreground);
    box-shadow: 0 0 30px hsla(215, 90%, 50%, 0.15);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border: 1px solid hsla(210, 100%, 65%, 0.3);
}

.btn-outline:hover {
    background: hsla(210, 100%, 65%, 0.1);
}

.btn-full {
    width: 100%;
    font-size: 1.125rem;
    padding: 1rem;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    font-size: 1rem;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsla(215, 30%, 12%, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mobile-menu a {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: hsla(215, 30%, 12%, 0.7);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-subtitle {
    color: var(--primary);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    color: var(--muted-foreground);
    font-size: 1.125rem;
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid hsla(210, 100%, 65%, 0.4);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.scroll-dot {
    width: 0.375rem;
    height: 0.75rem;
    background: hsla(210, 100%, 65%, 0.6);
    border-radius: 9999px;
}

/* ========== Section Header ========== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--primary);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--muted-foreground);
    max-width: 36rem;
    margin: 0 auto;
}

/* ========== Services ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    border-color: hsla(210, 100%, 65%, 0.4);
    box-shadow: 0 0 30px hsla(215, 90%, 50%, 0.15);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: hsla(210, 100%, 65%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.service-price {
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.service-duration {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ========== Barbers ========== */
.barbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

.barber-card {
    text-align: center;
}

.barber-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 1.25rem;
    transition: border-color 0.3s;
}

.barber-card:hover .barber-image {
    border-color: hsla(210, 100%, 65%, 0.4);
}

.barber-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.5s;
}

.barber-card:hover .barber-image img {
    transform: scale(1.05);
}

.barber-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(215, 30%, 12%, 0.8), transparent, transparent);
}

.barber-image-info {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.barber-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.barber-exp {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.barber-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.barber-card>p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ========== Booking ========== */
.booking-form {
    max-width: 42rem;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--foreground);
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    box-shadow: 0 0 0 2px hsla(210, 100%, 65%, 0.5);
}

.form-group input::placeholder {
    color: var(--muted-foreground);
}

.form-group select option {
    background: var(--secondary);
    color: var(--foreground);
}

/* Confirmation */
.booking-confirmation {
    max-width: 32rem;
    margin: 0 auto;
    text-align: center;
    background: var(--card);
    border: 1px solid hsla(210, 100%, 65%, 0.3);
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: 0 0 30px hsla(215, 90%, 50%, 0.15);
}

.confirmation-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: hsla(210, 100%, 65%, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.booking-confirmation h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.booking-confirmation p {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

/* ========== Contact ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 48rem;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.contact-card:hover {
    border-color: hsla(210, 100%, 65%, 0.3);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: hsla(210, 100%, 65%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-weight: 500;
}

/* ========== Footer ========== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .booking-form {
        padding: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}