/* =========================================
   CLAY.GLOBAL INSPIRED (Brutalist, Clean, Huge Typography)
   ========================================= */

@import url('fonts.css');

:root {
    --bg-color: #F4F4F0; /* Warm clay beige */
    --text-main: #000000;
    --text-muted: #555555;
    --border-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography */
h1, h2, h3 {
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: none;
}

a { text-decoration: none; color: inherit; }
li { list-style: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 50px; 
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-black {
    background: #000000;
    color: #ffffff;
}

.btn-black:hover {
    background: #333333;
    transform: scale(1.02);
}

.circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s;
}
.circle-btn:hover {
    transform: translateY(5px);
}

.w-100 { width: 100%; }

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    background: rgba(0, 0, 0, 0.95); /* Čista crna za stopstveno stapanje pozadine logotipa */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Brand Logo Image & Text Group */
.logo-link {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.logo-link:hover {
    transform: scale(1.03); /* Lagano, skupocjeno povećanje cijelog bloka */
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #ffffff; /* Bijeli tekst logotipa u crnom navbaru */
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-tech-detail {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: #666666;
    letter-spacing: 0.08em;
    margin-top: 4px;
    font-weight: 400;
}

.brand-logo {
    height: 44px; /* Smanjeno na elegantniju mjeru */
    width: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-link:hover .brand-logo {
    transform: rotate(6deg) scale(1.06);
}

/* Nav Status HUD Center Ticker */
.nav-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #888888;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 10px #00ff66, 0 0 20px #00ff66;
    animation: blinkGlow 2s infinite;
}

.status-divider {
    color: #333333;
}

@keyframes blinkGlow {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 4px #00ff66;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 12px #00ff66, 0 0 20px #00ff66;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn) {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff; /* Bijeli linkovi u crnom navbaru */
    transition: opacity 0.3s;
}
.nav-links a:not(.btn):hover {
    opacity: 0.6;
}
.nav-links a:not(.btn).active {
    border-bottom: 2px solid #ffffff;
    padding-bottom: 4px;
}

.navbar .btn-black {
    background: #ffffff;
    color: #000000;
}
.navbar .btn-black:hover {
    background: #dddddd;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    padding: 190px 5% 50px; /* Povećano da izbjegne preklapanje plutajućeg navbara */
}

.hero-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    text-transform: uppercase;
    display: inline-block;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 7vw, 7.5rem);
    line-height: 0.92;
    margin-bottom: 50px;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(0, 0, 0, 0.15); /* Elegantnija, tanja linija */
    padding-top: 30px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 500px;
    font-weight: 400;
}

/* Showcase Media */
.showcase {
    padding: 0 5%;
    margin-bottom: 150px;
}

.showcase-media {
    width: 100%;
    height: 80vh;
    border-radius: 30px;
    background: #E5E5E0; /* Slightly darker than page bg */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fluid Morphing Blob Animation */
.morphing-blob {
    width: clamp(300px, 40vw, 600px);
    height: clamp(300px, 40vw, 600px);
    background: linear-gradient(135deg, #000000, #434343);
    animation: morphBlob 10s ease-in-out infinite;
    transition: all 1s ease-in-out;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    box-shadow: inset 10px 20px 30px rgba(255,255,255,0.2), inset -10px -20px 30px rgba(0,0,0,0.5);
}

.showcase-media:hover .morphing-blob {
    transform: scale(1.05) rotate(15deg);
}

@keyframes morphBlob {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(360deg) scale(1);
    }
}

.showreel-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.05);
    pointer-events: none;
    gap: 15px;
}

.showreel-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 500;
    color: #ffffff;
    mix-blend-mode: difference;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.showreel-subtext {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #ffffff;
    mix-blend-mode: difference;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.3s;
}

/* Services */
.services {
    padding: 100px 0 150px;
}

.section-header h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 60px;
}

