* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Zabezpečení, aby žádný obrázek nepřetekl displej */
img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "Archivo-narrow", sans-serif;
    background-color: #111111;
    color: white;
    width: 100%;
    overflow-x: hidden;
}

header {
    width: 100%;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    background-color: #0000004d;
    backdrop-filter: blur(10px);
    position: fixed;
    align-items: center;
    height: 60px;
    z-index: 1000;
}

.logo-content img {
    width: 200px;

    transition: all 0.3s ease;
}

.logo-content img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

.menu-toggle:hover {
    color: #EFBF04;
}

nav a {
    display: inline-block;
    text-decoration: none;
    color: white;
    margin: 0 15px;
    transition: 0.3s ease-in-out;
}

nav a:hover {
    transform: scale(1.1);
    color: #EFBF04;
}

.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 70vh;
}

.hero-container {
    margin-top: 100px;

    img {
        width: 1000px;
    }

    h1 {
        font-size: 8rem;
    }

    hr {
        border: none;
        height: 2px;
        background-color: #EFBF04;
    }

    h3 {
        font-size: 2rem;
        color: #EFBF04;
        margin-bottom: 30px;
    }

    .btn {
        display: inline-block;
        background-color: #EFBF04;
        border-radius: 15px;
        padding: 12px 24px;
        text-decoration: none;
        color: #0E1217;
        font-size: 1.2rem;
        transition: 0.3s ease-in-out;
    }

    .btn:hover {
        transform: scale(1.1);
        box-shadow: 0 0 30px #00e5ff4d;
    }
}

.about-section {
    margin-top: 100px;
    width: 100%;
    padding: 0 9%;
    
    h2 {
        text-align: center;
        font-size: 3rem;
        margin: 0 0px 20px 0;
        color: #EFBF04;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 20px;

    img {
        width: 1000px;
        border-radius: 15px;
    }

    p {
        font-size: 1rem;
        margin: 0 0 0px 60px;
        text-align: right;
    }

    h1 {
        font-size: 5rem;
    }
    span {
        background: linear-gradient(90deg, white, #EFBF04);
        -webkit-background-clip: text; /* Nutné pro Chrome, Safari a Edge */
        background-clip: text;
        color: transparent;
        display: inline-block;
    }
}

.projects-section {
    margin-top: 100px;
    width: 100%;
    padding: 0 9%;
    justify-content: center;
}

.project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    h2 {
        font-size: 3rem;
        margin: 0 0px 20px 0;
        color: #EFBF04;
        text-align: center;
    }

    img.projects-category {
        width: 250px;
        filter: brightness(0) invert(1);
        margin-bottom: 2rem;
        margin-top: 4rem;
    }
}

.project-media {
    display: flex;
    flex-direction: column;
    align-items: center;

    h2 {
        font-size: 2rem;
        margin: 0 0px 20px 0;
        color: white;
    }
}

.coming-media-projects, 
.done-media-projects {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    
}

.done-media-projects {
    margin-top: 30px;
}

.media-project,
.software-project,
.games-project {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color: #0a0d11;
    border-radius: 15px;
    width: 350px;
    padding: 24px;
    text-decoration: none;
    transition: 0.3s ease;

    img {
        border-radius: 15px;
        transition: 0.3s ease;
    }

    h3 {
        margin: 10px 0;
        color: #EFBF04;
        font-size: 1.5rem;
    }

    h5 {
        color: white;
        margin-bottom: 10px;
    }

    p {
        color: #727272;
    }

    .year-released {
        color: white;
        margin-bottom: 10px;
        font-size: 1.2rem;
    }
}

.media-project:hover,
.software-project:hover,
.games-project:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px #ff9d0010;
}

.project-software,
.project-games {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;

    h2 {
        font-size: 2rem;
        margin: 0 0px 20px 0;
        color: white;
    }
}

.project-img-none {
    border-radius: 15px;
    background-color: #0E1217;
    padding: 15px;
    width: 100%;

    i {
        color: white;
        font-size: 3rem;
    }
    
    h3 {
        color: white;
        font-size: 1.3rem;
        font-weight: 400;
    }
}

.contact-section {
    margin-top: 100px;
    width: 100%;
    padding: 0 9%;
    justify-content: center;
}

.contact-content {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    padding: 0 9%;
    flex-direction: column;
    text-align: center;
    align-items: center;
    margin-bottom: 30px;

    h2 {
        font-size: 3rem;
        margin: 0;
        color: #EFBF04;
    }

    a {
        color: white;
        text-decoration: none;
        font-size: 1.3rem;
    }

    i {
        color: #0a0d11;
        text-decoration: none;
        margin-right: 10px;
        margin-top: 10px;
        font-size: 1.5rem;
        background-color: #FF9E00;
        padding: 8px;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 2.5rem;
        height: 2.5rem;
    }
}

.social-icons {
    margin-top: 15px;
}

.social-icons i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    padding: 15px;
    margin: 10px;
    background-color: #FF9E00;
    transition: 0.3s ease;
}

.social-icons i:hover {
    transform: scale(1.1);
    box-shadow: 0 0 35px #ff9d004d;
}

/* Nastylování bubliny nad ikonou */
.tooltip {
    position: relative;
    display: inline-flex; /* aby fungovalo pozicování */
}

/* Samotná bublina s textem */
.tooltip::after {
    content: attr(data-tooltip); /* Vezme text z atributu v HTML */
    position: absolute;
    bottom: 100%; /* Umístí bublinu nad ikonu */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #00E5FF;
    color: #0E1217;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

/* Zobrazení při najetí myší */
.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Malý efekt posunutí nahoru */
}
/* ============================================================
   RESPONZIVNÍ DESIGN (TABLETY A MOBILY)
   ============================================================ */

/* Tablety (do 992px) */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 5rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .about-content p {
        margin: 0;
    }
}

/* Mobily a menší tablety (do 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        color: white;
        cursor: pointer;
    }

    /* Cool vysouvací mobilní menu s roseným sklem */
    nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(14, 18, 23, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease-in-out;
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 1.8rem;
        margin: 0;
    }

    .logo-content h1 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content h3 {
        font-size: 1.4rem;
    }

    .about-section,
    .projects-section,
    .contact-section,
    .contact-content {
        padding: 0 5%;
    }

    .about-content img {
        width: 100%;
        max-width: 450px;
    }

    .media-project,
    .software-project,
    .games-project {
        width: 100%;
        max-width: 350px;
    }
}

/* Malé mobilní displeje (do 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .about-section h2,
    .project-content h2,
    .contact-content h2 {
        font-size: 2.2rem;
    }

    .project-media h2,
    .project-software h2,
    .project-games h2 {
        font-size: 1.6rem;
    }
}