* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.75)
    ),
    url("./slike/pozadina.jfif");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #e0e0e0;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 40px 20px;
    animation: fadeDown 1s ease-out;
}

header h1 {
    font-size: 2.8rem;
    color: #00e5ff;
    letter-spacing: 2px;
}

header p {
    margin-top: 8px;
    font-size: 1rem;
    opacity: 0.9;
}

section {
    background: rgba(20, 20, 20, 0.85);
    margin: 20px auto;
    padding: 25px;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    animation: fadeUp 1s ease;
    transition: box-shadow 1s ease;
}

h2, h3,h4 {
    color: #00e5ff;
    margin-bottom: 12px;
}
h4{
    color: #1398a7;
}

ul {
    margin-left: 20px;
}

li {
    margin: 8px 0;
}

a {
    color: #00e5ff;
    text-decoration: none;
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #00e5ff;
    left: 0;
    bottom: -4px;
    transition: width 0.3s;
}

a:hover::after {
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
}

th {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

nav {
    text-align: center;
    margin: 30px 0;
}

nav a {
    margin: 0 15px;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 15px;
    opacity: 0.7;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#profil-link {
    color: inherit;
}
#profil-link::after {
    display: none;
}
section ul li {
    padding-left: 10px;
}

section ul li::marker {
    color: #00e5ff;
}

section:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.25);
    transition: box-shadow 0.4s;
}


.profil {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
}

.profil-image img {
    width: 220px;
    border-radius: 10%;
    border: 3px solid #00e5ff;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
    transition: transform 0.4s;
}

.profil-image img:hover {
    transform: scale(1.08);
}

.profil-text {
    max-width: 600px;
}

.profil-text h2 {
    color: #00e5ff;
    margin-bottom: 15px;
    font-size: 2rem;
}

.profil-text p {
    line-height: 1.6;
    margin-bottom: 12px;
    opacity: 0.9;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-top: 0px;
    padding: 15px 25px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 7px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 5px;
}

.nav-links li a {
    padding: 10px 18px;
    border: 2px solid rgba(0, 229, 255, 0.5);
    border-radius: 10px;
    color: #00e5ff;
    font-size: 1rem;
    text-decoration: none;

    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        color 0.3s ease;
}

.nav-links li a:hover {
    background-color: rgba(18, 150, 165, 0.507);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}
.nav-links li a::after {
    display: none;
}
.nav-links a:focus-visible {
    outline: none;
}

#nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background: #00e5ff;
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    section {
        margin: 15px;
        padding: 20px;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }
    .profil {
        flex-direction: column;
        text-align: center;
    }

    .profil-image img {
        width: 180px;
    }
    .navbar {
        padding-left: 5px;
    }
     .nav-container {
        justify-content: flex-start;
        display: flex;
        width: 100%;
    }

    .menu-icon {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        padding: 0;
        margin: 0;

        background: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(0, 229, 255, 0.2);
        flex-direction: column;
        align-items: center;

        max-height: 0;
        overflow: hidden;
        transition: max-height 1s ease;
    }
    .nav-links li {
        margin: 3px 0px;
    }

    #nav-toggle:checked ~ .nav-links {
        max-height: 600px;
    }
    #nav-toggle:checked ~ .navigation{
        border-bottom: none;
    }

    #nav-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #nav-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    #nav-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

form {
    max-width: 600px;
    margin: 2rem auto 0;
}

form p {
    margin-bottom: 1.5rem;
}

form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #e0e0e0;
}

form input,
form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.25);
    background-color: #111;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input::placeholder,
form textarea::placeholder {
    color: #888;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    background-color: #0b0b0b;
}

form textarea {
    resize: vertical;
    min-height: 140px;
}

form button {
    background: linear-gradient(135deg, #00ffff, #0088ff);
    color: #000;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}