@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

body {
    background-color: #0b0f19;
    color: #e2e8f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    height: 12vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(to right, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.trieda-info {
    color: #64748b; 
    font-size: 0.9rem;
}

.kontajner {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

nav {
    background-color: #0f172a;
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

main {
    flex-grow: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Úvodná Hero sekcia */
.hero {
    text-align: center;
    margin-top: 8vh;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #ffffff;
    margin-top: 0;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* O mne */
.profil-sekcia {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.profil-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
}

.profil-text p {
    font-size: 1.1rem;
    color: #94a3b8;
    line-height: 1.7;
}

.profil-text strong {
    color: #38bdf8;
}

.o-mne-foto img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 24px;
    border: 2px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ŠTÝL PRE TABUĽKU ROZVRHU */
.rozvrh-tabulka {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.rozvrh-tabulka th, .rozvrh-tabulka td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.rozvrh-tabulka th {
    background-color: #1e293b;
    color: #38bdf8;
    font-weight: 600;
}

.rozvrh-tabulka tr:hover td {
    background-color: rgba(255,255,255,0.02);
}

/* ŠTÝL PRE ZOZNAMY (Záľuby / Práce) */
.karta-zoznam {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 600px) {
    .karta-zoznam { grid-template-columns: 1fr 1fr; }
}

.karta {
    background-color: #0f172a;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 16px;
    transition: transform 0.2s;
}

.karta:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
}

.karta h3 {
    margin-top: 0;
    color: #ffffff;
}

.karta p {
    color: #94a3b8;
    margin-bottom: 0;
    font-size: 0.95rem;
}

footer {
    background-color: #0f172a;
    height: 8vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .kontajner { flex-direction: row; }
    nav {
        width: 250px;
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 8px;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: none;
    }
    nav a { width: 100%; box-sizing: border-box; }
    main { padding: 60px; margin: 0; }
    .profil-sekcia { flex-direction: row; justify-content: space-between; text-align: left; }
}

.galeria-mriezka {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

@media (min-width: 600px) {
    .galeria-mriezka {
        grid-template-columns: repeat(3, 1fr); /* Toto vytvorí 3 stĺpce */
    }
}

.galeria-mriezka img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
}

.galeria-mriezka img:hover {
    transform: scale(1.03);
    border-color: rgba(56, 189, 248, 0.4);
}

.link{
    color: aliceblue;
}