/*.hero {
    min-height: 100vh;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.65)
        ),
        url("../images/background.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
} */
/* =========================================================
   0. RESET / ZÁKLAD
========================================================= */
.title {
    white-space: normal;
    overflow-wrap: break-word;
}

:root {
    /* DARK / NATURAL */
    --pattern: rgba(255, 255, 255, 0.035);

    --section-bg: var(--bg);
    --section-bg-alt: var(--bg);

    --bg: #0b0d0c;
    --surface: #111413;
    --surface-2: #161918;
    --accent-pbtn:var(--accent);

    --text: #f2f5f3;
    --text-soft: #a7afaa;
    --text-muted: #68716b;
    --h1: #00ff88;
    --abtintro: #ffffff;
    --lwhite: #d3d3d3;
    --btnwhite: black;
    --technologyc: rgb(13, 13, 13);
    --border: #0a0a0a;
    --btnoutline: rgb(28, 30, 27);

    --accent: #00ff88;
    --accents: #00a015(0.8,0,0,0);
    --accent-dark: #007240;
    --outline-bg: #68716b;
    --terminal-bg: #080a09;
    --btc: #00ff88;
    --burger-border: #014d13;
}
body.light-mode {

    --section-bg: #f8f8f5;      /* současná světlá */
    --section-bg-alt: #eeeeea;  /* jemná světle šedá */

    --pattern: rgba(0, 0, 0, 0.045);

    --background: #b4b6b0;
    --surface: #a4a4a4;
    --text: #000000;
    --muted: #484848;
    --border: #d5d5d5;

    --bg: #fffaf1;
    --surface: #ffffff;
    --surface-2: #e8ebe7;

    --text: #18201b;
    --text-soft: #536058;
    --text-muted: #7c8780;
    --h1: #006f43;
    --abtintro: #131212;
    --lwhite: #1e1e1e;
    --btnwhite: #ffffff;
    --btnoutline: #eeeeee;

    --technologyc: rgb(100, 99, 99);
    --border: #d4dad5;

    --accent: #00a015;
    --accents: #007240(0.8,0,0,0);
    --accent-pbtn: rgb(0, 0, 0);
    --accent-dark: #002214;
    --terminal-bg: #e7ebe8;
    --btc: orange;
    --burger-border: rgb(199, 195, 193);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.about,
.projects,
.links-section {
    background: var(--section-bg);
}

.timeline-section,
.skills,
.contact {
    background: var(--section-bg-alt);
}

html {
    scroll-behavior: smooth;
}
/*
 
*/    

body {

    background: var(--background);
    color: var(--text);
    background: var(--bg);
    color: var(--text);

    transition:
        background 0.4s ease,
        color 0.4s ease,
        background-color 0.4s ease,
        color 0.4s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   1. HLAVNÍ KONTEJNER
========================================================= */

main {
    width: 100%;
}

.section {
    width: 100%;

    margin: 0 auto;
    padding: 120px 40px;
}


/* =========================================================
   2. NAVBAR
========================================================= */

.site-header {
    position: fixed;

    border-bottom: 1px solid var(--border);
    transition: border-color 0.35s ease;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.navbar {
    width: 100%;
    max-width: 100%;
   
    border-bottom: 1px solid #014d13;
    color: white;

    padding: 25px 40px;

    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar :hover {
    color: var(--accent);
}
.site-header.nav-hidden {
    transform: translateY(-100%);
}
.site-header {
    background: rgba(11, 13, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    font-size: 22px;
    font-weight: 700;
}

.logo span {
    /* VYBARVI POZDĚJI */
    color: var(--accent);
}

.menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.menu a {
    color: white;
    font-size: 110%;

    transition:
        color 0.35s ease;
    transition: 0.4s;
}

.menu a:hover {
    /* VYBARVI POZDĚJI */
    color: var(--accent);
}


/* =========================================================
   3. HERO
========================================================= */


/*
NOVE
*/
.hero {
    position: relative;

    min-height: 100vh;

    padding: 150px 8% 100px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 60px;

    overflow: hidden;

    /* VYBARVI POZDĚJI */
    background: var(--bg);
    color: var(--text);

    background-image: radial-gradient(
        rgba(255, 255, 255, 0.12) 1px,
        transparent 1px
    );

    background-size: 30px 30px;
}


/* ---------------------------------------------------------
   HERO BACKGROUND
--------------------------------------------------------- */

.hero-background {
    position: absolute;

    inset: 0;

    z-index: 0;

    /*

        SEM POZDĚJI:

        - gradient
        - grid
        - obrázek
        - SVG
        - dekorativní objekty

    */

    pointer-events: none;
}


/* ---------------------------------------------------------
   HERO CONTENT
--------------------------------------------------------- */

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 650px;
}

.hero-subtitle {
    margin-bottom: 20px;

    font-size: 14px;
    letter-spacing: 3px;

    /* VYBARVI POZDĚJI */
    /*color: #00ff88;*/
    color: var(--accent)
}

.hero h1 {
    margin-bottom: 25px;

    font-size: clamp(50px, 7vw, 100px);

    line-height: 0.95;
}

.hero h1 strong {
    /* VYBARVIT POZDĚJI */
    color: var(--h1); /*#00ff88*/
}

.hero-description {
    max-width: 600px;

    margin-bottom: 35px;

    font-size: 18px;

    /* VYBARVI POZDĚJI */
    color: var(--abtintro);
}


/* =========================================================
   4. BUTTONS
========================================================= */

.hero-buttons {
    display: flex;
    gap: 15px;
}


.button {
    display: inline-flex;

    margin-top: 3%;
    align-items: center;
    justify-content: center;

    min-width: 150px;

    padding: 13px 25px;

    border: 2px solid var(--accent-dark);
    transition: tansform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    

    /* VYBARVI POZDĚJI */
    background: var(--h1);
    color: var(--btnwhite);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

    transition: 0.3s;
}

.button:hover {

    transform: translateY(-4px);

}

.button-outline {
    background: var(--btnoutline);
    color: var(--text); 
    
}


/* =========================================================
   5. HERO TERMINAL
========================================================= */

.hero-visual {
    position: relative;

    z-index: 2;

    display: flex;

    justify-content: center;
    align-items: center;
}

.terminal-window {
    width: 100%;
    max-width: 550px;

    min-height: 300px;

    /*border: 1px solid #333333;*/

    background: var(--surface);
    border-color: var(--border);

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-header {
    height: 45px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 15px;

    border-bottom: 1px solid #333333;
}

.terminal-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    /* VYBARVI POZDĚJI */
    background: #555555;
}

.terminal-title {
    margin-left: 10px;

    font-size: 13px;

    color: var(--abtintro);
}

.terminal-content {
    padding: 25px;

    font-family: monospace;
    font-size: 15px;
}

.terminal-content p {
    margin-bottom: 8px;
}

.terminal-green {
    /* VYBARVI POZDĚJI */
    color: var(--accent);
}


/* =========================================================
   6. BITCOIN WIDGET
========================================================= */

.crypto-widget {
    position: absolute;

    right: 8%;
    bottom: 6%;

    z-index: 5;

    width: 220px;

    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: var(--surface);
    border-color: var(--border);
}

.crypto-header {
    display: flex;

    align-items: center;
    gap: 10px;

    margin-bottom: 15px;

    font-size: 13px;
    letter-spacing: 2px;
}

.crypto-icon {
    font-size: 25px;

    /* VYBARVI POZDĚJI */
    color: orange;
}

.btc-price {
    margin-bottom: 8px;

    font-size: 25px;
    font-weight: 700;
}

.btc-info {
    display: flex;

    gap: 8px;

    font-size: 13px;
}

.btc-change.positive {
    /* VYBARVI POZDĚJI */
    color: #00934f;
}

.btc-change.negative {
    color: #ff4545;
}


/* =========================================================
   7. TECHNOLOGY BAR
========================================================= */

.technology-bar {
    width: 100%;

    padding: 25px 40px;

    border-top: 1px solid #014d13;
    border-bottom: 1px solid #014d13;

    overflow: hidden;

    /* VYBARVI POZDĚJI */
    background: var(--technologyc);
}

.technology-list {
    max-width: 1200px;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    flex-wrap: wrap;
}

.technology-list span {
    font-size: 14px;

    min-width: 0;
    overflow-wrap: anywhere;
    color: #f2f5f3;

    transition: 0.3s;
}

.technology-list span:hover {
    /* VYBARVI POZDĚJI */
    color: var(--accent);
}


/* =========================================================
   8. SECTION HEADING
========================================================= */

.section-heading {
    display: flex;

    align-items: flex-start;

    gap: 25px;
    font-size: clamp(18px, 5vw, 28px);
    margin-bottom: 70px;
}

.section-number {
    font-size: 14px;

    /* VYBARVI POZDĚJI */
    color: var(--accent);
}
.imgLabel {
    margin-left: 5%;
    font-size: clamp(20px, 5vw, 38px);
    margin-top: 5%;
    margin-bottom: 1%;
}

.section-label {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;
    letter-spacing: 3px;

    /* VYBARVI POZDĚJI */
    color: var(--accent);
}

.section-heading h2 {
    font-size: clamp(40px, 5vw, 70px);

    line-height: 1;
}


/* =========================================================
   9. ABOUT
========================================================= */

.about-content {
    display: grid;

    grid-template-columns: 2fr 1fr;

    gap: 80px;
}

.about-text {
    max-width: 700px;
}

.about-text p {
    margin-bottom: 20px;

    color: var(--lwhite);
}

.about-intro {
    font-size: 25px !important;

    color: var(--abtintro) !important;
}

.about-stats {
    display: grid;

    grid-template-columns: 1fr;

    gap: 25px;
}

.stat {
    padding: 20px;

    border-left: 2px solid #333333;
}

.stat strong {
    display: block;

    font-size: 35px;

    /* VYBARVI POZDĚJI */
    color: var(--accent-pbtn);
}

.stat span {
    font-size: 13px;

    /*color: #777777;*/
    color: var(--abtintro)
}


/* =========================================================
   10. TIMELINE
========================================================= */

.timeline {
    position: relative;

    width: 100%;

    padding: 20px 0;
}

/* CENTRÁLNÍ OSA */

.timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 1px;

    transform: translateX(-50%);

    /* VYBARVI POZDĚJI */
    background: #333333;
}


.timeline-item {
    position: relative;

    width: 50%;

    padding: 30px 50px;

    display: grid;

    gap: 20px;
}


/* STŘÍDÁNÍ STRAN */

.timeline-item:nth-child(odd) {
    left: 0;

    text-align: right;
}


.timeline-item:nth-child(even) {
    left: 50%;

    text-align: left;
}


/* ROK */

.timeline-year {
    font-size: 40px;
    font-weight: 700;

    /* VYBARVI POZDĚJI */
    color: var(--accent-pbtn);
}


/* BOD NA OSE */

.timeline-marker {
    position: absolute;

    top: 45px;

    width: 14px;
    height: 14px;

    border-radius: 50%;

    /* VYBARVI POZDĚJI */
    background: var(--accent);

    border: 3px solid #151515;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -7px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -7px;
}


/* OBSAH */

.timeline-category {
    font-size: 11px;
    letter-spacing: 2px;

    color: var(--accent);
}

.timeline-content h3 {
    margin: 8px 0;

    font-size: 25px;
}

.timeline-content p {
    color: var(--lwhite);
}

.timeline-description {
    margin-top: 20px;

    display: grid;
    gap: 12px;

    line-height: 1.2;
}


/* TAGS */
.project-intro {
    margin-bottom: 2%;
}

.project-description {
    margin-bottom: 12px;
    font-size: clamp(10px, 5vw, 20px);
    max-width: 80%;
}
.project-description p {
    margin-bottom: 7px;
}
.timeline-tags,
.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 27px;
}

.timeline-item:nth-child(odd) .timeline-tags {
    justify-content: flex-end;
}

.timeline-tags span,
.project-tags span {
    padding: 4px 9px;

    border: 1px solid #333333;

    font-size: 11px;

    color: var(--lwhite);
}


/* =========================================================
   11. PROJECTS
========================================================= */



.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: var(--surface);
    border-color: var(--border);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);

    border-color: var(--accent);
}

