/* Osnovni stilovi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: white;
    background: url('../img/metalostruganje.png') no-repeat center center fixed;
    background-size: cover;
    height: 100%;
    overflow-x: hidden;
    padding-top: 90px;
}

/* Navigacija */

.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 20px;
    background-color: aliceblue;
     position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}

.navbar .nav-links {
    display: flex;
    list-style: none;
}

.navbar .nav-links li {
    margin-left: 20px;
}

.navbar .nav-links a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #f4b400;
}


.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: rgb(0, 0, 0);
}

.navbar .logo img {
    height: 50px;         
    width: auto;          
    display: block;
}
/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: aliceblue;
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #000;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #fff3d3;
    color: #000;
}

/* Hover za desktop */
.dropdown:hover .dropdown-menu {
    display: block;
}

.nav-left {
    justify-self: start;
}

.nav-center {
    justify-self: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;     
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}


.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.lang-switch button {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.lang-switch img {
    width: 22px;
    height: auto;
    border-radius: 2px;
}

.lang-switch button:hover {
    opacity: 0.7;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

      .navbar .logo img {
        height: 40px;      /* manji logo na telefonu */
    }

    .nav-links {
        position: absolute;
        top: 70px; 
        left: -100%;
        flex-direction: column;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    .navbar .nav-links a {
    color: rgb(255, 255, 255);

}

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .dropdown-menu {
    position: static;
    display: none;
    background-color: rgba(0, 0, 0, 0.8);
}

.dropdown-menu a {
    color: #fff;
}

/* kada je meni otvoren */
.dropdown.active .dropdown-menu {
    display: block;
}

.navbar {
        grid-template-columns: auto auto auto;
    }

    .nav-center {
        position: static;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.8);
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

}

/* Sekcije */
section {
    padding: 70px 20px;
    /* min-height: 100vh; */
    text-align: center;
}

.about-section {
    background-color: rgba(0, 0, 0, 0.6);
}

.contact-section {
    background-color: rgba(0, 0, 0, 0.8);
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    position: relative;
}




/* ABOUT SEKCIJA */
.about-section {
    background: linear-gradient(
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.85)
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container {
    max-width: 1100px;
    /* padding: 40px 20px; */
}

.about-text {
    text-align: center;
}

.about-text h1 {
    font-size: 48px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-text .subtitle {
    font-size: 22px;
    color: #f4b400;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Feature list */
.about-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 16px;
    transition: transform 0.3s, background-color 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    background-color: rgba(244, 180, 0, 0.2);
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .about-text h1 {
        font-size: 34px;
    }

    .about-text .subtitle {
        font-size: 18px;
    }

    .about-text p {
        font-size: 16px;
    }
}


/* COUNTER SEKCIJA */
.counter-section {
    background: rgba(0, 0, 0, 0.85);
    /* padding: 100px 20px; */
}

.counter-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.counter-box {
    padding: 30px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.3s, background 0.3s;
}

.counter-box:hover {
    transform: translateY(-8px);
    background: rgba(244, 180, 0, 0.15);
}

.counter-number {
    font-size: 48px;
    font-weight: bold;
    color: #f4b400;
    margin-bottom: 10px;
}

.counter-box p {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .counter-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .counter-container {
        grid-template-columns: 1fr;
    }
}



/* USLUGE */
.services-section {
    background: rgba(0, 0, 0, 0.9);
    padding: 100px 20px;
}

.services-container {
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.services-section h2 {
    font-size: 40px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    color: #ddd;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 35px 25px;
    border-radius: 20px;
    transition: transform 0.3s, background 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(244, 180, 0, 0.15);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #f4b400;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-section h2 {
        font-size: 32px;
    }
}




/*  WHY US */
.why-modern {
    background: #0b0b0b;
    padding: 120px 20px;
}

.why-wrapper {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.why-left h2 {
    font-size: 42px;
    margin-bottom: 25px;
}

.why-left p {
    font-size: 18px;
    line-height: 1.8;
    color: #ccc;
}

/* RIGHT SIDE */
.why-right {
    position: relative;
    padding-left: 40px;
}

.why-right::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(244, 180, 0, 0.4);
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s ease;
}

.why-item.show {
    opacity: 1;
    transform: translateX(0);
}

.why-number {
    font-size: 32px;
    font-weight: bold;
    color: #f4b400;
    min-width: 60px; 
    flex-shrink: 0;
    text-align: left;
}



.why-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.why-content p {
    font-size: 15px;
    color: #bbb;
}
.why-content {
    flex-grow: 1; 
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .why-wrapper {
        grid-template-columns: 1fr;
    }

    .why-right::before {
        left: 10px;
    }
}



/* MAŠINE SEKCIJA */
.machines-section {
    position: relative;
    min-height: 80vh;
    background: url('../img/metalostruganje.png') center / cover fixed;
    display: flex;
    align-items: center;
}

.machines-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.machines-content {
    position: relative;
    max-width: 900px;
    padding: 0 20px;
    margin-left: 10%;
    animation: slideIn 1s ease forwards;
}

.machines-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.machines-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: #ccc;
    max-width: 600px;
    margin-bottom: 40px;
}

.machines-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.machines-list span {
    padding: 12px 22px;
    border: 1px solid rgba(244, 180, 0, 0.6);
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 1px;
    color: #f4b400;
    transition: background 0.3s;
}

.machines-list span:hover {
    background: rgba(244, 180, 0, 0.15);
}

/* ANIMACIJA */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .machines-content {
        margin-left: 0;
        text-align: center;
    }

    .machines-list {
        justify-content: center;
    }
}



/* TAMNA SLIDER SEKCIJA */
.slider-section {
    position: relative;
    background: #0a0a0a;
    color: #fff;
    padding: 120px 20px;
    text-align: center;
    overflow: hidden;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 0;
}

.slider-section h2 {
    font-size: 42px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* SLIDER CONTAINER */
.slider-container {
    position: relative;
    max-width: 850px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
    z-index: 1;
}

/* SLIDES */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    cursor: pointer;
}

.slide {
    min-width: 100%;
    height: 420px; 
    cursor: pointer;
    overflow: hidden;
}

/* SLIKE U SLIDERU */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.4s ease;
}

.slide img:hover {
    transform: scale(1.07);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
    color: #f4b400;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    z-index: 2;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover { background: rgba(244,180,0,0.8); }

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain; /* PUNI FORMAT */
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 48px;
    cursor: pointer;
    color: #f4b400;
}



#d{
  margin:0;
  display:grid;
  place-items:center;
    background: rgba(0,0,0,0.95);
    overflow: hidden;

}
#p{
  margin:0;
  display:grid;
  place-items:center;
    background: rgba(0,0,0,0.8);
    overflow: hidden;

}
.section-title {
  font-size: 2.2rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: "";
  width: 80px;
  height: 3px;
  background: #000;
  display: block;
  margin: 15px auto 0;
}

