* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(8, 8, 8, 0.4);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 106, 0, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 106, 0, 0.9);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #ffffff;
    background: url("assets/background.jpg") center center / cover fixed no-repeat;
    background-color: #080808;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeInPage 0.6s ease-in-out forwards;
    -webkit-font-smoothing: antialiased;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

.page-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.85);
    z-index: 0;
    pointer-events: none;
}

/* GLASSMORPHISM - ZOPTYMALIZOWANY POD SAFARI/WEBVIEW */
.glassmorphism {
    background: rgba(18, 18, 18, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* HEADER / MENU */
.site-header {
    position: relative;
    z-index: 20;
    width: calc(100% - 20px);
    max-width: 1200px;
    margin: 15px auto 0;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff6a00 !important;
    border-radius: 8px;
    transform: translateZ(0); /* Wymuszenie renderingu GPU */
}

/* LOGO - BEZPIECZNE SKALOWANIE */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    flex-shrink: 0;
}

.brand-logo img {
    height: 55px;
    max-height: 55px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.brand-logo:hover {
    transform: scale(1.04);
    opacity: 0.9;
}

.main-navigation {
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    touch-action: manipulation;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: #ff6a00;
}

/* MAIN CONTAINER */
.crew-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px 80px;
}

/* NAGŁÓWEK SPOKULTURA CREW */
.crew-heading {
    position: relative;
    z-index: 10;
    margin-top: 10px;
    margin-bottom: 35px;
    text-align: center;
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDownFromHeader 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    will-change: transform, opacity;
}

@keyframes slideDownFromHeader {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.crew-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    color: #ffffff;
    text-transform: uppercase;
    word-break: break-word;
}

.crew-title span {
    color: #ff6a00;
    text-shadow: 0 0 20px rgba(255, 106, 0, 0.3);
}

.crew-introduction {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    line-height: 1.5;
    padding: 0 10px;
}

.crew-section-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ff6a00;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin: 40px 0 25px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SIATKA I KAFELKI */
.crew-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
}

.crew-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 25px 18px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    transform: translateZ(0);
}

.crew-card:hover,
.crew-card:active {
    transform: translateY(-4px);
    border-color: #ff6a00;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 106, 0, 0.2);
}

/* OKRĄGŁY AWATAR */
.crew-avatar-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 18px auto;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #ff6a00, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

.crew-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #111;
    display: block;
}

.crew-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.crew-role {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #ff6a00;
    margin-bottom: 6px;
}

.crew-name {
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 10px;
}

.crew-bio {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* SOCIALS */
.crew-socials {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.crew-social-btn {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 10, 0.8);
    color: #ff6a00;
    font-size: 0.75rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.crew-social-btn:hover,
.crew-social-btn:active {
    border-color: #ff6a00;
    background: #ff6a00;
    color: #000000;
}

/* EFEKT SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* POPRAWKI MOBILNE (RESPONSYWNOŚĆ) */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        gap: 12px;
        padding: 10px 12px;
        margin: 10px auto 0;
        width: calc(100% - 16px);
    }

    .brand-logo img {
        height: 42px;
        max-height: 42px;
    }

    .main-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
    }

    .main-navigation a {
        font-size: 0.78rem;
        letter-spacing: 1px;
    }

    .crew-container {
        padding: 20px 10px 60px;
    }

    .crew-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
