/* --- FUNDAMENTY --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;600&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
    --accent: #c5a059;
    --bg: #0a0a0a;
    --card-bg: #141414;
    --text: #ffffff;
    --transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg); color: var(--text); font-family: 'Montserrat', sans-serif; line-height: 1.6; overflow-x: hidden; scroll-behavior: smooth; }

/* --- NAWIGACJA --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed; /* To sprawia, że menu "płynie" wraz ze stroną */
    top: 0;          /* To przykleja menu do samej góry */
    left: 0;         /* To wyrównuje menu do lewej krawędzi */
    width: 100%;     /* To rozciąga menu na całą szerokość */
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; }
.logo span { color: var(--accent); }
nav ul { display: flex; list-style: none; gap: 20px; }
nav ul li a { text-decoration: none; color: var(--text); font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; transition: 0.3s; opacity: 0.7; }
nav ul li a:hover { opacity: 1; color: var(--accent); }

/* --- HERO --- */
.hero { height: 100vh; display: flex; align-items: center; padding: 0 10%; background: linear-gradient(to right, rgba(10,10,10,0.8), rgba(10,10,10,0.3)), url('Portfolio/foto1.jpg'); background-size: cover; background-position: center; }
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.1; margin: 20px 0; }
.hero-content h1 span { font-style: italic; color: var(--accent); font-weight: 400; }

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn-primary, .btn-secondary {
    padding: 18px 35px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-block;
    border-radius: 2px;
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background: white;
    border-color: white;
    transform: translateY(-5px);
}

.btn-secondary {
    border: 1px solid white;
    color: white;
    background: transparent;
}

.btn-secondary:hover {
    background: white;
    color: black;
    transform: translateY(-5px);
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Wysokość Twojego menu + mały zapas */
}
/* --- SEKCJE HEADER --- */
.section-header { padding: 0 6%; margin-bottom: 60px; }
.number { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; }
h2 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin: 10px 0; }
.line { width: 60px; height: 1px; background: var(--accent); }

/* --- PORTFOLIO --- */
.gallery-section { 
    padding: 120px 0; 
}

.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    padding: 0 6%; 
    margin: 0 auto; 
}

.photo-card { 
    height: 600px; 
    background-size: cover; 
    background-position: center; 
    /* Zmiana czasu trwania na nieco szybszy, by efekt był responsywny */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease; 
    border-radius: 4px; 
    position: relative; 
    /* Ważne: z-index musi być niski dla kart w spoczynku */
    z-index: 1; 
    filter: brightness(0.9); 
}

.photo-card:hover { 
    /* Zwiększona skala, by zdjęcie wyraźnie najechało na inne */
    transform: scale(1.15); 
    /* Wysoki z-index gwarantuje, że zdjęcie będzie nad innymi */
    z-index: 100; 
    filter: brightness(1.1); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.8); 
}

/* --- NOWE STYLE DLA KATEGORII --- */
.portfolio-category {
    margin-bottom: 80px; /* Odstęp między sekcjami portfolio */
}

.category-title {
    font-family: 'Montserrat', sans-serif; /* Ten sam co w menu i opisach */
    font-size: 0.8rem;                     /* Mała czcionka jak .number */
    color: var(--accent);                  /* Złoty kolor z Twojej palety */
    text-transform: uppercase;             /* Wielkie litery jak w nawigacji */
    letter-spacing: 3px;                   /* Szeroki rozstaw liter */
    font-weight: 600;
    padding: 0 6%;
    margin-bottom: 25px;
    margin-top: 40px;
}

/* Opcjonalnie: mała złota linia obok nazwy kategorii */
.category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(197, 160, 89, 0.2);
}

