:root {
    --tamna-ljubicasta: #3c1a57;
    --svetlija-ljubicasta: #6D2166;
    --jos-svetlija: #7b2961;
    --svetli-tekst: #D2FDFF;
    --header-height: clamp(10vh, 10vh, 6rem);
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
    --spacing-4xl: 6rem;
    --spacing-5xl: 8rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
}

/* Skip-to-content link for keyboard accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tamna-ljubicasta);
    color: var(--svetli-tekst);
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.3s ease;
}
.skip-link:focus {
    top: 0;
}

/* Global keyboard focus indicator */
*:focus-visible {
    outline: 3px solid var(--svetli-tekst);
    outline-offset: 3px;
}

header {
    height: auto;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    padding-top: var(--header-height, 4rem);
    font-weight: 400;
    line-height: 1.7;
    font-size: clamp(0.95rem, 2vw, 1.025rem);
    background-color: var(--tamna-ljubicasta);
    color: var(--svetli-tekst);
    position: relative;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--svetli-tekst);
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    letter-spacing: -0.02em;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.875rem, 5vw, 2.75rem);
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--svetli-tekst);
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.01em;
}
.gradient-section {
    background: linear-gradient(to bottom, #7b2961 0%, #6d2166 50%, #3c1a57 100%); 
    background-image: url('slike/neutral-liquid-bg.jpg'); 
    background-blend-mode: overlay;
    background-size: cover; 
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh; 
    color: var(--svetli-tekst);
    position: relative;
}

.gradient-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(123, 41, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(109, 33, 102, 0.1) 0%, transparent 50%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(210, 253, 255, 0.02) 2px, rgba(210, 253, 255, 0.02) 4px);
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .gradient-section {
        background-attachment: scroll;
    }
}

.section {
    padding: clamp(2rem, 10vw, 5rem) 0;
}

.container {
    max-width: min(1200px, 100% - 2rem);
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}



.section p { 
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    line-height: 1.75;
    max-width: 50rem;
    margin: 0 auto clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    font-weight: 400;
}

.section-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0.625rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-top: clamp(2rem, 5vw, 3rem);
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 1rem;
    text-align: center;
    backdrop-filter: blur(4px);
    will-change: transform;
}

.product-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--svetli-tekst);
    margin-bottom: 1rem;
}

.product-card p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 1.25rem;
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 0.625rem;
}

.warranty-badge {
    position: absolute;
    top: 70%;
    left: 0;
    transform: translateY(-50%);
    width: clamp(150px, 15vw, 200px);
    aspect-ratio: 1;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}

.warranty-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}


/* KLUPICA */

.klupica-section {
    background: var(--tamna-ljubicasta);
    padding: clamp(3rem, 10vw, 6rem) 0;
    color: var(--svetli-tekst);
}

.klupica-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 5vw, 4rem);
}

.klupica-text {
    flex: 1;
    max-width: 32rem;
}

.klupica-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.875rem);
    color: var(--svetli-tekst);
    margin-bottom: clamp(1.5rem, 3vw, 1.75rem);
}

.klupica-text p {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.65;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    opacity: 0.95;
}

.contact-button {
    background: linear-gradient(135deg, var(--svetlija-ljubicasta), var(--jos-svetlija));
    color: var(--svetli-tekst);
    text-decoration: none;
    border: 1px solid rgba(210, 253, 255, 0.2);
    padding: clamp(0.8rem, 2vw, 1.1rem) clamp(1.875rem, 4vw, 3rem);
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(107, 33, 102, 0.2);
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(107, 33, 102, 0.35);
    border-color: rgba(210, 253, 255, 0.35);
}

.contact-button:hover::before {
    width: 300px;
    height: 300px;
}

.contact-button:focus {
    outline: 2px solid var(--svetli-tekst);
    outline-offset: 2px;
}

/* ───────────────────── VIDEO ───────────────────── */

.klupica-image {
    flex: 1;
    max-width: 36rem;
}

.video-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--tamna-ljubicasta);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(109, 33, 102, 0.18) inset;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-wrapper:hover {
    transform: translateY(-0.5rem);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(109, 33, 102, 0.3) inset;
}

.reformer-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Responsiveness */
@media (max-width: 992px) {
    .klupica-content {
        flex-direction: column;
        gap: clamp(2rem, 5vw, 3rem);
    }
    
    .klupica-text,
    .klupica-image {
        max-width: 100%;
        text-align: center;
    }
    
    .klupica-text h2 {
        font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    }
}
/* Responsive za mobilne – gradient ostaje glatak */
@media (max-width: 576px) {
    h2 {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 3vw, 1.5rem);
    }
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: clamp(2rem, 5vw, 2.5rem);
        text-align: center;
        padding: clamp(1.5rem, 3vw, 2rem);
    }
    .footer-links {
        flex-direction: column;
        gap: clamp(2rem, 5vw, 2.5rem);
    }
    .footer-logo img {
        width: min(200px, 100%);
    }
}


