/* --- OSNOVNI STILOVI I VARIJABLE --- */
:root {
    --bg-color: #000000;
    --text-color: #EAEAEA;
    --text-muted: #A0A0A0;
    --border-color: #2a2a2a;
    --border-highlight: #666666;
    --primary-accent: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

/* --- GLOBALNI ELEMENTI --- */
.content-section {
    padding: 120px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--primary-accent);
}

/* --- POZADINSKA ANIMACIJA --- */
#background-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: #000;
    opacity: 0.65;
}

/* --- NAVBAR (bez promjena) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active-link {
    color: var(--primary-accent);
}

.nav-link-button {
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link-button:hover {
    background-color: var(--primary-accent);
    color: var(--bg-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* --- HERO SEKCIJA (bez promjena) --- */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: clamp(6rem, 20vw, 18rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.05em;
    line-height: 0.8;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color);
    background-color: transparent;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-accent);
    color: var(--bg-color);
    border-color: var(--primary-accent);
}

.scroll-down {
    position: absolute;
    bottom: 80px;
    animation: bounce 2s infinite;
    z-index: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* --- O NAMA --- */
#about {
    border-bottom: 1px solid var(--border-color);
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.7;
}

/* --- USLUGE --- */
#services {
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.service-card {
    border: 1px solid var(--border-color);
    padding: 40px;
    background-color: transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
}

.services-grid>.service-card:first-child {
    border-left: 1px solid var(--border-color);
}

.service-card:hover {
    background-color: #050505;
}

.service-card.highlighted {
    border-color: var(--border-highlight);
}

.service-card-content {
    z-index: 2;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-card-icon {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 150px;
    height: 150px;
    z-index: 1;
    opacity: 0.1;
    color: var(--text-muted);
    transition: opacity 0.3s ease;
}

.service-card:hover .service-card-icon {
    opacity: 0.2;
}

/* --- PORTFOLIO --- */
#portfolio {
    border-bottom: 1px solid var(--border-color);
}

.portfolio-list .portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-list .portfolio-item:first-child {
    padding-top: 0;
}

.portfolio-list .portfolio-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.portfolio-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.portfolio-info h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.portfolio-video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 16px;
    background-color: #000;
}

.portfolio-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* NOVO: Stilovi za sliku u portfoliju */
.portfolio-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

/* NOVO: Stil za link u portfoliju */
.portfolio-link {
    display: inline-block;
    margin-top: 20px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: var(--primary-accent);
}

/* --- KONTAKT --- */
#contact h2 {
    font-size: 2.2rem;
}

#contact p {
    max-width: 600px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

#contact .cta-button {
    display: block;
    max-width: 280px;
    margin: 0 auto;
    text-align: center;
}

/* --- FOOTER --- */
footer {
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.footer-logo {
    font-weight: bold;
    color: var(--text-color);
}

/* --- RESPONZIVNOST --- */
@media(max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        height: 100vh;
        transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 25px 0;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero-title img{
        width: 300px;
    }

    .portfolio-list .portfolio-item {
        grid-template-columns: 1fr;
    }

    .services-grid>.service-card,
    .services-grid>.service-card:first-child {
        border-left: 1px solid var(--border-color);
        border-top: none;
    }

    .services-grid>.service-card:first-child {
        border-top: 1px solid var(--border-color);
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- BACK TO TOP GUMB --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background-color: #2a2a2a;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}