/* Language switcher — hide inactive language spans */
html[lang="en"] .t-sr { display: none !important; }
html[lang="sr"] .t-en { display: none !important; }

/* Active language button */
.lang-btn.lang-active { color: #fff !important; font-weight: 700; }

/* Custom animations and styles beyond Tailwind */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 8px;
}

/* Enhanced product card hover effect */
.product-card, .product-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,1));
    border: 1px solid rgba(0,0,0,0.05);
}
.product-card:hover, .product-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -5px rgba(0, 0, 0, 0.15), 0 20px 30px -10px rgba(59, 130, 246, 0.2);
}

.dark .product-card, .dark .product-item {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.9), rgba(31, 41, 55, 1));
    border: 1px solid rgba(255,255,255,0.1);
}

/* Nav link underline animation */
.nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.025em;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Enhanced mobile nav styling */
.mobile-nav-link {
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.mobile-nav-link.active {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}
.dark .mobile-nav-link.active {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #93c5fd;
    box-shadow: 0 4px 15px rgba(147, 197, 253, 0.3);
}

/* Enhanced hero gradient overlay */
.hero-overlay {
    background: linear-gradient(90deg, rgba(5, 10, 20, 0.58) 0%, rgba(5, 10, 20, 0.28) 36%, rgba(5, 10, 20, 0.12) 66%, rgba(5, 10, 20, 0.22) 100%);
}

.hero-image {
    object-position: 60% center;
    filter: brightness(0.98) contrast(1.12) saturate(1.08);
}

@media (min-width: 1024px) {
    .hero-image {
        object-position: 54% center;
        filter: brightness(0.96) contrast(1.14) saturate(1.1);
    }
}

@media (max-width: 640px) {
    .hero-image {
        object-position: 56% center;
        filter: brightness(1.06) contrast(1.16) saturate(1.12);
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(5, 10, 20, 0.34) 0%, rgba(5, 10, 20, 0.16) 52%, rgba(5, 10, 20, 0.28) 100%);
    }
}

/* Enhanced animate on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.fade-in-section:nth-child(1) { transition-delay: 0s; }
.fade-in-section:nth-child(2) { transition-delay: 0.1s; }
.fade-in-section:nth-child(3) { transition-delay: 0.2s; }
.fade-in-section:nth-child(4) { transition-delay: 0.3s; }

/* Enhanced dark mode transitions */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke, box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 400ms;
}

/* Top info bar styling */
.top-info {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

/* Enhanced counter styling */
.counter {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::before {
    left: 100%;
}

/* Enhanced gallery styles */
.gallery-item {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover {
    transform: translateY(-5px) scale(1.03);
}

/* Feature card enhanced styling */
.feature-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,1));
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1), 0 20px 40px rgba(59,130,246,0.1);
}
.dark .feature-card {
    background: linear-gradient(145deg, rgba(31,41,55,0.9), rgba(31,41,55,1));
    border: 1px solid rgba(255,255,255,0.1);
}

/* Enhanced icon styling */
.icon-wrapper {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(59,130,246,0.2));
    transition: all 0.3s ease;
}
.icon-wrapper:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(59,130,246,0.3));
    transform: scale(1.1);
}

.gallery-item:hover {
    transform: scale(1.02);
}

/* Gallery filter buttons */
.filter-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active::before {
    display: none;
}

/* Modal animation */
#imageModal {
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#modalContent {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Gallery search input focus effect */
#searchInput:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Hover effect for gallery cards */
.gallery-item .group:hover img {
    filter: brightness(1.1) contrast(1.05);
}

/* Category badge animations */
.gallery-item span {
    transition: all 0.3s ease;
}

.gallery-item:hover span {
    transform: scale(1.05);
}

/* Loading skeleton for future use */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Dark mode skeleton */
.dark .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

/* Gallery masonry effect for future enhancement */
@supports (display: grid) {
    .gallery-masonry {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        grid-auto-rows: 10px;
        gap: 20px;
    }
    
    .gallery-masonry .gallery-item {
        grid-row-end: span var(--row-span, 26);
    }
}