/* HEADER.CSS */

/* Header Styles - Responsive */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(60, 26, 87, 0.95), rgba(60, 26, 87, 0.75));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(210, 253, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 100;
}

.header-kontejner {
    max-width: min(1200px, 100% - 2rem);
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: #d2fdff;
    display: flex;
    align-items: center;
}

.logo img {
    width: clamp(120px, 20vw, 200px);
    height: auto;
}

.garancija {
    position: absolute;
    width: clamp(300px, 40vw, 400px);
    top: 20%;
    right: 20%;
}

.logo-icon {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    margin-right: 0.5rem;
    color: #d2fdff;
}

.menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.875rem);
}

.menu-item {
    position: relative;
}

.menu-item a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #d2fdff;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1rem);
    position: relative;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #d2fdff, #7b2961);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item a:hover::after {
    width: 100%;
}

.has-submenu .submenu {
    position: absolute;
    top: 100%;
    margin-top: 0px;
    left: 0;
    min-width: 220px;

    background: rgba(60, 26, 87, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    
    border: 1px solid rgba(123, 41, 97, 0.4);
    border-radius: 0.75rem;
    overflow: hidden;
    
    padding: 0.75rem 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
                0 4px 12px rgba(60, 26, 87, 0.25);
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.75rem) scale(0.96);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 15;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.submenu li {
    position: relative;
}

.submenu a {
    display: block;
    white-space: nowrap;
    padding: 0.75rem 1.5rem;
    color: #d2fdff;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    text-decoration: none;
    transition: all 0.22s ease;
    position: relative;
    z-index: 1;
}

.submenu a:hover,
.submenu a:focus {
    color: var(--svetli-tekst);
    background: rgba(60, 26, 87, 0.8);
    padding-left: 2rem;
    outline: none;
}

.submenu a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.5rem;
    width: 0;
    height: 2px;
    background: #D2FDFF;
    border-radius: 2px;
    transition: width 0.3s ease;
    opacity: 0.6;
}

.submenu a:hover::after {
    width: calc(100% - 3rem);
    opacity: 1;
}

.submenu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(to bottom, #7b2961, #6D2166);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu a:hover::before {
    width: 4px;
}

.submenu li {
    opacity: 0;
    transform: translateX(-0.625rem);
    transition: all 0.35s ease;
}

.has-submenu:hover .submenu li,
.has-submenu:focus-within .submenu li {
    opacity: 1;
    transform: translateX(0);
}



/* Responsive za header */
@media (max-width: 768px) {
    .menu ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #3c1a57;
    }
    .menu-item {
        margin: 0.625rem 0;
    }
}

/* ====================== HAMBURGER ====================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.625rem;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.hamburger span {
    width: 2rem;
    height: 3px;
    background: #D2FDFF;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* X animacija kada je aktivan */
.hamburger.active span:nth-child(1) {
    transform: translateY(0.5625rem) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-0.5625rem) rotate(-45deg);
}

/* ====================== MOBILNI MENI ====================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .menu > ul {
        display: flex;
    }

    .menu {
        position: fixed;
        top: 10vh;
        left: 0;
        width: 100%;
        background: rgba(60, 26, 87, 0.99);
        backdrop-filter: blur(6px);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
    }

    .menu.active {
        transform: translateX(0);
    }

    .menu-list {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        color: #d2fdff;
        visibility: visible;
        opacity: 1;
    }

    .menu-item a {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
        color: #d2fdff;
        text-decoration: none;
        display: block;
        padding: 1rem;
    }

    .has-submenu .submenu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        background: none;
        box-shadow: none;
        padding: 0;
        display: none;
        height: 0;
        overflow: hidden;
        margin: 0;
        transition: all 0.3s ease;
    }

    .has-submenu.active .submenu {
        display: block;
        opacity: 1;
        visibility: visible;
        height: auto;
        padding: 0.75rem 0;
    }
    
    .has-submenu.active .submenu li {
        opacity: 1;
        transform: translateX(0);
    }

    .submenu a {
        font-size: clamp(1.15rem, 4vw, 1.4rem);
        padding: 0.5rem 0;
    }
    
    .submenu li {
        padding: 0.5rem 0;
    }
}

/* Media query za još manje ekrane */
@media (max-width: 480px) {
    .menu-list {
        gap: 2rem;
    }
    
    .menu-item a {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
    }
    
    .submenu a {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }
}

/* HERO.CSS */