.project-image {
    width: 100%;

    aspect-ratio: 16 / 10;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--surface-2);
}

.project-image-image {
    width: 100%;

    aspect-ratio: 16 / 10;

    display: flex;

    align-items: center;
    justify-content: center;
    

}

.project-placeholder {
    font-size: 12px;
    letter-spacing: 3px;

    color: var(--accent);
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;

}

.project-number {
    font-size: 12px;

    color: var(--accent);
}
.unfinished-project {
    display: inline-block;

    padding-top: 24px;

    color: var(--accent-pbtn);
}

.project-content h3 {
    margin: 10px 0;

    font-size: 25px;
}

.project-content p {
    color: var(--lswhite);
}

.project-link {
    display: inline-block;

    margin-top: 25px;

    /* VYBARVI POZDĚJI */
    color: var(--accent-pbtn);
}
.project-navigation {
    margin-left: 5%;
    margin-top: 15%;
}

.project-navigation a:hover {
    color: var(--accent);
}

.project-content > .unfinished-project,
.project-content > .project-link {
    margin-top: auto;
    padding-top: 24px;
    align-self: flex-start;
}


/* =========================================================
   12. SKILLS
========================================================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);
    color: var(--abtintro);
    gap: 20px;

}

.skill-category {
    padding: 25px;
    background-color: var(--section-bg);

    border: 1px solid #333333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.skill-category h3 {
    margin-bottom: 20px;

    font-size: 18px;
}

.skill-category li {
    margin-bottom: 8px;

    color: var(--lwhite);
}


/* =========================================================
   13. LINKS
========================================================= */

