/* Hero sekcija sa fiksiranom pozadinom (parallax efekat) */
.hero {
    position: relative;
    min-height: 80vh;
    width: 100%;
    background-image: url('../slike/pozadina-sekcija1-min.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Zatamnjenje pozadine */
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Kontejner širine oko 70% u sredini */
.hero-container {
    position: relative;
    z-index: 2;
    width: 70%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

/* Leva kolona */
.hero-left {
    flex: 1 1 50%;
    color: var(--bela);
    will-change: transform;
}

.hero-title {
    font-family: var(--font-naslovi);
    font-size: clamp(56px, 8.5vw, 105px);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: 1px;
    color: var(--zuta);
    margin-bottom: 14px;
}

.hero-subtitle {
    font-family: var(--font-naslovi);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 500;
    color: var(--bela);
    margin-bottom: 14px;
    text-transform: none;
}

.hero-text {
    font-family: var(--font-tekst);
    font-size: 15px;
    font-weight: 300;
    color: var(--bela);
    max-width: 540px;
    margin-bottom: 24px;
}

/* Dugmad */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-tekst);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none;
    border-radius: 3px;
    transition: transform 0.2s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-crvena {
    background-color: var(--crvena);
    color: var(--bela);
    border: 1px solid var(--crvena);
}

.btn-crvena:hover {
    background-color: #c8161b;
}

.btn-crna {
    background-color: var(--crna);
    color: var(--zuta);
    border: 1px solid var(--zuta);
}

.btn-crna:hover {
    background-color: var(--zuta);
    color: var(--crna);
}

/* Broj telefona ispod dugmadi */
.hero-phone {
    display: inline-block;
    font-family: var(--font-naslovi);
    font-size: 32px;
    font-weight: 700;
    color: var(--zuta);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.hero-phone:hover {
    text-decoration: underline;
}

/* Desna kolona: rotirajuća pica */
.hero-right {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
}

.rotating-pizza {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    animation: sporaRotacija 32s linear infinite;
}

@keyframes sporaRotacija {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* RESPONZIVNOST */
@media (max-width: 1100px) {
    .hero-container {
        width: 85%;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 50px 0;
        background-attachment: scroll;
    }

    .hero-container {
        width: 90%;
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: none !important;
    }

    .hero-right {
        transform: none !important;
    }

    .hero-buttons {
        justify-content: center;
    }

    .rotating-pizza {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .hero-buttons .btn {
        font-size: 16px;
        padding: 12px 22px;
    }
}

@media (max-width: 480px) {
    .hero-phone {
        font-size: 26px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}