.hero {
    position: relative;
    top: 0;
    height: 100vh;
    overflow: hidden;
    min-height: 400px;
    width: 100%;
    touch-action: pan-y;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    filter: brightness(0.75);
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.slider-dots {
    position: absolute;
    bottom: clamp(1.5rem, 3vw, 2rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(0.6rem, 2vw, 0.75rem);
    z-index: 5;
}

.dot {
    position: relative;
    pointer-events: auto;
    width: clamp(0.75rem, 2vw, 0.875rem);
    height: clamp(0.75rem, 2vw, 0.875rem);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot::before {
    content: '';
    position: absolute;
    inset: -14px;
}

.dot.active {
    background-color: var(--svetli-tekst);
    transform: scale(1.3);
}

.dot:hover {
    background-color: var(--svetlija-ljubicasta);
}

.dot:focus-visible {
    outline: 2px solid #D2FDFF;
    outline-offset: 4px;
}

/* Overlay sa animacijom teksta */
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background-color: rgba(60, 26, 87, 0.85);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: 0.75rem;
    width: clamp(250px, 80vw, 350px);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-text-overlay h1 {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    margin: 0 0 clamp(1rem, 2vw, 1.25rem) 0;
    color: var(--svetli-tekst);
    line-height: 1.2;
}

.hero-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-options a {
    padding: clamp(1rem, 2.5vw, 1.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
    background: linear-gradient(135deg, var(--jos-svetlija), var(--svetlija-ljubicasta));
    color: var(--svetli-tekst);
    text-decoration: none;
    font-size: clamp(0.85rem, 2.5vw, 1.25rem);
    font-weight: 700;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid #D2FDFF;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(107, 33, 102, 0.4);
}

.hero-options a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.hero-options a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 18px 40px rgba(107, 33, 102, 0.5);
    border-color: var(--svetli-tekst);
    background: linear-gradient(135deg, var(--svetlija-ljubicasta), var(--jos-svetlija));
}

.hero-options a:hover::before {
    width: 250px;
    height: 250px;
}

.hero-options a:focus {
    outline: 2px solid var(--svetli-tekst);
    outline-offset: 2px;
}

/* TEKST */

.hero-content {
    position: absolute;
    top: 25%;
    left: 60%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    padding: clamp(1rem, 2vw, 2rem);
    border-radius: 0.625rem;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 4rem);
}

.hero-content a {
    text-decoration: none;
}

.hero-content a:hover {
    font-weight: bold;
}

.hero-button {
    background: linear-gradient(135deg, var(--svetlija-ljubicasta), var(--jos-svetlija));
    color: var(--svetli-tekst);
    border: 1px solid rgba(210, 253, 255, 0.2);
    padding: clamp(0.8rem, 2vw, 1.1rem) clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 1.5rem;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    width: clamp(60%, 85vw, 40%);
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(107, 33, 102, 0.2);
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(107, 33, 102, 0.35);
    border-color: rgba(210, 253, 255, 0.35);
}

.hero-button:hover::before {
    width: 300px;
    height: 300px;
}

.hero-button:focus {
    outline: 2px solid var(--svetli-tekst);
    outline-offset: 2px;
}

/* Responsivnost */
@media (max-width: 768px) {
  
    .hero {
        height: 100vh;
    }
    
    .slide {
        filter: brightness(0.65);
    }
    
    .hero-content {
        top: 15%;
        left: 65%;
        padding: 0 1rem;
    }
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 2.75rem);
        line-height: 1.2;
        color: #3c1a57;
    }
    .hero-button {
        /*width: 80%;*/
        font-size: clamp(0.9rem, 2vw, 0.95rem);
    }

    .hero-text-overlay {
        top: 30%;
        left: 45%;
        transform: translateY(-50%);
        padding: clamp(0.75rem, 1.5vw, 1.5rem);
        max-width: 50%;
    }
    .hero-text-overlay h1 {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
        margin-bottom: 0.75rem;
    }
    .hero-options {
        gap: 0.5rem;
    }
    .hero-options a {
        font-size: clamp(0.8rem, 2vw, 0.95rem);
        padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.25rem);
    }

    .warranty-badge {
        top: 85%;
        left: 85%;
        transform: translate(-50%, -50%);
        width: clamp(180px, 15vw, 220px);
    }
}

@media (max-width: 480px) {

    
    .hero-content h1 {
        font-size: clamp(2.25rem, 8vw, 2.5rem);
    }
    .warranty-badge {
        top: 90%;
        left: 80%;
        width: clamp(150px, 20vw, 200px);
    }
    
    .hero-text-overlay {
        top: 40%;
        left: 5%;
        transform: translateY(-50%);
        max-width: 75%;
        padding: 0.75rem 1rem;
    }

    .hero-text-overlay h1 {
        font-size: clamp(1.1rem, 3vw, 1.4rem);
        margin-bottom: 0.75rem;
    }

    .hero-options {
        gap: 0.4rem;
    }

    .hero-options a {
        padding: 0.4rem 0.75rem;
        font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    }
}