.links-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.social-card {
    padding: 25px;

    border: 1px solid #333333;
    background-color: var(--section-bg-alt);

    display: flex;

    justify-content: space-between;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    transition: 0.3s;
}

.social-card:hover {
    /* VYBARVI POZDĚJI */
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px);
}


/* =========================================================
   14. CONTACT
========================================================= */

.contact-content {
    max-width: 888px;
}

.contact-content p {
    margin-bottom: 25px;

    font-size: 20px;

    color: var(--lwhite);
}

.contact-email {
    font-size: clamp(25px, 5vw, 60px);

    /* VYBARVI POZDĚJI */
    color: var(--accent);

    word-break: break-word;
}


/* =========================================================
   15. FOOTER
========================================================= */

.site-footer {

    margin: 0 auto;

    padding: 40px;

    font-size: clamp(15px, 1.3vw, 18px);

    border-top: 1px solid #333333;

    display: flex;

    background-color: var(--bg);
    justify-content: space-between;

    gap: 20px;

    color: var(--text);
}

.footer-links {
    display: flex;

    gap: 25px;
}

.footer-links a:hover {
    /* VYBARVI POZDĚJI */
    color: var(--accent);
}

/* Pravá část navbaru */


.nav-actions .theme-switch {
    margin-left: 0;
}


