/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --accent-color: #888;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --font-primary: 'Roboto', sans-serif;
}

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

/* =========================================
   2. BASE STYLES
   ========================================= */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: #ccc;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--nav-bg);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    transition: background 0.3s, padding 0.3s;
}

.nav-left a {
    margin-right: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-center {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
}

.nav-right i {
    margin-left: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

.nav-right i:hover {
    transform: translateY(-2px);
}

/* =========================================
   4. HERO SECTION (INDEX)
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 50px 20px;
    background-color: var(--bg-color);
    position: relative;
}

.hero-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    z-index: 2;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-profile-img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.hero-profile-img:hover {
    filter: grayscale(0%);
}

.hero-bio-text {
    font-size: 1rem;
    color: #bbb;
    line-height: 1.6;
    max-width: 300px;
}

.hero-right {
    flex: 1;
    text-align: left;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 799px;
    z-index: 2;
}

.hero h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -3px;
    opacity: 0;
    animation: slideInRight 1.2s ease forwards 0.2s;
}

.hero p.subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: slideInRight 1.2s ease forwards 0.5s;
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    font-size: 24px;
    opacity: 0.7;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

/* =========================================
   4.4 CAMERA ANIMATION BACKGROUND
   ========================================= */
.camera-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.15;
}

.camera-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    animation: floatCamera 8s ease-in-out infinite;
}

/* Camera Lens */
.lens {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    border: 2px solid rgba(255,255,255,0.1);
}

.lens-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
}

.ring-1 {
    width: 350px;
    height: 350px;
    animation: rotateLens 20s linear infinite;
    border-width: 3px;
}

.ring-2 {
    width: 280px;
    height: 280px;
    animation: rotateLens 15s linear infinite reverse;
    border-width: 2px;
}

.ring-3 {
    width: 200px;
    height: 200px;
    animation: rotateLens 10s linear infinite;
    border-width: 2px;
    border-style: dashed;
}

.lens-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
    box-shadow: 0 0 60px rgba(255,255,255,0.1);
    animation: pulse 3s ease-in-out infinite;
}

/* Camera Flash Effect */
.camera-flash {
    position: absolute;
    top: -50px;
    right: 50px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: flashEffect 4s ease-in-out infinite;
}

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0.5;
}

.shape-1 {
    top: 10%;
    left: 15%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    animation: floatShape1 12s ease-in-out infinite;
}

.shape-2 {
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    transform: rotate(45deg);
    animation: floatShape2 10s ease-in-out infinite;
}

.shape-3 {
    bottom: 15%;
    left: 10%;
    width: 120px;
    height: 120px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: floatShape3 15s ease-in-out infinite;
}

.shape-4 {
    bottom: 25%;
    right: 15%;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    animation: floatShape4 11s ease-in-out infinite;
}

.shape-5 {
    top: 50%;
    left: 5%;
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: floatShape5 13s ease-in-out infinite;
}

.shape-6 {
    top: 40%;
    right: 5%;
    width: 70px;
    height: 70px;
    transform: rotate(30deg);
    animation: floatShape6 14s ease-in-out infinite;
}

/* Photo Particles */
.photo-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
}

.particle-1 {
    top: 20%;
    left: 30%;
    animation: particleFloat1 8s ease-in-out infinite;
}

.particle-2 {
    top: 60%;
    right: 25%;
    animation: particleFloat2 10s ease-in-out infinite;
}

.particle-3 {
    bottom: 30%;
    left: 40%;
    animation: particleFloat3 12s ease-in-out infinite;
}

.particle-4 {
    top: 40%;
    right: 35%;
    animation: particleFloat4 9s ease-in-out infinite;
}

/* Animations */
@keyframes floatCamera {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -55%) rotate(5deg);
    }
}

@keyframes rotateLens {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

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

@keyframes flashEffect {
    0%, 90%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    95% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes floatShape1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -20px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 30px) rotate(240deg);
    }
}

@keyframes floatShape2 {
    0%, 100% {
        transform: translate(0, 0) rotate(45deg);
    }
    50% {
        transform: translate(-40px, 40px) rotate(225deg);
    }
}

@keyframes floatShape3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(50px, -30px) rotate(180deg);
    }
}

@keyframes floatShape4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-30px, -40px) scale(1.2);
    }
}

@keyframes floatShape5 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(20px, 30px) rotate(120deg);
    }
    66% {
        transform: translate(-30px, -20px) rotate(240deg);
    }
}

