@font-face {
    font-family: 'Battlefield';
    src: url('/fonts/battlefieldv5.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* Dodatni responsivni breakpoint za još manje ekrane */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem; /* Još više smanjenje fonta za vrlo male ekrane */
    }
    
    .footer-logo {
        font-size: 1.2rem; /* Još više smanjenje fonta za vrlo male ekrane */
    }
    
    .years {
        font-size: 0.8rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .footer-column {
        min-width: 200px;
    }
}

@font-face {
    font-family: 'Battlefield';
    src: url('/fonts/battlefieldv5bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Battlefield';
    src: url('/fonts/battlefieldv5ital.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

:root {
    --primary: #131b2e;
    --secondary: #1e88e5;
    --accent: #ff5252;
    --accent-hover: #ff7373;
    --text: #e6e6e6;
    --text-dark: #333;
    --text-light: #aaa;
    --background: #0c1221;
    --card-bg: #1a2238;
    --gradient-1: linear-gradient(135deg, #1e88e5 0%, #512da8 100%);
    --gradient-2: linear-gradient(135deg, #ff5252 0%, #ff7eb3 100%);
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --glow: 0 0 15px rgba(30, 136, 229, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Battlefield', 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
}

header.scrolled {
    background-color: rgba(12, 18, 33, 0.95);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Battlefield', sans-serif;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    padding-right: 10px;
}

.logo span,
.footer-logo span {
    color: var(--secondary);
}

.years {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 10px;
}

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

nav li {
    margin-left: 2rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-1);
    transition: var(--transition);
}

nav a:hover {
    color: var(--secondary);
}

nav a:hover::after {
    width: 100%;
}

.menu-btn {
    display: none;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.5rem;
    padding: 5px 12px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 1001; /* Uvijek iznad navigacije */
}

.menu-btn:hover {
    background: #1976d2; /* Slightly darker shade for hover */
}

.menu-btn.active {
    background: #e53935; /* Crvena pozadina za zatvaranje */
}

.nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 1001;
    display: none; /* Inicijalno skriven */
}

.nav-close:hover {
    background: #1976d2;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(30, 136, 229, 0.2) 0%, rgba(12, 18, 33, 1) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/gt-logo-600x400.2.png') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding-top: 5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 4rem;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--secondary);
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

section.with-bg {
    background-color: var(--card-bg);
}

.section-bg-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    position: relative;
    border: 3px solid var(--accent);
    padding: 20px;
    border-radius: 15px;
}

.about-image img {
    width: 100%;
    display: block;
    border-radius: 5px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background-color: rgba(26, 34, 56, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
    z-index: 2;
}

.team-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

/* Timeline Section */
.timeline {
    position: relative;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
    z-index: 1;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timeline-left {
    width: 45%;
    text-align: right;
    padding-right: 3rem;
}

.timeline-right {
    width: 45%;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--card-bg), 0 0 0 8px rgba(255, 82, 82, 0.3);
    z-index: 3;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-card {
    background: rgba(26, 34, 56, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.timeline-title {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

/* Gallery Section */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 250px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
    justify-content: space-between;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--text);
    margin-bottom: 0;
}

.gallery-overlay .view-more {
    background: var(--accent);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.gallery-overlay .view-more:hover {
    background: var(--accent-hover);
}

/* Pojednostavljeni Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text);
    font-size: 40px;
    font-weight: bold;
    transition: var(--transition);
    z-index: 1001;
    cursor: pointer;
}

.close:hover {
    color: var(--accent);
}

.modal-image-container {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(19, 27, 46, 0.7);
    color: var(--text);
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 1000;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover, .next:hover {
    background: var(--secondary);
}

/* Innovation Section */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.innovation-card {
    background: rgba(26, 34, 56, 0.7);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.innovation-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.innovation-card:hover {
    transform: translateY(-10px);
}

.innovation-card:hover::before {
    opacity: 0.1;
}

.innovation-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

/* Media Section */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.media-card {
    background: rgba(26, 34, 56, 0.7);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
}

.media-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 10px 10px 0 0;
}

.media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.media-video {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.media-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.media-card:hover .media-image img {
    transform: scale(1.1);
}

.media-content {
    padding: 1.5rem;
}

/* Gallery overlay za media kartice */
.media-image .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column; /* Postavljanje elemenata jedan ispod drugog */
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
    text-align: center; /* Centriranje teksta */
}

.media-image:hover .gallery-overlay {
    opacity: 1;
}

.media-image .gallery-overlay h3 {
    color: var(--text);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.media-image .gallery-overlay .view-more {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.media-image .gallery-overlay .view-more:hover {
    background: var(--accent-hover);
}

/* Legacy Section */
.legacy-box {
    background: rgba(30, 136, 229, 0.1);
    border-radius: 10px;
    padding: 2.5rem;
    margin-top: 3rem;
    border-left: 5px solid var(--secondary);
    box-shadow: var(--box-shadow);
}

.legacy-box h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* Footer */
footer {
    background-color: var(--primary);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-info {
    flex: 2; /* Daje više prostora dijelu s logom i opisom */
}

.footer-links {
    flex: 1; /* Daje manje prostora dijelu s linkovima */
}

.footer-logo {
    font-family: 'Battlefield', 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    white-space: nowrap; /* Sprječava prelazak u novi red */
}

.footer-nav {
    list-style-type: none;
}

.footer-nav li {
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem; /* Veći font za linkove */
}

.footer-nav a:hover {
    color: var(--secondary);
}

.footer-info p {
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 500px; /* Ograničava maksimalnu širinu teksta */
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}


/* Screen-reader only class for improved accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to content link for keyboard navigation */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Better focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Improved image caption styles */
.image-caption {
    margin-top: 10px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Gallery image loading animation */
.gallery-loader,
.image-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    position: relative;
}

.gallery-loader::after,
.image-loader::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Print styles for better SEO */
@media print {
    header, 
    footer, 
    .hero-buttons,
    .view-more,
    .menu-btn,
    .nav-menu {
        display: none !important;
    }
    
    body, 
    .container {
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    h1, h2, h3, h4 {
        color: black !important;
        page-break-after: avoid;
    }
    
    img {
        max-width: 300px !important;
        page-break-inside: avoid;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
    :root {
        --primary: #000;
        --secondary: #0000ff;
        --accent: #ff0000;
        --text: #000;
        --background: #fff;
        --card-bg: #eee;
    }
    
    .section-bg-dots {
        display: none;
    }
    
    button, .btn {
        border: 2px solid black !important;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero::before {
        transform: none !important;
    }
}

/* Responsive */
/* Large screens (1201px-1300px) - Adjust nav spacing/size */
@media (min-width: 1041px) and (max-width: 1300px) {
    /* Logo in column layout */
    .logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .years {
        margin-left: 0;
        margin-top: 2px;
    }
    
    .logo h1 {
        padding-right: 0;
    }
    
    /* Slightly reduce navigation spacing */
    nav li {
        margin-left: 1.5rem;
    }
    
    nav a {
        font-size: 1rem;
    }
}

/* Medium screens (1041px-1200px) - Optimize navigation */
@media (min-width: 1041px) and (max-width: 1200px) {
    /* Further reduce navigation spacing */
    nav li {
        margin-left: 1rem;
    }
    
    nav a {
        font-size: 0.9rem;
        padding: 0.3rem 0;
    }
}

/* Switch to mobile menu earlier at 1040px */
@media (max-width: 1040px) {
    /* Keep logo in column layout */
    .logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .years {
        margin-left: 0;
        margin-top: 2px;
    }
    
    .logo h1 {
        padding-right: 0;
    }
    
    /* Mobile menu styling */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 1rem 0;
    }

    .menu-btn {
        display: block;
        z-index: 1000;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .timeline-content {
        flex-direction: column;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-left,
    .timeline-right {
        width: 100%;
        text-align: left;
        padding: 0 0 0 50px;
    }

    .timeline-marker {
        left: 20px;
    }

    .modal-image-container {
        max-width: 95%;
    }
    
    .prev {
        left: 10px;
    }
    
    .next {
        right: 10px;
    }

}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }

    .header-container {
        padding: 0 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .footer-logo {
        font-size: 1.5rem; /* Smanjenje fonta za manje ekrane */
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .footer-info,
    .footer-links {
        text-align: center;
    }
    
    .footer-nav {
        display: flex;
        justify-content: center;
        gap: 2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 1rem 0;
    }

    .menu-btn {
        display: block;
        z-index: 1000;
    }

    .hero {
        text-align: center;
    }

    .hero-content {
        padding-top: 2rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .prev, .next {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    /* Convert logo to column layout on small screens */
    .logo {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .years {
        margin-left: 0;
        margin-top: 2px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .years {
        font-size: 0.8rem;
    }
    
    .menu-btn {
        font-size: 1.3rem;
        padding: 4px 10px;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .gallery-overlay h3 {
        font-size: 1rem;
    }
    
    .prev, .next {
        padding: 5px 10px;
        font-size: 1rem;
    }

    .footer-logo {
        font-size: 1.2rem;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
    }

}