/*
Theme Name: Joanna Czerwiec-Czerwińska - Malarstwo & Kolaż
Theme URI: https://github.com/justynaczj
Description: Profesjonalny i minimalistyczny motyw WordPress dedykowany dla artysty malarza i twórcy kolaży. Pełna edycja za pomocą Advanced Custom Fields (ACF).
Version: 1.0.0
Author: Antigravity
Author URI: https://google.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: portfolio, art, photography, minimal, dark, custom-colors, custom-menu, featured-images, flexible-header, post-formats, responsive-layout, translation-ready
Text Domain: justynaczj
*/

/* CSS RESET & VARIABLES */
:root {
    --color-olive: #7ba251; /* Exact green from screenshot */
    --color-olive-dark: #648541;
    --color-charcoal: #121212;
    --color-charcoal-light: #1c1c1c;
    --color-cream: #FAF8F5;
    --color-sand: #f0ede6;
    --color-accent: #c5a880; /* Elegant gold/bronze */
    --color-white: #ffffff;
    --color-gray: #888888;
    
    --font-serif: 'Plus Jakarta Sans', sans-serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-charcoal);
    color: var(--color-white);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
}

/* NAVIGATION BAR */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition-smooth);
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
}

header.scrolled {
    padding: 20px 50px;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.gallery-page-active header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 50px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

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

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

.nav-links a.active {
    color: var(--color-accent);
}

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

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* SECTION BASE STYLES */
section {
    min-height: 100vh;
    position: relative;
    display: flex;
    overflow: hidden;
}

/* HERO SECTION */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero p {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 3px;
    transition: var(--transition-smooth);
    background: transparent;
    cursor: pointer;
}

.hero-btn:hover {
    background-color: var(--color-white);
    color: var(--color-charcoal);
    border-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline-dark {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    border: 1px solid var(--color-charcoal);
    color: var(--color-charcoal);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: var(--transition-smooth);
    background: transparent;
    cursor: pointer;
}

.btn-outline-dark:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-outline-light {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    transition: var(--transition-smooth);
    background: transparent;
    cursor: pointer;
}

.btn-outline-light:hover {
    background-color: var(--color-accent);
    color: var(--color-charcoal);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.2);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-white);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.scroll-down:hover {
    opacity: 1;
    color: var(--color-accent);
}

.scroll-down svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    animation: bounce 2s infinite;
}

/* SPLIT SECTIONS (50/50 Layout) */
.split-section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.split-col {
    flex: 1;
    min-width: 50%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Text Column styling */
.text-col {
    padding: 80px 10%;
    text-align: center;
}

.text-container {
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-col h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.text-col h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: currentColor;
    opacity: 0.5;
}

.text-col p {
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

.text-col p:last-child {
    margin-bottom: 0;
}

/* Image Column styling */
.image-col {
    padding: 0;
    background-color: var(--color-charcoal-light);
    overflow: hidden;
}

.image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-col:hover img {
    transform: scale(1.08);
}

/* 2. SECTION: O MNIE (Left: Text/Olive, Right: Image) */
#o-mnie .text-col {
    background-color: var(--color-olive);
    color: var(--color-white);
}

#o-mnie .text-col h2::after {
    background-color: var(--color-white);
}

/* 3. SECTION: MALARSTWO (Left: Image, Right: Text/Cream) */
#malarstwo .text-col {
    background-color: var(--color-cream);
    color: var(--color-charcoal);
}

#malarstwo .text-col h2::after {
    background-color: var(--color-charcoal);
}

#malarstwo .text-col p {
    color: rgba(18, 18, 18, 0.8);
}

/* 4. SECTION: KOLAŻ (Left: Image, Right: Text/Charcoal) */
#kolaz .text-col {
    background-color: #8c5844;
    color: var(--color-white);
}

#kolaz .text-col h2::after {
    background-color: var(--color-accent);
}

#kolaz .text-col h2 {
    color: var(--color-accent);
}

/* 5. SECTION: KONTAKT (Left: Contact Details & Form / Cream, Right: Text/Olive) */
#kontakt .text-col.contact-info-col {
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    align-items: flex-start;
    text-align: left;
    padding: 80px 8%;
}

#kontakt .contact-info-col h2 {
    align-self: flex-start;
    text-align: left;
}

#kontakt .contact-info-col h2::after {
    left: 0;
    transform: none;
    background-color: var(--color-charcoal);
}

