/* Reset i Ogólne */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fcfcfc;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #000;
}

.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    margin-top: 30px;
    padding: 60px 0px;
    height: 500px;
    background: url('hero.jpg') no-repeat center center/cover;
    display: flex;
    align-items: flex-end; 
    justify-content: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.4); 
    padding: 15px 30px;
    display: inline-block;
}

/* Portfolio Grid */
.portfolio {
    padding: 30px 20px;
}

.portfolio h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 40px;
    color: #222;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-item {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    cursor: pointer; /* Dodany kursor wskazujący na to, że można kliknąć */
}

.grid-item:hover {
    transform: scale(1.02);
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); 
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    animation: fadeIn 0.3s ease-in-out; 
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.close-btn:hover {
    color: #bbb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%; 
    transform: translateY(-50%); 
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none; 
    transition: color 0.3s ease;
    z-index: 10000;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }
.prev-btn:hover, .next-btn:hover { color: #bbb; }

/* About Section */
.about {
    padding: 60px 20px 100px;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
}

.circle-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
    max-width: 500px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 400;
}

.about-text p {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.8;
    transition: all 0.3s ease-in-out;
}

.about-text p.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; 
}

/* Przyciski globalne */
.btn-dark {
    display: inline-block;
    background: #3e3228; 
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s;
    cursor: pointer;
}

.btn-dark:hover {
    background: #5a4a3b;
}

/* --- FORMULARZ KONTAKTOWY (MODAL) --- */
.contact-modal {
    display: none; /* Domyślnie ukryte */
    position: fixed;
    z-index: 10001; /* Ponad headerem */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Przyciemnienie tła */
    backdrop-filter: blur(3px); /* Rozmycie tła */
    justify-content: center;
    align-items: center;
}

.contact-modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.close-contact-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-contact-btn:hover {
    color: #333;
}

.form-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3e3228; /* Dopasowanie do kolorystyki */
}

.form-textarea {
    height: 120px;
    resize: vertical; /* Możliwość zmiany tylko wysokości */
}


/* Footer */
footer {
    background: url('footer-texture.jpg') center/cover;
    color: #fff;
    padding: 30px 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 20, 10, 0.7); 
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    height: 100px;
}

.footer-info {
    font-size: 13px;
    color: #ddd;
}

.info-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials {
    font-size: 30px;
    display: flex;
}

.fa {
  width: 50px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.3s;
}

.fa:hover {
    opacity: 0.7;
}

/* Zoptymalizowany kod ikon */
.fa-facebook, .fa-instagram, .fa-whatsapp {
  color: white;
}

/* Responsywność (Mobile) */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Domyślnie ukryte */
    }
    
    /* Rozwinięte menu mobilne */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Ustawia się idealnie pod nagłówkiem */
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        border-top: 1px solid #eaeaea;
        border-bottom: 1px solid #eaeaea;
        gap: 20px;
        text-align: center;
        z-index: 1000;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05); /* Dodaje głębi */
    }

    .mobile-menu-icon {
        display: block;
        user-select: none; /* Zapobiega zaznaczaniu tekstu przy szybkim klikaniu */
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .about-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* --- ZGODA RODO W FORMULARZU --- */
.rodo-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    text-align: left;
}

.rodo-consent input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.rodo-consent a {
    color: #3e3228;
    text-decoration: underline;
    font-weight: 600;
}

.rodo-consent a:hover {
    color: #000;
}

/* --- LINK RODO W STOPCE --- */
.footer-bottom {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #aaa;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    margin-left: 10px;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}