/* Ultramali ekrani (≤360px) */
@media (max-width: 360px) {
    .hero {
        height: 70vh;
    }
    
    .hero-text-overlay {
        width: 80vw;
        padding: 0.5rem 0.75rem;
        top: 50%;
        left: 8%;
        transform: translateY(-50%);
    }
    
    .hero-text-overlay h1 {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-options {
        gap: 0.3rem;
    }
    
    .hero-options a {
        padding: 0.3rem 0.5rem;
        font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    }
}

/* ABOUT.css */

.about-section {
    background: linear-gradient(to bottom,#634879,#503168,#3C1A57,#36174E ,#2A123D);
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 3rem) 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 75%, rgba(210, 253, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(123, 41, 97, 0.08) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(210, 253, 255, 0.02) 3px, rgba(210, 253, 255, 0.02) 6px);
    pointer-events: none;
}

.about-title {
    color: #D2FDFF;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: normal;
    position: relative;
    display: inline-block;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.about-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.3rem;
    width: 100%;
    height: 2px;
    background-color: #7B2961;
}

.about-group {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-group img {
    width: clamp(25px, 5vw, 35px);
    height: auto;
    margin: clamp(1rem, 2vw, 1.25rem) 0;
    flex-shrink: 0;
}

.about-text {
    max-width: 50rem;
    margin: 0 auto clamp(2rem, 5vw, 3.75rem);
    color: #D2FDFF;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.6;
}

.about-text p {
    margin: clamp(1rem, 2vw, 1.25rem) 0;
    text-align: left;
}

.about-images {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 3vw, 3.75rem);
    flex-wrap: wrap;
}

        .modal-gallery {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100vw;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

#caption {
    color: #D2FDFF;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    padding: clamp(0.5rem, 1vw, 1rem) 1rem;
    text-align: center;
    background: rgba(60,26,87,0.7);
    position: absolute;
    bottom: clamp(1rem, 2vw, 1.25rem);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0.375rem;
    max-width: 80%;
}

.close-modal, .prev, .next {
    color: #D2FDFF;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: bold;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}

.close-modal:hover,
.prev:hover,
.next:hover {
    color: #7b2961;
    scale: 1.15;
}

.prev {
    left: clamp(1rem, 2vw, 1.25rem);
    top: 50%;
    transform: translateY(-50%);
    right: auto;
}

.next {
    right: clamp(1rem, 2vw, 1.25rem);
    top: 50%;
    transform: translateY(-50%);
}

.close-modal:focus,
.prev:focus,
.next:focus {
    outline: 2px solid #D2FDFF;
    outline-offset: 2px;
}

.about-images.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
    max-width: 87.5rem;
    margin: clamp(2rem, 5vw, 3.75rem) auto;
    padding: 0 clamp(1rem, 2vw, 1.25rem);
    box-sizing: border-box;
}

.about-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--tamna-ljubicasta);
}

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

.about-image:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
    cursor: pointer;
}

.about-image:focus {
    outline: 2px solid #D2FDFF;
    outline-offset: 2px;
}

/* Za mobilne uređaje */
@media (max-width: 1024px) {
    .about-images.gallery {
         grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
        gap: clamp(1rem, 2vw, 1.5rem);
        margin: clamp(2rem, 4vw, 2.5rem) auto;
    }
}

@media (max-width: 576px) {
    .hero-text-overlay {
        top: 40%;
        left: 45%;
        transform: translateY(-50%);
        max-width: 40%;
        padding: 0.6rem 0.9rem;
    }

    .hero-text-overlay h1 {
        font-size: clamp(0.95rem, 3vw, 1.2rem);
        margin-bottom: 0.5rem;
    }

    .hero-options {
        gap: 0.35rem;
    }

    .hero-options a {
        padding: 0.35rem 0.65rem;
        font-size: clamp(0.65rem, 2.1vw, 0.9rem);
    }

    .about-images.gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(1rem, 3vw, 1.25rem);
    }
    .about-group {
        flex-direction: row;
    }
    .about-group img {
        margin: clamp(1rem, 2vw, 1.25rem) 0;
    }
    .about-text {
        padding: 0 1rem;
    }
}

/* lux.css */

.oprema-wrapper {
    padding: clamp(3rem, 10vw, 6rem) clamp(1rem, 5vw, 10%);
    background: linear-gradient(to bottom, #C1AF96, #634879,#5D3A7A, #3C1A57 90%);
    position: relative;
}

.oprema-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(60, 26, 87, 0.1) 0%, transparent 40%),
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(210, 253, 255, 0.01) 1px, rgba(210, 253, 255, 0.01) 2px);
    pointer-events: none;
}

