/* 1. IMPORTY I ZMIENNE GLOBALNE */
@import url('https://fonts.googleapis.com/css2?family=VT323&family=Inconsolata:wght@400;700&display=swap');

body {
    background-color: #0b0d02;
    color: #39ff14;
    font-family: 'VT323', monospace;
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.7), 0 0 10px rgba(57, 255, 20, 0.5);
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
}

/* Efekt skanowania CRT */
body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; 
    left: 0; 
    bottom: 0; 
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

/* 2. UKŁAD I KONTENERY (LAYOUT)*/
#main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}

main {
    flex: 3;
}

.section-box {
    border: 2px solid #00ff00;
    background-color: #000;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 6px 6px 0px #005500;
}

.side-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
}

/*3. SYSTEM "AKT SPRAWY" (CASE FILES) */
.case-file {
    max-width: 800px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.case-header {
    text-align: center;
    background: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
}

.case-file p span {
    font-weight: bold;
    text-transform: uppercase;
}

.double-border h3 {
    margin-top: -25px;
    margin-left: -5px;
    font-size: 1.2rem;
    box-shadow: 3px 3px 0px #005500;
}

.operational-stamp {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #000;
    background: #00ffff;
    display: inline-block;
    padding: 2px 15px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.censored-text {
    background-color: #39ff14;
    color: #39ff14;
    cursor: help;
    transition: all 0.3s ease;
    padding: 0 4px;
}

.censored-text:hover {
    background-color: transparent;
    color: white;
}

/*4. NAWIGACJA (NAV) */
nav {
    background: #000;
    border-bottom: 3px double #00ff00;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

nav a:hover {
    text-decoration: underline;
    background: #000;
    color: #00ff00;
}

.nav-link {
    color: white;
    text-decoration: none;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    margin: 0 5px;
    font-family: 'Courier New', monospace;
}

.nav-link:hover {
    box-shadow: 0 0 10px #00ff00;
}

/*5. PRZYCISKI I ELEMENTY INTERAKTYWNE */
.retro-btn {
    background-color: #000;
    color: #00ff00;
    border: 2px solid #00ff00;
    font-family: 'Courier New', monospace;
    padding: 10px 20px;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0px #005500;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    transition: all 0.2s;
}

.retro-btn:hover {
    background-color: #00ff00;
    color: #000;
    box-shadow: 2px 2px 0px #005500;
    transform: translate(2px, 2px);
}

.menu-btn {
    background-color: #000;
    color: #00ff00;
    border: 3px double #00ff00;
    font-family: 'VT323', monospace;
    padding: 15px;
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-align: left;
    cursor: pointer;
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
}

.menu-btn::after {
    content: " [SYSTEM_MENU_v1.0]";
    font-size: 0.7rem;
    position: absolute;
    right: 10px;
    bottom: 5px;
    opacity: 0.7;
}

.menu-btn:hover, .menu-btn:active {
    background-color: #00ff00;
    color: #000;
    text-shadow: none;
}

.socials {
    color: white;
    text-decoration: none;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    margin: 0 5px;
    font-family: 'Courier New', monospace;
}

/*6. PROJEKTY I MULTIMEDIA*/
.project-layout {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.project-image {
    position: relative;
    z-index: 5;
}

.project-image img {
    max-width: 600px;
    width: auto;
    height: auto;
    display: block;
    image-rendering: auto;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    margin: 0 5px;
}

.project-image img:hover {
    border-color: #ffffff;
    cursor: zoom-in;
    transform: scale(1.02);
}

.tech-stack {
    list-style: ">> ";
    padding-left: 50px;
    margin: 15px 0;
    color: white;
    text-decoration: none;
    font-family: 'Courier New', monospace;
}

.project-links {
    margin-top: 20px;
}


  .center-wrapper {
    display: flex;
    justify-content: center; 
    align-items: center;     
    padding: 40px 20px;
    width: 100%;
  }

  
  .tech-specs-box {
    background-color: #0d0d0d; 
    color: #33ff33;           
    font-family: 'Courier New', Courier, monospace;
    padding: 30px;
    border: 1px solid #33ff33;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(51, 255, 51, 0.2); 
    max-width: 800px;          
    width: 100%;              
    line-height: 1.2;
    font-size: 13px;
    overflow-x: auto;         
  }

  pre {
    margin: 0;
    white-space: pre-wrap;     /* Zawijanie tekstu na małych ekranach */
  }



#random-frog {
    max-width: 100%;
    height: auto;
    border: 2px solid #00ff00;
    display: block;
}

/* 7. ELEMENTY DEKORACYJNE I STOPKA*/
hr {
    border: 0;
    border-top: 2px dashed #00ff00;
}

section {
    padding: 60px 0;
}

footer.section-box {
    clear: both;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px;
    text-align: center;
}

/*  8. RESPONSYWNOŚĆ (MOBILE) */
#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    body {
        color: #26d911;
        text-shadow: 0 0 2px rgba(57, 255, 20, 0.4);
        font-size: 1.1rem;
    }

    .section-box h1, .section-box h2, .section-box h3 {
        color: #2ecc71;
        text-shadow: none;
    }

    .project-image img {
        max-width: 90%;
        margin: 0 auto;
        display: block;
    }

    .project-layout {
        justify-content: center;
    }

    .tech-stack {
        padding-left: 15px;
        font-size: 1rem;
    }

    .side-panel {
        width: 100% !important;
        padding: 0;
        margin: 0 auto;
        align-items: center;
    }

    .side-panel .section-box {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .content-wrapper {
        flex-direction: column;
        width: 100% !important;
        padding: 0;
        margin: 0 auto;
        align-items: center;
    }

    main {
        width: 100%;
        order: 1;
    }

    #menu-toggle {
        display: block;
        margin: 0;
        border-radius: 0;
    }

    #nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: #000;
        border: 1px solid #00ff00;
        padding: 10px 0;
    }

    #nav-list.active {
        display: flex;
    }
}