.gallery{
  position:relative;
  width:300px;
  height:200px;
  transform-style:preserve-3d;
  animation:rotate 35s linear infinite;
}

@keyframes rotate{
  from{
    transform:perspective(1200px) rotateY(0deg);
  }
  
  to{
    transform:perspective(1200px) rotateY(360deg);
  }
}

.gallery span{
  position:absolute;
  width:100%;
  height:100%;
  transform-origin:center;
  transform-style:preserve-3d;
  transform:rotateY(calc(var(--i) * 45deg)) translateZ(380px);
}

.gallery span img{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .gallery {
    width: 200px;
    height: 200px;
  }

  .gallery span {
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(260px);
  }
}

@media (max-width: 480px) {
  #d {
    padding: 60px 10px;
  }

  .gallery {
    width: 160px;
    height: 160px;
  }

  .gallery span {
    transform: rotateY(calc(var(--i) * 45deg)) translateZ(200px);
  }
}




/* KONTAKT SEKCIJA */
.contact-industrial {
  background: rgba(0,0,0,0.9);
  padding: 120px 20px;
}

.contact-title {
  font-size: 42px;
  margin-bottom: 60px;
  text-align: center;
  letter-spacing: 2px;
}

/* GRID */
.contact-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 50px;
}

/* LEVA STRANA */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.contact-card {
  background: rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}

.contact-card.wide {
  grid-column: span 2;
}

.contact-card:hover {
  transform: translateY(-6px);
  background: rgba(244,180,0,0.15);
}

.contact-card .icon {
  font-size: 28px;
  color: #f4b400;
  margin-bottom: 10px;
}

.contact-card h3 {
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #f4b400;
}

.contact-card p {
  font-size: 15px;
  color: #ddd;
  line-height: 1.6;
}

/* DESNA STRANA – MAPA */
.contact-map-box {
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 15px;
}

.contact-map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: none;
  border-radius: 14px;
  filter: grayscale(100%) contrast(1.1);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .contact-card.wide {
    grid-column: span 1;
  }
}
@media (max-width: 768px) {
    .slide {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .slide {
        height: 220px;
    }
}



        #lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.85);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        #lightbox img {
            max-width: 90%;
            max-height: 80%;
            object-fit: contain;
        }

        #lightbox .close,
        #lightbox .prev,
        #lightbox .next {
            position: absolute;
            color: #fff;
            cursor: pointer;
            user-select: none;
        }

        #lightbox .close {
            top: 20px;
            right: 25px;
            font-size: 40px;
        }

        #lightbox .prev,
        #lightbox .next {
            top: 50%;
            transform: translateY(-50%);
            font-size: 30px;
            padding: 10px;
        }

        #lightbox .prev { left: 20px; }
        #lightbox .next { right: 20px; }

        /* === GALERIJA === */
        .row {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }

        .gallery-img {
            width: 300px;
            height: 250px;
            object-fit: cover;
            padding: 10px;
            cursor: pointer;
            transition: .3s;
        }

        .gallery-img:hover {
            transform: scale(1.05);
        }

/* SLIDER CONTAINER */
.slider-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
}

/* SLIDES */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    aspect-ratio: 3 / 2; 
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SLIKE */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    border-radius: 15px;
}
/* TABLET: 768px – 929px */
@media screen and (min-width: 768px) and (max-width: 1007px) {


    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.85);
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
        text-align: center;
    }

    .nav-links a {
        color: #fff;
        font-size: 18px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background-color: transparent;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        color: #fff;
    }

    .navbar {
        grid-template-columns: auto auto auto;
    }
}
/* VIDEO SEKCIJA */
.video-section {
    padding: 80px 20px;
    background-color: rgba(0, 0, 0, 0.85);
    text-align: center;
}

.video-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Horizontalni video */
.video-horizontal video {
    width: 100%;
    max-height: 500px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.video-vertical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px; 
}


.video-vertical-grid video {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-color: #000;
    aspect-ratio: 9 / 16;
    object-fit: cover; 
}

video:fullscreen {
    object-fit: contain; 
}

video:-webkit-full-screen {
    object-fit: contain;
}