/* ==========================================================================
   ENKLAWA - Base Styles & Variables
   ========================================================================== */
:root {
    --bg-color: #121212;
    --acc-color: #D4AF37;
    --acc-hover: #b8972e;
    --text-primary: #f5f5f5;
    --text-secondary: #aaaaaa;
    --surface-light: #1e1e1e;
    --surface-dark: #0a0a0a;

    --font-heading: 'Syncopate', 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 4px;

    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation removed */

/* ==========================================================================
   Hero Section & 3D Viewer
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at center, #1e1e1e 0%, #0a0a0a 100%);
}

.hero-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-3d-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darkens the 3D model heavily to make logo pop */
    pointer-events: none;
    /* Allows interacting with 3D model through the dark overlay */
    z-index: 2;
}

.hero-3d-container model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    transform: scale(2.0);
    /* Zwiększenie kolarza 3D do 200% by zajmował o wiele więcej z widoku na środku */
    transform-origin: center center;
}

/* Custom Progress Bar for Model Viewer */
.progress-bar {
    display: block;
    width: 33%;
    height: 2px;
    max-width: 540px;
    width: calc(100% - 24px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar.hide {
    visibility: hidden;
    transition: visibility 0.3s;
}

.update-bar {
    background: var(--acc-color);
    width: 0%;
    height: 100%;
    transition: width 0.3s;
}

.hero-overlay.centered-hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.logo.centered-logo {
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--acc-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 8px;
    pointer-events: auto;
    /* Clickable */
}

.hero-sygnet {
    width: clamp(80px, 15vw, 150px);
    height: auto;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    pointer-events: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

/* ==========================================================================
   Intro Section
   ========================================================================== */
.intro-section {
    padding: 6rem 0 8rem 0;
    /* Przywrócono górny padding by tekst miał oddech */
    text-align: center;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--acc-color);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   Artists Section
   ========================================================================== */
.artists-section {
    padding: 0 0 5rem 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--surface-dark) 100%);
}

.artist-row {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.artist-row.reverse-row {
    background: var(--surface-light);
    border-bottom: none;
}

.artist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.column-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artist-name {
    font-size: 3rem;
    color: var(--acc-color);
    margin-bottom: 1.5rem;
}

.artist-bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.mini-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.multi-gallery {
    grid-template-columns: repeat(5, 1fr);
    /* 10 items fit nicely as 2 rows of 5 on desktop */
    gap: 0.8rem;
}

.gallery-item {
    aspect-ratio: 4/5;
    /* Better portrait aspect for tattoos */
    overflow: hidden;
    border-radius: var(--border-radius);
    position: relative;
    cursor: pointer;
    background: #1a1a1a;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item:hover img {
    transform: scale(1.05);
    border-color: var(--acc-color);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #111, #222);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item:hover .placeholder-img {
    transform: scale(1.05);
    border-color: var(--acc-color);
}

.placeholder-img span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.column-3d {
    position: relative;
    height: 700px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Prevent spill when scaling */
}

/* Force models to physically cover area */
.column-3d model-viewer {
    width: 100%;
    height: 100%;
}

.scanner-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--acc-color);
    box-shadow: 0 0 20px 5px rgba(212, 175, 55, 0.5);
    opacity: 0.6;
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes scan {
    0% {
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
    background: var(--bg-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-image-col {
    height: 100%;
    min-height: 400px;
}

.studio-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    text-align: center;
}

.studio-placeholder span {
    color: var(--text-secondary);
    font-family: var(--font-heading);
    letter-spacing: 2px;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
}

.contact-info-col .section-title {
    margin-bottom: 2rem;
}

.contact-info-col .section-title::after {
    left: 0;
    transform: none;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-details strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.artist-ig-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
}

.btn-social {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--acc-color);
    color: var(--acc-color);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-social:hover {
    background: var(--acc-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.map-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    filter: invert(90%) hue-rotate(180deg) contrast(80%) sepia(10%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #000;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.credits {
    color: rgba(255, 255, 255, 0.3) !important;
    font-size: 0.8rem !important;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Lightbox Overlay
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.column-3d {
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.9)
    }

    to {
        transform: scale(1)
    }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--acc-color);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.3);
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .artist-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .column-3d {
        order: -1;
    }

    .column-text,
    .column-3d {
        min-height: 550px;
        /* Provide enough height to prevent clipping 3D optical zooms */
    }

    .multi-gallery {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .contact-image-col {
        min-height: 300px;
    }
}

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

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .artist-name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .column-3d {
        height: 550px;
    }

    .mini-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .multi-gallery {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on very small mobile */
        gap: 0.5rem;
    }
}