.varijanta-title {
    font-size: clamp(1.75rem, 5vw, 2rem);
    text-align: center;
    color: var(--svetlija-ljubicasta);
    margin-bottom: clamp(1rem, 2vw, 1.25rem);
}

.oprema-intro {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 50rem;
    margin: 0 auto clamp(3rem, 10vw, 5rem);
    color: var(--svetlija-ljubicasta);
    line-height: 1.6;
}

/* **Z-pattern – flex umesto apsolutnog pozicioniranja** */
.z-pattern {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(4rem, 10vw, 7.5rem);
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 5%);
}

.z-pattern.reverse {
    flex-direction: row-reverse;
    margin-top: 80px;
}

.z-pattern-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.z-pattern-list li {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: bold;
    color: var(--svetli-tekst);
    padding-left: clamp(2rem, 3vw, 3rem);
    position: relative;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.5;
}

.z-pattern-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    width: clamp(28px, 4vw, 36px);
    height: clamp(28px, 4vw, 36px);
    background-image: url('../slike/osnove/beliKrugLogo.webp');
    background-size: contain;
    background-repeat: no-repeat;
}

.z-pattern-image img {
    max-width: 100%;
    max-height: clamp(250px, 50vw, 390px);
    border-radius: 1rem;
    object-fit: contain;
    object-position: center;
    background-color: transparent;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.centralna-slika-wrapper {
    max-width: 1300px;
    margin: clamp(3rem, 10vw, 5rem) auto;
    padding: 0 clamp(1rem, 3vw, 5%);
    box-sizing: border-box;
}

.centralna-slika-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    display: block;
}


/** DETALJI HOVER TEKST I SLIKE */

.detalji-section {
    padding: clamp(2rem, 5vw, 3.75rem) clamp(1rem, 3vw, 2.5rem);
    text-align: center;
}

.detalji-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    margin-bottom: clamp(2rem, 5vw, 3.75rem);
    color: var(--svetli-tekst);
}

.detalji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(2rem, 4vw, 2.5rem);
    max-width: 75rem;
    margin: 0 auto;
}

.detalj-item {
    position: relative;
    cursor: pointer;
}

.detalj-item img {
    width: clamp(240px, 35vw, 320px);
    height: clamp(240px, 35vw, 320px);
    object-fit: cover;
    border-radius: 50%;
    border: clamp(4px, 1vw, 6px) solid var(--jos-svetlija);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    margin: 0 auto;
    display: block;
    will-change: transform, box-shadow;
}

.detalj-item:hover img {
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.detalj-item:focus img {
    outline: 2px solid var(--svetli-tekst);
    outline-offset: 2px;
}

.overlay {
    position: absolute;
    left: 50%;
    top: 33%;
    transform: translateX(-50%);
    width: 90%;
    height: 67%;
    background: rgba(60, 26, 87, 0.85);
    color: var(--svetli-tekst);
    border-radius: 0 0 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 4%;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 2;
    will-change: opacity;
}

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

.overlay p {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--svetli-tekst);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 0.75rem;
    box-shadow: 0 0 30px rgba(210,253,255,0.4);
}

.close {
    position: absolute;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2.5rem);
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    cursor: pointer;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: var(--svetli-tekst);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .z-pattern, .z-pattern.reverse {
        flex-direction: column;
        gap: clamp(2rem, 5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .detalji-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    max-width: 90%;           /* malo šire na tabletu */
  }

    .z-pattern-list li{
        color: white;
    }
    
    .detalj-item img {
        width: clamp(200px, 35vw, 250px);
        height: clamp(200px, 35vw, 250px);
    }
}

