/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    background: #1e3a8a;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #60a5fa;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #60a5fa;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #60a5fa;
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    font-style: italic;
    opacity: 0.8 !important;
}

/* About Section */
.about-section {
    background: #f8f9fa;
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
    font-weight: 400;
}

.about-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    font-style: italic;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
}

.about-info h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: justify;
}

/* Gallery Sections */
.gallery-section {
    background: white;
    padding: 3rem 0;
}

.blue-gallery {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 3rem 0;
    position: relative;
}

.gallery-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blue-gallery .gallery-item {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.blue-gallery .gallery-item:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out, transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.signature {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    font-size: 1.5rem;
    font-style: italic;
    opacity: 0.8;
    font-family: 'Georgia', serif;
}

/* Ars Poetica Section */
.ars-poetica {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 5rem 0;
}

.poetica-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.poetica-text h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.poetica-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.ai-art-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ai-item {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(10px);
}

.ai-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.ai-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ai-item:hover img {
    transform: scale(1.05);
}

.ai-caption {
    padding: 1rem;
}

.ai-caption h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.ai-caption p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* Portfolio Section */
.portfolio-section {
    background: #111;
    color: white;
    padding: 5rem 0;
}

.portfolio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.portfolio-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.portfolio-image img:hover {
    transform: scale(1.03);
}

.portfolio-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.portfolio-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.btn-view-gallery {
    display: inline-block;
    padding: 12px 30px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #3b82f6;
}

.btn-view-gallery:hover {
    background: transparent;
    border-color: #60a5fa;
    color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Footer */
.footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid #333;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 250px 1fr;
        gap: 3rem;
    }
    
    .poetica-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ai-art-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero {
        padding: 4rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .gallery-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ai-art-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .poetica-text h2 {
        font-size: 2.2rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-image img {
        width: 200px;
        height: 200px;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .ai-item img {
        height: 150px;
    }
}

/* Animacje i efekty */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section,
.gallery-section,
.ars-poetica,
.portfolio-section {
    animation: fadeInUp 0.8s ease-out;
}

/* Płynne przejścia dla obrazów rotujących */
.rotating-image {
    transition: opacity 0.5s ease-in-out;
}

/* Dodatkowe efekty hover */
.nav-links a,
.footer-links a,
.logo {
    position: relative;
    overflow: hidden;
}

/* Responsywność dla bardzo małych ekranów */
@media (max-width: 360px) {
    .nav-links {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 3rem 0.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* Blokada zaznaczania tekstu */
body, .no-select {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Blokada przeciągania obrazów */
img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Opcjonalnie — jeśli chcesz, żeby obrazów nie dało się klikać */
.protected-img {
  pointer-events: none;
}

