/* Základní reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Futuristické barvy a velikosti */
:root {
    --primary-color: #00c3ff;
    --secondary-color: #03f4ae;
    --accent-color: #ff2a6d;
    --background-color: #0f1221;
    --text-color: #e0e0e0;
    --card-background: #1a1f35;
    --card-border: #252b47;
    --header-height: 80px;
    --footer-height: 60px;
    --shadow: 0 4px 16px rgba(0, 195, 255, 0.15);
    --glow: 0 0 8px rgba(0, 195, 255, 0.6);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: var(--transition);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 195, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(3, 244, 174, 0.05) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hlavička */
header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
}

#logo {
    height: 50px;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 2px rgba(0, 195, 255, 0.4);
}

/* Hlavní obsah */
main {
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - 80px);
}

.intro {
    text-align: center;
    margin-bottom: 40px;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.intro h2:before, .intro h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    height: 2px;
}

.intro h2:before {
    left: 0;
    right: 50%;
    background: var(--primary-color);
}

.intro h2:after {
    right: 0;
    left: 50%;
    background: var(--secondary-color);
}

.intro p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* projekty */
.category {
    margin-bottom: 40px;
}

.category h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    display: block;
    text-decoration: none;
    background-color: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    color: var(--text-color);
    position: relative;
}

.project-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: 0 0;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.project-card:hover:before {
    transform: scaleX(1);
}

.project-info {
    padding: 20px;
}

.project-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-info p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.featured {
    border: 2px solid var(--secondary-color);
}

/* Patička */
footer {
    height: var(--footer-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-top: 1px solid var(--card-border);
    margin-top: 40px;
}

.social-links a {
    margin-left: 15px;
    text-decoration: none;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: relative;
    background-color: rgba(0, 195, 255, 0.1);
}

.social-links a:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
    background-color: rgba(0, 195, 255, 0.2);
    transform: translateY(-3px);
}

.steam-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}


/* Animace blikání červenou barvou */
@keyframes blinkRed {
    0%, 100% {
        box-shadow: 0 0 8px rgba(0, 195, 255, 0.6);
        border-color: var(--secondary-color);
    }
    25%, 75% {
        box-shadow: 0 0 20px rgba(255, 42, 109, 0.8);
        border-color: #ff2a6d;
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 42, 109, 1);
        border-color: #ff2a6d;
        background-color: rgba(255, 42, 109, 0.1);
    }
}

.blink-red {
    animation: blinkRed 0.5s ease-in-out 3;
}
/* Responzivní design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    #logo {
        height: 40px;
    }
    
    .project-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .intro h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .project-list {
        grid-template-columns: 1fr;
    }
    
    footer {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        text-align: center;
    }
    
    .social-links {
        margin-top: 10px;
    }
    
    .social-links a {
        margin: 0 8px;
    }
}