@media (max-width: 576px) {
    .detalji-grid {
        grid-template-columns: 1fr;
    }
    .detalj-item:hover .overlay {
        opacity: 0;
        display: none;
    }

    /* Mobile carousel mode */
    .detalji-grid.detalji-carousel-active {
        display: block;                /* CRITICAL: override display:grid so flex track works */
        overflow: hidden;
        position: relative;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .detalji-carousel-track {
        display: flex;
        width: 100%;                   /* explicit width so children % calc works */
        transition: transform 0.35s ease;
        will-change: transform;
    }

    .detalji-carousel-active .detalj-item {
        min-width: 100%;
        width: 100%;                   /* explicit width for reliable sizing */
        flex: 0 0 100%;                /* don't grow, don't shrink, basis = 100% */
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        padding: 0 0.5rem;            /* small padding so image doesn't touch edges */
    }

    .detalji-carousel-active .detalj-item img {
        border-radius: 16px;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: clamp(220px, 65vw, 300px);
        object-fit: cover;
        display: block;                /* ensure no inline gaps */
    }


    .detalji-carousel-active .overlay {
        /* Hide overlay completely on mobile carousel -- caption below replaces it */
        display: none;
    }

    /* Caption below the image (replaces hidden overlay) */
    .detalji-mobile-caption {
        margin-top: 1rem;
        padding: 0.75rem 1rem;
        background: rgba(60, 26, 87, 0.85);
        border-radius: 0.75rem;
        color: var(--svetli-tekst);
        text-align: center;
        max-width: 90%;
        font-size: 0.95rem;
        line-height: 1.4;
        font-weight: 500;
    }

    .detalji-mobile-caption p {
        margin: 0;
        color: var(--svetli-tekst);
    }

    /* Carousel navigation: counter + dots */
    .detalji-carousel-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 0 0.5rem;
    }

    .detalji-carousel-counter {
        font-size: 0.9rem;
        color: var(--svetli-tekst);
        font-weight: 500;
        letter-spacing: 0.05em;
    }

    .detalji-carousel-dots {
        display: flex;
        gap: 0.6rem;
        justify-content: center;
    }

    .detalji-dot {
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 50%;
        background-color: rgba(210, 253, 255, 0.4);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

    .detalji-dot.active {
        background-color: var(--svetli-tekst);
        transform: scale(1.3);
    }

    .detalji-dot:focus-visible {
        outline: 2px solid var(--svetli-tekst);
        outline-offset: 2px;
    }
}

/* Safety: hide carousel nav on desktop (JS only creates it on mobile, but just in case) */
.detalji-carousel-nav {
    display: none;
}

@media (max-width: 576px) {
    .detalji-carousel-nav {
        display: flex;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .detalji-carousel-track {
        transition: none;
    }
}

/* Materijali.css */



.materijali {
  background: linear-gradient(to bottom, var(--tamna-ljubicasta) 0%, var(--tamna-ljubicasta) 100%);
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(5rem, 10vw, 10rem);
  color: #D2FDFF;
  overflow: hidden;
  position: relative;
}

.materijali::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
      radial-gradient(circle at 10% 20%, rgba(123, 41, 97, 0.12) 0%, transparent 35%),
      radial-gradient(circle at 90% 80%, rgba(109, 33, 102, 0.12) 0%, transparent 35%),
      repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(210, 253, 255, 0.015) 2px, rgba(210, 253, 255, 0.015) 4px);
  pointer-events: none;
}

.materijali-title {
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: clamp(3rem, 10vw, 6rem);
  color: #D2FDFF;
  font-weight: 700;
}

/* ===================== SVI GRIDOVI ===================== */
.materijali-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.75rem);
  max-width: 81.25rem;
  margin: 0 auto clamp(2rem, 5vw, 3.75rem);
  padding: 0 clamp(1rem, 3vw, 5%);
  box-sizing: border-box;
  align-items: end;
}

.materijali-grid.kopija {
  margin-bottom: clamp(5rem, 10vw, 8.75rem);
  align-items: start;
}

.materijali-tekst.izolovani {
  gap: 0.3rem;
}

/* Levi stub – tekst gore + velika slika dole */
.materijali-grid > div:first-child {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.75rem);
}

/* Wrapper za srednju sliku */
.materijali-slika-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tekst */
.materijali-tekst {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
  padding: 0 clamp(1rem, 2vw, 1.875rem) 0 0;
  gap: clamp(1rem, 2vw, 1.5rem);
  box-sizing: border-box;
}

.materijali-grid:not(.kopija) .materijali-tekst {
  justify-content: center;
  min-height: auto;
}

.materijali-grid.kopija .materijali-tekst {
  max-width: 100%;
  align-self: center;
}

.materijali-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.85;
  margin: 0;
}
.about-group span{
    
    font-weight: 800;
    background: linear-gradient(transparent 62%, #7b2961 62%);
}

.materijali-description span {
  color: #D2FDFF;
  
  font-weight: 800;
  background: linear-gradient(transparent 62%, #7b2961 62%);
  padding: 0 0.5rem;
  border-radius: 0.25rem;
}

/* Velika slika levo dole */
.materijali-slika-levo {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  object-fit: cover;
}

/* Desni stub – dve slike */
.materijali-slike-desno {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.125rem);
}

.materijali-slika-gornja,
.materijali-slika-donja {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  object-fit: cover;
}

/* ===================== Z-PATTERN ===================== */
.Zpattern-deo2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(4rem, 8vw, 6.25rem);
  align-items: center;
  max-width: 81.25rem;
  margin: 0 auto clamp(5rem, 10vw, 10rem);
  padding: 0 clamp(1rem, 3vw, 5%);
  box-sizing: border-box;
}

.Zpattern-deo2 > img {
  width: 100%;
  border-radius: 2.5rem;
  box-shadow: 0 35px 70px rgba(0,0,0,0.55);
  object-fit: cover;
}