@keyframes floatShape6 {
    0%, 100% {
        transform: translate(0, 0) rotate(30deg);
    }
    50% {
        transform: translate(40px, 20px) rotate(210deg);
    }
}

@keyframes particleFloat1 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: translate(100px, -80px);
        opacity: 0.8;
    }
}

@keyframes particleFloat2 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.4;
    }
    50% {
        transform: translate(-120px, 60px);
        opacity: 0.7;
    }
}

@keyframes particleFloat3 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.5;
    }
    50% {
        transform: translate(80px, 90px);
        opacity: 0.9;
    }
}

@keyframes particleFloat4 {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    50% {
        transform: translate(-90px, -70px);
        opacity: 0.6;
    }
}

/* =========================================
   4.5. MAIN CATEGORIES (2 TILES)
   ========================================= */
.main-categories {
    display: flex;
    gap: 20px;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
}

.category-tile {
    position: relative;
    overflow: hidden;
    height: 600px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.category-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.category-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    transition: opacity 0.4s ease;
}

.category-tile:hover::before {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.category-tile picture {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
}

.category-tile img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tile:hover img {
    transform: scale(1.08);
}

.tile-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tile:hover .tile-overlay {
    transform: translateY(-5px);
}

.tile-overlay h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: white;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
    max-width: 90%;
}

.category-tile:hover .tile-overlay h2 {
    letter-spacing: 7px;
}

.tile-overlay p {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
}

.category-tile:hover .tile-overlay p {
    color: rgba(255, 255, 255, 1);
}

@media (max-width: 968px) {
    .main-categories {
        padding: 0 20px;
        margin: 50px auto;
    }
    
    .category-tile {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .main-categories {
        flex-direction: column;
        gap: 15px;
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .category-tile {
        height: 70vh;
        min-height: 400px;
    }
    
    .category-tile:hover {
        transform: none;
    }
    
    .tile-overlay {
        padding: 30px 20px;
    }
    
    .tile-overlay h2 {
        font-size: 2.2rem;
        letter-spacing: 3px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .category-tile:hover .tile-overlay h2 {
        letter-spacing: 4px;
    }
    
    .tile-overlay p {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .main-categories {
        margin: 10px auto;
        padding: 0 10px;
        gap: 10px;
    }
    
    .category-tile {
        height: 60vh;
        min-height: 350px;
        border-radius: 6px;
    }
    
    .tile-overlay h2 {
        font-size: 1.5rem;
        letter-spacing: 2px;
        white-space: normal;
    }
    
    .category-tile:hover .tile-overlay h2 {
        letter-spacing: 3px;
    }
    
    .tile-overlay p {
        font-size: 0.8rem;
    }
}

/* =========================================
   5. GALLERY (INDEX)
   ========================================= */
.gallery {
    display: grid;
    /* This line controls the number of columns and their size.
       - repeat(3, 1fr) creates 3 columns of equal width.
       - Change '3' to '4' for even smaller albums (4 columns). */
    grid-template-columns: repeat(3, 1fr);

    /* This controls the space between the albums.
       - Adjust '30px' to your liking (e.g., '20px' for less space). */
    gap: 30px;

    /* Ensures the gallery doesn't get too wide on very large screens */
    max-width: 1200px;
    /* Centers the gallery horizontally on the page */
    margin: 0 auto;
}

/* --- RESPONSIVENESS (Optional but Recommended) --- */
/* These rules ensure your gallery still looks good on smaller devices */

/* On tablets, switch to 2 columns */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* On phones, switch to 1 column */
@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 20px; /* Smaller gap for smaller screens */
    }
}

.gallery-container {
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 600px; 
    object-fit: cover; 
    object-position: center; 
    display: block;
    transition: transform 0.7s ease, opacity 0.5s ease;
    opacity: 0.9;
    content-visibility: auto;
    will-change: transform;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.caption-box {
    background-color: #181818;
    padding: 50px 20px;
    text-align: center;
    color: white;
    flex-grow: 1; 
    border-top: 1px solid #222;
}

.caption-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.caption-year {
    font-size: 0.9rem;
    color: #666;
    font-family: monospace;
}

/* =========================================
   5.5. EMPTY STATE
   ========================================= */
.empty-state {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
}

.empty-content {
    text-align: center;
    max-width: 700px;
}

.empty-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    opacity: 0.6;
}

.empty-content h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.empty-message {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.cta-button:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(136, 136, 136, 0.3);
}

.cta-button i {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .empty-content h2 {
        font-size: 1.5rem;
    }
    
    .empty-message {
        font-size: 1rem;
    }
    
    .empty-icon {
        font-size: 4rem;
    }
}

/* =========================================
   5.6. ABOUT PAGE
   ========================================= */
.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 40px;
}

.about-container {
    margin-bottom: 60px;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.service-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #aaa;
}

.about-cta {
    text-align: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-cta h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .about-section {
        padding: 50px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
    }
}

/* =========================================
   6. PROJECT PAGES (SUBPAGES)
   ========================================= */
.project-header {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    margin-bottom: 40px;
}

.project-header h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    font-weight: 300;
}

