@import url('https://fonts.googleapis.com/css2?family=Monda:wght@400..700&display=swap');

body {
    font-family: Monda;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url(index_bg.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Navbar */
.navbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: rgb(210, 168, 30);
}

/* Hlavička */
header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 6rem;
    letter-spacing: 1px;
    margin-top: 15%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

header p {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 15.5%;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-section {
    width: 100%;
    max-width: 1600px; 
    padding: 5rem 4%; 
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    color: whitesmoke;
    
}

/* Hlavní sekce školních prácí (nazval jsem to "portfolio") */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem; 
}

.portfolio-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px; 
    color: rgb(240, 240, 240);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
    
    flex: 1 1 300px; 
    max-width: 360px; 
    
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0) 100%);
    
    text-decoration: none;
    font-size: 1.5rem; 
    font-weight: 600; 
    
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.portfolio-item:hover {
    transform: translateY(-8px); 
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(211, 150, 20) 50%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

/* Sekce maturita */
.highlight-section {
    width: 100%;
    max-width: 1200px; 
    text-align: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.65) 50%, rgba(0, 0, 0, 0.05) 80%);
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    box-sizing: border-box;
}

.highlight-section h2 {
    font-size: 2rem;
    color: #fcfcfc;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
}

.highlight-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
}

.action-btn {
    display: inline-block;
    background-color: rgb(211, 150, 20);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    transition: background-color 0.3s, transform 0.2s;
}

.action-btn:hover {
    background-color: #ffffff;
    color: black;
    transform: scale(1.05);
}

/* Patička */
footer {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    box-sizing: border-box; 
    width: 100%;
}

/* Responzivita */
@media (max-width: 768px) {
    .navbar {
        /* Skrytý navbar */
        display: none; 
    }

    header h1 {
        font-size: 4.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    header {
        padding: 4rem 1rem;
    }
    .portfolio-grid {
        gap: 1.5rem;
    }
    .highlight-section {
        margin: 0 1rem 3rem 1rem;
        width: calc(100% - 2rem);
    }
}