/* ============================================
   IRON BLADE BARBERSHOP - STYLES
   Темний преміальний стиль
   ============================================ */

/* CSS Variables - кольорова палітра */
:root {
    --color-black: #0a0a0a;
    --color-dark: #1a1a1a;
    --color-gray: #2a2a2a;
    --color-gray-light: #888888;
    --color-beige: #c9a86c;
    --color-beige-light: #d4b87d;
    --color-white: #ffffff;
    --color-white-muted: rgba(255, 255, 255, 0.8);
    
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.3s ease;
}

/* Reset та базові стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(201, 168, 108, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-beige);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white-muted);
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-beige);
    transition: var(--transition-fast);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 25px;
    border: 2px solid var(--color-beige);
    color: var(--color-beige);
    transition: var(--transition-fast);
}

.nav-cta:hover {
    background: var(--color-beige);
    color: var(--color-black);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-dark) 50%, var(--color-gray) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 168, 108, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 168, 108, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(201,168,108,0.03)" stroke-width="0.5" x="0" y="0" width="100" height="100"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1;
    margin-bottom: 20px;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-slogan {
    font-size: 1.2rem;
    color: var(--color-beige);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 18px 40px;
    background: var(--color-beige);
    color: var(--color-black);
    border: 2px solid var(--color-beige);
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-beige);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 168, 108, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-beige);
    border-radius: 15px;
    opacity: 0.6;
}

.scroll-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--color-beige);
    border-radius: 50%;
    margin: 10px auto;
    animation: scrollBounce 2s infinite;
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-white);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-beige);
}

.section-title.centered {
    text-align: center;
    display: block;
}

.section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray-light);
    font-size: 1.1rem;
    margin-bottom: 60px;
    margin-top: -10px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--color-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-description {
    color: var(--color-white-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-beige);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Placeholder Images */
.about-image-placeholder,
.atmosphere-image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-dark) 100%);
    border: 2px solid rgba(201, 168, 108, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::before,
.atmosphere-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(201, 168, 108, 0.03) 10px,
        rgba(201, 168, 108, 0.03) 20px
    );
    animation: patternMove 20s linear infinite;
}

.placeholder-content {
    text-align: center;
    z-index: 2;
}

.placeholder-icon {
    display: block;
    font-size: 4rem;
    color: var(--color-beige);
    margin-bottom: 15px;
    opacity: 0.8;
}

.placeholder-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gray-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ============================================
   MASTERS SECTION
   ============================================ */
.masters {
    background: var(--color-black);
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.master-card {
    background: var(--color-dark);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(201, 168, 108, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.master-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-beige);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.master-card:hover {
    transform: translateY(-10px);
    border-color: rgba(201, 168, 108, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.master-card:hover::before {
    transform: scaleX(1);
}

.master-photo {
    margin-bottom: 25px;
}

.master-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gray) 0%, var(--color-dark) 100%);
    border: 3px solid var(--color-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-beige);
    transition: var(--transition-smooth);
}

.master-card:hover .master-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(201, 168, 108, 0.3);
}

.master-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--color-white);
}

.master-role {
    color: var(--color-beige);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.master-specialty {
    color: var(--color-gray-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--color-dark);
}

.services-list {
    max-width: 800px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(201, 168, 108, 0.1);
    transition: var(--transition-fast);
}

.service-item:hover {
    padding-left: 20px;
    border-bottom-color: rgba(201, 168, 108, 0.3);
}

.service-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-beige);
    transition: var(--transition-fast);
}

.service-item:hover .service-icon {
    background: var(--color-beige);
    color: var(--color-black);
    transform: rotate(90deg);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-white);
}

.service-content p {
    color: var(--color-gray-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   ATMOSPHERE SECTION
   ============================================ */
.atmosphere {
    background: var(--color-black);
    padding: 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.atmosphere-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 600px;
}

.atmosphere-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-black) 100%);
}

.atmosphere-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--color-white);
}

.atmosphere-subtitle {
    font-size: 1.3rem;
    color: var(--color-beige);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
}

.atmosphere-visual {
    position: relative;
}

.atmosphere-image-placeholder {
    height: 100%;
    min-height: 600px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-gray) 100%);
    text-align: center;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 168, 108, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.cta-text {
    font-size: 1.2rem;
    color: var(--color-gray-light);
    margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-black);
    padding: 40px 0;
    border-top: 1px solid rgba(201, 168, 108, 0.1);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-beige);
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.footer-text {
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

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

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Scroll Reveal Animation */
.section-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
    
    .about-grid,
    .atmosphere-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
    }
    
    .about-image-placeholder,
    .atmosphere-image-placeholder {
        height: 300px;
        min-height: 300px;
    }
    
    .atmosphere-text {
        padding: 60px 40px;
    }
    
    .masters-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn-primary {
        padding: 15px 30px;
        font-size: 0.9rem;
    }
    
    .stat-item {
        flex: 1 1 40%;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .service-icon {
        margin: 0 auto;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
  }