.services-list {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.service-row {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sweep efekt s lijeva na desno (crna pozadina) */
.service-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.service-row:hover::before,
.service-row.active::before {
    transform: scaleX(1);
}

.service-row:hover,
.service-row.active {
    color: #ffffff;
    padding-left: 45px;
}

.service-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.service-row h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 2.2rem);
    font-weight: 500;
    flex: 1;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row p {
    flex: 1.2;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.5;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-row:hover p,
.service-row.active p {
    color: #aaaaaa;
}

/* Animirana strelica s desne strane */
.service-arrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: #000000;
    opacity: 0.15;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, color 0.4s;
    margin-left: 30px;
    display: inline-block;
    z-index: 2;
}

.service-row:hover .service-arrow,
.service-row.active .service-arrow {
    opacity: 1;
    transform: translateX(10px);
    color: #ffffff;
}

/* Contact */
.contact-section {
    padding: 150px 0;
    background: #000;
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-text h2 {
    font-size: clamp(3rem, 5vw, 6rem);
    margin-bottom: 30px;
}

.contact-status-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.contact-status-simple {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    color: #888888;
    margin: 0;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 10px #00ff66;
    display: inline-block;
    animation: simplePulse 2s infinite;
}

@keyframes simplePulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02); /* Suptilna tamna pozadina */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Vidljivi obrub kutije */
    border-radius: 8px; /* Zaobljeni kutovi */
    color: #fff;
    padding: 16px 20px; /* Unutarnji padding da se jasno vidi polje */
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, background-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.35); /* Svjetliji obrub pri kliku */
    background: rgba(255, 255, 255, 0.04);
}

.contact-form .btn-black {
    background: #fff;
    color: #000;
    margin-top: 20px;
    font-size: 1.2rem;
    padding: 20px;
}
.contact-form .btn-black:hover {
    background: #eee;
}

/* Footer */
footer {
    background: #000000; /* Prava crna za dubinu */
    color: var(--text-main);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

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

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 992px) {
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    .service-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 35px 20px;
    }
    .service-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .nav-status {
        display: none; /* Sakrij sat na tabletima/mobitelima */
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .work-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
/* Mobile Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Iznad overlay izbornika */
    outline: none;
}

.nav-toggle .hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Menu Active Hamburger Animations */
.navbar.nav-active .nav-toggle .hamburger-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.navbar.nav-active .nav-toggle .hamburger-bar:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    /* Mobile Overlay Menu */
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        gap: 30px;
        z-index: 1000;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 80px 20px;
    }
    
    .navbar.nav-active .nav-links {
        transform: translateY(0);
    }
    
    .nav-links a:not(.btn) {
        font-size: 1.8rem;
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
    }
    
    .nav-links .btn {
        margin-top: 15px;
        padding: 16px 40px;
        font-size: 1rem;
    }

    .showcase-media { height: 50vh; }
}

/* Generic Section Tag */
.section-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    text-transform: uppercase;
    display: inline-block;
}

/* About Section */
.about-section {
    padding: 150px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.about-right {
    width: 100%;
}

.about-huge-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4.2vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 10px;
}

.about-text-lead {
    font-size: 1.45rem;
    line-height: 1.5;
    color: var(--text-main);
    margin-bottom: 50px;
    font-weight: 400;
}

.about-principles {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.principle-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #EAEAE4; /* Softer beige clay tone */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    padding: 35px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.principle-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.principle-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 0;
    border-bottom: 1px dashed transparent;
    transition: padding-bottom 0.3s ease, border-color 0.3s ease;
}

.principle-item.expanded .principle-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
    padding-bottom: 12px;
}

.principle-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #000000;
    background: rgba(0, 0, 0, 0.06);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
}

.principle-item h4 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.02em;
    flex: 1; /* Širi naslov kako bi se gumb poravnao desno */
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.3s, background-color 0.3s;
}

.read-more-btn:hover {
    color: #000000;
    background-color: rgba(0, 0, 0, 0.06);
}

/* Skupljanje i glatka animacija širenja */
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.principle-item.expanded .collapsible-content {
    max-height: 1200px; /* Dovoljno velika visina za cjelokupni GDPR tekst */
    opacity: 1;
    margin-top: 18px;
}

.principle-item p {
    margin: 0;
    line-height: 1.6;
    color: #2b2b2b; /* Soft premium dark grey */
    font-size: 0.98rem;
}

/* Work Section */
.work-section {
    padding: 150px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.work-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 60px;
    font-weight: 500;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.work-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.work-img-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 20px;
    overflow: hidden;
    background: #E5E5E0;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-img {
    transform: scale(1.05);
}

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

.work-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    transition: color 0.3s;
}

.work-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Scrambled character style for decode transition */
.d-char {
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.65;
    font-weight: 400;
}

/* Contact Success Message CSS */
.hud-success-message {
    border: 1px solid rgba(0, 255, 102, 0.25);
    background: rgba(0, 255, 102, 0.02);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    margin: 30px auto 0;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.03);
    animation: successFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.success-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 10px #00ff66;
    display: inline-block;
    animation: simplePulse 2s infinite;
}

