:root {
    --bg: #0f0f0f;
    --text: #e6e6e6;
    --accent: #d3b76d;
}

/* Reset i osnovno */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--text);
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left:0;
    width: 100%; height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    width: 60px; height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 10px;
    border: 3px solid #1a1a1a;
}

/* Header / Navbar */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header.scrolled .navbar {
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
}

.logo img {
    max-height: 100px;
    transition: transform 0.25s ease;
}
.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--accent); 
    transition: width 0.3s ease;
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 20px;
}
.social-icons a {
    color: white;
    font-size: 18px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-2px);
    opacity: 0.8;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s ease;
}

/* MOBILE */
@media (max-width: 768px) {

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        height: calc(100vh - 80px);
        width: 250px;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 40px;
        gap: 25px;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .social-icons {
        display: none; /* optional */
    }

    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Kontakt box */
.contact-box {
    max-width: 650px;
    margin: 180px auto 100px auto; /* više razmaka od navbar */
    padding: 50px 35px;
    border: 2px solid var(--accent);
    border-radius: 15px;
    text-align: center;
    background-color: rgba(255,255,255,0.05); /* lagano svijetli pravokutnik */
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.contact-box h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--accent);
    position: relative;
}

/* Kontakt itemi */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}
.contact-item:hover {
    transform: translateY(-3px);
}
.contact-item i {
    color: var(--accent);
    font-size: 1.8rem;
}
.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-item a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
        height: auto;
    }
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .social-icons {
        margin-top: 15px;
    }

    .contact-box {
        margin: 150px 20px 60px 20px;
        padding: 35px 20px;
    }

    .contact-item {
        flex-direction: column;
        font-size: 1rem;
    }

    .contact-item i {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-box h2 {
        font-size: 1.8rem;
    }
}
