/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sticky Header */
header {
    position: static;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
    color: white;
    z-index: 10;
    padding: 1px 0;
}

header nav {
    display: flex;
    justify-content: center; /* Center the navigation menu */
    align-items: center;
}

header #branding img {
    max-height: 60px;
    margin-right: 20px; /* Add some space to the right of the logo */
}

header nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
}

header nav li {
    padding: 0 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    transition: color 0.3s;
}

header nav .current a {
    color: #ff9800; /* Highlight active menu */
}

header nav a:hover {
    color: #ff9800; /* Hover color change */
}
.language-switcher .lang-btn {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.language-switcher .lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent background for the dropdown */
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}
@font-face {
    font-family: 'Insignia';
    src: url('./fonts/Insignia.ttf') format('truetype');
}
#branding h1 {
    color: #ff2200;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    max-height: 60px;
    display: flex;
    align-items: center;
    font-family: 'Insignia', sans-serif;
}

/* Ensure the text is positioned like the old image */
header #branding {
    margin-right: 20px; /* Space to the right, like the image had */
    display: flex;
    align-items: center;
    height: 60px; /* Match the old image height */
}


/* Projects Section */
.projects {
    text-align: center;
    padding: 60px 20px;
     background: url('./slike2/bg3.jpg') no-repeat center center fixed;
    background-size: cover;
}

.projects h2 {
    font-size: 28px;
    color: #ff2200;
    margin-bottom: 30px;
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
    padding: 20px;
}

/* Smaller Project Cards */
.project-card {
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px; /* Reduced padding */
    transition: transform 0.3s;
    width: 80%; /* 20% smaller */
    margin: auto; /* Center each card within the grid cell */
}

.project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.project-card h3 {
    font-size: 18px;
    color: #ff2200;
    margin-top: 10px;
}

/* Keyframes for Fade-in and Move-up Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Card Animation */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }
.project-card:nth-child(4) { animation-delay: 0.8s; }
.project-card:nth-child(5) { animation-delay: 1s; }

/* Adjust for any additional projects if needed */


/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.footer h2 {
    margin-bottom: 10px;
}


/* Keyframes for Fade-in and Move-up Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Card Animation */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    /* Delay each card slightly to create a cascading effect */
}

.project-card:nth-child(1) {
    animation-delay: 0.2s;
}

.project-card:nth-child(2) {
    animation-delay: 0.4s;
}

.project-card:nth-child(3) {
    animation-delay: 0.6s;
}

.project-card:nth-child(4) {
    animation-delay: 0.8s;
}

.project-card:nth-child(5) {
    animation-delay: 1s;
}

/* Add more nth-child selectors if you have more than 5 projects */
/* Project Card Animation */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-card.animate-visible {
    opacity: 1;
    transform: translateY(0);
}
