* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overscroll-behavior: none;
}

body {
    background-color: #e0d4bf;
    font-family: 'Libre Baskerville', serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    overscroll-behavior-y: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background-color: #e0d4bf;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
    height: 72px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-nav {
    margin-right: auto;
}

.nav-container > .nav-links {
    margin-left: auto;
    margin-right: 20px;
}

.nav-divider {
    margin-right: 20px;
}

.logo-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.logo-nav img {
    height: 52px;
    width: auto;
}

.company-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 32px;
    color: #333;
    margin: 0;
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.nav-links a::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    color: #666;
}

.nav-links a:hover::before {
    transform: translateY(0);
}

.nav-links a span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-links a:hover span {
    transform: translateY(100%);
}

.nav-divider {
    width: 1px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.nav-contact {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.nav-contact::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    color: #666;
}

.nav-contact:hover::before {
    transform: translateY(0);
}

.nav-contact span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-contact:hover span {
    transform: translateY(100%);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 132px 40px 60px;
}

/* Center Logo */
.center-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(50px);
}

.center-logo img {
    width: 400px;
    height: auto;
    max-width: 100%;
}

/* Bottom Center Image */
.bottom-center-image {
    position: absolute;
    left: 47%;
    top: 25%;
    transform: translate(-50%, 50%);
    z-index: 3;
}

.img-05 {
    width: 400px;
    height: auto;
}

