@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

:root {
    --primary-color: #f0e100; /* Żółty z logo */
    --dark-color: #1a1a1a; /* Ciemny, prawie czarny */
    --light-color: #f4f4f4;
    --font-family: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--dark-color);
    color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

h1, h2 {
    font-weight: 900;
    text-transform: uppercase;
}

header {
    background: var(--dark-color) url('../images/background.png') no-repeat center center/contain;
    min-height: 100vh;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 2;
}

.logo-img {
    width: 80px;
    height: auto;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: var(--light-color);
    padding: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.hero {
    z-index: 2;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background: transparent;
    color: var(--primary-color);
}

main section {
    padding: 4rem 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

main section.visible {
    opacity: 1;
    transform: translateY(0);
}

main section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

main section:nth-child(even) {
    background: #222;
}

/* Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary-color);
}

/* FAQ */
.faq-item {
    max-width: 700px;
    margin: 1rem auto;
    text-align: left;
    border-bottom: 1px solid #444;
}

.faq-question {
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: #111;
}

.faq-answer p {
    padding: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Formularz kontaktowy */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: #333;
    border: 1px solid #555;
    color: var(--light-color);
    font-family: var(--font-family);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.social-media {
    margin-top: 2rem;
}

.social-media a {
    font-size: 1.5rem;
    margin: 0 1rem;
    color: var(--light-color);
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: var(--primary-color);
}

footer {
    background: #111;
    color: #666;
    text-align: center;
    padding: 1rem;
}

/* Responsywność */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        padding: 0.5rem;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

/* Popup */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-popup.visible {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--dark-color);
    padding: 2rem 4rem;
    border: 2px solid var(--primary-color);
    text-align: center;
}

.popup-content p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
