@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');


:root {
    --color-primary: #02a1df;
    /* --color-primary-vairant: #f9ea21; */
    --color-primary-vairant: #ffcd56;
    --color-gray-0: #f3f6f7;
    --color-gray-50: #d6e1e6;
    --color-gray-100: #bdcdd4;
    --color-gray-200: #a0b2b9;
    --color-gray-300: #8ea3ac;
    --color-gray-400: #7a8b93;
    --color-gray-500: #5a6d75;
    --color-gray-600: #3f4d53;
    --color-gray-700: #2a3439;
    --color-gray-800: #182023;
    --color-gray-900: #080b0c;
    --color-danger: #c72156;
    /* --color-success: #06c4c4; */
    --color-success: #25a6a2;
    --color-info: #ffcd56;
    --color-purple: rgb(166, 27, 191);

    --transition: all 300ms ease;

    --radius-1: 0.4rem;
    --radius-2: 0.8rem;
    --radius-3: 1.2rem;
    --radius-4: 1.6rem;
    --radius-5: 2rem;
    --radius-6: 4rem;

    --container-w-lg: 84%;
    --container-w-md: 92%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    outline: 0;
    list-style: none;
    text-decoration: none;
    user-select: none;
}

html {
    font-size: 14px;
}

::-webkit-scrollbar {
    width: 0.5rem;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--color-gray-600);
    line-height: 1.6;
    background: var(--color-gray-50);
    font-weight: 500;
}

.dark {
    --color-gray-0: #080b0c;
    --color-gray-50: #182023;
    --color-gray-100: #2a3439;
    --color-gray-200: #33414f;
    --color-gray-300: #576471;
    --color-gray-400: #707d8b;
    --color-gray-500: #8e9cac;
    --color-gray-600: #a6acb1;
    --color-gray-700: #c8ccd2;
    --color-gray-800: #e7e6ed;
    --color-gray-900: #f9fbfc;
}

.container {
    width: var(--container-w-lg);
    margin-inline: auto;
}

a {
    color: var(--color-gray-900);
    transition: var(--transition);
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-gray-900);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.1rem;
}

h4 {
    font-size: 0.92rem;
}

h5 {
    font-size: 0.86rem;
}

h6 {
    font-size: 0.7rem;
}

button {
    cursor: pointer;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    width: fit-content;
    padding: 1.3rem 2.5rem;
    background: var(--color-gray-0);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-3);
    box-shadow: 0 0.7rem 0 var(--color-gray-100);
}

.btn.primary {
    background: var(--color-primary);
    color: var(--color-gray-0);
}

.btn:hover {
    background: var(--color-gray-900);
    color: var(--color-gray-0);
    box-shadow: none;
}









/* ==================== NAVBAR ==================== */
nav {
    background: var(--color-primary);
    box-shadow: 0 0.5rem 0 rgba(0, 0, 0, 0.1);
    min-width: 100vw;
    height: 4rem;
    display: grid;
    place-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
}

body.dark nav {
    box-shadow: 0 0.5rem 0 rgba(255, 255, 255, 0.1);
}

.nav__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nav__menu {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.nav__menu-open, .nav__menu-close {
    font-size: 2rem;
    color: var(--color-gray-0);
    display: none;
}

nav a {
    color: var(--color-gray-0);
}




.nav__logo {
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    height: 4rem;
}


.nav__logo-img {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: contain;
    flex-shrink: 0;
}






nav a:hover {
    color: var(--color-primary-vairant);
}

nav a.active {
    color: var(--color-primary-vairant);
}

.theme__btn {
    color: var(--color-gray-0);
    font-size: 1.5rem;
}

.theme__btn:hover {
    color: var(--color-primary-vairant);
}








/* ==================== PAGE HEADER ==================== */
.page__header {
    height: 15rem;
    background: url(./slike/kape.jpg) center center/cover;
    display: grid;
    place-items: center;
    margin: 4rem 0;
    position: relative;
}

.page__header::before {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    background: #030f1b;
    opacity: 0.75;
}

.page__header-content {
    width: 50%;
    text-align: center;
    z-index: 1;
}

.page__header-content * {
    color: white;
}

.page__header-content h2 {
    margin-bottom: 0.7rem;
}













/* ==================== FOOTER ==================== */
footer {
    border-top: 0.5rem solid var(--color-gray-0);
}

footer * {
    color: var(--color-gray-900);
}

.footer__container {
    padding: 5rem 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__menu, .footer__socials {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.footer__socials a {
    background: var(--color-gray-0);
    height: 3rem;
    aspect-ratio: 1/1;
    border-radius: var(--radius-3);
    display: grid;
    place-items: center;
}

.footer__socials a i {
    font-size: 1.2rem;
    color: var(--color-gray-900);
}

.footer__copyright {
    text-align: center;
    display: block;
    padding: 1.5rem;
    border-top: 4px solid var(--color-gray-300);
}











/* ==================== MEDIA QUERIES (small screens) ==================== */
@media screen and (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1rem;
    }

    .btn {
        padding: 1.5rem;
        font-size: 0.8rem;
    }

    .container {
        width: var(--container-w-md);
    }

    .nav__content {
        gap: 3rem;
    }

    .nav__menu {
        position: fixed;
        top: 4rem;
        right: 4%;
        flex-direction: column;
        gap: 0;
        width: 16rem;
        display: none;
        perspective: 200px;
    }

    .nav__menu a {
        background: linear-gradient(var(--color-gray-800), var(--color-gray-700));
        color: var(--color-gray-0);
        height: 4rem;
        display: grid;
        place-items: center;
        width: 100%;
        box-shadow: -2rem 4rem 3rem rgba(0, 0, 0, 0.2);
        animation: animation1 300ms ease forwards;
        transform: rotateX(90deg);
        opacity: 0;
        transform-origin: top;
    }

    .nav__menu a:nth-child(2) {
        animation-delay: 300ms;
    }

    .nav__menu a:nth-child(3) {
        animation-delay: 550ms;
    }

    .nav__menu a:nth-child(4) {
        animation-delay: 750ms;
    }

    .nav__menu a:nth-child(5) {
        animation-delay: 900ms;
    }

    .nav__menu a:nth-child(6) {
        animation-delay: 1050ms;
    }

    @keyframes animation1 {
        to {
            transform: rotateX(0);
            opacity: 1;
        }
    }

    .nav__menu a.active {
        background: var(--color-primary);
        color: var(--color-gray-0);
    }

    .nav__menu-open {
        display: inline-block;
    }

    .page__header {
        height: 20rem;
    }

    .page__header-content {
        width: var(--container-w-md);
    }

    .footer__container {
        flex-direction: column;
        gap: 5rem;
    }

    .footer__menu {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer__socials {
        gap: 2rem;
    }
}








#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    position: relative;
    width: 70px;
    height: 70px;
}

.loader-spinner::before,
.loader-spinner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
}

.loader-spinner::before {
    border-top-color: #02a1df;
    border-bottom-color: #02a1df;
    animation: spin 1.1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.loader-spinner::after {
    border-left-color: rgba(2, 161, 223, 0.25);
    border-right-color: rgba(2, 161, 223, 0.25);
    animation: spin 1.6s linear infinite reverse;
}

.loader-text {
    margin-top: 18px;
    font-size: 14px;
    letter-spacing: 1px;
    color: #02a1df;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.85;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