/* Hamburger */

.hamburger {
    width: 38px;
    height: 34px;

    display: none;

    padding: 7px;

    border: 1px solid var(--burger-border);
    background: transparent;

    cursor: pointer;
}

.hamburger span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 4px 0;

    background: #ffffff;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease,
        background-color 0.3s ease;
}

.hamburger:hover span {
    background: var(--accent);
}


/* Hamburger -> X */

.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}




/* =========================================================
   16. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1024px) {

    .menu {
        gap: 15px;
    }

    .hero {
        grid-template-columns: 1fr;

        padding-top: 140px;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .crypto-widget {
        right: 20px;
        bottom: 20px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

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

}


/* =========================================================
   17. RESPONSIVE — MOBIL
========================================================= */

@media (max-width: 768px) {

    .nav-actions {
        display: flex;
        align-items: center;

        gap: 14px;

        margin-left: auto;
    }

    .theme-switch {
        margin-left: 0;
    }


    /* =========================
       HAMBURGER
    ========================= */

    .hamburger {
        display: block;
    }


    /* =========================
       KLASICKÉ MENU SCHOVAT
    ========================= */

    .menu {
        display: none;
    }


    /* =========================
       OTEVŘENÉ MENU
    ========================= */

    .menu.menu-open {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px 20px 20px;

        background: rgba(11, 13, 12, 0.97);

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        border-bottom: 1px solid #014d13;

        z-index: 1000;
    }


    .menu.menu-open li {
        width: 100%;
    }


    .menu.menu-open a {
        display: block;

        width: 100%;

        padding: 14px 5px;

        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }


    .menu.menu-open li:last-child a {
        border-bottom: none;
    }


    /* Když je menu otevřené,
       navbar se při scrollu neschová */

    .site-header.nav-hidden.menu-open {
        transform: translateY(0);
    }


    .menu {
    position: absolute;

    top: 100%;
    left: 20px;
    right: 20px;

    width: auto;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 12px 20px 20px;

    background: rgba(11, 13, 12, 0.97);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid #014d13;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s ease;
    }


    .menu.menu-open {
        left: 20px;
        right: 20px;

        width: auto;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }


    .site-header.nav-hidden.menu-open {
        transform: translateY(0);
    }

    .navbar {
        padding: 20px;
        position: relative;
        
    }
    

    .section {
        padding: 80px 20px;
    }

    .hero {
        padding: 120px 20px 80px;

        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: clamp(48px, 10vw, 120px);
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .crypto-widget {
        position: relative;

        right: auto;
        bottom: auto;

        width: 100%;

        margin-top: 30px;
    }

    .technology-bar {
        padding: 20px;
    }

    .technology-list {
        justify-content: center;
    }


    /* TIMELINE */

    .timeline::before {
        left: 10px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {

        width: 100%;

        left: 0;

        padding-left: 40px;
        padding-right: 0;

        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-tags {
        justify-content: flex-start;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {

        left: 3px;
        right: auto;
    }


    /* PROJECTS */

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


    /* SKILLS */

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


    /* LINKS */

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


    /* FOOTER */

    .site-footer {
        padding: 30px 20px;

        flex-direction: column;
    }
    .theme-switch {
        margin-left: 25px;
    }

    #theme-toggle:hover {
    border-color: #00ff88;
    }

    .theme-icon {
    font-size: 14px;
    }

}
/* Switch LIGHT/DARK mode */
.theme-switch {
    margin-left: 25px;
}


/* Skutečný checkbox schováme */

.theme-checkbox {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


/* Samotný switch */

.theme-label {
    position: relative;

    width: 58px;
    height: 30px;

    display: block;

    border: 1px solid var(--border);
    border-radius: 30px;

    background: var(--surface);

    cursor: pointer;

    transition:
        background-color 0.35s ease,
        border-color 0.35s ease;
}


/* Kolečka / ikonky */

.theme-icon {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 2;

    font-size: 13px;

    transition:
        opacity 0.3s ease;
}

.moon {
    left: 8px;
}

.sun {
    right: 8px;

    opacity: 0.35;
}


/* Pohyblivé kolečko */

.theme-slider {
    position: absolute;

    top: 3px;
    left: 3px;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: var(--accent);

    transition:
        transform 0.35s cubic-bezier(.4,0,.2,1),
        background-color 0.35s ease;
}


/* LIGHT MODE */

.theme-checkbox:checked + .theme-label .theme-slider {
    transform: translateX(28px);
}

.theme-checkbox:checked + .theme-label .moon {
    opacity: 0.35;
}

.theme-checkbox:checked + .theme-label .sun {
    opacity: 1;
}