@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap");
/* General Styles */
body {
    font-family: "Bai Jamjuree", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}
input[type="text"] {
    font-family: 'Bai Jamjuree', sans-serif;
}
input[type="email"] {
    font-family: 'Bai Jamjuree', sans-serif;
}
input[type="text"], textarea {
    font-family: 'Bai Jamjuree', sans-serif;
}
header {
    background-color: #f85a36;
    color: #fff;
    padding: 1em 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s forwards;
    z-index: 1001; /* Ensure header is above other content */
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 1002; /* Ensure nav items are above other content */
    position: relative;
}

nav ul li {
    margin: 0 15px;
}

/* Padajuci meni u navbar */
.dropdown {
    position: relative;
    display: inline-block;
    font-family: "Bai Jamjuree", sans-serif;

}

.dropbtn {
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* Add space for the arrow */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Bai Jamjuree", sans-serif;

}

.dropbtn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
    
}

/* Dropdown Menu Styles */
.dropdown-content {
    display: none;
    position: absolute;
    left: 0; /* Ensure dropdown appears directly below the button */
    right: 0;
    top: 100%; /* Position below the dropdown button */
    z-index: 1003; /* Ensure dropdown content is above other sections */
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.6); /* Optional: Background color for better visibility */
    font-family: "Bai Jamjuree", sans-serif; /* Apply the desired font */
    align-items: center;
    max-width: 160px;
    margin: auto;
}

.dropdown.show .dropdown-content {
    display: flex;
    flex-direction: column;
    font-family: "Bai Jamjuree", sans-serif;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    transform: scale(1.05);
}


.dropdown.show .dropbtn i {
    transform: rotate(180deg); /* Rotate the arrow */
    
}

.lang-button {
    border: 1px solid #fff;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    padding: 5px 10px;
    margin: 0 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    background-color: transparent;
}

.lang-button:hover {
    color: #000;
    transform: scale(1.05);
    border: 1px solid #000;
}

.lang-button:focus {
    outline: none;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin: 0 10px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #1e90ff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
    z-index: 1;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Ensure video is behind other content */
}

.hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s forwards 1s;
}
/* grid editovanje*/
.grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 60px 20px;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.grid-item {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s forwards 2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ensures the items take full height */
}

.grid-item form, .grid-item .kontakt-video {
    width: 100%; /* Ensures the form and video take full width */
    max-width: 100%;
}

.grid-item:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

section {
    text-align: center;
}

.about-content, .services-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 70%;
    margin: auto;
}

.about-text, .about-image, .service-item {
    flex: 1 1 calc(50% - 20px);
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.about-text p, .service-item p {
    margin: 0 0 10px 0;
}

.about-text, .about-image video {
    width: 60%;
    height: auto;
    border-radius: 10px;
}


.service-item i {
    font-size: 2em;
    color: #1e90ff;
}

.service-item h3 {
    margin: 10px 0;
}

.service-item:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

h1, h2 {
    font-family: "Bai Jamjuree", sans-serif;
    font-weight: 700;
    transition: color 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s forwards 1s;
}

footer {
    background-color: #f85a36;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s forwards 2.5s;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

form label, form input, form textarea, form button {
    width: 100%;
    max-width: 400px;
    margin: 10px 0;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

form input, form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

form input:focus, form textarea:focus {
    border: 1px solid #1e90ff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

form button {
    padding: 10px 20px;
    background-color: #f85a36;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

form button:hover {
    background-color: #f85a36;
    transform: scale(1.05);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s forwards 2s;
}

img:hover {
    transform: scale(1.05);
}

.lang-en {
    display: block;
}

.lang-sr {
    display: none;
}

.hidden {
    display: none;
}

/* .prikazimanje {
    display: none;
    color: transparent;
    border: transparent;
    background-color: transparent;
} */
.uslugedugme {
    background-color: #f85a36;
    border: none;
    border-radius: 5px;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin: 20px 0;
    font-family: "Bai Jamjuree", sans-serif;

}

.uslugedugme:hover {
    background-color: #d14e2b;
    transform: translateY(-2px);
}

.uslugedugme a {
    color: #fff;
    text-decoration: none;
}

.uslugedugme a:hover {
    color: #fff;
}

/* kontakt video */
.kontakt-video {
    pointer-events: none; /* Prevent any interactions with the video */
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}


/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-image video {
        width: 320px;
    }
}
@media (max-width: 380px) {
    .about-image video {
        width: 270px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1000; /* Ensure it's above other content */
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 15px 0; /* Add margin between li elements */
        text-align: center;
        font-size: 22px;
    }

    nav ul li a {
        font-size: 18px; /* Increase font size */
        color: #fff; /* Ensure text is readable on dark background */
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #fff;
        cursor: pointer;
        position: absolute;
        top: 10px;
        right: 20px;
        z-index: 1001; /* Ensure it's above the nav menu */
    }

    .menu-toggle:focus {
        outline: none;
    }

    
}








@media (max-width: 768px) {
    header {
        text-align: center;
    }

    .hero-section {
        padding: 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .grid-section {
        padding: 40px 10px;
    }

    form label, form input, form textarea, form button {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    nav ul li {
        margin: 5px 0;
    }

    nav ul li a, .lang-button {
        font-size: 14px;
    }

    form label, form input, form textarea, form button {
        width: 100%;
        max-width: 100%;
        margin: 5px 0;
    }

    .grid-section {
        padding: 20px 10px;
    }
}

/*blog css */

.blog-list {
    max-width: 800px;
    margin: 0 auto;
}

.blog-list h1 {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s forwards 1s;
}

.blog-list ul {
    list-style-type: none;
    padding: 0;
}

.blog-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
}

.blog-list li a {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
}

.blog-list li a:hover h2 {
    color: #1e90ff;
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post h1 {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s forwards 1s;
}

.blog-post p {
    opacity: 0;
    animation: fadeInUp 1s forwards 1.5s;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-section {
        grid-template-columns: 1fr;
    }
    .blog-list {
        max-width: 320px;
        margin: 0 auto;
    }
    .blog-list li h2 {
        font-size: 18px;
        text-align: left;
    }
}
