/**
 * Salon By Men - Modern Professional Design v2.0
 * Fully Responsive & Mobile Optimized
 * Tüm mobil uyumluluk sorunları giderildi
 */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4af37;
    --primary-dark: #b8941f;
    --primary-light: #e6c85c;
    --dark: #1a1a1a;
    --dark-light: #2c2c2c;
    --light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #7f8c8d;
    --text-light: #ecf0f1;
    --border: #e0e0e0;
    --success: #27ae60;
    --danger: #e74c3c;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
    padding: 0;
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 20px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    z-index: 1001;
}

.logo i {
    font-size: 28px;
    transform: rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    position: relative;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--dark);
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

/* ========== HERO SECTION ========== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2c2c2c 100%);
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.4);
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-gray);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.stat-item h3 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-item p {
    font-size: 16px;
    color: var(--text-gray);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 24px auto 0;
}

/* ========== SERVICES ========== */
.services {
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 36px;
    color: white;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 24px;
    line-height: 1.8;
    min-height: 50px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.service-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 15px;
}

.service-meta .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* ========== BARBERS ========== */
.barbers {
    background: white;
}

.barbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 40px;
}

.barber-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.barber-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.barber-image {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    background: var(--light);
}

.barber-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.barber-card:hover .barber-image img {
    transform: scale(1.1);
}

.barber-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.barber-info {
    padding: 24px;
}

.barber-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.barber-speciality {
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 16px;
}

.barber-bio {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.barber-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 14px;
}

.barber-contact i {
    color: var(--primary);
}

/* ========== ABOUT ========== */
.about {
    background: var(--light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.about-badge i {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.about-text h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.about-text .lead {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 32px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.feature-item i {
    color: var(--success);
    font-size: 24px;
}

.feature-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* ========== APPOINTMENT ========== */
.appointment-section {
    background: white;
}

.appointment-container {
    max-width: 900px;
    margin: 0 auto;
}

.appointment-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
    position: relative;
}

.appointment-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(12.5% + 30px);
    right: calc(12.5% + 30px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    background: white;
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-gray);
    transition: var(--transition);
}

.step.active .step-number,
.step.completed .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.step-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

.step.active .step-text {
    color: var(--primary);
    font-weight: 600;
}

.appointment-form {
    background: var(--light);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.form-step h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-dark);
    text-align: center;
}

.service-selection,
.barber-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.selection-card {
    background: white;
    padding: 24px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.selection-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.selection-card.selected {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.selection-card .icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.selection-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.selection-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
    min-height: 40px;
}

.selection-card .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.barber-select-card {
    background: white;
    padding: 24px 20px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.barber-select-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.barber-select-card.selected {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.barber-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.barber-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.datetime-selection {
    margin-bottom: 32px;
}

.date-picker {
    margin-bottom: 24px;
}

.date-picker label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.date-picker input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.date-picker input:focus {
    outline: none;
    border-color: var(--primary);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.time-slot {
    padding: 16px 12px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.time-slot:hover {
    border-color: var(--primary);
    background: rgba(212, 175, 55, 0.05);
}

.time-slot.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.time-slot.disabled {
    background: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.5;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Telefon input validasyonu */
.form-group input[type="tel"]:valid {
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.05);
}

.form-group input[type="tel"]:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
    background: rgba(231, 76, 60, 0.05);
}

.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.appointment-summary {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 2px solid var(--primary);
}

.appointment-summary h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-gray);
    font-weight: 500;
}

.summary-value {
    color: var(--text-dark);
    font-weight: 600;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check label {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

.form-check label a {
    color: var(--primary);
    text-decoration: underline;
}

.step-buttons {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 32px;
}

.next-step,
.prev-step {
    flex: 1;
}

.info-text {
    text-align: center;
    color: var(--text-gray);
    padding: 32px;
    background: white;
    border-radius: var(--radius-md);
}

/* ========== CONTACT ========== */
.contact {
    background: var(--light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-item i {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: var(--radius-md);
    font-size: 24px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-item p,
.contact-item a {
    color: var(--text-gray);
    line-height: 1.8;
}

.contact-item a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-4px);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 100%;
    min-height: 480px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li i {
    color: var(--primary);
    width: 20px;
}

.footer-col ul li a {
    color: var(--text-gray);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 14px;
}

/* ========== FLOATING ELEMENTS ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 54px;
    height: 54px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 5px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== RESPONSIVE - MOBILE OPTIMIZATION ========== */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image img {
        height: 450px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 100px 30px 40px;
        gap: 0;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 18px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu .btn {
        width: 100%;
        margin-top: 20px;
    }
    
    /* Hero */
    .hero {
        min-height: 85vh;
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 50px;
    }
    
    .btn-lg {
        width: 100%;
        padding: 16px 32px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding-top: 40px;
    }
    
    .stat-item i {
        font-size: 32px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    /* Barbers */
    .barbers-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .barber-image {
        height: 320px;
    }
    
    /* About */
    .about-text h2 {
        font-size: 32px;
    }
    
    .about-text .lead {
        font-size: 18px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .about-badge {
        bottom: 20px;
        right: 20px;
        padding: 20px;
        font-size: 14px;
    }
    
    .about-badge i {
        font-size: 28px;
    }
    
    /* Appointment */
    .appointment-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 16px;
        margin-bottom: 40px;
    }
    
    .appointment-steps::before {
        display: none;
    }
    
    .step-number {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
    
    .step-text {
        font-size: 13px;
    }
    
    .appointment-form {
        padding: 40px 24px;
    }
    
    .form-step h3 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .service-selection,
    .barber-selection {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .time-slot {
        padding: 14px 8px;
        font-size: 14px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .step-buttons .btn {
        width: 100%;
    }
    
    /* Contact */
    .contact-info {
        gap: 20px;
    }
    
    .contact-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .contact-map {
        min-height: 350px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Floating Elements */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 26px;
        bottom: 24px;
        right: 24px;
    }
    
    .scroll-top {
        width: 48px;
        height: 48px;
        font-size: 18px;
        bottom: 24px;
        left: 24px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .appointment-form {
        padding: 32px 20px;
    }
    
    .service-card,
    .barber-card {
        margin: 0 -10px;
    }
}