@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500&display=swap');
body, html{
    height: 100%;
    margin: 0;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.8rem;
    color: #000000;
}
h2{
    font-family: 'Oswald', sans-serif;
}
.pimg1,.pimg2,.pimg3{
    position: relative;
    opacity: 0.70;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* background-attachment: fixed = parallax*/
    /* background-attachment: scroll = normal */
    background-attachment: fixed;
}
.navbar {
    -position: fixed;
    width: 100%;
    height: 300px;
    top: 0;
    background-color: #000;
    z-index: 1000;
      display: flex;
    flex-direction: column;
    align-items: center;
}
.logo-img {
    height: 300px; /* prilagodi visinu po potrebi */
    margin-top: 5px;
   
    margin-left: 10px;
}


.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 10px 0;
}
.navbar ul li {
    margin: 0 15px;
}
.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.navbar ul li a:hover {
    text-decoration: none;
    color: #c00;
}

.shop-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.shop-item {
    background-color: #222;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
}
.shop-item img {
    max-width: 100%;
    border-radius: 10px;
}
.shop-item button {
    margin-top: 10px;
    padding: 5px 15px;
    background-color: #f00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.shop-item button:hover {
    background-color: #c00;
}
  /* HERO SLIDER STILOVI */
        .hero-slider {
            position: relative;
            height: 100vh;
            overflow: hidden;
            padding-top: 140px; /* space for navbar */
            
        }
        
        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1.5s ease-in-out;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-color: rgba(0,0,0,0.7); /* tamni sloj iznad slike */
        }
        
        .slide.active {
            opacity: 1;
        }
        
        .slide1 {
            background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/ymhbck.jpg');
        }
        
        .slide2 {
            background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/kws.png');
        }
        
        .slide3 {
            background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/dctbck.webp');
        }
        
        .slide4 {
            background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/motopprema.jpg');
        }
        
        .slide-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: white;
            z-index: 2;
        }
        
        .slide-content h1 {
            font-size: 4rem;
            font-family: 'Oswald', sans-serif;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
            animation: slideInFromTop 1s ease-out;
        }
        
        .slide-content p {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
            animation: slideInFromBottom 1s ease-out 0.3s both;
        }
        
        .cta-button {
            display: inline-block;
            padding: 15px 30px;
            background: linear-gradient(45deg, #ff0000, #cc0000);
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: all 0.3s ease;
            animation: slideInFromBottom 1s ease-out 0.6s both;
        }
        
        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(255,0,0,0.3);
        }
        
        /* SLIDER NAVIGACIJA */
        .slider-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            padding: 15px 20px;
            cursor: pointer;
            font-size: 24px;
            transition: all 0.3s ease;
            z-index: 3;
        }
        
        .slider-nav:hover {
            background: rgba(255,0,0,0.7);
        }
        
        .prev {
            left: 20px;
        }
        
        .next {
            right: 20px;
        }
        
        /* SLIDER INDIKATORI */
        .slider-indicators {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            z-index: 3;
        }
        
        .indicator {
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .indicator.active {
            background: #ff0000;
            transform: scale(1.2);
        }
        
        /* ANIMACIJE */
        @keyframes slideInFromTop {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes slideInFromBottom {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
.pimg4 {
    background-image: url(img/1.jpg); /* zamijeni s pravom slikom */
    min-height: 400px;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    opacity: 0.9;
}

.pimg4 .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.5); /* tamni sloj iznad slike */
    z-index: 1;
}

/* Centriranje teksta po X i Y osi */
.pimg4 .ptext.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #fff;
}

.border.dark-bg {
    background-color: rgba(0, 0, 0, 0.8); /* tamna pozadina */
    color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 28px;
    letter-spacing: 5px;
    text-transform: uppercase;
}







.pimg2{
    background-image: url(img/yamaha.jpg);
    min-height: 400px;
}
.pimg3{
    background-image: url(img/kawasaki1.jpg);
    min-height: 400px;
}
.pimg4{
    background-image: url(img/ducati.jpeg);
    min-height: 400px;
}
.section{
    text-align: center;
    padding: 10px 80px;
}
.section-light{
    background-color: #000000;
    color: #ddd;
}
.section-light h1{
    font-size: 50px;
    font-family: 'Oswald', sans-serif;
}
.section-dark{
    background-color: #000000;
    color: #ddd;
}
.section-dark h1{
    font-size: 50px;
    font-family: 'Oswald', sans-serif;
    
}
.ptext{
    position: absolute;
    top:50%;
    width:100%;
    text-align: center;
    color: #000000;
    font-size: 27px;
    letter-spacing: 8px;
    text-transform: uppercase;
}
.ptext .border{
    background-color: #111111;
    color: #ddd;
    padding: 20px;
}
.ptext .border.trans{
    background-color: transparent;
}
.content-box {
    max-width: 800px;
    margin: 0 auto;
   background-color: rgba(0, 0, 0, );
   opacity: 0.8;
    padding: 20px;
    border-radius: 10px;
    text-align: justify;
}
.video-container {
    position: relative;
    padding-bottom: 31.25%; 
    height: 0;
    overflow: hidden;
    max-width: 700px; 
    margin: 20px auto;
    width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


footer{
    
    text-align: center;
     padding: 0.1rem 1rem;  
     margin: auto; 
    color: #ffffff;
    background-color: #000000;
}

.contact-links{
    display: flex;
    justify-content: center;
    width: 200px;
    max-width: 980px;
    /* padding: 1rem; */
    /* flex-wrap: wrap; */
    margin-left: 52.5rem; 
    
}
.contact-details{
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease-out; 
  }
  .contact-details:hover{
    transform: translateY(5px);
  }
  .btn{
    display: inline-block;
      padding-right: 1rem;
      text-decoration: none;
      color: #333333;
}
.gallery {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.fade-gallery {
    position: relative;
    height: 100%;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 1.5s ease-in-out;
}

.gallery-img.active {
    opacity: 1; 
}


@media (max-width: 560px){
    .pimg1, .pimg2, .pimg3{
        background-attachment: scroll;
    }
    .ptext .border{
        padding: 5px;
    }
    .contact-links{
        margin-left: 5rem;
    }
}

.gallery-container {
    max-height: 800px; 
}

@media (max-width: 768px) {
    .gallery {
        min-height: 60vh !important;
    }
    .fade-gallery {
        height: 60vh;
    }
}

@media (max-width: 480px) {
    .gallery {
        min-height: 50vh !important;
    }
    .fade-gallery {
        height: 50vh;
    }
}