* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a {
    text-decoration: none;
    color: #f5f5f5;
}
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #0f0f0f;
    overflow-x: hidden; 
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #181818;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
header .logo a {
    text-decoration: none;
    color: #fff;
}

header .logo {
    font-size: 2em;
    font-weight: bold;
}

/* Style dla nawigacji */
header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.1em;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #5100d4;
}

/* Ukrycie menu i pokazanie burgera na mniejszych ekranach */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger .line {
    width: 25px;
    height: 3px;
    background-color: white;
}



/* Dodatkowe style dla animacji burgera */
.burger.toggle .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle .line:nth-child(2) {
    opacity: 0;
}

.burger.toggle .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    background: url('../grafika/bacgraudn.jpg')no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    animation: fadeIn 2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
}

.hero .cta-button {
    padding: 10px 25px;
    background-color: #5100d4;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    transition: background-color 0.3s;
}

.hero .cta-button:hover {
    background-color: #7500d4;
}

.section {
    padding: 60px 20px;
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
}

#services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 40px;
}

.service-item {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#portfolio .portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.portfolio-item {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 20px;
}

form input,
form textarea,
form button {
    padding: 15px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 8px;
}

form button {
    background-color: #00bcd4;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

form button:hover {
    background-color: #00796b;
}

footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 20px;
}


/** Media  **/


@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero .cta-button {
        font-size: 1em;
        padding: 8px 20px;
    }

    header nav ul {
        gap: 15px;
    }

    #services .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    #portfolio .portfolio-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .section {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero .cta-button {
        font-size: 1em;
        padding: 8px 20px;
    }

    #services .services-grid {
        grid-template-columns: 1fr;
    }

    #portfolio .portfolio-gallery {
        grid-template-columns: 1fr;
    }

    .service-item,
    .portfolio-item {
        width: 90%;
    }

    .hero {
        padding: 80px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .service-item,
    .portfolio-item {
        width: 100%;
    }

    header .logo {
        font-size: 1.8em;
    }

    header nav ul {
        padding: 0;
        width: 100%;
        text-align: center;
    }

    header nav ul li a {
        display: inline-block;
        padding: 10px;
    }

    .hero .cta-button {
        font-size: 1.2em;
        padding: 10px 25px;
    }

    .section {
        padding: 30px 20px;
    }
}

/* Media queries dla responsywności */
@media (max-width: 768px) {
    /* Ukrycie listy menu i pokazanie burgera */
    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #111;
        width: 100%;
        padding: 10px 0;
    }

    header nav ul.active {
        display: flex;
    }

    .burger {
        display: flex;
    }
}


.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.portfolio-item h3 {
    margin: 15px 0 5px;
    font-size: 1.2rem;
    color: #333;
}

.portfolio-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0 10px 15px;
}

.portfolio-item button {
    background-color: #00bcd4;
    color: #fff;
    padding: 10px 20px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.portfolio-item button:hover {
    background-color: #00796b;
}
.portfolio-gallery .portfolio-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.portfolio-gallery .portfolio-item.animated {
    opacity: 1;
    transform: translateY(0);
}
/* Koniec */

/* Styl dla modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.visible {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    text-align: center;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.modal-content h3 {
    margin: 15px 0;
    font-size: 1.5rem;
}

.modal-content p {
    font-size: 1rem;
    color: #555;
}

.close-button {
    position: absolute;
    top: 1px;
    right: 7px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-button:hover {
    color: #333;
}

/* hover secion */

.hover:hover{
    color: #5100d4;

}