.success-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #00ff66;
    letter-spacing: 0.05em;
    margin: 0;
}

.success-desc {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #888888;
    line-height: 1.6;
    letter-spacing: 0.02em;
    margin: 0;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subpages Spacing Layout */
.subpage-content {
    padding-top: 150px;
    min-height: 80vh;
}

/* Footer Links styling */
.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.footer-legal-link {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-link:hover, .footer-legal-link.active {
    color: #ffffff;
}

.footer-divider {
    color: #222222;
}

.footer-copy {
    color: #777777;
}

/* Cookie Consent Banner CSS */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    z-index: 10000;
    width: calc(100% - 40px);
    max-width: 750px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 8px #00ff66;
    flex-shrink: 0;
}

.cookie-content p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-primary {
    background: #ffffff;
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cookie-primary:hover {
    background: #dddddd;
}

.btn-cookie-secondary {
    background: transparent;
    color: #888888;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
}

.btn-cookie-secondary:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        bottom: 20px;
        padding: 20px;
    }
    .cookie-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    .footer-divider {
        display: none;
    }
    .work-cta {
        margin-top: 80px;
        padding: 50px 20px;
    }
    .work-cta h3 {
        font-size: 1.8rem;
    }
    .work-cta p {
        font-size: 1rem;
    }
    .subpage-content {
        padding-top: 140px; /* Povećano da tekst sigurno ne ide ispod lebdećeg navbara */
    }
    /* Smanjenje ogromnog paddinga sekcija unutar podstranica na mobitelima */
    .subpage-content .about-section,
    .subpage-content .work-section {
        padding-top: 20px;
        padding-bottom: 50px;
    }
    /* Prisilna vidljivost animiranih sekcija na mobitelima kako bi se izbjeglo skrivanje teksta */
    .fade-in-section {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .work-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    /* Optimizacija veličine teksta za mobitele (About i Impressum) */
    .about-huge-title {
        font-size: 2rem !important;
        line-height: 1.1;
    }
    .about-text-lead {
        font-size: 1.15rem;
        line-height: 1.45;
        margin-bottom: 30px;
    }
    .principle-content h4 {
        font-size: 1.2rem;
    }
    .principle-content p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    .principle-item {
        gap: 15px;
        padding-top: 20px;
    }
    
    /* Mobilni izbornik - sakrivanje i prelazak */
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        gap: 30px;
        z-index: 1000;
        transform: translateY(-110%);
        visibility: hidden;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
        padding: 80px 20px;
    }
    .navbar.nav-active .nav-links {
        transform: translateY(0);
        visibility: visible;
    }
    .nav-links a:not(.btn) {
        font-size: 1.8rem;
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 700;
        text-transform: uppercase;
    }
    .nav-links .btn {
        margin-top: 15px;
        padding: 16px 40px;
        font-size: 1rem;
    }
    .showcase-media { height: 50vh; }
}

/* Project Tech Tags styling */
.work-tags {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.work-tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #666666;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 4px;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.work-card:hover .work-tags span {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

/* Work CTA Section */
.work-cta {
    margin-top: 120px;
    padding: 80px 40px;
    background: transparent;
    border: 2px solid #000000;
    border-radius: 24px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 80px;
}

.work-cta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.work-cta p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 35px;
}

.work-cta .btn {
    display: inline-block;
    padding: 16px 45px;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Page Loader Section */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.loader-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff66;
    box-shadow: 0 0 10px #00ff66, 0 0 20px #00ff66;
    animation: blinkGlow 1s infinite;
}

.loader-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.1em;
}


/* Legal Details inside Impressum */
.legal-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.legal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.legal-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-label {
    font-family: 'JetBrains Mono', monospace;
    color: #555555;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-val {
    font-weight: 700;
    font-size: 0.95rem;
    text-align: right;
    color: #000000;
}

.legal-val a {
    color: #000000;
    text-decoration: underline;
}

/* Overrides na dnu datoteke koji nadvladavaju desktop CSS kaskadu */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .work-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .principle-item {
        padding: 20px;
    }
    .legal-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .legal-val {
        text-align: left;
    }
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .work-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* GDPR Privola na kontakt formi */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    text-align: left;
}

.form-consent input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #00ff66; /* Zglow zelena za aktivni checkbox */
}

.form-consent label {
    cursor: pointer;
    user-select: none;
}

.form-consent a {
    color: #ffffff;
    text-decoration: underline;
}

.form-consent a:hover {
    color: #00ff66;
}
