* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    color: white;
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #61a0fd;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 120px auto;
    padding: 20px;
}

/* HERO (text + fotka vedle sebe) */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-text {
    flex: 1;
}

/* KULATÁ FOTKA */
.hero-img img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;

    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 20px rgba(97,160,253,0.6);

    transition: 0.3s;
}

.hero-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(97,160,253,1);
}

/* TEXTY */
h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.subtitle {
    color: #61a0fd;
    margin-bottom: 40px;
    font-size: 26px;
}

/* SEKCE */
section {
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* KARTY */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.card {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 15px;
    width: 260px;
    backdrop-filter: blur(12px);
    transition: 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255,255,255,0.15);
}

.card img {
    width: 100%;
    border-radius: 12px;
}

/* OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.overlay img {
    max-width: 85%;
    max-height: 85%;
    border-radius: 15px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 45px;
    cursor: pointer;
}

.about {
    line-height: 1.8;
    font-size: 20px;
    max-width: 700px;
}

footer {
    text-align: center;
    padding: 30px;
    opacity: 0.6;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0px;
}

.hero-text {
    max-width: 500px;
}

.hero-text h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-text .subtitle {
    font-size: 24px;
    color: #61a0fd;
}


.hero-img img {
    width: 300px;
    height: 300px;

    object-fit: cover;
    border-radius: 50%;

    border: 3px solid rgba(255,255,255,0.3);

    box-shadow: 0 0 25px rgba(97,160,253,0.6);

    transition: 0.3s;
}

.hero-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(97,160,253,1);
}

@media (max-width: 700px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
}

.cards p {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a {
    text-decoration: none;
}