/* Main styles for the website, including layout and typography */
@import url('../fonts/fonts.css');

body {
    font-family: 'Lato', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000;
    color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
}

header .theme-switch-wrapper {
    flex-shrink: 0; /* Zapobiega zmniejszaniu się przycisku */
    position: relative;
    z-index: 101; /* Wyższy z-index niż inne elementy */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 3px;
    position: relative;
}

.nav-links a:hover {
    color: white;
}

.nav-links a.active {
    color: white;
    font-weight: 500;
    border-bottom: 2px solid #ff6b35;
}

@media (min-width: 901px) {
    /* Style dla dużych ekranów */
    header .theme-switch-wrapper {
        order: 3;  /* Umieszczenie na końcu flex-kontenera */
        margin-left: auto;
        margin-right: 20px;
    }
    
    header .logo {
        order: 1;
    }
    
    header nav {
        order: 2;
    }
}

/* Footer Styles */
footer {
    padding: 3rem 5% 3rem;
    background-color: #111;
    text-align: center;
    margin-top: 4rem;
}

footer p {
    color: #999; /* Jaśniejszy kolor dla lepszej widoczności */
    margin-bottom: 1rem;
    line-height: 1.6; /* Zwiększony odstęp między wierszami */
}

footer ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin-top: 1rem;
}

footer ul li a {
    color: #bbb; /* Jaśniejszy kolor dla lepszej widoczności */
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.3rem 0; /* Dodajemy padding - większy obszar klikania */
}

footer ul li a:hover {
    color: white;
}

/* Dodatkowe miejsce pod stopką na telefonach, aby tekst był widoczny nad menu mobilnym */
@media (max-width: 900px) {
    footer {
        padding-bottom: 6rem; /* Dodajemy więcej miejsca na dole dla menu mobilnego */
    }
    
    footer p, footer ul {
        font-size: 1.05rem; /* Nieco większa czcionka dla lepszej czytelności */
    }
    
    footer ul li a {
        font-size: 1rem; /* Większe linki w stopce na telefonach */
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    margin: 0;
    font-weight: normal;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.button {
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.button-primary {
    background: #e5e5e5;
    color: #000;
}

.button-secondary {
    background: transparent;
    color: white;
    border: 1px solid #333;
}

.button-secondary:hover {
    border-color: #666;
    background: rgba(255, 255, 255, 0.05);
}

/* Animacje i efekty */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service, .portfolio-item, .member, .mission {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service.fade-in, .portfolio-item.fade-in, .member.fade-in, .mission.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Media queries dla responsywności */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    header {
        padding: 1rem 5%;
    }
    
    .nav-links {
        display: none;
    }
}