.patternZdeo2-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(1rem, 2vw, 1.25rem);
}

.patternZdeo2-description p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.85;
  padding-bottom: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}

.patternZdeo2-description span {
  color: #D2FDFF;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 800;
  background: linear-gradient(transparent 62%, #7b2961 62%);
  padding: 0 0.5rem;
  border-radius: 0.25rem;
}

/* ===================== 4 HORIZONTALNE SLIKE ===================== */
.pictures4-materijali {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 81.25rem;
  margin: 0 auto clamp(2rem, 5vw, 3.75rem);
  padding: 0 clamp(1rem, 3vw, 5%);
  box-sizing: border-box;
}

.pictures4-materijali.pictures3-materijali {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

.pictures4-materijali img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 25px 55px rgba(0,0,0,0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}

.pictures4-materijali img:hover {
  transform: scale(1.08);
  box-shadow: 0 40px 80px rgba(0,0,0,0.65);
}

.pictures4-materijali img:focus {
  outline: 2px solid #D2FDFF;
  outline-offset: 2px;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1200px) {
  .materijali-grid,
  .materijali-grid.kopija {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 5rem);
    margin-bottom: clamp(4rem, 8vw, 7.5rem);
  }
  
  .materijali-grid > div:first-child {
    order: 1;
  }
  
  .materijali-slika-wrapper {
    order: 2;
  }
  
  .materijali-slike-desno {
    order: 3;
  }
  
  .materijali-tekst {
    text-align: center;
    padding: 0 clamp(5%, 8vw, 10%);
    min-height: auto;
  }
  
  .Zpattern-deo2 {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 4rem);
    margin-bottom: clamp(4rem, 8vw, 7.5rem);
  }
  
  .Zpattern-deo2 > img {
    order: 1;
  }
  
  .patternZdeo2-description {
    order: 2;
    text-align: center;
    padding: 0 clamp(5%, 8vw, 10%);
  }
  
}

@media (max-width: 640px) {
  .pictures4-materijali {
    grid-template-columns: 1fr;
  }
  
  .pictures4-materijali img {
    aspect-ratio: 16 / 9;
  }
  
  .materijali-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
  }
  
  .materijali-description,
  .patternZdeo2-description p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
  }
}

/* Kontakt.css */

/*body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../slike/osnove/dark-purple-creased-leather-textured-background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: -1;
}*/
.contact-section {
    padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 5vw, 8%);
    background: linear-gradient(135deg, #3c1a57 0%, #2a133d 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('your-background-image.jpg') center/cover;
    opacity: 0.12;
    z-index: 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #D2FDFF;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.contact-subtitle {
    font-size: 1.25rem;
    color: #D2FDFF;
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* INFO CARD */
.info-card {
    background: rgba(109, 33, 102, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(210, 253, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.25rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-6px);
    background: rgba(123, 41, 97, 0.5);
    border-color: rgba(210, 253, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    color: #D2FDFF;
    font-size: 1.1rem;
    margin: 0 0 0.6rem 0;
    font-weight: 600;
}

.highlight-link {
    color: #D2FDFF;
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.highlight-link:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(210, 253, 255, 0.6);
    transform: translateX(6px);
}

/* FORMA */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: rgba(109, 33, 102, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(210, 253, 255, 0.15);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1.8rem;
}

.contact-form label {
    display: block;
    color: #D2FDFF;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    padding: 1rem 1.25rem;
    background: rgba(60, 26, 87, 0.85);
    border: 1px solid rgba(210, 253, 255, 0.2);
    border-radius: 12px;
    color: #D2FDFF;
    font-size: max(16px, 1.05rem);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #D2FDFF;
    box-shadow: 0 0 0 4px rgba(210, 253, 255, 0.15);
    transform: translateY(-2px);
}

/* Dugme */
.submit-btn {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, #7b2961, #6D2166);
    color: #D2FDFF;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(123, 41, 97, 0.4);
}

.submit-btn:active {
    transform: scale(0.98);
}
/* ===================== RESPONSIVE ===================== */

/* TABLET */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        order: 1;           /* Kontakt info ide ispod forme na tabletu */
    }
    
    .contact-form-wrapper {
        order: 2;
    }
    
    .info-card {
        padding: 1.25rem 1.75rem;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .contact-section {
        padding: 3rem 1rem 4rem;
    }
    
    .contact-header {
        margin-bottom: 2.5rem;
    }
    
    .contact-title {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
    }
    
    .contact-container {
        gap: 2.5rem;
    }
    
    .info-card {
        padding: 1.1rem 1.4rem;
        margin-bottom: 1rem;
    }
    
    .highlight-link {
        font-size: 1.25rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.4rem;
    }
    
    .submit-btn {
        padding: 1rem;
        font-size: 1.05rem;
    }
}

/* Još manji ekrani (stari telefoni) */
@media (max-width: 380px) {
    .contact-form {
        padding: 1.75rem 1.25rem;
    }
    
    .info-card h3 {
        font-size: 1rem;
    }
}
/*  footer.css */

.footer {
    background-color: var(--tamna-ljubicasta);
    color: #D2FDFF;
    padding: clamp(2rem, 5vw, 3.75rem) clamp(1rem, 3vw, 2rem) clamp(1rem, 2vw, 1.25rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4rem, 10vw, 12.5rem);
    box-sizing: border-box;
    flex-wrap: wrap;
    border-top: 2px ridge #7b2961;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo img {
    width: clamp(150px, 25vw, 250px);
    height: auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: clamp(3rem, 8vw, 12.5rem);
    flex-wrap: wrap;
}

.links-column {
    display: flex;
    flex-direction: column;
}

.links-column a {
    color: #D2FDFF;
    text-decoration: none;
    margin: clamp(0.5rem, 1.5vw, 0.75rem) 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: color 0.3s;
}

.links-column a:hover {
    color: #7b2961;
}

.links-column a:focus {
    outline: 2px solid #D2FDFF;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        gap: clamp(2rem, 4vw, 2.5rem);
        text-align: center;
    }
      .footer-links .links-column:last-child{
        display: none;
    }
    .footer-links {
        flex-direction: column;
        gap: clamp(2rem, 4vw, 2.5rem);
    }
}

/* LightBox.css */

/* =====================================================
   CUSTOM LIGHTBOX - Responsive Modal Image Viewer
   ===================================================== */

/* Modal container */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Overlay - dark background */
.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(2px);
}

