/* --- GLOBAL RESET & BASE SETTINGS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Jersey 10", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 22px;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* --- NAVIGATION MENU (NAVBAR) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    border-bottom: 2px solid #3fffac;
    backdrop-filter: blur(5px);
}

.nav-logo {
    color: #3fffac;
    font-size: 2.2rem;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: #3fffac;
}

/* --- SPA ROUTING ARCHITECTURE --- */
.page-section {
    display: none; 
    animation: fadeInPage 0.4s ease-in-out;
}

.page-section.active-page {
    display: block; 
}

.page-content {
    padding-top: 100px;
    min-height: calc(100vh - 100px); 
}

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

/* --- HERO LANDING BANNER --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Zaktualizowana ścieżka do images/ */
    background: linear-gradient(rgba(18, 18, 18, 0.75), rgba(18, 18, 18, 0.95)), url('images/main_background.png') no-repeat center center/cover;
    z-index: -1;
    animation: cinematicZoom 20s infinite alternate linear;
}

.hero-content {
    position: relative;
    z-index: 1;
}

@keyframes cinematicZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero h1 {
    font-size: 7.5rem;
    color: #3fffac;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(63, 255, 172, 0.3);
}

.tagline {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #cccccc;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: #3fffac;
    color: #121212;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: #2be098;
    transform: scale(1.02);
}

/* --- REUSABLE HEADINGS --- */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 15px; 
    color: #3fffac;
    text-transform: uppercase;
}

.description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.3rem;
    color: #b3b3b3;
}

/* --- ALTERNATING LAYOUT PANELS (HOMEPAGE) --- */
#home .container {
    max-width: 1600px;
    padding: 0 50px;
}

.info-panel {
    min-height: 70vh;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin-bottom: 0;
}

.info-panel:nth-of-type(even) {
    flex-direction: row-reverse;
}

.panel-text {
    flex: 1;
}

.panel-title {
    font-size: 3.8rem;
    color: #3fffac;
    margin-bottom: 25px;
    text-transform: uppercase;
    line-height: 1.1;
}

.panel-text p {
    color: #d1d1d1;
    font-size: 1.8rem;
    text-align: justify;
    line-height: 1.5;
}

.panel-image {
    flex: 1.3;
}

.panel-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid #222;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    transition: border-color 0.3s ease;
}

.info-panel:hover .panel-image img {
    border-color: #3fffac;
}

/* --- TACTICAL CARDS (SEKCJA ABOUT) - ZIG-ZAG LAYOUT --- */
.about-grid {
    display: flex;
    flex-direction: column;
    gap: 40px; 
    margin-top: 50px;
}

.about-card {
    background: linear-gradient(145deg, #161616, #1a1a1a);
    padding: 60px 70px; 
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 4px;
    background-color: #3fffac;
    transition: width 0.5s ease-out;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: #333;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 25px rgba(63, 255, 172, 0.05);
}

.about-card:hover::before {
    width: 100%;
}

.about-card:nth-child(odd) {
    align-items: flex-start;
    text-align: left;
}
.about-card:nth-child(odd)::before {
    left: 0;
}
.about-card:nth-child(odd) .card-number {
    right: 30px;
}
.about-card:nth-child(odd):hover .card-number {
    transform: translateY(-50%) translateX(-15px);
}

.about-card:nth-child(even) {
    align-items: flex-end;
    text-align: right;
}
.about-card:nth-child(even)::before {
    right: 0;
}
.about-card:nth-child(even) .card-number {
    left: 30px;
}
.about-card:nth-child(even):hover .card-number {
    transform: translateY(-50%) translateX(15px);
}

.card-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); 
    font-size: 13rem; 
    font-weight: bold;
    color: rgba(255, 255, 255, 0.025);
    z-index: -1;
    transition: color 0.4s ease, transform 0.4s ease;
    line-height: 1;
}

.about-card:hover .card-number {
    color: rgba(63, 255, 172, 0.06);
}

.about-card h3 {
    color: #ffffff;
    font-size: 2.6rem; 
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 100%;
}

.about-card p {
    color: #b3b3b3;
    font-size: 1.35rem; 
    line-height: 1.6;
    max-width: 75%; 
}

/* --- CREDITS PAGE (DIVIDERS & GRID) --- */
.section-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(63, 255, 172, 0.5), transparent);
    margin: 60px 0;
}

