/* --- KONFIGURACJA I CZCIONKI --- */
:root {
    --primary: #00d4ff;     
    --bg-dark: #040414;           
    --bg-card: rgba(10, 10, 42, 0.95);
    --text: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- NAWIGACJA --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(4, 4, 20, 0.95);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.logo-container img { height: 45px; width: auto; }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-tech);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.hamburger { display: none; color: white; font-size: 24px; cursor: pointer; }

/* --- HERO SECTION (FILM) --- */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.video-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.desktop-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mobile-video { display: none; }

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    text-shadow: 0 0 20px rgba(0,0,0,1);
}

.hero-title {
    font-family: var(--font-tech);
    font-size: clamp(2.2rem, 6vw, 5rem);
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* --- FLIP CARDS (ZESPÓŁ) --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.team-card {
    height: 450px;
    perspective: 1000px;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.team-card:hover .team-card-inner { transform: rotateY(180deg); }

.team-card-front, .team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    overflow: hidden;
}

.team-card-front img { width: 100%; height: 100%; object-fit: cover; }

.team-card-back {
    background: var(--bg-card);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.member-role {
    background: var(--primary);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 10px 0;
}

/* --- STOPKA --- */
footer {
    background: #02020a;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 60px 5% 30px;
    margin-top: auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col h3 { color: var(--primary); font-family: var(--font-tech); margin-bottom: 15px; }

.social-icons a { color: var(--primary); font-size: 1.5rem; margin-right: 20px; transition: 0.3s; }
.social-icons a:hover { transform: translateY(-5px); }

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .desktop-video { display: none; }
    .mobile-video { 
        display: block; 
        width: 100%; 
        max-height: 60vh; 
        object-fit: contain; /* KLUCZ: NIE UCINA BOLIDU */
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
    }

    .video-wrapper { position: relative; height: auto; }

    .hamburger { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background: #040414;
        flex-direction: column;
        padding: 30px;
        border-bottom: 1px solid var(--primary);
    }
    .nav-links.active { display: flex; }

    .footer-top, .footer-bottom-row { flex-direction: column; text-align: center; align-items: center; }
}