body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

@font-face {
    font-family: Kudos;
    src: url(font/edosz.ttf);
}

@font-face {
    font-family: Geek;
    src: url(font/Roadgeek\ 2005\ Mittelschrift.ttf);
}

header {
    width: 100%;
    height: 100%;
    font-size: 37pt;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(slike/sator.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

nav {
    display: none;
}

.hero_logo {
    height: 135px;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero_logo:hover {
    transform: scale(1.1);
}

#hero {
    height: fit-content;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    color: white;
    text-align: left;
    margin-right: auto;
    padding-left: 80px;
}

.strijela {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    width: 50px;
    height: 50px;
}

h1 {
    font-family: Kudos;
    padding-top: 270px;
}

.text {
    width: 100%;
    height: 100vh;
    font-size: 43pt;
    font-family: Geek;
    background-image: url(slike/suma.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

#Moto {
    position: relative;
}

#Staze {
    width: 100%;
    height: 100vh;
    background-image: url(slike/staza.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 80px;
    box-sizing: border-box;
    position: relative;
    padding-bottom: 175px;
}

.brum {
    width: 550px;
    padding: 0;
    font-family: Geek;
}

.brum p {
    margin: 0;
    text-align: left;
    color: white;
    font-size: 16pt;
}

#Dozivi {
    width: 100%;
    height: 100vh;
    font-size: 12pt;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(slike/njemacka.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 150px 0;
    box-sizing: border-box;
}

.opis_text {
    width: 475px;
    height: calc(100vh - 300px);
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 30px;
    box-sizing: border-box;
    overflow-y: auto;
    font-family: Geek;
}

.opis_text h1 {
    padding-top: 0;
    margin: 0 0 20px 0;
    font-size: 18pt;
    color: black;
    font-family: Geek;
}

.opis_text p {
    margin: 0;
    text-align: left;
    color: black;
    line-height: 1.8;
    font-size: 14pt;
}

.section-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-arrow-up {
    top: 30px;
}

.section-arrow-down {
    bottom: 30px;
}

.section-arrow:hover {
    transform: translateX(-50%) translateY(-5px);
}

.section-arrow-down:hover {
    transform: translateX(-50%) translateY(5px);
}

.section-arrow svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#Kontakti {
    width: 100%;
    height: 100vh;
    background-image: url(slike/kontakti.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.kontakt-content .saznaj-vise {
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.kontakt-content .saznaj-vise::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.kontakt-content .saznaj-vise:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.kontakt-content .saznaj-vise:hover::after {
    width: 100%;
}

.back-arrow {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-arrow:hover {
    transform: translateX(-50%) translateY(-5px);
}

.kontakt-content {
    text-align: center;
    color: white;
    font-family: Geek;
    font-size: 27pt;
}

/* Modal stilovi */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 3% auto;
    padding: 0;
    border: none;
    width: 85%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.4s ease;
}

.modal-header {
    background: linear-gradient(135deg, #4b6551 0%, #d7dcd8 100%);
    padding: 30px 40px;
    position: relative;
}

.close {
    color: white;
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
}

.modal-title {
    font-family: Geek;
    font-size: 32px;
    margin: 0;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.modal-description {
    font-family: Geek;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(42, 127, 255, 0.05);
    border-left: 4px solid hsl(125, 80%, 24%);
    border-radius: 8px;
}

.modal-map {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.saznaj-vise {
    color: hwb(221 8% 25%);
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.saznaj-vise::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: hwb(135 0% 37%);
    transition: width 0.3s ease;
}

.saznaj-vise:hover {
    color: hwb(135 0% 37%);
    transform: translateX(5px);
}

.saznaj-vise:hover::after {
    width: 100%;
}

.link{
    color: lab(100% 0.01 -0.01);
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

.link:hover {
    background-color: rgba(255, 255, 255, 0.038);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.469);
}

@media (max-width: 1024px) {
    header {
        font-size: 28pt;
    }

    #hero {
        width: 70%;
        padding-left: 40px;
    }

    h1 {
        padding-top: 200px;
    }

    .text {
        font-size: 32pt;
    }

    .brum {
        width: 400px;
        padding: 30px;
    }

    .brum p {
        font-size: 13pt;
    }

    .opis_text {
        width: 400px;
        padding: 30px 20px;
    }

    .kontakt-content {
        font-size: 22pt;
    }
}

@media (max-width: 768px) {
    header {
        font-size: 22pt;
        background-position: center;
    }

    .hero_logo {
        height: 100px;
        top: 15px;
        right: 15px;
    }

    #hero {
        width: 85%;
        padding-left: 30px;
    }

    h1 {
        padding-top: 150px;
    }

    .text {
        font-size: 26pt;
        text-align: center;
        padding: 0 20px;
    }

    #Staze {
        justify-content: center;
        padding-right: 0;
    }

    .brum {
        width: 85%;
        max-width: 400px;
        padding: 25px;
        margin: 0 auto;
    }

    .brum p {
        font-size: 12pt;
        line-height: 1.2px;
        margin-right: 60px;
    }

    #Dozivi {
        padding: 100px 0;
    }

    .opis_text {
        width: 85%;
        max-width: 400px;
        height: auto;
        min-height: 400px;
        padding: 25px 20px;
    }

    .opis_text p {
        font-size: 12pt;
    }

    .modal-content {
        width: 90%;
        margin: 10% auto;
    }

    .modal-header {
        padding: 20px 25px;
    }

    .modal-body {
        padding: 25px;
    }

    .modal-title {
        font-size: 26px;
    }

    .modal-description {
        font-size: 15px;
        padding: 20px;
    }

    .modal-map {
        height: 300px;
    }

    .kontakt-content {
        font-size: 18pt;
        padding: 0 20px;
    }

    .section-arrow,
    .back-arrow {
        transform: scale(0.8) translateX(-50%);
    }
}

@media (max-width: 480px) {
    header {
        font-size: 18pt;
    }

    .hero_logo {
        height: 80px;
        top: 10px;
        right: 10px;
    }

    #hero {
        width: 90%;
        padding-left: 20px;
    }

    h1 {
        padding-top: 120px;
    }

    .text {
        font-size: 20pt;
    }

    .brum {
        width: 90%;
    }

    .brum p {
        font-size: 11pt;
        line-height: 1.7;
        margine-r
    }

    .opis_text {
        width: 90%;
        padding: 20px 15px;
    }

    .opis_text p {
        font-size: 11pt;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-description {
        font-size: 14px;
        padding: 15px;
    }

    .modal-map {
        height: 250px;
    }

    .close {
        right: 15px;
        top: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }

    .kontakt-content {
        font-size: 16pt;
    }

    .section-arrow,
    .back-arrow {
        transform: scale(0.7) translateX(-50%);
    }
}

@media (max-width: 768px) {
    nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 1002;
        padding: 10px 0;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .logo {
        height: 40px;
        margin-bottom: 10px;
    }

    .nav_a {
        color: white;
        text-decoration: none;
        margin: 0 10px;
        font-family: Geek;
        font-size: 12px;
        padding: 5px 0;
    }

    .block {
        display: block;
        height: 70px;
    }

    .hero_logo {
        display: none;
    }
}