/* Left Images */
.left-images {
    position: absolute;
    left: 2%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.img-03 {
    width: 600px;
    height: auto;
    transform: rotate(-8deg) translateX(-20px);
    margin-bottom: -200px;
}

.img-teglica07 {
    width: 190px;
    height: auto;
    transform: rotate(5deg) translateX(180px) translateY(200px);
}

/* Right Images */
.right-images {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.img-02 {
    width: 380px;
    height: auto;
    transform: rotate(8deg);
    margin-bottom: -100px;
}

.img-01 {
    width: 400px;
    height: auto;
    transform: rotate(-5deg) translateX(-100px) translateY(100px);
}

/* Polaroid Images - No hover effects, just clean display */
.polaroid-img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Hamburger Menu */
.hamburger {
    cursor: pointer;
    display: none; /* Hidden by default, shown on mobile */
    z-index: 1001; /* Higher than mobile menu overlay */
    position: relative;
}

.hamburger input {
    display: none;
}

.hamburger svg {
    height: 3em;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line {
    fill: none;
    stroke: #333;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line-top-bottom {
    stroke-dasharray: 12 63;
}

.hamburger input:checked + svg {
    transform: rotate(-45deg);
}

.hamburger input:checked + svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e0d4bf;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu-links li {
    margin: 30px 0;
}

.mobile-menu-links a {
    font-family: 'Libre Baskerville', serif;
    font-size: 36px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.mobile-menu-links a:hover {
    color: #666;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .left-images {
        left: 1%;
    }
    
    .right-images {
        right: 1%;
    }
    
    .img-03 {
        width: 550px;
    }
    
    .img-teglica07 {
        width: 120px;
    }
    
    .img-02 {
        width: 320px;
    }
    
    .img-01 {
        width: 350px;
    }
    
    .center-logo img {
        width: 350px;
    }
}

@media (max-width: 1024px) {
    .img-03 {
        width: 400px;
    }
    
    .img-teglica07 {
        width: 100px;
    }
    
    .img-02 {
        width: 270px;
    }
    
    .img-01 {
        width: 300px;
    }
    
    .center-logo img {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 40px 20px;
    }
    
    .left-images,
    .right-images {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        margin: 20px 0;
    }
    
    .left-images {
        order: 1;
    }
    
    .center-logo {
        order: 2;
        margin: 40px 0;
        transform: none;
    }
    
    .bottom-center-image {
        order: 3;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 20px 0;
    }
    
    .right-images {
        order: 4;
    }
    
    .img-03,
    .img-teglica07,
    .img-02,
    .img-01 {
        width: 280px;
        margin: 10px auto;
    }
}

/* Proizvodi Section */
.proizvodi-section {
    background-color: #e0d4bf;
    padding: 340px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.proizvodi-page-title {
    padding-top: 140px;
    text-align: center;
    margin-bottom: 60px;
}

.proizvodi-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 42px;
    font-weight: 400;
    text-align: center;
    color: #2c2c2c;
    margin-bottom: 60px;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slide {
    display: none;
    gap: 60px;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    animation: fadeIn 0.5s ease-in-out;
}

.slide.active {
    display: flex;
}

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

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 1;
    max-width: 400px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item:hover .product-link {
    opacity: 0.7;
}

.product-item img {
    width: 100%;
    height: auto;
    max-width: 350px;
    object-fit: contain;
}

.product-item h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 28px;
    font-weight: 400;
    color: #2c2c2c;
    text-align: center;
    line-height: 1.2;
}

.product-link {
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    color: #2c2c2c;
    text-decoration: none;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.product-link:hover {
    opacity: 0.7;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.slider-arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: #2c2c2c;
    transition: all 0.3s ease;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    color: #666;
    transform: scale(1.1);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-dots {
    display: flex;
    gap: 15px;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(44, 44, 44, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(44, 44, 44, 0.5);
}

.dot.active {
    background-color: #2c2c2c;
    width: 14px;
    height: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Navigation */
    .navbar {
        height: 60px;
    }

    .nav-container {
        padding: 0 20px;
        gap: 15px;
        justify-content: space-between;
    }

    .logo-nav img {
        height: 40px;
    }

    .company-name {
        font-size: 24px;
    }

    /* Hide desktop navigation */
    .nav-links,
    .nav-divider,
    .nav-contact {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: block;
    }

    .hamburger svg {
        height: 2.5em;
    }

    .proizvodi-section {
        padding: 340px 30px 80px;
    }

    .proizvodi-title {
        font-size: 36px;
        margin-bottom: 50px;
    }

    .slide {
        gap: 40px;
    }

    .product-item img {
        max-width: 300px;
    }

    .product-item h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .proizvodi-section {
        padding: 50px 20px 70px;
    }

    .proizvodi-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .slide {
        gap: 0;
        flex-direction: column;
        align-items: center;
    }

    .product-item {
        max-width: 100%;
        width: 100%;
    }

    .product-item img {
        max-width: 280px;
    }

    .product-item h3 {
        font-size: 26px;
    }

    .slider-controls {
        gap: 30px;
        margin-top: 40px;
    }

    .slider-arrow svg {
        width: 35px;
        height: 35px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 12px;
        height: 12px;
    }
}

/* O Nama Section */
.o-nama-section {
    background-color: #e0d4bf;
    padding: 140px 0px 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.o-nama-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.o-nama-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.o-nama-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 42px;
    font-weight: 400;
    color: #2c2c2c;
    margin: 0;
}

.o-nama-text {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    line-height: 1.6;
    color: #2c2c2c;
}

.o-nama-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.o-nama-image img {
    width: 100%;
    max-width: 760px;
    height: auto;
    object-fit: cover;
}

/* Responsive Design for O Nama */
@media (max-width: 1024px) {
    .o-nama-section {
        padding: 160px 0 80px 30px;
    }

    .o-nama-container {
        gap: 40px;
    }

    .o-nama-title {
        font-size: 34px;
    }

    .o-nama-text {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .o-nama-container {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .o-nama-title {
        font-size: 28px;
        text-align: center;
    }

    .o-nama-text {
        font-size: 18px;
        text-align: center;
    }

    .o-nama-image img {
        max-width: 100%;
    }
}

/* Novosti Page */
.novosti-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.page-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 64px;
    color: #333;
    text-align: center;
    margin-bottom: 80px;
    font-weight: 400;
}

/* News Article */
.news-article {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 80px;
}

/* News Card - Left Side */
.news-card {
    position: relative;
    transform: translateY(60px);
    flex: 2;
    max-width: 800px;
}

.card-background {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.news-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 32px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
}

.news-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: #555;
}

.location-icon {
    width: 18px;
    height: 18px;
    color: #333;
}

.news-location span {
    font-size: 16px;
    font-weight: 500;
}

.news-text {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
    font-family: 'Libre Baskerville', serif;
}

/* News Image - Right Side */
.news-image {
    flex: 1;
    max-width: 460px;
    transform: translateY(-50px) translateX(-100px);
}

.news-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* News Article 2 - Image Left, Card Right */
.news-article-2 .news-image-vertical {
    max-width: 460px;
    z-index: 2;
    transform: translateY(-50px) translateX(100px);
}

.news-article-2 .news-card {
    transform: translateY(60px);
}

/* News Article 3 - Same as First */
.news-article:nth-child(4) .news-card {
    transform: translateY(60px);
}

.news-article:nth-child(4) .news-image {
    transform: translateY(-50px) translateX(-100px);
}

/* Katalog Section */
.katalog-section {
    background-color: #e0d4bf;
    padding: 120px 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.katalog-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 42px;
    font-weight: 400;
    text-align: center;
    color: #2c2c2c;
    margin-bottom: 30px;
}

.katalog-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
 
.katalog-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 2000px;
    overflow: hidden;
}

.katalog-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: bottom right;
    transition: none;
    z-index: 1;
}

.katalog-page.active {
    z-index: 10;
}

.katalog-page.flipping {
    z-index: 15;
    animation: pageSlide 0.5s ease-out forwards;
}

.katalog-page.flipping-back {
    z-index: 15;
    animation: pageSlideBack 0.5s ease-out forwards;
}

@keyframes pageSlide {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 1;
    }
}

@keyframes pageSlideBack {
    0% {
        transform: translateY(100%);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.katalog-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    backface-visibility: hidden;
    display: block;
}

.katalog-page.flipped {
    display: none;
}

/* Katalog Controls */
.katalog-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.katalog-arrow {
    background: none;
    border: none;
    cursor: pointer;
    color: #2c2c2c;
    transition: all 0.3s ease;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.katalog-arrow:hover {
    color: #666;
    transform: scale(1.1);
}

.katalog-arrow:active {
    transform: scale(0.95);
}

.katalog-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.katalog-arrow:disabled:hover {
    transform: none;
    color: #2c2c2c;
}

.katalog-counter {
    font-family: 'Libre Baskerville', serif;
    font-size: 32px;
    color: #2c2c2c;
    min-width: 80px;
    text-align: center;
}

/* Contact Section */
.contact-section {
    position: relative;
    max-width: 1000px;
    margin: 100px auto 60px;
    min-height: 600px;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    z-index: 0;
}

.contact-content {
    position: relative;
    z-index: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.contact-top {
    margin-top: 7.5vw;
    padding-left: 5vw;
}

.contact-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 40px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 400;
}

.contact-description {
    font-size: 24px;
    line-height: 1.7;
    color: #333;
    font-family: 'Libre Baskerville', serif;
    max-width: 700px;
}

.contact-info-wrapper {
    display: flex;
    padding-bottom: 60px;
    gap: 80px;
    align-items: flex-start;
    margin-top: 50px;
    padding-left: 5vw;
    padding-right: 5vw;
}

.contact-column {
    flex: 1;
}

.contact-item {
    font-family: 'Libre Baskerville', serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.contact-item strong {
    font-weight: 600;
}

.contact-link {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: #000;
    transform: scale(1.05);
}

/* Footer */
.footer {
    position: relative;
    width: 100%;
    margin-top: 180px;
    height: 300px;
    overflow: hidden;
}

.footer-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.footer-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 50px 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    flex: 1;
}

/* Left Column */
.footer-left {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    gap: 8px;
}

.footer-company-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.footer-address {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* Middle Column */
.footer-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.footer-logo {
    height: 120px;
    width: auto;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.social-link {
    color: #333;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #666;
}

.social-link svg {
    width: 32px;
    height: 32px;
}

/* Right Column */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 40px;
    gap: 10px;
}

.footer-link {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #666;
}

.footer-made-by {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.winkla-logo {
    width: 84px;
}

/* Bottom Copyright */
.footer-bottom {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}

.footer-copyright {
    font-size: 13px;
    color: #333;
}

/* Product Detail Section */
.product-detail-section {
    padding: 100px 40px;
    background-color: #e0d4bf;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-container {
    max-width: 1400px;
    transform: translateX(-56px);
    width: 100%;
    display: flex;
    align-items: center;
    gap: 80px;
}

.product-detail-container.product-detail-reverse {
    flex-direction: row-reverse;
    transform: translateX(56px);
}

.product-detail-image {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-detail-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
}

.product-detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-detail-title {
    font-family: 'Libre Baskerville', serif;
    font-size: 60px;
    font-weight: 400;
    color: #2c2c2c;
    line-height: 1.1;
    margin: 0;
}

.product-detail-subtitle {
    font-family: 'Libre Baskerville', serif;
    font-size: 36px;
    font-weight: 400;
    color: #2c2c2c;
    line-height: 1.2;
    margin: 0;
}

.product-detail-description {
    font-family: 'Libre Baskerville', serif;
    font-size: 24px;
    font-weight: 400;
    color: #2c2c2c;
    line-height: 1.5;
    margin: 0;
}

.product-detail-button {
    display: inline-block;
    border-radius: 8px;
    margin-top: 30px;
    padding: 14px 36px;
    font-family: 'Libre Baskerville', serif;
    font-size: 16px;
    font-weight: 400;
    color: #e0d4bf;
    background-color: #2c2c2c;
    border: 2px solid #2c2c2c;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.product-detail-button:hover {
    background-color: transparent;
    color: #2c2c2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for Product Detail */
@media (max-width: 1024px) {
    .product-detail-container {
        flex-direction: column;
        gap: 50px;
        transform: none;
    }

    .product-detail-container.product-detail-reverse {
        flex-direction: column;
        transform: none;
    }

    .product-detail-image {
        flex: 0 0 auto;
    }

    .product-detail-content {
        gap: 8px;
    }

    .product-detail-title {
        font-size: 48px;
    }

    .product-detail-subtitle {
        font-size: 28px;
    }

    .product-detail-description {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 60px 20px;
    }

    .product-detail-container {
        transform: none;
    }

    .product-detail-container.product-detail-reverse {
        flex-direction: column;
        transform: none;
    }

    .product-detail-content {
        gap: 8px;
    }

    .product-detail-title {
        font-size: 40px;
    }

    .product-detail-subtitle {
        font-size: 24px;
    }

    .product-detail-description {
        font-size: 18px;
    }

    /* Novosti Page */
    .novosti-page {
        padding: 40px 20px;
    }

    .news-image {
        transform: translateY(-30px) translateX(0);
        max-width: 100%;
    }

    .news-article-2 .news-image-vertical {
        transform: translateY(-30px) translateX(0);
        max-width: 100%;
    }

    .news-article:nth-child(4) .news-image {
        transform: translateY(-30px) translateX(0);
    }
}

/* ============================================
   TABLET RESPONSIVE STYLES (Under 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        height: 60px;
    }

    .nav-container {
        padding: 0 20px;
        gap: 15px;
        justify-content: space-between;
    }

    .logo-nav img {
        height: 40px;
    }

    .company-name {
        font-size: 24px;
    }

    /* Hide desktop navigation */
    .nav-links,
    .nav-divider,
    .nav-contact {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: block;
    }

    .hamburger svg {
        height: 2.5em;
    }

    /* Hero Section - Show only 02, 03, 05 */
    .hero-section {
        min-height: 100vh;
        padding: 100px 20px 40px;
        flex-direction: column;
        align-items: center;
    }

    /* Hide images 01 and teglica07 */
    .img-01,
    .img-teglica07 {
        display: none !important;
    }

    .left-images {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0;
        order: 1;
    }

    .img-03 {
        width: 320px;
        transform: rotate(-5deg);
        margin-bottom: 0;
    }

    .center-logo {
        transform: none;
        margin: 0;
        order: 2;
    }

    .center-logo img {
        width: 280px;
    }

    .bottom-center-image {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0;
        order: 3;
    }

    .img-05 {
        width: 300px;
        transform: rotate(-3deg);
    }

    .right-images {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 0;
        order: 4;
    }

    .img-02 {
        width: 300px;
        transform: rotate(5deg);
        margin-bottom: 0;
    }

    /* Proizvodi Section */
    .proizvodi-section {
        padding: 60px 20px 60px;
    }

    .proizvodi-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .slider-container {
        padding: 0;
    }

    .product-item {
        padding: 20px;
    }

    .product-item img {
        max-width: 200px;
    }

    .product-item h3 {
        font-size: 22px;
        margin: 15px 0;
    }

    .product-link {
        font-size: 16px;
        padding: 10px 30px;
    }

    .slider-controls {
        gap: 30px;
        margin-top: 30px;
    }

    .slider-arrow svg {
        width: 35px;
        height: 35px;
    }

    .slider-dots {
        gap: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* O Nama Section */
    .o-nama-section {
        padding: 60px 20px;
    }
    .o-nama-container {
        padding-top: 40px;
    }

    .o-nama-container {
        flex-direction: column;
        gap: 40px;
    }

    .o-nama-image {
        order: -1;
    }

    .o-nama-content {
        order: 1;
    }

    .o-nama-title {
        font-size: 32px;
    }

    .o-nama-text {
        font-size: 20px;
        line-height: 1.7;
    }

    .o-nama-image img {
        max-width: 100%;
    }

    /* Novosti Page */
    .novosti-page {
        padding: 40px 20px;
        overflow-x: hidden;
    }

    .news-article {
        flex-direction: column;
        gap: 30px;
    }

    .news-card {
        transform: translateY(0);
        max-width: 100%;
    }

    .news-image {
        transform: none;
        max-width: 100%;
    }

    .news-article-2 {
        flex-direction: column;
    }

    .news-article-2 .news-image-vertical {
        transform: none;
        max-width: 100%;
    }

    .news-article:nth-child(4) .news-image {
        transform: none;
    }

    /* Product Detail */
    .product-detail-container {
        transform: none;
    }


    .katalog-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .katalog-wrapper {
        max-width: 100%;
        height: 500px;
    }

    .katalog-controls {
        gap: 30px;
        margin-top: 25px;
    }

    .katalog-arrow svg {
        width: 35px;
        height: 35px;
    }

    .katalog-counter {
        font-size: 20px;
    }

    /* Contact Section */
    .contact-section {
        margin: 60px 20px 40px;
        min-height: auto;
    }

    .contact-content {
        padding: 40px 30px;
        min-height: auto;
    }

    .contact-background {
        object-fit: cover;
        height: 100%;
        min-height: 100%;
    }

    .contact-top {
        margin-top: 40px;
        padding-left: 0;
    }

    .contact-title {
        font-size: 52px;
        margin-bottom: 20px;
    }

    .contact-description {
        font-size: 18px;
    }

    .contact-info-wrapper {
        padding-left: 0;
        padding-bottom: 0px;
        flex-direction: column;
        padding-right: 0;
        margin-top: 30px;
    }

    .contact-item {
        font-size: 16px;
    }

        /* Footer */
        .footer-background {
            content: url('slike/footer-mobile.png');
            object-fit: cover;
        }

        .footer-content {
            padding: 40px 20px 20px;
        }

        .footer-top {
            flex-direction: column;
            gap: 30px;
            align-items: center;
        }

        .footer-column {
            align-items: center;
        }

        .footer-middle {
            order: 1;
        }

        .footer-left {
            order: 2;
        }

        .footer-right {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            width: 100%;
            order: 3;
        }

        .footer-right .footer-made-by {
            grid-column: 1 / -1;
            justify-content: center;
        }

        .footer-bottom {
            position: static;
            transform: none;
            order: 4;
            width: 100%;
        }

    .footer-logo {
        max-width: 120px;
    }

    .footer-link {
        font-size: 14px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .winkla-logo {
        max-width: 80px;
    }

    /* Hide copyright in footer-middle on tablet */
    .footer-middle .footer-address {
        display: none;
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES (Under 480px)
   ============================================ */
@media (max-width: 480px) {
    /* Navigation */
    .navbar {
        height: 55px;
    }

    .nav-container {
        padding: 0 15px;
        gap: 10px;
        justify-content: space-between;
    }

    .logo-nav {
        margin-right: 0;
    }

    .logo-nav img {
        height: 35px;
    }

    .company-name {
        font-size: 18px;
    }

    /* Hide desktop navigation */
    .nav-links,
    .nav-divider,
    .nav-contact {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: block;
    }

    .hamburger svg {
        height: 2.5em;
    }

    /* Mobile menu links smaller on mobile */
    .mobile-menu-links a {
        font-size: 28px;
    }

    .mobile-menu-links li {
        margin: 25px 0;
    }

    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 64px 15px 30px;
    }

    .center-logo {
        margin-top: -20px;
    }

    .center-logo img {
        width: 160px;
    }

    .bottom-center-image {
        margin-top: -30px;
    }

    .img-05 {
        width: 240px;
    }

    .img-03 {
        width: 300px;
    }

    .right-images {
        display: none !important;
    }

    .img-02 {
        width: 240px;
    }

    /* Proizvodi Section */
    .proizvodi-section {
        padding: 40px 15px 50px;
    }

    .proizvodi-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .slide {
        flex-direction: column;
        gap: 30px;
    }

    .product-item {
        padding: 15px;
        width: 100%;
    }

    .product-item img {
        max-width: 180px;
    }

    .product-item h3 {
        font-size: 20px;
        margin: 12px 0;
    }

    .product-link {
        font-size: 14px;
        padding: 8px 25px;
    }

    .slider-controls {
        gap: 20px;
        margin-top: 25px;
    }

    .slider-arrow svg {
        width: 30px;
        height: 30px;
    }

    .slider-dots {
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    /* O Nama Section */
    .o-nama-section {
        padding: 40px 15px;
    }

    .o-nama-container {
        gap: 30px;
    }

    .o-nama-image {
        order: -1;
    }

    .o-nama-content {
        order: 1;
    }

    .o-nama-title {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .o-nama-text {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Novosti Page */
    .novosti-page {
        padding: 30px 15px;
        overflow-x: hidden;
    }

    .news-article {
        flex-direction: column;
        gap: 20px;
    }

    .news-card {
        transform: none;
        max-width: 100%;
    }

    .news-image {
        transform: none;
        max-width: 100%;
    }

    .news-article-2 {
        flex-direction: column;
    }

    .news-article-2 .news-image-vertical {
        transform: none;
        max-width: 100%;
    }

    .news-article:nth-child(4) .news-image {
        transform: none;
    }

    .page-title {
        font-size: 60px;
    }

    /* Product Detail */
    .product-detail-container {
        transform: none;
    }

    /* Katalog Section */
    .katalog-section {
        padding: 80px 15px 50px;
    }

    .katalog-title {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .katalog-wrapper {
        height: 400px;
    }

    .katalog-controls {
        gap: 20px;
        margin-top: 20px;
    }

    .katalog-arrow svg {
        width: 30px;
        height: 30px;
    }

    .katalog-counter {
        font-size: 18px;
    }

    /* Contact Section */
    .contact-section {
        margin: 80px 15px 30px;
        min-height: 600px;
    }

    .contact-content {
        padding: 30px 20px;
        min-height: auto;
    }

    .contact-background {
        object-fit: cover;
        height: 100%;
        min-height: 100%;
    }

    .contact-top {
        margin-top: 30px;
    }

    .contact-title {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .contact-description {
        font-size: 16px;
    }

    .contact-info-wrapper {
        margin-top: 25px;
        padding-bottom: 0px;
        flex-direction: column;
        gap: 16px;
    }

    .contact-item {
        font-size: 14px;
    }

    /* Footer */
    .footer {
        height: auto;
        min-height: 300px;
    }

    .footer-background {
        content: url('slike/footer-mobile.png');
        object-fit: cover;
    }

    .footer-content {
        padding: 10px 15px 15px;
    }

    .footer-top {
        gap: 5px;
        align-items: center;
    }

    .footer-middle {
        order: 1;
    }

    .footer-left {
        order: 2;
    }

    .footer-right {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 0px;
        width: 100%;
        order: 3;
    }

    .footer-right .footer-made-by {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .footer-bottom {
        position: static;
        transform: none;
        order: 4;
        width: 100%;
    }

    .footer-company-name {
        font-size: 18px;
    }

    .footer-address {
        font-size: 13px;
    }

    .footer-logo {
        max-width: 100px;
    }

    .footer-social {
        gap: 15px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-made-by {
        font-size: 12px;
    }

    .winkla-logo {
        max-width: 60px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    /* Hide copyright in footer-middle on mobile */
    .footer-middle .footer-address {
        display: none;
    }

    /* Product Detail Pages */
    .product-detail-section {
        padding: 60px 15px;
    }

    .product-detail-container {
        gap: 30px;
    }

    .product-detail-container.product-detail-reverse {
        flex-direction: column;
        transform: none;
    }

    .product-detail-content {
        gap: 8px;
    }

    .product-detail-image img {
        max-width: 250px;
    }

    .product-detail-title {
        font-size: 32px;
    }

    .product-detail-subtitle {
        font-size: 22px;
        transform: translateY(-12px);
    }

    .product-detail-description {
        font-size: 18px;
        line-height: 1.6;
    }
}