.contact-details {
    width: 100%;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: var(--color-olive);
}

.contact-item a {
    color: var(--color-charcoal);
    text-decoration: none;
    transition: var(--transition-fast);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--color-olive);
}

/* Contact Form */
.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: rgba(18, 18, 18, 0.7);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: var(--color-white);
    color: var(--color-charcoal);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-olive);
    box-shadow: 0 0 0 3px rgba(123, 162, 81, 0.1);
}

.form-btn {
    padding: 15px 30px;
    background-color: var(--color-olive);
    color: var(--color-white);
    border: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.form-btn:hover {
    background-color: var(--color-olive-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(123, 162, 81, 0.3);
}

/* Contact Right Column (Description/Artistic Quote) */
#kontakt .text-col.contact-desc-col {
    background-color: var(--color-olive);
    color: var(--color-white);
}

#kontakt .contact-desc-col h2::after {
    background-color: var(--color-white);
}

#kontakt .contact-desc-col .quote {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* FOOTER */
footer {
    background-color: var(--color-charcoal);
    padding: 50px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

footer .social-icons a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-fast);
}

footer .social-icons a:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

footer .social-icons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* STAGGERED PAGE LOAD SEQUENCE */
header.animate-header {
    opacity: 0;
    transform: translateY(-20px);
    animation: heroFadeDown 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.1s;
}

.hero h1.animate-title {
    opacity: 0;
    transform: translateY(45px);
    animation: heroFadeUp 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.3s;
}

.hero p.animate-subtitle {
    opacity: 0;
    transform: translateY(35px);
    animation: heroFadeUp 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.6s;
}

.hero-btn.animate-btn {
    opacity: 0;
    transform: translateY(25px);
    animation: heroFadeUp 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.9s;
}

.scroll-down.animate-scroll {
    opacity: 0;
    animation: heroFadeIn 1.5s ease forwards;
    animation-delay: 1.3s;
}

/* KEYFRAMES FOR HERO */
@keyframes heroFadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes heroFadeIn {
    to {
        opacity: 0.7;
    }
}

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

/* STAGGERED SCROLL ENTRANCE ANIMATIONS */
.reveal > h2,
.reveal > p,
.reveal > div,
.reveal > .btn-outline-dark,
.reveal > .btn-outline-light,
.reveal > .contact-details,
.reveal > .contact-item {
    opacity: 0;
    transform: translateY(40px) scale(0.99);
    transition: opacity 1.2s cubic-bezier(0.215, 0.610, 0.355, 1), transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.reveal.active > h2 {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.1s;
}

.reveal.active > p:nth-child(2),
.reveal.active > div:nth-child(2) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.25s;
}

.reveal.active > p:nth-child(3),
.reveal.active > div:nth-child(3) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.4s;
}

.reveal.active > p:nth-child(4),
.reveal.active > div:nth-child(4) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.55s;
}

.reveal.active > .btn-outline-dark,
.reveal.active > .btn-outline-light {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.5s;
}

.reveal.active > .contact-details {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.3s;
}

.reveal.active > .contact-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.45s;
}

/* Image Reveal Zoom Effect */
.image-col {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1), transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-col.active {
    opacity: 1;
    transform: scale(1);
}

/* GALLERY PAGES STYLE */
body.gallery-page {
    padding-top: 120px;
}

/* GALLERY CONTAINER */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 50px 100px 50px;
}

/* BREADCRUMB & TITLE */
.gallery-header {
    margin-bottom: 60px;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--color-white);
    transform: translateX(-5px);
}

.back-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.gallery-header h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.gallery-header p {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* GALLERY GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

.gallery-item {
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
}

.gallery-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(197, 168, 128, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    background-color: #0b0b0b;
    cursor: pointer;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .img-wrapper img {
    transform: scale(1.06);
}

/* Hover Overlay */
.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 2;
}

.img-overlay span {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 1px solid var(--color-white);
    padding: 10px 20px;
    color: var(--color-white);
    transition: var(--transition-fast);
    cursor: pointer;
    width: 150px;
    text-align: center;
}

.img-overlay .order-btn {
    margin-top: 0;
    background-color: rgba(10, 10, 10, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-size: 0.85rem;
    padding: 10px 20px;
    letter-spacing: 3px;
    width: 150px;
    text-align: center;
}

.img-overlay .order-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-charcoal);
    border-color: var(--color-accent);
}

