/*
Theme Name: Sangrad2026
Theme URI: https://codevision.eu
Author: Codevision
Author URI: https://codevision.eu
Description: Custom WordPress theme Sangrad2026
Version: 1.0
Text Domain: cvtheme
Domain Path: /languages
*/
.gm-style-iw.gm-style-iw-c {
    width: 300px;
    height: 150px;
    padding: 0!important;
}

.gm-style .gm-style-iw-d {
    position: absolute;
    min-height: 100%!important;
    max-height: 100%!important;
    min-width: 100%;
    overflow: hidden!important;
}

.gm-style .gm-style-iw-d > div {
    height: 100%;
    width: calc(100% - 10px)!important;
    min-height: calc(100% - 10px)!important;
    max-height: calc(100% - 10px)!important;
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    right: 5px;
    border-radius: 5px;
    overflow: hidden;
}
.infobox a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 99999;
}
.infobox {
    padding: 10px!important;
    height: 100%!important;
    min-height: 100%!important;
}

.infobox h6, .infobox h3 {
    position: relative;
    z-index: 999;
    color: #efefef;
    text-shadow: 1px 0 black;
}
        @font-face {
            font-family: 'Helvetica Neue LT Pro';
            src: local('Helvetica Neue LT Pro Bold'), local('HelveticaNeueLTPro-Bd');
            font-weight: bold;
            font-style: normal;
            font-display: swap; /* Optimize font loading */
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'APTOS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow-x: hidden;
            background: #ffffff;
            color: #1a1a1a;
        }
        
        /* Hide cursor only on non-touch devices */
        @media (hover: hover) and (pointer: fine) {
            body {
                cursor: none; /* Hide default cursor */
            }
            
            * {
                cursor: none !important; /* Hide cursor on all elements */
            }
        }
        
        .font-display, h1, h2, h3, h4, h5, h6, .font-bold, .font-semibold, strong, b {
            font-family: 'Helvetica Neue LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
            font-weight: bold;
        }
        
        .hero-image {
            width: 100%;
            height: 100vh;
            object-fit: cover;
            filter: brightness(0.85);
        }
        
        .project-thumbnail {
            position: relative;
            overflow: hidden;
            aspect-ratio: 16/10;
            cursor: pointer;
            content-visibility: auto; /* Optimize rendering */
            contain: layout style paint; /* Isolate rendering */
        }
        
        .project-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* No transitions - all controlled by GSAP */
        }
        
        /* Transparent gray overlay on hover - only over the image */
        .project-thumbnail::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            opacity: 0;
            transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            z-index: 1;
        }
        
        @media (hover: hover) {
            .project-thumbnail:hover::before {
                opacity: 1;
            }
        }
        
        .project-overlay {
            position: absolute !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            top: auto !important;
            padding: 2rem !important;
            background: transparent !important;
            width: auto !important;
            min-height: 120px;
            z-index: 2;
            opacity: 1 !important;
            visibility: visible !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: flex-end !important;
            transform: none !important;
            transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        /* Ensure overlay is always visible when not hovered */
        .project-thumbnail:not(:hover) .project-overlay {
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            top: auto !important;
            padding: 2rem !important;
            width: auto !important;
            opacity: 1 !important;
            visibility: visible !important;
            display: flex !important;
            transform: none !important;
        }
        
        .project-thumbnail:not(:hover) .project-overlay h3 {
            transform: scale(0.65) translateY(0) translateZ(0) !important;
        }
        
        .project-thumbnail:not(:hover) .project-overlay p {
            transform: translateY(30px) translateZ(0);
            opacity: 0;
            visibility: hidden;
        }
        
        .project-overlay h3 {
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        margin-bottom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            opacity: 1 !important;
            visibility: visible !important;
            color: white;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            font-size: clamp(1.125rem, 2.5vw, 1.5rem);
            /* Umjesto da režemo naslov na 1 red sa "...", pustimo ga da se prelama do 2 reda.
               Ako je i dalje predugo, CSS ga elegantno skrati na kraju 2. reda. */
            white-space: normal;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            line-height: 1.3;
            margin-bottom: 0.5rem;
            transform-origin: left bottom;
            transform: scale(0.65) translateY(0) translateZ(0);
            will-change: transform;
            /* display gore je namjerno -webkit-box radi clampa */
            backface-visibility: hidden;
            -webkit-font-smoothing: antialiased;
        }
        
        .project-overlay p {
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        visibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            opacity: 0;
            visibility: hidden;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
            font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.5;
            transform-origin: left bottom;
            transform: translateY(30px) translateZ(0);
            will-change: transform, opacity, visibility;
            display: block;
            backface-visibility: hidden;
            -webkit-font-smoothing: antialiased;
            margin: 0;
            padding: 0;
        }
        
        @media (hover: hover) {
            .project-thumbnail:hover .project-overlay {
                bottom: 1.5rem;
                left: 1.5rem;
                right: auto;
                top: auto;
                padding: 1rem 1.5rem;
                background: transparent;
                width: auto;
                min-height: auto;
                opacity: 1;
                visibility: visible;
            }
            
            .project-thumbnail:hover .project-overlay h3 {
                margin-bottom: 0.25rem;
                opacity: 1;
                visibility: visible;
                transform: scale(0.65) translateY(0) translateZ(0);
                /* Ostavi clamp na 2 reda i na hoveru (da se naslov ne razleti u 5 redova). */
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }
            
            .project-thumbnail:hover .project-overlay p {
                opacity: 1;
                visibility: visible;
                transform: translateY(0) translateZ(0);
                overflow: visible;
                text-overflow: unset;
                max-width: none;
            }
        }
        
        @media (max-width: 768px) {
            .project-overlay {
                padding: 1.25rem;
            }
        }
        
        /* Typography Hierarchy */
        /* Hero Project Titles - Largest */
        .hero-project h2 {
            font-size: clamp(2rem, 5vw, 4.5rem);
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1.1;
        }
        
        .hero-project p {
            font-size: clamp(1rem, 2vw, 1.25rem);
            font-weight: 400;
            letter-spacing: -0.01em;
            line-height: 1.4;
        }
        
        /* Section Titles - Large */
        .section-title {
            font-size: clamp(1.75rem, 4vw, 3rem);
            font-weight: 700;
            letter-spacing: -0.025em;
            line-height: 1.2;
            margin-bottom: 2.5rem;
        }
        
        /* Project Titles - Medium */
        .project-overlay h3 {
            font-size: clamp(1.125rem, 2.5vw, 1.5rem);
            font-weight: 600;
            letter-spacing: -0.015em;
            line-height: 1.3;
        }
        
        .project-overlay p {
            font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
            font-weight: 400;
            line-height: 1.5;
        }
        
        /* News/Award Titles */
        .news-item h3, .award-item h3 {
            font-size: clamp(1rem, 2vw, 1.25rem);
            font-weight: 600;
            letter-spacing: -0.01em;
            line-height: 1.4;
        }
        
        /* Body Text */
        body {
            font-size: clamp(0.9375rem, 1.2vw, 1rem);
            line-height: 1.6;
        }
        #about p {
            font-size: 1.5rem;
        }
        #about a {
            font-size: 1.25rem;
        }
        /* Section Links */
        .section-link {
            color: #666;
            text-decoration: none;
            font-size: clamp(0.8125rem, 1vw, 0.875rem);
            font-weight: 500;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            transition: color 0.3s ease;
        }
        
        .section-link:hover {
            color: #1a1a1a;
        }
        
        /* Navigation */
        nav .text-2xl {
            font-size: clamp(1.25rem, 2vw, 1.5rem);
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        
        nav a {
            font-size: clamp(0.8125rem, 1vw, 0.875rem);
            font-weight: 500;
            letter-spacing: 0.01em;
            position: relative;
            display: inline-block;
            padding: 0.5rem 0;
            color: #1a1a1a;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        /* Modern elegant underline animation */
        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #1a1a1a 0%, #1a1a1a 100%);
            transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform-origin: left;
        }
        
        nav a:hover {
            color: #1a1a1a;
        }
        
        nav a:hover::after {
            width: 100%;
        }
        
        /* Subtle scale effect on hover */
        nav a {
            transform: scale(1);
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
        }
        
        nav a:hover {
            transform: scale(1.05);
        }
        
        /* Footer */
        footer h2 {
            font-size: clamp(1.5rem, 3vw, 2.25rem);
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        
        footer a {
            font-size: clamp(0.8125rem, 1vw, 0.875rem);
            font-weight: 400;
        }
        
        .text-reveal {
            overflow: hidden;
        }
        
        .text-reveal span {
            display: inline-block;
            transform: translateY(100%);
        }
        
        .fade-in-up {
            opacity: 0;
            transform: translateY(30px);
        }
        
        /* Modern Sharp Corners - Subtle but Modern */
        .map-container {
            background: #f5f5f5;
            padding: clamp(2rem, 4vw, 4rem);
            border-radius: 2px; /* Sharp but modern */
        }
        
        .project-thumbnail {
            border-radius: 2px; /* Sharp corners */
        }
        
        /* Remove all rounded-lg from Tailwind */
        .rounded-lg {
            border-radius: 2px !important;
        }
        
        /* Spacing improvements for better UX */
        section {
            padding-top: clamp(4rem, 8vw, 6rem);
            padding-bottom: clamp(4rem, 8vw, 6rem);
            content-visibility: auto; /* Optimize rendering for off-screen sections */
        }
        
        /* Better spacing for project grids */
        .grid {
            gap: clamp(1rem, 2vw, 1.5rem);
        }
        
        /* Improved readability */
        .project-overlay {
            padding: clamp(1.5rem, 3vw, 2rem);
        }
        
        /* Navigation link hover - lighter gray */
        .nav-link-hover {
            color: #1a1a1a;
        }
        
        .nav-link-hover:hover {
            color: #999999; /* Light gray */
        }
        
        /* Responsive Typography & Spacing */
        @media (max-width: 1024px) {
            .section-title {
                margin-bottom: 2rem;
            }
        }
        
        @media (max-width: 768px) {
            .section-title {
                margin-bottom: 1.5rem;
            }
            
            .hero-project h2 {
                margin-bottom: 0.5rem;
            }
            
            .hero-project p {
                font-size: 1rem;
            }
            
            .project-overlay {
                padding: 1.25rem;
            }
            
            section {
                padding-top: 3rem;
                padding-bottom: 3rem;
            }
        }
        
        @media (max-width: 640px) {
            .map-container {
                padding: 1.5rem;
            }
            
            .hero-project h2 {
                font-size: 1.75rem;
            }
            
            .section-title {
                font-size: 1.5rem;
                margin-bottom: 1.25rem;
            }
            
            .project-overlay h3 {
                font-size: 1rem;
            }
            
            section {
                padding-top: 2.5rem;
                padding-bottom: 2.5rem;
            }
        }
        
        /* Touch-friendly on mobile */
        @media (hover: none) {
            .project-thumbnail {
                cursor: default;
            }
        }
        
        /* Better focus states for accessibility */
        a:focus-visible,
        button:focus-visible {
            outline: 2px solid #1a1a1a;
            outline-offset: 2px;
        }
        
        .hero-projects-section {
            position: relative;
            height: 100vh; /* Desktop */
            height: 100dvh; /* Mobile - dynamic viewport height */
        }
        
        .hero-project {
            position: fixed !important;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh; /* Desktop */
            height: 100dvh; /* Mobile - dynamic viewport height */
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
            z-index: 1;
        }
        
        .hero-project[data-project="1"] {
            z-index: 3;
        }
        
        .hero-project[data-project="2"] {
            z-index: 2;
        }
        
        .hero-project[data-project="3"] {
            z-index: 1;
        }
        
        .hero-project-image,
        .hero-project-video {
            transform: scale(1.0); /* Start zoomed in */
            will-change: transform;
            content-visibility: auto;
        }

        /* Hero slider unutar svakog hero-project bloka â€“ lagani fade izmeÄ‘u do 3 slajda */
        .hero-project-media {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .hero-main-slide {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 0.8s ease;
        }

        .hero-main-slide.is-active {
            opacity: 1;
        }
        
        .hero-project-video {
            object-fit: cover;
        }
        
        /* YouTube iframe embed styling */
        .hero-project-video-embed {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 100vw;
            height: 100vh;
            transform: translate(-50%, -50%);
            pointer-events: none;
        }
        
        .hero-project-video-embed iframe {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* Video restart button - discrete, top right */
        .video-restart-btn {
            position: absolute;
            top: 2rem;
            right: 2rem;
            z-index: 25;
            width: 44px;
            height: 44px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.3s ease;
            backdrop-filter: blur(4px);
        }
        
        .video-restart-btn:hover {
            opacity: 1;
            background: rgba(0, 0, 0, 0.6);
            border-color: rgba(255, 255, 255, 0.5);
            transform: scale(1.1);
        }
        
        .video-restart-btn svg {
            width: 18px;
            height: 18px;
            stroke: white;
            stroke-width: 2;
            fill: none;
        }
        
        @media (max-width: 768px) {
            .video-restart-btn {
                top: 1.5rem;
                right: 1.5rem;
                width: 40px;
                height: 40px;
            }
            
            .video-restart-btn svg {
                width: 16px;
                height: 16px;
            }
        }

        /*
          MOBILE HERO MODE (index.html)

          Problem: 100vh/100dvh na iOS/Android se mijenja dok se address bar skriva/pokazuje,
          pa pinned/fixed hero (ScrollTrigger) zna "skakati" i glitchati.

          Rješenje: na mobitelu/tabletu hero visinu zaključamo jednom preko
          CSS varijable --hero-lock-h (postavlja se iz JS-a), pa se ne mijenja
          tijekom skrolanja i pojavljivanja/sakrivanja browser UI-a.

          Aktivira se kad JS doda klasu: body.is-mobile-hero (tablet + mobitel).
        */
        @media (max-width: 1024px) {
            body.is-mobile-hero .hero-projects-section {
                height: calc(var(--hero-lock-h, 100svh) * 3) !important;
                padding-top: 0 !important;
            }

            /* Sticky scroll: svaki projekt se zalijepi za vrh; sljedeći mora imati veći z-index da ga prekrije */
            body.is-mobile-hero .hero-project {
                position: sticky !important;
                top: 0;
                left: 0;
                height: var(--hero-lock-h, 100svh) !important;
                min-height: 560px;
                clip-path: none !important;
                margin-bottom: 0.375rem; /* mala pauta između svakog sticky projekta */
            }
            body.is-mobile-hero .hero-project:last-child {
                margin-bottom: 0;
            }

            body.is-mobile-hero .hero-project[data-project="1"] {
                z-index: 1;
            }
            body.is-mobile-hero .hero-project[data-project="2"] {
                z-index: 2;
            }
            body.is-mobile-hero .hero-project[data-project="3"] {
                z-index: 3;
            }

            body.is-mobile-hero .hero-project-image,
            body.is-mobile-hero .hero-project-video {
                transform: none !important;
            }
        }
        
        /* Optimize rendering for below-the-fold content */
        section:not(.hero-projects-section) {
            content-visibility: auto;
        }
        
        /* Floating scroll indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 2rem;
            right: 2rem;
            z-index: 20;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            pointer-events: none;
        }
        
        .scroll-indicator svg {
            width: 24px;
            height: 24px;
            stroke: white;
            stroke-width: 2;
            fill: none;
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-8px);
            }
        }
        
        .scroll-indicator {
            animation: float 2s ease-in-out infinite;
        }
        
        @media (max-width: 768px) {
            .scroll-indicator {
                bottom: 1.5rem;
                right: 1.5rem;
                width: 36px;
                height: 36px;
            }
            
            .scroll-indicator svg {
                width: 20px;
                height: 20px;
            }
        }
        
        .news-item, .award-item {
            transition: transform 0.3s ease;
        }
        
        .news-item:hover, .award-item:hover {
            transform: translateY(-5px);
        }
        
        nav {
            transition: background-color 0.3s ease;
        }
        
        nav.scrolled {
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
        }
        
        /* Modern Sub-menu */
        .nav-item-with-submenu {
            position: relative;
        }
        
        .submenu {
            position: absolute;
            top: calc(100% + 0.75rem);
            left: 0;
            background: white;
            padding: 1.25rem 0;
            min-width: 280px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 100;
            border-radius: 2px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        @media (hover: hover) {
            .nav-item-with-submenu:hover .submenu {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }
        
        /* Mobile: Show submenu on click */
        @media (max-width: 768px) {
            .nav-item-with-submenu {
                position: static;
            }
            
            .submenu {
                position: static;
                display: none;
                margin-top: 0;
                padding: 1rem 0;
                box-shadow: none;
                border: none;
                border-top: 1px solid rgba(0, 0, 0, 0.1);
            }
            
            .nav-item-with-submenu.active .submenu {
                display: block;
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }
        
        .submenu .filter-btn {
            display: block;
            width: 100%;
            text-align: left;
            padding: 0.75rem 1.5rem;
            margin: 0;
            border: none;
            border-left: 3px solid transparent;
            border-radius: 0;
            background: transparent;
            color: #666;
            font-size: 0.8125rem;
            font-weight: 500;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        
        .submenu .filter-btn::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: #1a1a1a;
            transform: scaleY(0);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .submenu .filter-btn:hover {
            background: rgba(0, 0, 0, 0.03);
            color: #1a1a1a;
            padding-left: 2rem;
        }
        
        .submenu .filter-btn:hover::before {
            transform: scaleY(1);
        }
        
        .submenu .filter-btn.active {
            background: rgba(0, 0, 0, 0.05);
            color: #1a1a1a;
            font-weight: 600;
            padding-left: 2rem;
        }
        
        .submenu .filter-btn.active::before {
            transform: scaleY(1);
        }
    

        @font-face {
            font-family: 'Helvetica Neue LT Pro';
            src: local('Helvetica Neue LT Pro Bold'), local('HelveticaNeueLTPro-Bd');
            font-weight: bold;
            font-style: normal;
            font-display: swap; /* Optimize font loading */
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'APTOS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow-x: hidden;
            background: #ffffff;
            color: #1a1a1a;
        }
        
        /* Hide cursor only on non-touch devices */
        @media (hover: hover) and (pointer: fine) {
            body {
                cursor: none;
            }
            
            * {
                cursor: none !important;
            }
        }
        
        .font-display, h1, h2, h3, h4, h5, h6, .font-bold, .font-semibold, strong, b {
            font-family: 'Helvetica Neue LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
            font-weight: bold;
        }
        
        .project-thumbnail {
            position: relative;
            overflow: hidden;
            aspect-ratio: 16/10;
            cursor: pointer;
            border-radius: 2px;
            display: block;
            text-decoration: none;
            color: inherit;
        }
        
        .project-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            will-change: transform, filter;
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        @media (hover: hover) {
            .project-thumbnail:hover img {
                transform: scale(1.08);
                filter: brightness(0.75);
            }
        }
        
        /* Subtle gradient overlay on hover for better text contrast */
        .project-thumbnail::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 50%);
            opacity: 0;
            transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            pointer-events: none;
            z-index: 1;
        }
        
        @media (hover: hover) {
            .project-thumbnail:hover::before {
                opacity: 1;
            }
        }
        
        .project-overlay {
            position: absolute !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            top: auto !important;
            padding: 2rem !important;
            background: transparent !important;
            width: auto !important;
            min-height: 120px;
            z-index: 2;
            opacity: 1 !important;
            visibility: visible !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: flex-end !important;
            transform: none !important;
            transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        /* Ensure overlay is always visible when not hovered */
        .project-thumbnail:not(:hover) .project-overlay {
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            top: auto !important;
            padding: 2rem !important;
            width: auto !important;
            opacity: 1 !important;
            visibility: visible !important;
            display: flex !important;
            transform: none !important;
        }
        
        .project-thumbnail:not(:hover) .project-overlay h3 {
            transform: scale(0.65) translateY(0) translateZ(0) !important;
        }
        
        .project-thumbnail:not(:hover) .project-overlay p {
            transform: translateY(30px) translateZ(0);
            opacity: 0;
            visibility: hidden;
        }
        
        .project-overlay h3 {
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        margin-bottom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            opacity: 1 !important;
            visibility: visible !important;
            color: white;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            font-size: clamp(1.125rem, 2.5vw, 1.5rem);
            white-space: pre-wrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.3;
            margin-bottom: 0.5rem;
            transform-origin: left bottom;
            transform: scale(0.65) translateY(0) translateZ(0);
            will-change: transform;
            display: block;
            backface-visibility: hidden;
            -webkit-font-smoothing: antialiased;
        }
        
        .project-overlay p {
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                        visibility 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            opacity: 0;
            visibility: hidden;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
            font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.5;
            transform-origin: left bottom;
            transform: translateY(30px) translateZ(0);
            will-change: transform, opacity, visibility;
            display: block;
            backface-visibility: hidden;
            -webkit-font-smoothing: antialiased;
            margin: 0;
            padding: 0;
        }
        
        @media (hover: hover) {
            .project-thumbnail:hover .project-overlay {
                bottom: 1.5rem;
                left: 1.5rem;
                right: auto;
                top: auto;
                padding: 1rem 1.5rem;
                background: transparent;
                width: auto;
                min-height: auto;
                opacity: 1;
                visibility: visible;
            }
            
            .project-thumbnail:hover .project-overlay h3 {
                margin-bottom: 0.25rem;
                opacity: 1;
                visibility: visible;
                transform: scale(0.65) translateY(0) translateZ(0);
                overflow: hidden !important;
                text-overflow: ellipsis !important;
            }
            
            .project-thumbnail:hover .project-overlay p {
                opacity: 1;
                visibility: visible;
                transform: translateY(0) translateZ(0);
                overflow: visible;
                text-overflow: unset;
                max-width: none;
            }
        }
        
        @media (max-width: 768px) {
            .project-overlay {
                padding: 1.25rem;
            }
        }
        
        /* Typography Hierarchy */
        .section-title {
            font-size: clamp(1.75rem, 4vw, 3rem);
            font-weight: 700;
            letter-spacing: -0.025em;
            line-height: 1.2;
            margin-bottom: 2.5rem;
        }
        
        .project-overlay h3 {
            font-size: clamp(1.125rem, 2.5vw, 1.5rem);
            font-weight: 600;
            letter-spacing: -0.015em;
            line-height: 1.3;
            color: white;
            margin-bottom: 0.5rem;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        }
        
        .project-overlay p {
            font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
            font-weight: 400;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
        }
        
        /* Navigation */
        nav .text-2xl {
            font-size: clamp(1.25rem, 2vw, 1.5rem);
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        
        nav a {
            font-size: clamp(0.8125rem, 1vw, 0.875rem);
            font-weight: 500;
            letter-spacing: 0.01em;
            position: relative;
            display: inline-block;
            padding: 0.5rem 0;
            color: #1a1a1a;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        /* Modern elegant underline animation */
        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #1a1a1a 0%, #1a1a1a 100%);
            transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform-origin: left;
        }
        
        nav a:hover::after {
            width: 100%;
        }
        
        nav a {
            transform: scale(1);
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
        }
        
        nav a:hover {
            transform: scale(1.05);
        }
        
        .nav-link-hover {
            color: #1a1a1a;
        }
        
        .nav-link-hover:hover {
            color: #999999;
        }
        
        /* Filter Buttons - Modern hover with underline */
        .filter-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 3rem;
            padding-top: 0.5rem;
        }
        
        .filter-btn {
            padding: 0.625rem 1.25rem;
            font-size: clamp(0.75rem, 1vw, 0.8125rem);
            font-weight: 500;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            background: transparent;
            border: 1px solid #e5e5e5;
            color: #666;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            border-radius: 2px;
        }
        
        .filter-btn:hover {
            color: #1a1a1a;
            border-color: #1a1a1a;
            background: #fafafa;
        }
        
        .filter-btn.active {
            background: #1a1a1a;
            color: white;
            border-color: #1a1a1a;
        }
        
        .filter-btn.active:hover {
            background: #1a1a1a;
            color: white;
        }

        /* Projects archive filters: sticky + horizontal scroll on mobile/tablet */
        @media (max-width: 1024px) {
            #projects-main .filter-buttons-wrap {
                position: sticky;
                top: 84px; /* nav height offset */
                z-index: 35;
                margin-bottom: 1.5rem;
                padding: 0.75rem 0.5rem;
                background: rgba(255, 255, 255, 0.9);
                backdrop-filter: blur(10px);
                border-bottom: 1px solid rgba(0, 0, 0, 0.06);
                flex-wrap: nowrap;
                overflow: hidden;
                -webkit-overflow-scrolling: touch;
                gap: 0.5rem;
                display: block;
                border-radius: 2px;
            }

            #projects-main .filter-buttons {
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                gap: 0.5rem;
                padding-right: 3rem; /* space for the hint arrow */
                margin-bottom: 0;
                padding-top: 0;
            }

            #projects-main .filter-buttons::-webkit-scrollbar {
                height: 0;
            }

            #projects-main .filter-btn {
                flex: 0 0 auto;
                white-space: nowrap;
            }

            #projects-main .filter-scroll-hint {
                position: absolute;
                right: 0.75rem;
                top: 50%;
                transform: translateY(-50%);
                width: 28px;
                height: 28px;
                border-radius: 999px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(255, 255, 255, 0.92);
                border: 1px solid rgba(0, 0, 0, 0.06);
                color: #1a1a1a;
                font-weight: 700;
                pointer-events: none;
                animation: filterScrollHint 1.6s ease-in-out infinite;
                box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
            }

            @keyframes filterScrollHint {
                0% {
                    opacity: 0.65;
                    transform: translateY(-50%) scale(1);
                }
                50% {
                    opacity: 1;
                    transform: translateY(-50%) scale(1.08);
                }
                100% {
                    opacity: 0.65;
                    transform: translateY(-50%) scale(1);
                }
            }

            @media (prefers-reduced-motion: reduce) {
                #projects-main .filter-scroll-hint {
                    animation: none;
                    opacity: 0.8;
                }
            }
        }
        
        /* Sub-menu for Projects */
        /* Modern Sub-menu */
        .nav-item-with-submenu {
            position: relative;
        }
        
        .submenu {
            position: absolute;
            top: calc(100% + 0.75rem);
            left: 0;
            background: white;
            padding: 1.25rem 0;
            min-width: 280px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 100;
            border-radius: 2px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        @media (hover: hover) {
            .nav-item-with-submenu:hover .submenu {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }
        
        /* Mobile: Show submenu on click */
        @media (max-width: 768px) {
            .nav-item-with-submenu {
                position: static;
            }
            
            .submenu {
                position: static;
                display: none;
                margin-top: 0;
                padding: 1rem 0;
                box-shadow: none;
                border: none;
                border-top: 1px solid rgba(0, 0, 0, 0.1);
            }
            
            .nav-item-with-submenu.active .submenu {
                display: block;
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }
        
        .submenu .filter-btn {
            display: block;
            width: 100%;
            text-align: left;
            padding: 0.75rem 1.5rem;
            margin: 0;
            border: none;
            border-left: 3px solid transparent;
            border-radius: 0;
            background: transparent;
            color: #666;
            font-size: 0.8125rem;
            font-weight: 500;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            text-decoration: none;
        }
        
        .submenu .filter-btn::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: #1a1a1a;
            transform: scaleY(0);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .submenu .filter-btn:hover {
            background: rgba(0, 0, 0, 0.03);
            color: #1a1a1a;
            padding-left: 2rem;
        }
        
        .submenu .filter-btn:hover::before {
            transform: scaleY(1);
        }
        
        .submenu .filter-btn.active {
            background: rgba(0, 0, 0, 0.05);
            color: #1a1a1a;
            font-weight: 600;
            padding-left: 2rem;
        }
        
        .submenu .filter-btn.active::before {
            transform: scaleY(1);
        }
        
        /* Project Grid - Horizontal images, 3 columns */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: clamp(1rem, 2vw, 1.5rem);
            align-items: start;
            opacity: 1;
            transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            content-visibility: auto; /* Optimize rendering */
        }
        
        .projects-grid.filtering {
            opacity: 0;
        }
        
        .project-thumbnail {
            aspect-ratio: 16/10; /* Horizontal aspect ratio */
        }
        
        @media (max-width: 1024px) {
            .projects-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (max-width: 640px) {
            .projects-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Project Item Animation - Smooth fade and scale */
        /* Disable GSAP scroll animations for filtered projects */
        .project-item {
            opacity: 1;
            transform: scale(1);
            transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            display: block;
            content-visibility: auto; /* Optimize rendering */
            contain: layout style paint; /* Isolate rendering */
        }
        
        /* Prevent GSAP from animating these elements */
        .project-item *,
        .project-item.project-thumbnail * {
            will-change: auto !important;
        }
        
        .project-item.filter-hiding {
            opacity: 0 !important;
            transform: scale(0.98) !important;
            pointer-events: none;
        }
        
        .project-item.filter-hidden {
            display: none !important;
        }
        
        .project-item.filter-showing {
            opacity: 0;
            transform: scale(0.98);
        }
        
        /* Spacing */
        section {
            padding-top: clamp(4rem, 8vw, 6rem);
            padding-bottom: clamp(4rem, 8vw, 6rem);
            content-visibility: auto; /* Optimize rendering for off-screen sections */
        }
        
        nav {
            transition: background-color 0.3s ease;
        }
        
        nav.scrolled {
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
        }
        
        /* Footer */
        footer h2 {
            font-size: clamp(1.5rem, 3vw, 2.25rem);
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        
        footer a {
            font-size: clamp(0.8125rem, 1vw, 0.875rem);
            font-weight: 400;
        }
        
        @media (max-width: 768px) {
            section {
                padding-top: 3rem;
                padding-bottom: 3rem;
            }
            
            .filter-buttons {
                gap: 0.75rem;
                margin-bottom: 2rem;
            }
            
            .filter-btn {
                padding: 0.625rem 1.25rem;
                font-size: 0.75rem;
            }
        }
    

        @font-face {
            font-family: 'Helvetica Neue LT Pro';
            src: local('Helvetica Neue LT Pro Bold'), local('HelveticaNeueLTPro-Bd');
            font-weight: bold;
            font-style: normal;
            font-display: swap; /* Optimize font loading */
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'APTOS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow-x: hidden;
            background: #ffffff;
            color: #1a1a1a;
        }
        
        /* Hide cursor only on non-touch devices */
        @media (hover: hover) and (pointer: fine) {
            body {
                cursor: none;
            }
            
            * {
                cursor: none !important;
            }
        }
        
        .font-display, h1, h2, h3, h4, h5, h6, .font-bold, .font-semibold, strong, b {
            font-family: 'Helvetica Neue LT Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
            font-weight: bold;
        }
        
        /* Typography Hierarchy */
        .section-title {
            font-size: clamp(1.75rem, 4vw, 3rem);
            font-weight: 700;
            letter-spacing: -0.025em;
            line-height: 1.2;
            margin-bottom: 2.5rem;
        }
        
        .project-title {
            font-size: clamp(2rem, 5vw, 4.5rem);
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1.1;
        }
        
        .project-location {
            font-size: clamp(1rem, 2vw, 1.25rem);
            font-weight: 400;
            letter-spacing: -0.01em;
            color: #666;
        }
        
        .project-description {
            font-size: clamp(2rem, 3vw, 2.25rem);
            font-weight: 400;
            line-height: 1.4;
            color: #333;
        }
        
        /* Secondary project description - smaller font after Project information */
        .project-description-secondary {
            font-size: clamp(1rem, 1.5vw, 1.1rem);
            font-weight: 400;
            line-height: 1.6;
            color: #333;
        }
        
        /* Project Gallery Mosaic */
        .project-gallery-mosaic {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1rem;
            margin-top: 3rem;
        }
        
        @media (min-width: 768px) {
            .project-gallery-mosaic {
                grid-template-columns: repeat(4, 1fr);
                gap: 1.5rem;
            }
        }
        
        .gallery-item {
            position: relative;
            overflow: hidden;
            cursor: pointer;
            aspect-ratio: 4 / 3;
            border-radius: 2px;
            transition: transform 0.3s ease, opacity 0.3s ease;
        }
        
        .gallery-item:hover {
            transform: scale(1.02);
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }
        
        .gallery-item:hover img {
            transform: scale(1.05);
        }
        
        /* Gallery overlay sa ikonom */
        .gallery-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
        }
        
        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }
        
        .gallery-icon {
            width: 48px;
            height: 48px;
            color: white;
            transform: scale(0.8);
            transition: transform 0.3s ease;
        }
        
        .gallery-item:hover .gallery-icon {
            transform: scale(1);
        }
        
        /* Lightbox */
        .lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.95);
            z-index: 9999;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
            padding: 2rem;
            padding-bottom: 120px; /* Space for thumbnails */
        }
        
        .lightbox.is-open {
            opacity: 1;
            visibility: visible;
        }
        
        .lightbox-close {
            position: absolute;
            top: 2rem;
            right: 2rem;
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            transition: all 0.3s ease;
            z-index: 10000;
        }
        
        .lightbox-close:hover {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
            transform: scale(1.1);
        }
        
        .lightbox-close svg {
            width: 20px;
            height: 20px;
        }
        
        .lightbox-prev,
        .lightbox-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 48px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: white;
            transition: all 0.3s ease;
            z-index: 10000;
        }
        
        .lightbox-prev {
            left: 2rem;
        }
        
        .lightbox-next {
            right: 2rem;
        }
        
        .lightbox-prev:hover:not(.disabled),
        .lightbox-next:hover:not(.disabled) {
            background: rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.4);
            transform: translateY(-50%) scale(1.1);
        }
        
        .lightbox-prev.disabled,
        .lightbox-next.disabled {
            cursor: not-allowed;
            pointer-events: none;
        }
        
        .lightbox-prev svg,
        .lightbox-next svg {
            width: 24px;
            height: 24px;
        }
        
        .lightbox-content {
            width: 100%;
            max-width: 1400px;
            height: calc(100vh - 200px);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }
        
        /* Loading spinner */
        .lightbox-loader {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        
        .lightbox-loader.is-loading {
            opacity: 1;
            visibility: visible;
        }
        
        .loader-spinner {
            width: 48px;
            height: 48px;
            border: 3px solid rgba(255, 255, 255, 0.2);
            border-top-color: white;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .lightbox-content img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            opacity: 0;
            transform: scale(0.9);
            transform-origin: center center;
            transition: opacity 0.5s ease, transform 0.5s ease;
            will-change: opacity, transform;
        }

        /* Custom okrugli cursor: na lightboxu default bijel (radi kontrasta),
           a kad si mišem po “klikabilnim” dijelovima lightboxa, prebaci se u narančasto. */
        @supports(selector(:has(*))) {
            body:has(.lightbox.is-open) .custom-cursor {
                border-color: #ffffff !important;
            }

            body:has(.lightbox.is-open .lightbox-content:hover) .custom-cursor,
            body:has(.lightbox.is-open .lightbox-close:hover) .custom-cursor,
            body:has(.lightbox.is-open .lightbox-prev:hover) .custom-cursor,
            body:has(.lightbox.is-open .lightbox-next:hover) .custom-cursor,
            body:has(.lightbox.is-open .lightbox-thumbs:hover) .custom-cursor,
            body:has(.lightbox.is-open .lightbox-thumb:hover) .custom-cursor {
                border-color: #FF8C00 !important;
            }
        }
        
        .lightbox.is-open .lightbox-content img {
            opacity: 1;
            transform: scale(1);
        }
        
        /* Fade tranzicija pri promjeni slika (fallback) */
        .lightbox-content img.fade-out {
            opacity: 0;
            transform: scale(0.95);
        }
        
        .lightbox-content img.fade-in {
            opacity: 1;
            transform: scale(1);
        }
        
        .lightbox-thumbs {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100px;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 0.75rem;
            padding: 1rem 3.25rem; /* prostor za strelice lijevo/desno */
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
        }

        .lightbox-thumbs::-webkit-scrollbar {
            height: 0;
            width: 0;
        }

        /* Strelice za horizontalno skrolanje thumb trake (pojavljuju se samo kad ima još sadržaja) */
        .lightbox-thumbs-arrow {
            position: absolute;
            z-index: 10001;
            width: 38px;
            height: 38px;
            border-radius: 999px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
            bottom: 32px; /* centrirano u traci visine 100px */
        }

        .lightbox-thumbs-arrow svg {
            width: 20px;
            height: 20px;
        }

        .lightbox-thumbs-arrow.is-visible {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .lightbox-thumbs-arrow:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.06);
        }

        .lightbox-thumbs-prev { left: 10px; }
        .lightbox-thumbs-next { right: 10px; }
        
        .lightbox-thumb {
            width: 80px;
            height: 60px;
            flex-shrink: 0;
            border-radius: 2px;
            overflow: hidden;
            cursor: pointer;
            opacity: 0.5;
            transition: opacity 0.3s ease, transform 0.3s ease;
            border: 2px solid transparent;
        }
        
        .lightbox-thumb:hover {
            opacity: 0.8;
            transform: translateY(-2px);
        }
        
        .lightbox-thumb.is-active {
            opacity: 1;
            border-color: white;
        }
        
        .lightbox-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        @media (max-width: 768px) {
            .lightbox-prev,
            .lightbox-next {
                width: 40px;
                height: 40px;
            }
            
            .lightbox-prev {
                left: 1rem;
            }
            
            .lightbox-next {
                right: 1rem;
            }
            
            .lightbox-close {
                top: 1rem;
                right: 1rem;
                width: 40px;
                height: 40px;
            }
            
            .lightbox-thumbs {
                height: 80px;
                padding: 0.75rem 3rem;
            }
            
            .lightbox-thumb {
                width: 60px;
                height: 45px;
            }

            .lightbox-thumbs-arrow {
                width: 34px;
                height: 34px;
                bottom: 22px; /* centrirano u traci visine 80px */
            }
        }
        
        .info-label {
            font-size: clamp(0.75rem, 1vw, 0.8125rem);
            font-weight: 500;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #666;
            margin-bottom: 0.5rem;
        }
        
        /* Ensure all labels in project info grid are aligned horizontally */
        /* On desktop, ensure all items in same row have same height */
        @media (min-width: 1024px) {
            /* Ograniči širinu Project information sekcije na velikim ekranima */
            .content-section:has(.project-info-grid) .content-container {
                max-width: 1200px;
            }
            
            .project-info-grid {
                display: grid;
                grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr; /* Prilagođene širine stupaca da tekst bude identičan slici */
                align-items: start;
                column-gap: 1.5rem; /* Smanjen razmak između kolona */
            }
            
            /* Još manji razmak između prve i druge kolone */
            .project-info-grid > div:nth-child(1) {
                margin-right: -0.5rem;
            }
            
            .project-info-grid > div:nth-child(2) {
                margin-left: -0.5rem;
            }
            
            .project-info-grid > div {
                display: flex;
                flex-direction: column;
                gap: 2rem;
            }
            
            .project-info-grid > div > div {
                display: flex;
                flex-direction: column;
            }
            
            /* AWARDS item can grow naturally */
            .project-info-grid > div:nth-child(4) > div:nth-child(3) {
                min-height: auto !important; /* Allow AWARDS to grow beyond equalized height */
            }
        }
        
        /* Mobile and tablet styles */
        @media (max-width: 1023px) {
            .project-info-grid > div {
                display: flex;
                flex-direction: column;
            }
            
            .project-info-grid > div > div {
                display: flex;
                flex-direction: column;
            }
        }
        
        /* Ensure labels align across columns - all labels in same row have same top position */
        .project-info-grid .info-label {
            height: 1.5em;
            line-height: 1.5em;
            flex-shrink: 0; /* Prevent label from shrinking */
        }
        
        .info-value {
            font-size: clamp(0.8125rem, 1vw, 0.875rem);
            font-weight: bold;
            line-height: 1.5;
            color: #1a1a1a;
        }
        
        /* Navigation */
        nav .text-2xl {
            font-size: clamp(1.25rem, 2vw, 1.5rem);
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        
        nav a {
            font-size: clamp(0.8125rem, 1vw, 0.875rem);
            font-weight: 500;
            letter-spacing: 0.01em;
            position: relative;
            display: inline-block;
            padding: 0.5rem 0;
            color: #1a1a1a;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        /* Modern elegant underline animation */
        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #1a1a1a 0%, #1a1a1a 100%);
            transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            transform-origin: left;
        }
        
        nav a:hover::after {
            width: 100%;
        }
        
        nav a {
            transform: scale(1);
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
        }
        
        nav a:hover {
            transform: scale(1.05);
        }
        
        .nav-link-hover {
            color: #1a1a1a;
        }
        
        .nav-link-hover:hover {
            color: #999999;
        }
        
        /* Sub-menu for Projects */
        /* Modern Sub-menu */
        .nav-item-with-submenu {
            position: relative;
        }
        
        .submenu {
            position: absolute;
            top: calc(100% + 0.75rem);
            left: 0;
            background: white;
            padding: 1.25rem 0;
            min-width: 280px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-8px);
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 100;
            border-radius: 2px;
            border: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        @media (hover: hover) {
            .nav-item-with-submenu:hover .submenu {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }
        
        /* Mobile: Show submenu on click */
        @media (max-width: 768px) {
            .nav-item-with-submenu {
                position: static;
            }
            
            .submenu {
                position: static;
                display: none;
                margin-top: 0;
                padding: 1rem 0;
                box-shadow: none;
                border: none;
                border-top: 1px solid rgba(0, 0, 0, 0.1);
            }
            
            .nav-item-with-submenu.active .submenu {
                display: block;
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
            }
        }
        
        .submenu .filter-btn {
            display: block;
            width: 100%;
            text-align: left;
            padding: 0.75rem 1.5rem;
            margin: 0;
            border: none;
            border-left: 3px solid transparent;
            border-radius: 0;
            background: transparent;
            color: #666;
            font-size: 0.8125rem;
            font-weight: 500;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            text-decoration: none;
        }
        
        .submenu .filter-btn::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: #1a1a1a;
            transform: scaleY(0);
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .submenu .filter-btn:hover {
            background: rgba(0, 0, 0, 0.03);
            color: #1a1a1a;
            padding-left: 2rem;
        }
        
        .submenu .filter-btn:hover::before {
            transform: scaleY(1);
        }
        
        .submenu .filter-btn.active {
            background: rgba(0, 0, 0, 0.05);
            color: #1a1a1a;
            font-weight: 600;
            padding-left: 2rem;
        }
        
        .submenu .filter-btn.active::before {
            transform: scaleY(1);
        }
        
        /* Hero / Slider Image â€“ fullscreen */
        .hero-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        /* Video styling */
        .hero-slide video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .hero-slide {
            width: 100%;
            height: 100%;
        }
        
        /* Video styling */
        .hero-slide video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* Video restart button */
        .video-restart-btn {
            position: absolute;
            top: 2rem;
            right: 2rem;
            z-index: 25;
            width: 44px;
            height: 44px;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.3s ease;
            backdrop-filter: blur(4px);
        }
        
        .video-restart-btn:hover {
            opacity: 1;
            background: rgba(0, 0, 0, 0.6);
            border-color: rgba(255, 255, 255, 0.5);
            transform: scale(1.1);
        }
        
        .video-restart-btn svg {
            width: 18px;
            height: 18px;
            stroke: white;
            stroke-width: 2;
            fill: none;
        }
        
        @media (max-width: 768px) {
            .video-restart-btn {
                top: 1.5rem;
                right: 1.5rem;
                width: 40px;
                height: 40px;
            }
            
            .video-restart-btn svg {
                width: 16px;
                height: 16px;
            }
        }
        
        /* Project Images â€“ bez rezanja */
        .project-image {
            width: 100%;
            height: auto;
            object-fit: contain;
            display: block;
        }
        
        /* Wide image directly under tags â€“ optimizirana visina */
        .project-image-wide {
            width: 100%;
            height: auto;
            max-height: 60vh;
            object-fit: cover;
            display: block;
        }
        
        /* Image in 50/50 bloku â€“ optimizirana visina */
        .project-image-half {
            width: 100%;
            height: auto;
            max-height: 50vh;
            object-fit: cover;
            display: block;
        }

        /* Hero Slider */
        .hero-slider {
            position: relative;
            width: 100%;
            height: calc(100vh - 64px);
            overflow: hidden;
        }

        @media (max-width: 1024px) {
            .hero-slider {
                height: calc(var(--hero-lock-h, 100svh) - 64px);
            }
        }

        .hero-slide {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 0.8s ease;
        }

        .hero-slide.is-active {
            opacity: 1;
            position: absolute;
            inset: 0;
        }

        .hero-slider-inner {
            position: relative;
            width: 100%;
            height: 100%;
        }
        
        /* Project title i location - absolute u gornjem lijevom kutu slidera */
        .hero-project-title {
            position: absolute;
            top: 2rem;
            left: clamp(1.5rem, 4vw, 3rem);
            z-index: 15;
            color: white;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }
        
        .hero-breadcrumbs {
            font-size: clamp(0.75rem, 1.1vw, 0.8125rem);
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 0.5rem;
        }
        
        .hero-breadcrumbs a {
            color: inherit;
            text-decoration: none;
        }
        
        .hero-breadcrumbs span {
            margin: 0 0.5rem;
        }
        
        .hero-project-title h1 {
            margin-bottom: 0.5rem;
        }
        
        .hero-project-title p {
            color: rgba(255, 255, 255, 0.9);
        }

        .hero-slider-nav {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 1.75rem;
            pointer-events: none;
        }

        .hero-slider-arrow {
            width: 42px;
            height: 42px;
            border-radius: 999px;
            border: 1px solid rgba(255,255,255,0.6);
            background: rgba(0,0,0,0.35);
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: auto;
            cursor: pointer;
            transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
            opacity: 0.9;
            backdrop-filter: blur(4px);
        }

        .hero-slider-arrow svg {
            width: 18px;
            height: 18px;
            stroke: #ffffff;
            stroke-width: 2;
            fill: none;
        }

        .hero-slider-arrow:hover:not(.disabled) {
            background: rgba(0,0,0,0.55);
            border-color: rgba(255,255,255,0.9);
            transform: translateY(-1px);
            opacity: 1;
        }
        
        .hero-slider-arrow.disabled {
            opacity: 0.3;
            cursor: not-allowed;
            pointer-events: none;
        }

        .hero-slider-thumbs {
            position: absolute;
            left: 0;
            right: 0; /* Gradient ide punom Å¡irinom */
            bottom: 0;
            padding: 0.75rem 1.75rem 1.25rem;
            padding-right: calc(80px + 1.75rem); /* Ostavljamo prostor za scroll indicator (strelicu) */
            display: flex;
            gap: 0.5rem;
            justify-content: flex-start;
            align-items: flex-end;
            background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
            z-index: 10; /* Iznad bottom-zone i iznad slider-bottom-zone, da klik radi */
            opacity: 0;
            transform: translateY(20px);
            pointer-events: none;
            transition: opacity 0.35s ease, transform 0.35s ease;
            flex-wrap: wrap;
        }

        .hero-slider.has-thumbs-visible .hero-slider-thumbs {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .hero-thumb {
            width: 60px;
            aspect-ratio: 4 / 3;
            border-radius: 2px;
            overflow: hidden;
            border: 1px solid transparent;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
        }

        .hero-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .hero-thumb:hover {
            opacity: 1;
            transform: translateY(-2px);
        }

        .hero-thumb.is-active {
            opacity: 1;
            border-color: rgba(255,255,255,0.9);
        }

        .hero-slider-bottom-zone {
            position: absolute;
            left: 0;
            right: 0; /* Zona ide punom Å¡irinom */
            bottom: 0;
            height: 200px; /* ProÅ¡irena zona za lakÅ¡e aktiviranje */
            z-index: 1; /* Ispod thumbnails, samo za hover detekciju */
            pointer-events: auto; /* Osiguraj da zona prima mouse events */
        }
        
        /* Scroll indicator (strelica) kao na index.html */
        .scroll-indicator {
            position: absolute;
            bottom: 2rem;
            right: 2rem;
            z-index: 20;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0.6;
            pointer-events: none;
        }
        
        .scroll-indicator svg {
            width: 24px;
            height: 24px;
            stroke: white;
            stroke-width: 2;
            fill: none;
        }
        
        @keyframes float {
            0%, 100% {
                transform: translateY(0);
            }
            50% {
                transform: translateY(-8px);
            }
        }
        
        .scroll-indicator {
            animation: float 2s ease-in-out infinite;
        }
        
        /* Projects Slider */
        .projects-slider-wrapper {
            position: relative;
            overflow: visible;
            padding: 0 3rem;
        }
        
        .projects-slider {
            overflow: hidden;
            position: relative;
        }
        
        .projects-slider-track {
            display: flex;
            gap: 1.25rem;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            will-change: transform;
        }
        
        .projects-slide {
            flex: 0 0 calc(33.333% - 0.833rem);
            min-width: 0;
        }
        
        /* Project thumbnail styling za slider */
        .projects-slide.project-thumbnail {
            position: relative;
            overflow: hidden;
            aspect-ratio: 16/10;
            cursor: pointer;
            border-radius: 2px;
        }
        
        .projects-slide.project-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }
        
        .projects-slide.project-thumbnail:hover img {
            transform: scale(1.08);
        }
        
        /* Transparent gray overlay on hover */
        .projects-slide.project-thumbnail::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            opacity: 0;
            transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            z-index: 1;
        }
        
        @media (hover: hover) {
            .projects-slide.project-thumbnail:hover::before {
                opacity: 1;
            }
        }
        
        /* Project overlay - uvijek vidljiv, samo siva pozadina na hover */
        .projects-slide .project-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 2rem;
            z-index: 2;
            opacity: 1 !important;
            visibility: visible !important;
            transform: translateY(0) !important;
            transition: none;
        }
        
        .projects-slide .project-overlay h3 {
            font-size: clamp(1.125rem, 2.5vw, 1.5rem);
            font-weight: 600;
            letter-spacing: -0.015em;
            line-height: 1.3;
            color: white !important;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            opacity: 1 !important;
            visibility: visible !important;
        }
        
        .projects-slide .project-overlay p {
            font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
            font-weight: 400;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
            opacity: 1 !important;
            visibility: visible !important;
        }
        
        @media (max-width: 1024px) {
            .projects-slide {
                flex: 0 0 calc(50% - 0.625rem);
            }
        }
        
        @media (max-width: 640px) {
            .projects-slide {
                flex: 0 0 100%;
            }
            
            .projects-slider-wrapper {
                padding: 0 2.5rem;
            }
        }
        
        .projects-slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: 1px solid rgba(26, 26, 26, 0.2);
            background: rgba(255, 255, 255, 0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s ease;
            backdrop-filter: blur(8px);
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        
        .projects-slider-wrapper:hover .projects-slider-btn:not(.disabled) {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        
        .projects-slider-btn.disabled {
            opacity: 0.3 !important;
            cursor: not-allowed;
            pointer-events: none;
        }
        
        .projects-slider-btn:hover:not(.disabled) {
            background: rgba(255, 255, 255, 1);
            border-color: rgba(26, 26, 26, 0.4);
            transform: translateY(-50%) scale(1.05);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        }
        
        .projects-slider-btn svg {
            width: 20px;
            height: 20px;
            stroke: #1a1a1a;
        }
        
        .projects-slider-btn-prev {
            left: 0;
        }
        
        .projects-slider-btn-next {
            right: 0;
        }
        
        @media (max-width: 768px) {
            .projects-slider-btn {
                width: 40px;
                height: 40px;
            }
            
            .projects-slider-btn svg {
                width: 16px;
                height: 16px;
            }
        }
        
        /* Modern Sharp Corners */
        .rounded-lg {
            border-radius: 2px !important;
        }
        
        /* Consistent Spacing */
        .content-section {
            padding-top: clamp(3rem, 6vw, 5rem);
            padding-bottom: clamp(3rem, 6vw, 5rem);
            content-visibility: auto; /* Optimize rendering for off-screen sections */
        }
        
        .content-section:first-of-type {
            padding-top: clamp(4rem, 8vw, 6rem);
        }
        
        /* Max width containers for better readability */
        .content-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 clamp(1.5rem, 4vw, 3rem);
        }
        
        .text-container {
            max-width: 900px;
            margin: 0 auto;
        }
        
        nav {
            transition: background-color 0.3s ease;
        }
        
        nav.scrolled {
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
        }
        
        /* Footer */
        footer h2 {
            font-size: clamp(1.5rem, 3vw, 2.25rem);
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        
        footer a {
            font-size: clamp(0.8125rem, 1vw, 0.875rem);
            font-weight: 400;
        }
        
        @media (max-width: 768px) {
            .content-section {
                padding-top: 2.5rem;
                padding-bottom: 2.5rem;
            }
            
            .content-section:first-of-type {
                padding-top: 3rem;
            }
            
            .hero-slider-inner {
                height: calc(var(--hero-lock-h, 100svh) - 64px);
                min-height: 320px;
            }
            
            .hero-project-title {
                top: 1.5rem;
                left: 1.5rem;
            }

            .hero-slider-nav {
                padding: 0 1.25rem;
            }

            /* Na mobitelu, thumbnails su stalno vidljivi ispod slidera, ali u istom view-u */
            .hero-slider-thumbs {
                position: absolute;
                left: 0;
                right: 0; /* Gradient ide punom Å¡irinom */
                bottom: 0;
                padding: 0.5rem 1.25rem 1rem;
                padding-right: calc(60px + 1.25rem); /* Ostavljamo prostor za scroll indicator na mobitelu */
                opacity: 1;
                transform: translateY(0);
                pointer-events: auto;
                flex-wrap: nowrap;
            }

            .hero-slider-bottom-zone {
                right: 0; /* Zona ide punom Å¡irinom, ali thumbnails imaju padding */
            }

            .scroll-indicator {
                bottom: 1.5rem;
                right: 1.5rem;
                width: 36px;
                height: 36px;
            }
            
            .scroll-indicator svg {
                width: 20px;
                height: 20px;
            }
            
            .content-container {
                padding: 0 1.5rem;
            }
            
            .text-container {
                padding: 0 1.5rem;
            }
        }

        /*
          Tablet + mobile: bez hover animacija – uvijek prikaži samo rezultat kao da je hover aktivan.
          Nema tranzicija na hover, sve je statično.
        */
        @media (max-width: 1024px) {
            /* Project thumbnails – overlay u “hover” poziciji, naslov i opis vidljivi */
            .project-thumbnail .project-overlay {
                bottom: 1.5rem !important;
                left: 1.5rem !important;
                right: auto !important;
                top: auto !important;
                padding: 1rem 1.5rem !important;
                min-height: auto !important;
                transition: none !important;
            }
            .project-thumbnail .project-overlay h3 {
                margin-bottom: 0.5rem !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: scale(0.65) translateY(0) translateZ(0) !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                max-width: none !important;
                transition: none !important;
            }
            .project-thumbnail .project-overlay p {
                margin-top: 0.125rem !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: translateY(0) translateZ(0) !important;
                overflow: visible !important;
                transition: none !important;
            }
            .project-thumbnail::before {
                opacity: 1 !important;
                transition: none !important;
            }
            .project-thumbnail img {
                transition: none !important;
            }

            /* Tablet/mobile: kad se doda :hover (dodir), NE smije doći do trzaja.
               Zadržavamo isti "končan" rezultat kao kad hover nije aktivan. */
            .project-thumbnail:hover img {
                transform: none !important;
                filter: none !important;
            }
            .project-thumbnail:hover::before {
                opacity: 1 !important;
                transition: none !important;
            }
            .project-thumbnail:hover .project-overlay {
                bottom: 1.5rem !important;
                left: 1.5rem !important;
                right: auto !important;
                top: auto !important;
                padding: 1rem 1.5rem !important;
                transition: none !important;
            }
            .project-thumbnail:hover .project-overlay h3 {
                margin-bottom: 0.5rem !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: scale(0.65) translateY(0) translateZ(0) !important;
                overflow: hidden !important;
                max-width: none !important;
                transition: none !important;
            }
            .project-thumbnail:hover .project-overlay p {
                margin-top: 0.125rem !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: translateY(0) translateZ(0) !important;
                overflow: visible !important;
                transition: none !important;
            }

            /* Force :not(:hover) state to match the exact same final mobile/tablet look
               (prevents jump when touch toggles hover state). */
            .project-thumbnail:not(:hover) .project-overlay {
                bottom: 1.5rem !important;
                left: 1.5rem !important;
                right: auto !important;
                top: auto !important;
                padding: 1rem 1.5rem !important;
                width: auto !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: none !important;
                transition: none !important;
            }
            .project-thumbnail:not(:hover) .project-overlay h3 {
                margin-bottom: 0.5rem !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: scale(0.65) translateY(0) translateZ(0) !important;
                overflow: hidden !important;
                text-overflow: ellipsis !important;
                max-width: none !important;
                transition: none !important;
            }
            .project-thumbnail:not(:hover) .project-overlay p {
                margin-top: 0.125rem !important;
                opacity: 1 !important;
                visibility: visible !important;
                transform: translateY(0) translateZ(0) !important;
                overflow: visible !important;
                transition: none !important;
            }

            /* Section link – boja kao na hoveru */
            .section-link {
                color: #1a1a1a;
                transition: none;
            }

            /* Nav link – underline i boja bez animacije */
            nav a {
                transition: none;
            }
            nav a::after {
                width: 100%;
                transition: none;
            }
            .nav-link-hover {
                color: #1a1a1a;
            }
            /* Mobile/tablet: logo bez underline crte */
            .nav-logo::after {
                display: none !important;
                width: 0 !important;
            }

            /* News / award kartice – blagi pomak kao na hoveru */
            .news-item,
            .award-item {
                transform: translateY(-5px);
                transition: none;
            }

            /* Gallery item (mosaic) - ne forsirati "hover" stanje.
               Overlay/ikonica neka se prikazuju samo na pravom hoveru: .gallery-item:hover ... */

            /* Filter btn – bez hover tranzicije */
            .filter-btn {
                transition: none;
            }
            .submenu .filter-btn {
                transition: none;
            }
            .submenu .filter-btn::before {
                transition: none;
            }

            /* Video restart btn – bez hover scale/boje */
            .video-restart-btn {
                transition: none;
            }

            /* Hero slider strelice i thumb – bez hover efekata */
            .hero-slider-arrow {
                transition: none;
            }
            .hero-thumb {
                transition: none;
            }

            /* Projects slider – thumbnails overlay vidljiv, bez hover animacije; razmak naslov–tekst */
            .projects-slide.project-thumbnail img {
                transition: none;
            }
            .projects-slide.project-thumbnail::before {
                opacity: 1;
                transition: none;
            }
            /* On mobile/tablet: nema hover scale/transform efekta */
            .projects-slide.project-thumbnail:hover img {
                transform: none !important;
                filter: none !important;
            }
            .projects-slide.project-thumbnail:hover::before {
                opacity: 1 !important;
            }
            .projects-slide .project-overlay h3 {
                margin-bottom: 0.5rem !important;
            }
            .projects-slide .project-overlay p {
                margin-top: 0.125rem !important;
            }
            /* Dugmad prev/next: stalno vidljiva na mobile/tablet */
            .projects-slider-btn {
                opacity: 1 !important;
                visibility: visible !important;
                pointer-events: auto !important;
                transition: none;
            }
            .projects-slider-wrapper:hover .projects-slider-btn:not(.disabled) {
                opacity: 1 !important;
                visibility: visible !important;
                pointer-events: auto !important;
            }
            /* Nema hover efekta na dugmadima */
            .projects-slider-btn:hover:not(.disabled) {
                transform: translateY(-50%) !important;
                background: rgba(255, 255, 255, 0.95) !important;
                border-color: rgba(26, 26, 26, 0.2) !important;
                box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
            }

            /* Lightbox kontrole – bez hover animacije */
            .lightbox-close,
            .lightbox-prev,
            .lightbox-next,
            .lightbox-thumb {
                transition: none;
            }
        }

        /* Single news: two-column article grid (tekst i slike u stupcima) */
        .article-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2.5rem;
        }
        @media (min-width: 768px) {
            .article-grid {
                grid-template-columns: 1fr 1fr;
                gap: 2.5rem 3rem;
            }
        }
        .article-col {
            min-width: 0;
        }
        .article-img-wrap {
            overflow: hidden;
        }
        .article-img-wrap img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* WP-like Mobile Navigation (side menu + dropdown) */
        .menu-toggle {
            display: none;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            border-radius: 2px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            background: rgba(255, 255, 255, 0.85);
            cursor: pointer;
            backdrop-filter: blur(6px);
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: inline-flex;
            }
        }

        .menu-toggle__icon {
            width: 22px;
            height: 2px;
            background: #1a1a1a;
            position: relative;
            display: block;
            transition: background 0.2s ease;
        }
        .menu-toggle__icon::before,
        .menu-toggle__icon::after {
            content: '';
            position: absolute;
            left: 0;
            width: 100%;
            height: 2px;
            background: #1a1a1a;
            transition: transform 0.2s ease, top 0.2s ease;
        }
        .menu-toggle__icon::before {
            top: -7px;
        }
        .menu-toggle__icon::after {
            top: 7px;
        }

        body.toggled .menu-toggle__icon {
            background: transparent;
        }
        body.toggled .menu-toggle__icon::before {
            top: 0;
            transform: rotate(45deg);
        }
        body.toggled .menu-toggle__icon::after {
            top: 0;
            transform: rotate(-45deg);
        }

        .screen-reader-text {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .menu-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.35);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
            z-index: 999;
        }

        .menu-wrapper {
            position: fixed;
            top: 0;
            right: 0;
            width: min(360px, 86vw);
            height: 100vh;
            background: #ffffff;
            transform: translateX(110%);
            opacity: 0;
            transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.35s ease;
            z-index: 1000;
            overflow-y: auto;
            pointer-events: none;
            visibility: visible; /* keep for smooth animation */
            box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
            will-change: transform, opacity;
        }

        body.toggled .menu-overlay {
            opacity: 1;
            pointer-events: auto;
        }
        body.toggled .menu-wrapper {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
        }

        .menu-inner {
            padding: 1.25rem 1rem 2rem;
        }

        .menu-close {
            width: 44px;
            height: 44px;
            border-radius: 2px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            background: rgba(255, 255, 255, 0.85);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: auto;
            margin-bottom: 0.75rem;
        }

        .menu-close span {
            font-size: 26px;
            line-height: 1;
            color: #1a1a1a;
        }

        .menu {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .menu-item {
            margin: 0;
        }

        /* Top-level items */
        .menu > .menu-item > a.menu-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.95rem 0.75rem;
            text-decoration: none;
            color: #1a1a1a;
            font-weight: 600;
            border-top: 1px solid rgba(0, 0, 0, 0.06);
        }

        .menu > .menu-item:first-child > a.menu-link {
            border-top: 0;
        }

        .menu > .menu-item > a.menu-link:hover {
            background: rgba(0, 0, 0, 0.03);
        }

        /* Dropdown: submenu inherits existing `.submenu` styles,
           but we add WP-ish spacing for list layout. */
        .menu-item-has-children .submenu.sub-menu {
            width: 100%;
        }

        .projects-arrow {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 22px;
            height: 22px;
            font-size: 16px;
            line-height: 1;
            color: #1a1a1a;
            transform: rotate(180deg) translateY(-1px); /* '←' -> '→' */
            transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
            flex: 0 0 auto;
            pointer-events: none;
        }

        .menu-item-has-children.nav-item-with-submenu.active > a.menu-link .projects-arrow {
            transform: rotate(90deg) translateY(-1px); /* '←' -> '↓' */
        }

        /* Subtle hover nudge (no tailwind classes to avoid transform conflicts) */
        .menu > .menu-item > a.menu-link:hover .projects-arrow {
            transform: rotate(180deg) translateX(-4px) translateY(-1px);
        }
        .menu-item-has-children.nav-item-with-submenu.active > a.menu-link:hover .projects-arrow {
            transform: rotate(90deg) translateX(-4px) translateY(-1px);
        }

        /* Animate Projects dropdown clearly inside the drawer */
        .menu-wrapper .menu-item-has-children .submenu.sub-menu {
            max-height: 0;
            opacity: 0;
            transform: translateY(-10px);
            overflow: hidden;
            pointer-events: none;

            /* Override earlier mobile `.submenu { display:none }` logic */
            display: block;
            visibility: visible;
            border-top: 0;
            padding: 0;

            transition: max-height 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.35s ease,
                transform 0.45s ease;
        }

        .menu-wrapper .menu-item-has-children.nav-item-with-submenu.active .submenu.sub-menu {
            max-height: 420px; /* enough for all items */
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
            padding: 0.65rem 0 0.85rem;
            border-top: 1px solid rgba(0, 0, 0, 0.08);
        }

        /* Ensure Projects top-level link has the same border as other drawer top-level links */
        .menu-wrapper .menu > .menu-item.menu-item-has-children > a.menu-link {
            border-top: 1px solid rgba(0, 0, 0, 0.06);
        }
        .menu-wrapper .menu > .menu-item:first-child.menu-item-has-children > a.menu-link {
            border-top: 0;
        }

        /* Remove borders/indicators from submenu links (Projects filters) */
        .menu-wrapper .submenu.sub-menu .filter-btn {
            border: none !important;
            border-left: 0 !important;
            padding-left: 1.5rem !important;
        }
        .menu-wrapper .submenu.sub-menu .filter-btn::before {
            display: none !important;
        }
        .menu-wrapper .submenu.sub-menu .filter-btn:hover,
        .menu-wrapper .submenu.sub-menu .filter-btn.active {
            padding-left: 1.5rem !important;
        }

        .menu-wrapper .menu-item-has-children .submenu.sub-menu > .menu-item {
            opacity: 0;
            transform: translateX(-8px);
            transition: opacity 0.35s ease, transform 0.45s ease;
        }

        .menu-wrapper .menu-item-has-children.nav-item-with-submenu.active .submenu.sub-menu > .menu-item {
            opacity: 1;
            transform: translateX(0);
        }

        /* Mobile/tablet: underline only on top-level drawer links, not on submenu links */
        @media (max-width: 1024px) {
            .menu-wrapper .submenu.sub-menu a::after {
                content: none !important;
                width: 0 !important;
                height: 0 !important;
                background: none !important;
            }
        }

        /* Drawer slide + fade polish */
        .menu-wrapper {
            opacity: 0;
        }
        body.toggled .menu-wrapper {
            opacity: 1;
        }

        .menu-overlay {
            opacity: 0;
        }
        body.toggled .menu-overlay {
            opacity: 1;
        }
    	