.credits-header {
    text-align: center;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-box {
    background-color: #1a1a1a;
    padding: 35px;
    border-radius: 6px;
    text-align: center;
    border-top: 4px solid #252525;
    transition: border-color 0.4s ease, transform 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-box:hover {
    border-color: #3fffac;
    transform: translateY(-5px);
}

/* --- MEDIA PAGE SCREENSHOT GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    cursor: pointer;
    border: 2px solid #222;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.04);
    border-color: #3fffac;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #0b0b0b;
    color: #666;
    border-top: 1px solid #1a1a1a;
}

.socials {
    margin-top: 15px;
}

.yt-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #e50000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.yt-link:hover {
    color: #2be098;
    transform: scale(1.05);
}

/* --- LIGHTBOX & VIDEO MODAL GRAPHICS --- */
.modal {
    display: none;
    position: fixed; 
    z-index: 3000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3500;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #3fffac;
}

.video-container {
    position: relative;
    width: 85%;
    max-width: 1100px;
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(63, 255, 172, 0.25);
}

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 0 40px rgba(63, 255, 172, 0.25);
}

/* --- SCROLL ANIMATIONS --- */
.hidden-panel {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hidden-panel.visible-panel {
    opacity: 1;
    transform: translateY(0);
}

/* --- SCROLL DOWN ARROW --- */
.scroll-arrow {
    display: block;
    margin: 150px auto 0;
    width: 60px;
    height: 60px;
    color: #3fffac;
    animation: blinkAndBounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-arrow:hover {
    color: #ffffff;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 0px 10px rgba(63, 255, 172, 0.4));
}

@keyframes blinkAndBounce {
    0% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(15px); }
    100% { opacity: 0.2; transform: translateY(0); }
}

/* --- CREDITS SECTION STYLES --- */
.credit-card {
    text-align: left !important;
    justify-content: flex-start !important;
}

.tech-stack-card {
    justify-content: center !important;
}

.credit-role {
    color: #b3b3b3 !important;
    font-size: 1.2rem !important;
    margin-bottom: 5px !important;
    letter-spacing: 2px;
    min-height: 3.5rem;
}

.credit-name {
    color: #3fffac;
    font-size: 1.9rem;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(63, 255, 172, 0.2);
}

.credit-details {
    font-size: 1.15rem;
    color: #d1d1d1;
    margin-bottom: 30px;
    line-height: 1.6;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.tech-tag {
    background-color: #121212;
    color: #3fffac;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 1.1rem;
    border: 1px solid #3fffac;
    box-shadow: inset 0 0 10px rgba(63, 255, 172, 0.1);
}

/* --- LEADERBOARD PAGE --- */
.table-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, #161616, #1a1a1a);
    border: 1px solid #222;
    border-radius: 8px;
    border-top: 4px solid #3fffac;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.tactical-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 1.5rem;
}

.tactical-table th {
    color: #3fffac;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 10px;
    border-bottom: 2px solid #333;
    font-size: 1.8rem;
}

.tactical-table td {
    padding: 15px 10px;
    color: #e0e0e0;
    border-bottom: 1px solid #222;
    transition: background-color 0.3s ease;
}

.tactical-table tbody tr:hover td {
    background-color: rgba(63, 255, 172, 0.05);
    color: #ffffff;
}

.tactical-table tbody tr:nth-child(1) td {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.7rem;
}
.tactical-table tbody tr:nth-child(2) td {
    color: #c0c0c0;
}
.tactical-table tbody tr:nth-child(3) td {
    color: #cd7f32;
}

.loading-text {
    color: #b3b3b3 !important;
    font-size: 1.2rem;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* --- RESPONSIVE DESIGN (MOBILE ADAPTATION) --- */
@media (max-width: 1024px) {
    .credits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
        flex-direction: column;
        gap: 8px;
    }
    .nav-logo {
        font-size: 1.8rem;
    }
    .nav-links {
        gap: 12px;
        flex-wrap: wrap; 
        justify-content: center;
    }
    .nav-links a {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 3rem;
        line-height: 1;
    }
    .tagline {
        font-size: 1.6rem; 
        margin-bottom: 30px;
    }
    .section-title {
        font-size: 2.2rem; 
    }
    .description {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    #home .container {
        padding: 0 20px;
    }

    .info-panel, .info-panel:nth-of-type(even) {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 40px 0; 
    }
    
    .panel-title {
        font-size: 2.2rem;
    }
    .panel-text p {
        font-size: 1.2rem;
        text-align: center;
    }

    .credits-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        gap: 20px;
        margin-top: 30px;
    }
    
    .about-card {
        padding: 30px 20px;
        min-height: auto;
    }
    
    .about-card:nth-child(odd),
    .about-card:nth-child(even) {
        align-items: center;
        text-align: center;
    }
    
    .about-card h3 {
        font-size: 1.8rem;
    }

    .about-card p {
        max-width: 100%;
        font-size: 1.15rem;
    }
    
    .card-number {
        font-size: 6rem; 
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .about-card:hover .card-number {
        transform: translate(-50%, -55%) !important; 
    }

    .table-container {
        padding: 15px 10px;
        overflow-x: auto; 
    }
    .tactical-table {
        font-size: 1.1rem;
    }
    .tactical-table th {
        font-size: 1.3rem;
        padding: 10px 5px;
    }
    .tactical-table td {
        padding: 10px 5px;
    }

    .close-btn {
        top: 15px;
        right: 20px;
        font-size: 40px; 
    }
    .video-container {
        width: 95%; 
    }
}