* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #c5d2e4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: whitesmoke;
}

.inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 1.2rem 2rem;
}

header,
footer {
    background-color: #1E2A3A;
    width: 100%;
}

.img-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

header .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.header-logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: #22D6F3;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #c5d2e4;
    transition: color 0.5s ease;
}

nav a:hover {
    color: #22D6F3;
}

.hero {
    background-color: #0F1628;
    width: 100%;
}

.hero .inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    padding: 4rem 2rem;
}

.hero-sadrzaj {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-sadrzaj h1 {
    color: whitesmoke;
    line-height: 1;
    font-size: 2.3rem;
}

.hero-sadrzaj p {
    max-inline-size: 26rem;
}

.hero-sadrzaj .gumb {
    text-decoration: none;
    background-color: #22D6F3;
    padding: 0.8rem 2rem;
    border-radius: 0.5rem;
    color: #0F1628;
    font-weight: 600;
    align-self: flex-start;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease,
        opacity 0.3s ease,
        box-shadow 0.3s ease;
}

.hero-sadrzaj .gumb:hover {
    transform: scale(1.05);
    opacity: 0.8;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.4);
}

.hero-slika {
    border-radius: 1rem;
    overflow: hidden;
    width: 500px;
    height: 400px;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-slika:hover {
    transform: rotate(1deg) translateY(-0.5rem);
}

main {
    flex: 1;
    color: black;
}

main .inner {
    padding: 4rem 2rem;
}

main h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.usluge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.kartica {
    display: flex;
    flex-direction: column;
    background-color: rgb(238, 238, 238);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

.kartica:hover {
    transform: scale(1.01) translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.kartica-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.kartica-info h3 {
    font-size: 1.2rem;
}

footer p {
    text-align: center;
}

@media (max-width: 1024px) {
    .hero-slika {
        width: 380px;
        height: 300px;
    }

    .usluge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header .inner {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    nav {
        flex-wrap: wrap;
        justify-content: space-evenly;
        width: 100%;
        gap: 1rem;
    }

    .hero .inner {
        flex-direction: column;
        padding: 3rem 2rem;
        align-items: flex-start;
    }

    .hero-sadrzaj h1 {
        font-size: 1.8rem;
    }

    .hero-sadrzaj p {
        max-inline-size: 100%;
    }

    .hero-slika {
        width: 100%;
        height: 280px;
    }

    .usluge-grid {
        grid-template-columns: 1fr;
    }

    main h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .inner {
        padding: 1rem 1.2rem;
    }

    .hero .inner {
        padding: 2rem 1.2rem;
    }

    main .inner {
        padding: 2.5rem 1.2rem;
    }

    .hero-sadrzaj h1 {
        font-size: 1.5rem;
    }

    .hero-sadrzaj .gumb {
        align-self: stretch;
        text-align: center;
    }

    .hero-slika {
        height: 220px;
    }

    nav {
        gap: 0.75rem;
    }
}