/* Responsywność dla mniejszych ekranów */
@media (max-width: 768px) {
    .category-title {
        font-size: 1.5rem;
    }
}
/* --- OFERTA --- */
.pricing-section { padding: 120px 6%; background: #080808; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 60px; }
.price-card { background: var(--card-bg); padding: 50px 30px; border: 1px solid rgba(255,255,255,0.05); border-radius: 4px; text-align: center; transition: 0.3s; }
.price-card:hover { border-color: var(--accent); transform: translateY(-10px); }
.price-card.featured { border: 1px solid var(--accent); background: #1a1a1a; }
.card-title { color: var(--accent); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 3px; margin-bottom: 15px; }
.price { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 30px; }
.features { list-style: none; text-align: left; }
.features li { padding: 12px 0; font-size: 0.85rem; color: #aaa; border-bottom: 1px solid rgba(255,255,255,0.03); }

.extra-services { margin-top: 80px; padding: 40px; border: 1px dashed rgba(197, 160, 89, 0.3); text-align: center; }
.studio-info { color: var(--accent); font-size: 0.8rem; margin-bottom: 30px; }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.extra-item { font-size: 0.9rem; color: #ccc; }
.extra-item span { color: var(--accent); font-weight: 600; margin-right: 10px; }

/* --- O MNIE --- */
.about-section { padding: 150px 10%; text-align: center; }
.about-section p { max-width: 800px; margin: 30px auto; font-size: 1.1rem; color: #ccc; font-weight: 300; }

/* --- KONTAKT (FORMULARZ) --- */
.contact-section { padding: 100px 6%; background: #0a0a0a; }
.contact-container { max-width: 600px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 15px; background: #141414; border: 1px solid rgba(255,255,255,0.05); color: white; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; border-radius: 2px; transition: 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); background: #1a1a1a; }
.contact-form .btn-primary { width: 100%; cursor: pointer; border: none; }

/* --- STOPKA --- */
footer { padding: 100px 10%; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; }
.email-link { color: var(--accent); text-decoration: none; font-weight: 600; transition: 0.3s; }
.email-link:hover { color: white; text-decoration: underline; }
.social-links { margin: 30px 0; display: flex; justify-content: center; gap: 25px; align-items: center; }
.social-btn { text-decoration: none; color: var(--accent); font-size: 0.8rem; letter-spacing: 2px; font-weight: 600; transition: 0.3s; }
.social-btn:hover { color: white; }
.copyright { font-size: 0.7rem; opacity: 0.4; margin-top: 40px; }


/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 1100px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    /* --- POPRAWKA PORTFOLIO (Jedno zdjęcie pod drugim) --- */
    .gallery-grid {
        grid-template-columns: 1fr !important; /* Wymusza jedną kolumnę */
        gap: 20px;
        padding: 0 15px;
    }

    .photo-card {
        height: 500px; /* Możesz zmienić wysokość, jeśli zdjęcia wydają się za wysokie */
        width: 100%;
    }

    /* --- MENU MOBILNE --- */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 3000;
        padding: 0;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 2px;
        background: var(--accent);
        transition: 0.3s;
    }

    /* Styl listy menu */
    nav ul.nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%; /* Menu zajmie 80% szerokości ekranu */
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: 0.4s ease-in-out;
        z-index: 2500;
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    }

    /* Klasa pokazująca menu (dodawana przez JS) */
    nav ul.nav-links.active {
        right: 0;
    }

    nav ul li a {
        font-size: 1.1rem;
        opacity: 1;
    }

    /* Inne poprawki mobilne */
    h2 { font-size: 2.2rem; }
    .hero-content h1 { font-size: 2.5rem; }

    /* --- POPRAWKA PRZYCISKÓW W HERO --- */
    .hero-btns {
        flex-direction: column; /* Układa przyciski jeden pod drugim */
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Ogranicza szerokość, żeby nie były na cały ekran */
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Oba przyciski będą miały tę samą szerokość */
        padding: 14px 20px; /* Nieco mniejszy padding na telefonie */
        font-size: 0.7rem;
        text-align: center;
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem; /* Dodatkowe zmniejszenie nagłówka, by lepiej pasował */
        margin-bottom: 30px;
    }
}

/* --- ANIMACJA POJAWIANIA SIĘ I HOVER --- */

.photo-card {
    opacity: 0;
    transform: translateY(30px);
    /* Łączymy wszystkie przejścia: pojawianie się + powiększanie + jasność */
    transition: 
        opacity 0.8s ease-out, 
        transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
        filter 0.4s ease,
        box-shadow 0.4s ease;
}

/* Klasa od JS - usuwa tylko przesunięcie w pionie i pokazuje element */
.photo-card.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Twój efekt hover - teraz będzie korzystał z transform zdefiniowanego wyżej */
.photo-card.appear:hover {
    transform: scale(1.15) translateY(0); /* Musimy dodać translateY(0), żeby skala nie "gryzła się" z pozycją */
    z-index: 100;
    filter: brightness(1.1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
