/* =========================================
   ZMIENNE (KOLORY I CZCIONKI)
   ========================================= */
:root {
    --bg-graphite: #121214;
    --bg-card: #1a1a1c;
    --accent-red: #9e2a2b; /* Elegancka czerwień */
    --text-light: #f5f5f5;
    --text-muted: #a0a0a5;
    --font-heading: 'EB Garamond', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* =========================================
   RESET I BAZA
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-graphite);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 75px; /* <--- TA LINIJKA OPUŚCI STRONĘ POD MENU */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   NAWIGACJA (Biały pasek)
   ========================================= */
.navbar {
    background-color: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .nav-logo {
    height: 40px; 
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: #333333;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--accent-red);
}

/* =========================================
   SEKCJA HERO (Strona Główna)
   ========================================= */
/* =========================================
   HERO SLIDER (Powrót do oryginalnej wizji)
   ========================================= */
.hero-slider {
    position: relative;
    width: 100%;
    height: 85vh; /* 85% wysokości ekranu - dół celowo obcięty, by zachęcić do scrollowania */
    overflow: hidden;
    background-color: var(--bg-graphite);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65); /* Przyciemnienie zdjęcia, żeby elegancki biały tekst był czytelny */
}

/* Podpis usytuowany w 3/4 na stronie */
.slide-caption {
    position: absolute;
    top: 75%; /* Pozycja 3/4 wysokości ekranu */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
}

.hero-desc {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
}

/* Delikatne strzałki widoczne TYLKO po najechaniu myszką na slider */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4); /* Półprzezroczyste i delikatne */
    font-size: 3.5rem; /* Duże, ale cienkie (dzięki ikonom FontAwesome) */
    cursor: pointer;
    z-index: 10;
    opacity: 0; /* Domyślnie całkowicie ukryte */
    transition: opacity 0.5s ease, color 0.3s ease;
    padding: 20px;
}

.hero-slider:hover .slider-arrow {
    opacity: 1; /* Płynne pojawienie się przy najechaniu na slider */
}

.slider-arrow:hover {
    color: white; /* Pełna biel po najechaniu na samą strzałkę */
}

.prev-arrow { left: 30px; }
.next-arrow { right: 30px; }

@media (max-width: 900px) {
    .hero-title { font-size: 2.2rem; }
    .slide-caption { top: 65%; }
    .hero-slider:hover .slider-arrow { opacity: 0; } /* Na komórkach ukrywamy strzałki (brak myszki) */
}

.hero-subtitle {
    display: block;
    font-family: var(--font-body);
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #7a1f20;
}

/* =========================================
   NAGŁÓWKI SEKCJI
   ========================================= */
.section {
    padding: 100px 0;
    scroll-margin-top: 100px; /* Ta linijka ratuje sytuację przed ucinaniem! */
}

.section-header {
    margin-bottom: 60px;
}

.section-header.text-center {
    text-align: center;
}

.section-tag {
    display: block;
    color: var(--text-muted); /* <--- Zmiana na szary */
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-light);
}

/* =========================================
   PORTFOLIO (Strona główna i Realizacje) 
   ========================================= */
/* =========================================
   PORTFOLIO (Strona główna i Realizacje) 
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px;
    align-items: start; /* Zamiast stretch - to zapobiega rozciąganiu w pionie przy błędach ładowania */
}
.portfolio-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; 
    margin-top: 0 !important; /* Absolutnie blokuje zsuwanie się w dół */
    text-decoration: none !important;
    transform: translateZ(0); 
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-image-box {
    width: 100%;
    height: 400px; 
    min-height: 400px; /* Zmusza przeglądarkę do trzymania 400px nawet BEZ ZDJĘCIA */
    overflow: hidden;
    background-color: #1a1a1c; /* Eleganckie, ciemne tło w oczekiwaniu na zdjęcie */
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}


.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kadruje zdjęcie bez spłaszczania */
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .card-image-box img {
    transform: scale(1.05);
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Wypełnia resztę karty, wyrównując opisy */
    justify-content: flex-start;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   GALERIA POJEDYNCZEGO PROJEKTU 
   ========================================= */
.project-detail-section { margin-top: 120px; padding-bottom: 100px; }
.project-back-link { display: inline-block; color: var(--text-muted); text-decoration: none; margin-bottom: 30px; font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s; }
.project-back-link:hover { color: var(--accent-red); }
.project-detail-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 800px; margin-bottom: 50px; line-height: 1.8; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.gallery-item { width: 100%; height: 450px; background-color: var(--bg-card); border-radius: 4px; overflow: hidden; border: 1px solid rgba(255,255,255,0.03); cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.03); }

