* {
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, sans-serif;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
   
}
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: rgba(128,128,128,0.4)
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.navbar.scrolled {
    background:grey;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo img {
    height: 70px;
}
.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 10px 25px;
    border: 2px solid grey;
    border-radius: 30px;
    background: transparent;
}


.navbar.scrolled .nav-menu a {
    color: var(--text-color);
    border-color: var(--primary-color);
}

.nav-menu a:hover {
    color: var(--white);
    background: grey;
    border-color: grey;
    transform: translateY(-2px);
}

.navbar.scrolled .nav-menu a:hover {
    color: var(--white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background:lightgrey;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar.scrolled .hamburger span {
    background-color: lightgray;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: url('hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: rgb(65, 65, 65);
   
   
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 7px white;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.kvadrat1{
    width: 400px;
    height: 400px;
    
    
    border-radius: 30px;
    
    background-image: url(manjiformat/solar.webp);
    background-size: cover;
    background-position:-100px;
    transition: transform 0.4s ease;
    

    
}
.kvadrat1:hover{
    transform:scale(1.05);
}

.kvadrat2{
    width:400px;
    height: 400px;
   
  
    border-radius: 30px;
    background-image: url(manjiformat/nadstresnica.webp);
    background-size: cover;
    background-position: -50px;
    transition: transform 0.4s ease;
}
.kvadrat2:hover{
    transform:scale(1.05);
}
    

  
.kvadrat3{
    width:400px;
    height: 400px;
    
    
    border-radius: 30px;
    background-image: url(manjiformat/ograda.webp);
    background-size: cover;
    background-position: -100px;
    transition: transform 0.4s ease;
    
    

}
.kvadrat3:hover{
    transform:scale(1.05);
}
.kvadrat4{
    width:400px;
    height: 400px;
    
    
    border-radius: 30px;
    background-image: url(manjiformat/plin.webp);
    background-size: cover;
    background-position: -100px;
    transition: transform 0.4s ease;
    
    
}
.kvadrat4:hover{
    transform:scale(1.05);
}
.kvadrati{
    display:flex;
    gap:20px;
    max-width: none;
    border-radius:0px;
    justify-content: center;
    overflow-x: auto;       
    overflow-y: hidden;
    padding: 20px 60px;
    scrollbar-width: none;      
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
    scroll-padding: 20px;
    padding-left: 0px;
    margin: auto;
    flex: 1;
   
   
    
    
}
.kvadrati::-webkit-scrollbar {
    display: none;             
}
.kvadrat-wrapper{
    display: flex;
    flex-direction: column;
    align-items:center;
    text-align: center;
    gap:10px;
    width:400px;
    grid-template-rows: 80px auto;
    scroll-snap-align: start;
  
}
.kvadrat-wrapper a {
    display: block;
}
.slider-wrapper {
  position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 32px;
 
}

.arrow {
    position: absolute;     
    top: 55%;
    transform: translateY(-50%);
    z-index: 100;
    color: #333;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s
}

.arrow.visible {
    opacity: 0;
}

.arrow.left  { left: 20px; }
.arrow.right { right: 20px; }
.naslov_sekcije {
    text-decoration: none;
    
    font-weight: 500;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 10px 25px;
    border: 2px solid var(--white);
    border-radius: 30px;
    background-color: rgba(255,255,255,0.6);
    font-weight: bold;
    
}

.kontakt-section{
    padding: 50px 0;
    text-align: center;
    background-color: #e6e6e6;
}
.aluminijske_ograde ul {
    padding-left: 35px;      
    list-style-position: outside;
}

.aluminijske_ograde li {
    padding-left: 12px;      
    margin-bottom: 5px;
}
.kontakt-sekcija h3{
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}
.kontakt-sekcija p{
    font-size: 1.1rem;
    line-height: 2;
    color: #000000;
    margin-bottom: 0.5rem;
}
.kontakt-sekcija a{
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.kontakt-sekcija a:hover{
    color: #357ABD;
    text-decoration: underline;
}
.kontakt-r{
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.kontakt-r ::after{
    display:none;
}
.sekcija-nama{
    text-align: center;
    padding: 50px;
}
.services-section {
    padding: 80px 0;
}
.alt-bg {
    background: transparent;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.section-title::after {
    display: none;
}

.service-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.service-grid.reverse {
    grid-template-columns: 1fr 400px;
}
.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 350px;
}
.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-content {
    padding: 0;
    
}

.service-text {
    border-left: none;
    padding-left: 0;
}

.service-text p {
    font-size: 1.25rem;
    line-height: 2;
    color: #666;
    text-align: left;
}
.aluminijske_ograde{
   
    max-width: 1000px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    text-align: left;
}
.aluminijske_ograde p{
     margin-bottom: 1.5rem;
    text-align: left;
}
.slike{
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    background-color: #e6e6e6;
}
.slike img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 10px;
    
}
.lightbox{
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background:rgba(0, 0, 0,0.8);
    align-items: center;
    justify-content: center;

}
.lightbox-window {
  position: relative;
  background:transparent;
  padding: 20px 60px;          
  max-width: 1400px;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
   
 
  
}
.lightbox.hiden{
    display: none;
}
.lightbox-image{
    max-width: 100%;
    max-height: 70vh;
    box-shadow: 0 0 25px rgba(0,0,0,0.8);
    
}
.lightbox-window .close{
    position: absolute;
    top: 0px;
    right: 15px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;


}

.lightbox-window .arrow{
    position: absolute;
    
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    opacity: 1;

}
.lightbox-window .arrow.left{
    left: 30px;
    top:50%;

}
.lightbox-window .arrow.right{
    right: 8px;
    top: 49%;
    
}
.slike img{
    cursor: pointer;
}
.fotogalerija{
    text-align: center;
    font-size: 45px;
    background-color: #e6e6e6;
    
    
}
.service-imagee {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 410px;
}
.service-imagee img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}












.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
    background-color: rgb(131, 131, 131);
   
}

.footer-logo img {
    height: 50px;
    margin-bottom: 0,5rem;
}
html, body {
    overflow-x: hidden;
    width:100vw;
    max-width: 100%;
}
@media (max-width: 768px) { 
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100px;
        left: -100%;
        flex-direction: column;
        background:lightgray;
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
    }

    .nav-menu.active {
        left: 0;
        top:100px;
    }

    .nav-menu a {
        font-size: 1.1rem;
        color: var(--text-color);
        border-color: var(--primary-color);
        text-align: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2rem;
        word-break: break-word;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        padding: 0 20px;
    }

    .services-section {
        padding: 60px 0;
    }

    .service-grid,
    .service-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 250px;
        width: 100%;
        order: 2;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-text p {
        font-size: 1.1rem;
        padding: 0 10px;
        
    }

}
@media (max-width: 1600px) {
    .kvadrati {
        overflow-x: auto;
      
        padding: 20px 80px;
        gap: 30px;
        scroll-padding-left: 20px;   
        scroll-padding-right: 20px;
        justify-content: flex-start;
       
    }  
    .kvadrat-wrapper {
        flex-shrink: 0;
        width: 380px;
        scroll-snap-align: start;
    }
    .arrow.left{
        opacity: 1;

    }
    .arrow.right{
        opacity: 1;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}