/* Main content container */
.lightbox-container {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Image content wrapper */
.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

/* Slika */
.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.4s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Caption */
.lightbox-caption {
    color: #D2FDFF;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    text-align: center;
    margin: 0;
    padding: 0 1rem;
    line-height: 1.4;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    width: clamp(44px, 8vw, 60px);
    height: clamp(44px, 8vw, 60px);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #D2FDFF;
    border-radius: 50%;
    color: #D2FDFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close:active {
    transform: scale(0.95);
}

.lightbox-close svg {
    width: 60%;
    height: 60%;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Navigation buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(44px, 8vw, 56px);
    height: clamp(44px, 8vw, 56px);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #D2FDFF;
    border-radius: 50%;
    color: #D2FDFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-prev {
    left: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox-next {
    right: clamp(0.5rem, 2vw, 1.5rem);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 60%;
    height: 60%;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: clamp(1rem, 2vw, 1.5rem);
    left: 50%;
    transform: translateX(-50%);
    color: #D2FDFF;
    font-size: clamp(0.875rem, 2vw, 1rem);
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    z-index: 10001;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Small phones (≤480px) */
@media (max-width: 480px) {
    .lightbox-container {
        height: 85vh;
        max-height: 600px;
        width: 98%;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 0.75rem;
        right: 0.75rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-caption {
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }

    .lightbox-counter {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        bottom: 0.75rem;
    }
    .oprema-intro{
        color: white;
    }
}

/* Larger phones (481–767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .lightbox-container {
        height: 80vh;
    }
}

/* Tablets & above (≥768px) */
@media (min-width: 768px) {
    .lightbox-container {
        height: 90vh;
        max-height: 900px;
    }

    .lightbox-prev,
    .lightbox-next {
        opacity: 0.7;
    }

    .lightbox-prev:hover,
    .lightbox-next:hover {
        opacity: 1;
    }
}

/* Large screens (≥1920px) */
@media (min-width: 1920px) {
    .lightbox-container {
        width: 90%;
        max-width: 1600px;
        height: 92vh;
        max-height: 1000px;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 100%;
    }

    .lightbox-caption {
        font-size: 1.25rem;
    }
}

/* Landscape orientation na mobilnim */
@media (max-height: 600px) {
    .lightbox-container {
        height: 95vh;
    }

    .lightbox-caption {
        margin: 0.5rem 0 0 0;
    }
}

/* DODATNA OPREMA */

.products-section {
    max-width: 1200px;
    margin: 2% auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    animation: fadeInProducts 1s ease-in-out;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--svetlija-ljubicasta);
}

.product-description {
    padding: 20px;
    text-align: center;
}

.product-description h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--tamna-ljubicasta);
}

.product-description p {
    font-size: 1rem;
    color: var(--tamna-ljubicasta);
}

.product-cta {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: var(--svetlija-ljubicasta);
    color: var(--svetli-tekst);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.product-cta:hover {
    background-color: var(--jos-svetlija);
}

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

@media (max-width: 768px) {
    .products-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }
}
