/* Gallery Section Styles */
.gallery-section {
    padding: clamp(50px, 12vh, 80px) 0;
    position: relative;
    width: 100%;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.filter-btn {
    background: rgba(26, 86, 219, 0.1);
    color: var(--text);
    border: 1px solid rgba(100, 255, 218, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.4);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--card-bg);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(45, 156, 219, 0.3);
    border-color: var(--orange);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 25, 47, 0.9));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--accent-light);
}

.gallery-item-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--text);
}

/* Call to Action */
.cta-section {
    padding: clamp(60px, 12vh, 100px) 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.1) 0%, rgba(10, 25, 47, 0.8) 100%);
    position: relative;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--accent-light);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal for image preview */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(45, 156, 219, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--orange);
}

/* Active link in navigation */
nav ul li a.active {
    color: var(--orange);
}

nav ul li a.active::after {
    width: 100%;
    background: var(--orange);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 0 15px;
        gap: 15px;
    }
    
    .filter-buttons {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 10px;
    }
    
    .filter-buttons {
        padding: 0 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
/* Loading Indicator */
.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.loading-indicator.active {
    display: flex;
}

.loading-bar-container {
    width: 300px;
    height: 12px;
    background: rgba(26, 86, 219, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #ff8c00);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.5);
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
    border-radius: 10px;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.loading-indicator p {
    color: var(--text);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

#loading-percentage {
    color: var(--orange);
    font-weight: 700;
    margin-left: 5px;
}

/* Video Icon */
.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 122, 0, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.gallery-item:hover .video-icon {
    background: var(--orange);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Gallery item animations */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
/* Loading Indicator */
.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.loading-indicator.active {
    display: flex;
}

.loading-bar-container {
    width: 300px;
    height: 12px;
    background: rgba(26, 86, 219, 0.3);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--orange), #ff8c00);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.5);
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
    border-radius: 10px;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.loading-indicator p {
    color: var(--text);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

#loading-percentage {
    color: var(--orange);
    font-weight: 700;
    margin-left: 5px;
}

/* Video Play Button - PRAVO PLAY DUGME (Trougao) */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 122, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 122, 0, 0.4);
    z-index: 2;
}

.play-triangle {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 25px solid white;
    margin-left: 5px; /* Pomera trougao malo udesno */
}

.gallery-item:hover .video-play-button {
    background: var(--orange);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 122, 0, 0.6);
}

/* Gallery item animations */
.gallery-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Video element styling */
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover video {
    transform: scale(1.05);
}

/* Gallery item overlay */
.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 25, 47, 0.9));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--accent-light);
}

.gallery-item-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--text);
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    gap: 5px;
    background: rgba(10, 25, 47, 0.9);
    padding: 8px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.lang-btn {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(100, 255, 218, 0.3);
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    font-weight: 600;
}

.lang-btn:hover {
    background: rgba(26, 86, 219, 0.2);
    border-color: var(--accent);
}

.lang-btn.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

/* Responsive language switcher */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin: 10px auto;
        width: fit-content;
    }
}