.img-wrapper:hover .img-overlay {
    opacity: 1;
}

.img-overlay span:hover {
    background-color: var(--color-white);
    color: var(--color-charcoal);
}

/* Info Meta */
.item-info {
    padding: 25px;
    text-align: center;
}

.item-info h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--color-white);
}

.item-info p {
    font-size: 0.85rem;
    color: var(--color-gray);
    font-weight: 300;
    letter-spacing: 1px;
}

/* LIGHTBOX MODAL */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1010;
}

.lightbox-close:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

.lightbox-content {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.lightbox.active .lightbox-img {
    opacity: 1;
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 25px;
    text-align: center;
    color: var(--color-white);
}

.lightbox-caption h4 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.lightbox-caption p {
    font-size: 0.9rem;
    color: var(--color-gray);
    letter-spacing: 1px;
}

/* Nav Buttons */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 20px;
    z-index: 1005;
}

.lightbox-nav:hover {
    color: var(--color-accent);
}

.lightbox-nav svg {
    width: 40px;
    height: 40px;
    fill: currentColor;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    body.gallery-page {
        padding-top: 100px;
    }

    header {
        padding: 20px 30px;
    }

    header.scrolled {
        padding: 15px 30px;
    }
    
    body.gallery-page-active header {
        padding: 20px 30px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.4rem;
    }

    .split-col {
        min-width: 100%;
        min-height: auto;
    }

    .text-col {
        padding: 80px 40px;
    }

    .image-col {
        height: 50vh;
    }

    /* Adjust orders to stack nicely on mobile */
    #o-mnie {
        flex-direction: column;
    }
    #o-mnie .text-col {
        order: 1;
    }
    #o-mnie .image-col {
        order: 2;
    }

    #malarstwo {
        flex-direction: column;
    }
    #malarstwo .image-col {
        order: 1; /* Image first on mobile */
    }
    #malarstwo .text-col {
        order: 2;
    }

    #kolaz {
        flex-direction: column;
    }
    #kolaz .image-col {
        order: 1; /* Image first on mobile */
    }
    #kolaz .text-col {
        order: 2;
    }

    #kontakt {
        flex-direction: column;
    }
    #kontakt .contact-info-col {
        order: 1;
    }
    #kontakt .contact-desc-col {
        order: 2;
        min-height: 400px;
    }

    /* Mobile Nav Menu Drawer */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-charcoal);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition-smooth);
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .gallery-container {
        padding: 30px 20px 80px 20px;
    }

    .gallery-header h1 {
        font-size: 2.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-nav svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .text-col {
        padding: 60px 20px;
    }

    .image-col {
        height: 40vh;
    }
    
    .contact-item {
        font-size: 0.95rem;
    }

    .gallery-header h1 {
        font-size: 2.2rem;
    }

    .gallery-header p {
        font-size: 1.1rem;
    }

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

/* CUSTOM LOGO AND ORDER FLOW STYLES */
.logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: var(--transition-fast);
    filter: brightness(0) invert(1);
}

.logo:hover .logo-img {
    opacity: 0.8;
    transform: scale(1.02);
}

.item-info {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.item-info h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 3px;
    color: var(--color-white);
}

.item-info p {
    font-size: 0.85rem;
    color: var(--color-gray);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.order-btn {
    display: inline-block;
    padding: 8px 24px;
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 5px;
}

.order-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.25);
}

.lightbox-order-btn {
    margin-top: 15px;
    padding: 10px 30px;
    font-size: 0.8rem;
}

.lightbox-counter {
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 2px;
    margin-top: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

.lightbox-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-dot:hover {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

.lightbox-dot.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(197, 168, 128, 0.6);
}

/* ORDER MODAL STYLE */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    z-index: 1100;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
}

.order-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.order-modal-content {
    background-color: var(--color-charcoal-light);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.order-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
}

.order-modal-close:hover {
    color: var(--color-accent);
    transform: scale(1.1);
}

.order-modal-content h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 5px;
    text-align: center;
}

.order-modal-content h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 30px;
    text-align: center;
    opacity: 0.9;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.order-form .form-group label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.order-form .form-group input,
.order-form .form-group select,
.order-form .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    border-radius: 2px;
}

.order-form .form-group input:focus,
.order-form .form-group select:focus,
.order-form .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.order-form .form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.order-form .form-group select option {
    background-color: var(--color-charcoal-light);
    color: var(--color-white);
}
