:root {
    --blue: #1e3a8a;
    --gold: #d4af37;
    --off-white: #f7f4f0;
    --dark: #2a2a2a;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--off-white);
    color: var(--dark);
}

header {
    background-image: url('images/krpa-ptica-header.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    color: var(--off-white);
    padding: 20px;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding-top: 40px;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

header h1,
header p {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}


header h1 {
    margin: 0;
}

nav {
    background-color: var(--gold);
    display: flex;
    justify-content: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid var(--dark);
    border-radius: 4px;
    background-color: var(--off-white);
    transition: all 0.2s ease;
}

nav a:hover {
    background-color: var(--dark);
    color: var(--off-white);
    text-decoration: none;
}

section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

section h2 {
    color: var(--blue);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    width: 32px;
    height: 32px;
    border: 2px solid #b38f24;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: linear-gradient(145deg, #ffd700, #d4af37);
    box-shadow: 
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        2px 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.top-link:hover {
    background: linear-gradient(145deg, #d4af37, #ffd700);
    transform: translateY(-2px);
    box-shadow: 
        inset 0 0 15px rgba(255, 255, 255, 0.5),
        3px 3px 8px rgba(0, 0, 0, 0.3);
}

.top-link:active {
    transform: translateY(0);
    box-shadow: 
        inset 0 0 5px rgba(255, 255, 255, 0.2),
        1px 1px 3px rgba(0, 0, 0, 0.2);
}

footer {
    background-color: var(--dark);
    color: var(--off-white);
    text-align: center;
    padding: 20px;
}

ul {
    padding-left: 40px;
    list-style-type: disc;
}

.completed {
    text-decoration: line-through;
    color: #666;
}

li {
    display: list-item;
}

.completed::before {
    color: #2e8b57;
    text-decoration: none;
    display: inline;
}

.expandable-list {
    list-style-type: none;
    padding-left: 0;
}

#koraci ul {
    list-style-type: disc;
    padding-left: 40px;
}

.expandable-list li {
    margin-bottom: 1em;
    position: relative;
}

.bullet-point {
    cursor: pointer;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.expand-icon {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    background-color: var(--gold);
    color: var(--dark);
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.2s ease;
    margin-right: 4px;
    border: 1px solid #b38f24;
}

.explanation {
    display: none;
    margin: 0.5em 0 0.5em 1.5em;
    padding: 0.75em 1em;
    background-color: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--gold);
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}

.bullet-point.expanded + .explanation {
    display: block;
}

.bullet-point.expanded .expand-icon {
    transform: rotate(45deg);
}

.contact-link {
    color: var(--dark);
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.contact-link:hover {
    color: var(--blue);
    border-bottom-color: var(--blue);
}