/* =========================================
   LIGHTBOX (PEŁNOEKRANOWY PODGLĄD)
   ========================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.95);
    z-index: 9999;
    display: none; 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
    display: flex; 
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-light);
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.lightbox-close:hover { color: var(--accent-red); }

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.lightbox-arrow:hover { background: var(--accent-red); border-color: var(--accent-red); }
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

/* =========================================
   KONTAKT (Podstrona)
   ========================================= */
.contact-page-section { margin-top: 120px; padding-bottom: 100px; }

.contact-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-card-side {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card-side h3 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 20px; color: var(--text-light); }
.contact-card-side p { color: var(--text-muted); margin-bottom: 12px; font-size: 1rem; display: flex; align-items: center; gap: 12px; }
.contact-card-side i { color: var(--text-muted); font-size: 1.1rem; width: 20px; text-align: center; } /* Szare ikony */

.contact-hours { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }

.contact-image-box { width: 100%; height: 250px; margin-top: 25px; border-radius: 4px; overflow: hidden; }
.contact-image-box img { width: 100%; height: 100%; object-fit: cover; display: block; }

.map-box {
    width: 100%;
    height: 100%;
    min-height: 520px;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    overflow: hidden;
}
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================
   STOPKA
   ========================================= */
.footer {
    background-color: #0a0a0b;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo span { display: block; font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 5px; color: var(--accent-red); }
.footer-col p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 15px; }
.footer-col h4 { font-family: var(--font-body); font-size: 1.1rem; color: var(--text-light); margin-bottom: 25px; letter-spacing: 1px; text-transform: uppercase; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 15px; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent-red); }
.footer-col i { color: var(--text-muted); width: 25px; } /* Szare ikony w stopce */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--accent-red); }

/* =========================================
   RESPONSYWNOŚĆ (Urządzenia mobilne)
   ========================================= */
@media (max-width: 900px) {
    .nav-links { display: none; }
    
    .portfolio-grid, .contact-content-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Na telefonach 1 kolumna */
    }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    
    .card-image-box { height: 300px; } /* Nieco mniejsze zdjęcia na telefonach */
}

/* =========================================
   POPRAWKI: SLIDER I CYTAT
   ========================================= */

/* Zmniejszenie wysokości slidera o 10% */
.hero-slider {
    position: relative;
    width: 100%;
    height: 75vh; /* Zmienione z 85vh na 75vh */
    overflow: hidden;
    background-color: var(--bg-graphite);
}

/* Możesz usunąć filtr przyciemniający, skoro nie ma już tekstu na zdjęciach */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9); /* Delikatne ściemnienie lub 1.0 dla pełnej jasności */
}

/* Elegancki wygląd cytatu pod sliderem */
.quote-section {
    padding: 70px 20px 50px;
    background-color: var(--bg-graphite);
    text-align: center;
}

.quote-text {
    font-family: var(--font-heading); /* Elegancka, szeryfowa czcionka zdefiniowana w zmiennych */
    font-size: 2.8rem; /* Zwiększony rozmiar */
    font-style: italic;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Druga część cytatu - większa przezroczystość */
.quote-highlight {
    color: rgba(245, 245, 245, 0.4); /* Mniej solid color - 40% widoczności */
}

.quote-author {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted); /* <--- Zmiana na szary */
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Responsywność dla cytatu na telefonach */
@media (max-width: 900px) {
    .quote-text { font-size: 2rem; }
    .hero-slider { height: 50vh; } /* Na telefonach slider może być jeszcze niższy */
}

/* =========================================
   O FIRMIE (Podstrona)
   ========================================= */
.about-page-section {
    padding-bottom: 100px;
}

/* Siatka dzieląca stronę na dwie równe kolumny */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text-block {
    margin-bottom: 35px;
}

/* Wyróżnione, szeryfowe nagłówki dla akapitów */
.about-text-block h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 400;
}

/* Zgaszony tekst opisów */
.about-text-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Kontener na zdjęcie po prawej */
.about-image-box {
    width: 100%;
    height: 600px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.about-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Na mniejszych ekranach układamy zdjęcie pod tekstem */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-image-box {
        height: 400px;
    }
}

/* =========================================
   OSTATECZNA POPRAWKA: WYRÓWNANIE KAFELKÓW-LINKÓW W SIATCE
   ========================================= */
.portfolio-grid > a {
    display: block;      /* Zmienia link z liniowego na blokowy */
    height: 100%;        /* Zmusza link do wypełnienia całej wysokości komórki */
    text-decoration: none;
    color: inherit;
    outline: none;
}