@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Forum&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #24204A;
    /* ljubičasta */
    --secondary: #FFD43B;
    /* žuta */
    --white: #F8F8F8;
    --dark: #252525;
    --light-bg: #F4F3F8;
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    padding: 16px;
    margin: auto;
}

section {
    margin: 80px auto;
}


#main {
    background-image: url("./img/main.png");
    min-height: 70vh;
    background-position: bottom center;
    background-size: cover;
}

nav {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 70px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-list a {
    color: var(--white);
}

.nav-list li {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    background: transparent;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    font-family: inherit;
    font-size: 16px;
}

.btn-primary {
    border: none;
    background: var(--secondary);
    color: var(--primary);
}

.menu-btn {
    display: none;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    color: var(--white);
    text-align: center;
}

.main-content .intro-heading {
    font-size: 50px;
}

.main-content .main-heading {
    font-size: 110px;
    margin-top: -20px;
}

.main-content p {
    max-width: 400px;
    margin: 10px auto 20px;
    line-height: 1.6;
}

.main-symbol {
    font-size: 60px;
}

.section-title h1,
.section-title h2 {
    font-size: 50px;
    text-align: center;
}

.section-title .line {
    width: 150px;
    height: 4px;
    background: var(--secondary);
    margin: auto;
}

#o-nama .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

#o-nama .container .about-content {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

#o-nama .container .about-content h3 {
    font-family: "Forum", sans-serif;
    font-size: 30px;
}

#o-nama .about-content h2 {
    font-size: 30px;
}

#o-nama .about-content p {
    line-height: 1.6;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    max-width: 500px;
    display: block;
    border-radius: 8px;
}

.moth-species {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.moth-card {
    width: 350px;
}

.moth-card img {
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease;
    display: block;
}

.moth-card img:hover {
    transform: scale(1.05);
}

.moth-card h3 {
    margin-top: 15px;
    margin-bottom: 8px;
}

.moth-card p {
    line-height: 1.6;
    color: #4A4A4A;
}

#ocuvanje {
    background: #F4F3F8;
    padding: 30px 0;
}

.video-wrapper {
    max-width: 900px;
    margin: 40px auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}

.video-description {
    max-width: 800px;
    margin: 20px auto 0;
    text-align: center;
    line-height: 1.7;
    color: #555;
}

#kontakt {
    min-height: 500px;
    background-image: url("./img/main.png");
    background-position: bottom center;
    background-size: cover;
    color: var(--white);
}


#kontakt .container {
    max-width: 600px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#kontakt h2 {
    font-size: 50px;
}

#kontakt>.container>p {
    max-width: 500px;
    line-height: 1.6;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

#form-message {
    color: var(--white);
    font-weight: bold;
}

footer {
    margin-top: 0;
}

footer .container {
    display: flex;
    padding: 20px 16px;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
}

.footer-links a {
    color: var(--primary);
}

.footer-logo {
    width: 70px;
}

@media screen and (max-width: 800px) {

    .nav-list {
        position: fixed;
        top: 0;
        right: -350px;
        width: 300px;
        height: 100vh;
        padding-top: 80px;
        background: var(--primary);
        z-index: 999;
        flex-direction: column;
        gap: 10px;
        transition: right 0.3s ease;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list li:not(:last-child) {
        padding: 10px 30px;
        border-bottom: 1px solid var(--white);
    }

    .menu-btn {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 30px;
        z-index: 1000;
        cursor: pointer;
    }

    .section-title h1,
    .section-title h2 {
        font-size: 38px;
    }


    #o-nama .container {
        gap: 40px;
    }

    .moth-card {
        width: 300px;
    }

    footer .container {
        flex-wrap: wrap;
    }


}

@media screen and (max-width: 520px) {

    section {
        margin: 60px auto;
    }

    .container {
        padding: 16px;
    }

    .main-content {
        margin-top: 60px;
    }

    .main-content .main-symbol {
        font-size: 110px;
        margin-top: -20px;
    }


    .main-content .intro-heading {
        font-size: 38px;
    }

    .main-content .main-heading {
        font-size: 70px;
        margin-top: -10px;
    }

    .main-content p {
        max-width: 300px;
    }

    .section-title h1 {
        font-size: 38px;
    }

    #o-nama .container {
        flex-direction: column;
        gap: 30px;
    }


    #o-nama .container .about-content {
        align-items: center;
        text-align: center;
    }

    .about-image img {
        max-width: 100%;
    }

    .moth-card {
        width: 100%;
        max-width: 350px;
    }

    #kontakt h2 {
        font-size: 40px;
    }

    footer {
        margin-top: 0;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }


}

#galerija {
    margin-top: 70px;
}

#galerija .section-title {
    text-align: center;
    margin-bottom: 50px;
}

#galerija .section-title h1 {
    font-family: "Forum", sans-serif;
    font-size: 52px;
    margin-bottom: 12px;
}

#galerija .section-title .line {
    width: 150px;
    height: 4px;
    background: var(--secondary);
    margin: 0 auto 25px;
}

#galerija .section-title p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.7;
    color: #4A4A4A;
}

.gallery-page header {
    background: var(--primary);
}

.gallery-page header .container {
    padding-top: 16px;
    padding-bottom: 16px;
}

.gallery-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}


.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-sources {
    max-width: 850px;
    margin: 70px auto 20px;
    padding: 30px 35px;
    background: var(--light-bg);
    border-radius: 10px;
}

.gallery-sources h2 {
    font-size: 28px;
    margin-bottom: 22px;
}

.gallery-sources p {
    font-size: 17px;
    line-height: 1.7;
    color: #4A4A4A;
    margin-bottom: 18px;
}

.gallery-sources p:last-child {
    margin-bottom: 0;
}

.gallery-sources a {
    color: var(--primary);
    font-weight: 600;
}

.gallery-sources a:hover {
    color: #5a518e;
    text-decoration: underline;
}



@media screen and (max-width: 800px) {

    .menu-btn {
        display: block;
        position: fixed;
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        padding: 10px;
        background: var(--primary);
        border-radius: 50%;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
        z-index: 1000;
        cursor: pointer;
    }

    .main-content .main-symbol {
        font-size: 70px;
        margin-top: -10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #galerija .section-title p {
        font-size: 18px;
    }

    .gallery-sources {
        margin-top: 55px;
        padding: 25px;
    }

}

@media screen and (max-width: 520px) {

    #galerija {
        margin-top: 50px;
    }

    #galerija .section-title {
        margin-bottom: 40px;
    }

    #galerija .section-title h1 {
        font-size: 38px;
    }

    #galerija .section-title p {
        font-size: 17px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item img {
        height: 220px;
    }

    .gallery-sources {
        margin-top: 50px;
        padding: 25px 20px;
    }

    .gallery-sources h2 {
        font-size: 24px;
    }

    .gallery-sources p {
        font-size: 16px;
        line-height: 1.6;
    }

}
