/* =========================
   FONTS
========================= */

@font-face {
    font-family: "Bimini";
    src: url("/fonts/Bimini%20Normal/Bimini%20Normal.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DIN Regular";
    src: url("/fonts/DIN-Regular/DIN-Regular.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}


/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "DIN Regular", "Arial Narrow", "Segoe UI", sans-serif;
    background: #f4f4f4;
    color: #2d2d2d;
}

/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px);
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;

    background: linear-gradient(
        10deg,
        rgba(187,128,0,0.95),
        rgba(187,128,0,0.65)
    );

    backdrop-filter: blur(6px);
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    z-index: 1000;
}

.logo {
    height: 70px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.header-title {
    font-size: 24px;
    font-weight: 700;
}

.header-subtitle {
    font-size: 16px;
    margin-top: 5px;
}

.header-right a {
    text-decoration: none;
    color: #2d2d2d;
    font-weight: 600;
    margin-left: 50px;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    margin-top: 150px;
    min-height: 85vh;

    background: url("../backgrounds/section-bg-01.jpg") center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 80px;
}

/* =========================
   iOS CARD (HERO + PROJECT)
========================= */

.hero-box,
.project-box {
    position: relative;
    border-radius: 50px;
    background: rgba(187,128,0,0.5);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 20px 40px rgba(0,0,0,0.14);

}

/* iOS asymmetric border */
.hero-box::before,
.project-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.95) 0%,
            rgba(255,255,255,0.85) 25%,
            rgba(255,255,255,0.35) 55%,
            rgba(0,0,0,0.10) 100%
        );

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    padding: 1.6px;
}

/* iOS top light line */
.hero-box::after,
.project-box::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 10px;
    right: 10px;
    height: 1px;

    background: linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,0.9),
        rgba(255,255,255,0)
    );
    pointer-events: none;
}


/* =========================
   HERO CONTENT
========================= */

.hero-box {
    max-width: 800px;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: -50px;
}

/* SAZ overlay */
.hero-saz {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 500px;
    pointer-events: none;
    transform: translateY(-0px);
}

.hero-promo {
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);

    z-index: 0; /* ⬅️ KLJUČNO */

    font-family: "DIN Regular", "Arial Narrow", sans-serif;
    font-size: 40px;
    font-weight: 700;
    border-radius: 40px;

    color: #b03434;
    padding: 10px 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    white-space: nowrap;
}

@keyframes promoBlink {
    0%   { opacity: 1; }
    50%  { opacity: 0.15; }
    100% { opacity: 1; }
}

.hero-promo {
    animation: promoBlink 1.4s infinite;
}


.saz {
    font-family: "Bimini", serif;
    font-size: 500px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    animation: sazFadeIn 0.8s forwards;
}

.saz.s {
    color: rgba(255,255,255,0.8);
    animation-delay: 0.2s;
}

.saz.a {
    color: rgba(155,187,89,0.8);
    animation-delay: 0.6s;
}

.saz.z {
    color: rgba(255,255,255,0.8);
    animation-delay: 1s;
}

@keyframes sazFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   PROJECTS
========================= */

.projects {
    position: relative;
    padding: 0px 20px 10px;
    background: rgba(236,228,217,1.0);
}

.projects::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
}

.projects-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    padding: 20px 0 30px;
}

/* project layout */
.project-box {
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 25px;
    
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
}

.project-text {
    order: 1;
    font-size: 16px;
    line-height: 1.6;
    margin-left: 25px;
    margin-top: 8px;
    pointer-events: none;
}

.project-box img {
    order: 2;
    width: 100%;
    border-radius: 25px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .site-header {
        top: 10px;
        height: auto;
        padding: 12px 16px;
        border-radius: 20px;

        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        row-gap: 6px;
    }

    .logo {
        height: 45px;
    }

    .header-left {
        grid-column: 1;
        grid-row: 1;
    }

    .header-center {
        grid-column: 1 / -1;
        grid-row: 2;
        position: static;
        transform: none;
        text-align: center;
        pointer-events: auto;
        display: block;
    }

    .header-title {
        font-size: 14px;
        font-weight: 700;
    }

    .header-subtitle {
        font-size: 12px;
        margin-top: 2px;
    }

    .header-right {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (max-width: 768px) {

    .hero-saz {
        display: flex;
        flex-direction: column;
        gap: 8px;

        z-index: 30;
        transform: translateY(-50px);
    }

    .saz {
        font-size: 140px;
    }

    .hero-promo {
        position: relative;
        top: 0;
        left: 0;
        transform: none;

        z-index: 35; /* ⬅️ IZNAD SVEGA */

        font-size: 14px;
        padding: 6px 14px;
        border-radius: 999px;
        background: rgba(255,255,255,0.9);
    }

    .hero-box {
        margin: 0 12px;
        padding: 16px;
        font-size: 15px;
        font-weight: 400;
        border-radius: 22px;
    }
}


@media (max-width: 768px) {

    .project-box {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 14px;
        border-radius: 22px;
    }

    .project-text {
        order: 1;
        font-size: 14px;
        line-height: 1.5;
    }

    .project-box img {
        order: 2;
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    .hero-promo {
        top: -40px;
        font-size: 14px;
        padding: 6px 14px;
    }
}


/* =========================
   CONTACT
========================= */

.contact {
    padding: 10px 10px;
    text-align: center;
}

.contact-box {
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* =========================
   FOOTER
========================= */

.footer {
    padding: 20px;
    text-align: center;
    background: linear-gradient(
        10deg,
        rgba(187,128,0,0.9),
        rgba(187,128,0,0.6)
    );
    color: #2d2d2d;
}

.footer a {
    text-decoration: none;
    color: #2d2d2d;
}

/* =========================
   GALLERY (FULLSCREEN – FIX)
========================= */

.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;

    display: none;              /* ⬅️ KLJUČNO */
    align-items: center;
    justify-content: center;
}

.gallery-modal.active {
    display: flex;              /* ⬅️ KLJUČNO */
}

.gallery-content {
    max-width: 100vw;
    max-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    display: block;
}

.close {
    position: fixed;
    top: 25px;
    right: 30px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
}


/* iOS asymmetric edge – minimal, bez promjene dizajna */
.hero-box::before,
.project-box::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    

    /* iOS-style: 4 strane, 2 boje */
    background:
        /* TOP */
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.95),
            rgba(255,255,255,0) 20%
        ),
        /* LEFT */
        linear-gradient(
            to right,
            rgba(255,255,255,0.95),
            rgba(255,255,255,0) 20%
        ),
        /* BOTTOM */
        linear-gradient(
            to top,
            rgba(0,0,0,0.30),
            rgba(0,0,0,0) 20%
        ),
        /* RIGHT */
        linear-gradient(
            to left,
            rgba(0,0,0,0.30),
            rgba(0,0,0,0) 20%
        );

    /* izreži u pravi rub */
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    padding: 1.5px;
}

.fullscreen-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    margin: auto;
    display: block;
}

/* =========================
   MOBILE MENU
========================= */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: #2d2d2d;
    border-radius: 2px;
}

/* mobile menu panel */
.mobile-menu {
    display: none;
    position: fixed;
    top: 90px;
    right: 20px;
    background: rgba(245,246,247,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    z-index: 3000;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: #2d2d2d;
    font-size: 18px;
    font-weight: 600;
}

/* =========================
   MOBILE ONLY
========================= */

@media (max-width: 768px) {

    .header-right a {
        display: none; /* sakrij desktop linkove */
    }

    .menu-toggle {
        display: flex;
    }
}