.masonry-gallery {
    column-count: 3; 
    column-gap: 15px;
    padding: 0 40px 60px 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
    border-radius: 2px;
    display: block;
    line-height: 0;
    overflow: hidden;
    min-height: 300px; /* Rezerwuje miejsce przed załadowaniem zdjęcia */
    background-color: #1a1a1a; /* Placeholder tła */
}

.masonry-item img {
    width: 100%;    
    height: auto;     
    display: block;   
    border-radius: 0;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
    transform: scale(1);
    opacity: 1;
    transition: opacity 0.3s, transform 0.3s; 
    will-change: transform;
    content-visibility: auto;
    cursor: zoom-in;
}

.masonry-item img:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.watermark {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px !important; /* Force width */
    height: auto !important;
    opacity: 0.7;
    pointer-events: none;
    z-index: 10;
    transform: none !important; /* Disable parallax/hover transform for watermark */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.see-more-container {
    text-align: center;
    padding: 60px 20px 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.see-more-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.related-albums {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.related-albums .gallery-container {
    flex: 0 1 calc(50% - 20px);
    min-width: 300px;
    max-width: 500px;
}

.see-more-btn {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: transparent;
}

.see-more-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* =========================================
   7. CONTACT PAGE
   ========================================= */
.contact-wrapper {
    padding-top: 150px; 
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.contact-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.contact-form {
    width: 100%;
    max-width: 600px; 
    padding: 0 20px;
}

.form-group { margin-bottom: 30px; }

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #888;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: #1a1a1a; 
    border: 1px solid #333; 
    padding: 15px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none; 
    transition: all 0.3s;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #fff; 
    background-color: #222;
}

.submit-btn {
    background: white;
    color: black;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase; 
    padding: 15px 40px;
    transition: all 0.3s;
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #ccc;
}

/* =========================================
   8. COMPONENTS (LIGHTBOX & FOOTER)
   ========================================= */
/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.close:hover { color: #bbb; }

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.0);
}

.next { right: -60px; }
.prev { left: -60px; }

.prev:hover, .next:hover {
    color: rgba(255,255,255,0.7);
    transform: scale(1.1);
}

/* FOOTER */
footer {
    background-color: #0d0d0d;
    padding: 20px 40px;
    border-top: 1px solid #222;
    margin-top: auto;
    position: relative; 
}

.footer-content {
    display: flex;
    justify-content: center; 
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    height: 40px; 
}

.footer-content p {
    color: #555;
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
    position: absolute; 
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    white-space: nowrap;
}

.footer-socials {
    display: flex;
    gap: 15px;
    position: absolute; 
    right: 0;
}

.footer-socials a {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* =========================================
   9. ANIMATIONS
   ========================================= */
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}



/* =========================================
   10. MEDIA QUERIES (RWD)
   ========================================= */
@media (max-width: 1024px) {
    .masonry-gallery { column-count: 2; }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .gallery { grid-template-columns: 1fr; }
    
    .nav-center { 
        display: block; 
        font-size: 14px; 
        position: static; 
        transform: none; 
        margin: 0 10px;
    }
    
    nav {
        justify-content: space-between;
        padding: 15px 20px;
    }

    .nav-left a {
        font-size: 11px;
        margin-right: 10px;
    }

    /* POPRAWKA HERO NA MOBILE */
    .hero-split {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .hero-right {
        text-align: center;
    }

    /* POPRAWKA LIGHTBOX NA MOBILE */
    .prev { left: 10px; }
    .next { right: 10px; }
    
    .masonry-gallery { column-count: 1; padding: 0 20px 40px 20px; }
    .hero h1 { font-size: 2.5rem; }
    .lightbox-content img { max-width: 100%; height: auto; }

    /* FOOTER RWD */
    .footer-content {
        flex-direction: column-reverse;
        height: auto;
        gap: 15px;
    }
    
    .footer-content p {
        position: static;
        transform: none;
    }

    .footer-socials {
        position: static;
    }
}