/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-black: #000000;
    --bg-card: #0a0a0a;
    --border-gray: #222222;
    --text-pure-white: #ffffff;
    --text-off-white: #a0a0a0;
    --accent-white: #ffffff;
    --radius: 16px; /* Zaobljeni kutovi */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-black);
    color: var(--text-pure-white);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Navigacija (Sticky & Glass) --- */
.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-gray);
}

.logo p {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo span { color: var(--text-off-white); font-weight: 300; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-off-white);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--text-pure-white); }

/* --- Globalni Kontejner --- */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Hero Sekcija (Index.html) --- */
.hero {
    width: 100%;
    height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #111111 0%, #000000 100%);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    background: linear-gradient(180deg, #fff, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Kartice & Glassmorphism --- */
.card-glass {
    background: var(--bg-card);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: var(--transition);
}

.card-glass:hover {
    border-color: #444;
    transform: translateY(-5px);
}

/* --- Galerija (Galerija.html) --- */
.section-title { margin-bottom: 3rem; font-size: 2.5rem; text-align: center; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
}

.gallery-item {
    text-align: center;
    padding: 1rem;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: var(--transition);
}

.gallery-item:hover img { filter: grayscale(0%); }

/* --- Vještine (Kodiranje.html) --- */
.skills-wrapper { width: 100%; max-width: 600px; }

.skill { margin-bottom: 1.5rem; width: 100%; }

.skill span { display: block; margin-bottom: 0.5rem; font-weight: 600; }

.bar {
    width: 100%;
    height: 8px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--text-pure-white);
    border-radius: 10px;
}

/* --- Kontakt (Kontakt.html) --- */
.contact-card { width: 100%; max-width: 500px; }

form { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

input, textarea {
    padding: 1rem;
    background: #111;
    border: 1px solid var(--border-gray);
    color: white;
    border-radius: var(--radius);
    outline: none;
}

input:focus, textarea:focus { border-color: var(--text-pure-white); }

/* --- Opis (Opis.html) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.about-text p { margin-bottom: 1rem; color: var(--text-off-white); }

.floating-img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border-gray);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* --- Gumbi --- */
.hero-btns { display: flex; gap: 1rem; margin-top: 2rem; }

.btn-primary, .btn-secondary {
    padding: 0.8rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--text-pure-white);
    text-align: center;
}

.btn-primary { background: var(--text-pure-white); color: black; }

.btn-primary:hover { background: transparent; color: white; }

.btn-secondary { background: transparent; color: white; border-color: var(--border-gray); }

.btn-secondary:hover { border-color: white; }

/* --- Pomoćni link izvan body-a --- */
a[href="../treca.html"] {
    text-align: center;
    color: var(--text-off-white);
    text-decoration: none;
    font-size: 0.8rem;
    padding: 10px;
    width: 100%;
}

/* --- Responzivnost --- */
@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .nav-links { display: none; } /* Ovdje obično ide JS hamburger */
    .about-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
}