/* ====== Global ====== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #f0f0f0;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h2, h3 {
    margin: 0;
}

/* ====== Header ====== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4cc9f0;
    flex-shrink: 0;
}

nav {
    display: flex;
    justify-content: flex-end;
    flex: 1;
    margin-right: calc(20px + 5vw);
}

nav a {
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

nav a:hover {
    color: #4cc9f0;
}

/* Hamburger menu základně skryto na PC */
.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #4cc9f0;
    margin-right: calc(10px + 5vw);
}

/* ====== Sections ====== */
section {
    padding: 100px 15% 60px;
}

/* ====== O mně ====== */
.about {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
    background: url('/images/background.webp') center/cover no-repeat;
    overflow: hidden;
}

.about-content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    z-index: 1;
}

.about img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #4cc9f0;
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.4);
}

.about-text {
    max-width: 600px;
}

.about-text h2 {
    color: #4cc9f0;
    margin-bottom: 10px;
}

/* Canvas pro animaci kuliček */
#particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ====== Projekty ====== */
.projects {
    text-align: center;
}

.projects h2 {
    margin-bottom: 40px;
    color: #4cc9f0;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.project-card {
    background: #1c1c1c;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-align: center; /* aby logo bylo uprostřed */
}

.project-card .project-logo {
    width: 80px;        /* velikost loga */
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px; /* prostor mezi logem a názvem */
}


.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
    margin-bottom: 10px;
    color: #4cc9f0;
}

.project-card p {
    font-size: 0.95rem;
    color: #ccc;
}

.project-card a {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: #4cc9f0;
    color: #000;
    border-radius: 8px;
    transition: background 0.3s;
}

.project-card a:hover {
    background: #3aaed9;
}

.project-detail {
    max-width: 800px;
    margin: 120px auto 60px; /* odsazení od hlavičky */
    padding: 0 20px;
    text-align: center;
}

.project-detail .project-logo-large {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.project-detail h1 {
    color: #4cc9f0;
    margin-bottom: 20px;
}

.project-detail p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ccc;
}

.project-detail .project-button {
    display: inline-block;
    padding: 12px 25px;
    background: #4cc9f0;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.project-detail .project-button:hover {
    background: #3aaed9;
}


/* ====== Kontakt ====== */
.contact {
    text-align: center;
}

.contact h2 {
    margin-bottom: 20px;
    color: #4cc9f0;
}

.contact-table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 80%;
    max-width: 600px;
    background: #1c1c1c;
    border-radius: 10px;
    overflow: hidden;
}

.contact-table th,
.contact-table td {
    border: 1px solid #333;
    padding: 12px 15px;
    text-align: left;
}

.contact-table th {
    background: #4cc9f0;
    color: #000;
    text-align: center;
}

.contact-table td a {
    color: #4cc9f0;
    transition: color 0.3s;
}

.contact-table td a:hover {
    color: #fff;
}

.email-copy {
    color: #4cc9f0; 
    cursor: pointer; 
    transition: color 0.3s ease;
}

.email-copy:hover {
    color: #ffffff;
}

.text-copy {
    color: #4cc9f0; /* barva odkazů */
    cursor: pointer; /* ruka při hover */
    transition: color 0.3s ease;
}

.text-copy:hover {
    color: #ffffff; /* změna barvy při najetí */
}


/* Notifikace */
#copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    pointer-events: none; /* aby neblokovala kliknutí */
    font-family: sans-serif;
    z-index: 9999;
}
#copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Footer ====== */
footer {
    text-align: center;
    padding: 20px;
    background: #111;
    font-size: 0.9rem;
    color: #888;
}

/* ====== Responsivita ====== */
@media (max-width: 1024px) {
    nav {
        margin-left: 10px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    /* Navigace pro mobil - skryta a pozice */
    nav {
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 5vw;
        width: 200px;
        border-left: 2px solid #4cc9f0;
        animation: slideIn 0.3s ease forwards;
    }

    nav a {
        padding: 12px;
        margin: 0;
        border-bottom: 1px solid #222;
        text-align: center;
    }

    /* Hamburger menu jen na mobil */
    .hamburger {
        display: block;
        margin-right: calc(10px + 5vw);
    }

    nav.active {
        display: flex;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about img {
        margin: 0 auto;
    }
}

/* Celý scrollbar */
::-webkit-scrollbar {
    width: 12px; /* tloušťka scrollbar */
}

/* Pozadí scrollbar (stopa) */
::-webkit-scrollbar-track {
    background: #111; /* tmavé pozadí za jezdcem */
    border-radius: 6px;
}

/* Jezdec scrollbar (ta část, kterou posouváš) */
::-webkit-scrollbar-thumb {
    background-color: #4cc9f0; /* barva jezdcem */
    border-radius: 6px; /* zaoblení */
    border: 3px solid #111; /* mezera kolem jezdcem */
}

/* Po najetí myši na jezdec */
::-webkit-scrollbar-thumb:hover {
    background-color: #87CEFA; /* světlejší barva při hover */
}


/* ====== Animace menu ====== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
