body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #FFF;
    line-height: 1.6;
    overflow-x: hidden; 
}

h1, h2, h3 {
    color: #FFF;
    transition: color 0.3s ease;
}


/* Style modalu */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Półprzezroczyste tło */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px; /* Maksymalna szerokość dla modalu */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 10px;
    position: relative;
    top: 50%;
    transform: translateY(-50%); /* Wyśrodkowanie w pionie */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}



.hero {
    height: 100vh;
    background: url('assets/background.svg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero .content {
    position: relative;
    z-index: 2;
}

.hero .title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    color: #FFF;
    animation: fadeIn 1.5s ease-in-out;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-top: 0.5rem;
    color: #BBB;
    animation: fadeIn 2s ease-in-out;
}

.projects {
    padding: 8rem 2rem;
    background-color: #111;
    animation: fadeInUp 1.5s ease-in-out;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #FFF;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 4px;
    background: #FFF;
    margin: 0.5rem auto 0;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-in-out 0.5s forwards;
}

.card {
    background-color: #222; 
    padding: 3rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-in-out 0.7s forwards;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
}

.card i {
    font-size: 4rem;
    color: #FFF;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #FFF;
}

.card p {
    color: #BBB;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.5;
}

.card a {
    color: #FFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
}

.card a i {
    margin-top: 25px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.card a:hover i {
    transform: translateX(5px);
}

.card a:hover {
    color: #FFF;
}

.about-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    gap: 2rem;
    background-color: #000;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-in-out 0.9s forwards;
}

.image-container {
    flex: 1;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.image-container img {
    width: 100%;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.3s ease;
}

.image-container-2 img {
    width: 70%;
    display: block;
    filter: grayscale(1%);
    transition: transform 0.3s ease;
	border-radius: 40px
}

.image-container:hover img {
    transform: scale(1.05);
}

.content-container {
    flex: 1;
    max-width: 600px;
}

.content-container h1 {
    color: #FFF;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.content-container p {
    color: #BBB;
    font-size: 1.1rem;
    animation: fadeInUp 1.5s ease-in-out 1.1s forwards;
}

/* FAQ Section */
.faq {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s ease-in-out 1.3s forwards;
}

.faq-item {
    background-color: #111;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1.5s ease-in-out 1.5s forwards;
}

.faq-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    background-color: #222;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #333;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #FFF;
}

.faq-question i {
    font-size: 1.5rem;
    color: #FFF;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1rem;
    color: #BBB;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}


.faq-item .faq-question i.fas {
    color: #FFF;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i.fas:last-child {
    transform: rotate(180deg);
}


/* Stylizacja paska nawigacyjnego */
.navbar {
    background-color: transparent; /* Transparentne tło */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Stylizacja listy nawigacyjnej */
.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

/* Stylizacja elementów listy */
.navbar ul li {
    margin: 0 10px;
}

/* Stylizacja linków */
.navbar ul li a {
    display: block;
    color: #d9dbdb; /* Kolor tekstu */
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-family: Arial, sans-serif;
    opacity: 1; /* Początkowa przezroczystość */
    transition: opacity 0.5s ease; /* Płynne przejście przezroczystości */
}

/* Efekt fade out przy najechaniu kursorem */
.navbar ul li a:hover {
    opacity: 0.6; /* Ustaw przezroczystość przy najechaniu */
}

/* Efekt fade in po zdjęciu kursora */
.navbar ul li a {
    transition: opacity 0.5s ease;
}


/* Smooth */

html {
    scroll-behavior: smooth;
}


.footer {
    padding: 2rem;
    text-align: center;
    background-color: #111;
    animation: fadeInUp 1.5s ease-in-out 1.7s forwards;
}

.footer p {
    margin: 0 0 1rem;
    color: #BBB;
}
.footer a {
    position: relative;
    text-decoration: none;
    color: white;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.footer a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #222;
    transform: scaleX(0);
    transform-origin: bottom left;
    transition: transform 0.3s ease; 
}

.footer a:hover {
    color: #222;
}

.footer a:hover::before {
    transform: scaleX(1);
}

.social-icons a {
    margin: 0 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: fadeInUp 1.5s ease-in-out 1.9s forwards;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
    transform: scale(1.2);
    filter: brightness(0.7) invert(1);
}
.ellipse {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 1;
}

.ellipse.one {
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.226);
    top: -100px;
    left: -200px;
}

.ellipse.two {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.226);
    bottom: -150px;
    right: -150px;
}

.ellipse.three {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.226);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .project-cards {
        grid-template-columns: 1fr;
    }
}



