body {
    font-family: 'Roboto', sans-serif;
}

a {
    color: #827153;
}

section {
  scroll-margin-top: 60px; /* koliko želiš da spustiš sekciju */
}

.title {
    font-family: 'Amiri', serif;
}

footer {
    background: #1a1a1a;
    color: white;
    padding: 20px 0;
    text-align: center;
}

/* NAV UNDERLINE */
.nav-link {
    position: relative;
    font-weight: 500;
}
.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: #ff9900;
    transition: 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}

/* SERVICE ICONS */
.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    transition: filter 0.3s ease; /* Animacija promene boje */
}

/* HERO SECTION */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: center;
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

/* Animated background */
.animated-bg {
    position: absolute;
    inset: 0;
    background: url("images/pozadina.jpg") center/cover no-repeat;
    filter: brightness(40%);
    animation: slowZoom 10s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* CARD SECTION */
.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    opacity: 0;
    transform: scale(0.3);
    transition:
        transform 0.6s ease-out,
        opacity 0.6s ease-out;
    border-radius: 14px;
}

.card.show {
    opacity: 1;
    transform: scale(1);
}

.card:hover {
    animation: pulse 1.2s infinite;
}

/* Image zoom */
.zoom-image {
    transition: transform 0.3s ease; /* Animacija za transformaciju sa trajanjem od 0.3 sekunde */
}

/* Efekat kada je miš iznad slike */
.zoom-image:hover {
    transform: scale(1.1); /* Slika se povećava za 10% kada je miš iznad nje */
}


/* CONTACT SECTION */
.contact-icon {
    width: 28px;
    margin-right: 8px;
}

.contact-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* CONTACT FORM SECTION */
.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form .btn {
    background-color: #827153;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form .btn:hover {
    background-color: #6c5b3d;
}

.btn .contact {
    background-color: #ff9900;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background: url("images/background.jfif") center/cover no-repeat;
    filter: brightness(40%);
    animation: slowZoom 12s ease-in-out infinite alternate;
}

/* TAMNI OVERLAY */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

/* CONTACT INFO */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-info i {
    margin-right: 10px;
    color: #827153;
}

/* MAP SECTION */
.map-container {
    width: 100%;
    height: 250px;
    background-color: #e9ecef;
    margin-top: 20px;
}

/* CONTACT WRAPPER */
.contact-cards {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 20px;
    z-index: 2;
    flex-wrap: wrap;
    padding: 0 15px;
}

/* SINGLE CARD */
.contact-card {
    background: #f8f9fa;
    padding: 20px 15px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.35);
    border: 2px solid transparent;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    will-change: transform;
}

/* ===== ANIMACIJA IZ CENTRA ===== */
.animate {
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.7s ease-out;
}

.animate.show {
    opacity: 1;
    transform: scale(1);
}

/* Hover efekat */
.contact-card:hover {
    transform: scale(1.07);
    border-color: #d4af37; /* zlatna boja */
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

/* Link */
.contact-card a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.contact-card:hover a {
    color: #000;
}

/* IKONE */
.contact-card i {
    font-size: 36px;
    color: #827153;
    margin-bottom: 15px;
}

/* TEKST */
.contact-card h5 {
    color: #152333;
    margin-bottom: 10px;
}

.contact-card p {
    color: #555;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.flip-card {
    width: auto;
    height: 700px;
    perspective: 1200px;
    position: relative;
}

.flip-card-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
    transform-origin: center center;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.flip-card-front img,
.flip-card-back img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-inner {
    will-change: transform;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(212, 175, 55, 0.4);
    }
}

@media (max-width: 900px) {
    .contact-cards {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 15px;
    }

    .contact-form, .contact-info {
        margin-top: 20px;
    }

    #kontakt .row {
        flex-direction: column;
    }

    .map-container {
        height: 200px;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        padding-bottom: 3%;
    }

    .navbar-toggler {
        padding: 4px 6px;
    }
    .navbar-toggler-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .flip-card {
        width: auto;
        height: 350px;
    }

    .navbar-brand .title {
        font-size: 12px;
        line-height: 1.2;
    }

    .navbar-nav .nav-link {
        font-size: 12px;
    }
}