@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    list-style: none;
    text-decoration: none;

    /* font-family: 'Montserrat', sans-serif; */
}
body {
    font-family: 'Montserrat', sans-serif;
    background: url(./images/bg2.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: auto !important;
    min-height: 100vh;
    margin-top: 80px;
}
nav{
    background: #bbbcbd;
    height: 80px;
    width: 100%;
    padding-left: 40px;
    position: fixed;
    top: 0;
    z-index: 9999;

}
label.logo{
    color: white;
    font-size: 35px;
    line-height: 80px;
    font-weight: 600;
    padding: 0 110px;
    cursor: pointer;

    background: url(./images/Logo_bez_broja.png);
    background-size: cover;
    
}
nav ul{
    float: right;
    margin-right: 20px;
}
nav ul li{
    display: inline-block;
    line-height: 80px;
    margin: 0 5px;
}
nav ul li a{
    color: white;
    font-size: 17px;
    padding: 7px 17px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;

}
a.active,a:hover{
    background: #7f7f7f;
    transition: .5s;
}
.check-btn{
    color: white;
    font-size: 30px;
    float: right;
    line-height: 80px;
    margin-right: 40px;
    cursor: pointer;
    display: none;
}
#check{
    display: none;
}
@media (max-width: 952px){
    label.logo{
        font-size: 30px;
        padding-left: 50px;
    }
    nav ul li a{
        font-size: 16px;
    }
}

.logo-link {
    display: inline-block;
    height: 80px;
    vertical-align: top;
}

@media (max-width: 858px){
    .check-btn{
        display: block;
    }
    ul{
        position: fixed;
        height: 100vh;
        width: 100%;
        background: #2c3e50;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }
    nav ul li{
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }
    nav ul li a{
        font-size: 20px;
    }
    a:hover,a.active{
        background: none;
        color: #0082e6;
    }
    #check:checked ~ ul{
        left: 0;
    }
}
section {
    height: auto !important;
    min-height: calc(100vh - 80px);
    padding-bottom: 40px;
}


.contact {
    width: 100%;          
    max-width: 600px;        
    margin: 40px auto;       
    display: flex;
    flex-direction: column;
    padding: 40px 5%;      
    background-color: #f54545;
    border-radius: 10px;    
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', sans-serif;
}



.contact_input{
    height: 50px;
    margin: 10px 20px;
    padding: 5px;
    padding-left: 15px;
}
#area{
    height: 120px;
    padding-top: 15px;
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    resize: none;
}

.contact_input, #area {
    width: calc(100% - 40px); 
    margin: 10px 20px;
}

input {
    border: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
}


.contact_submit {
    width: calc(100% - 40px);
    height: 65px;
    margin: 20px 20px 10px 20px;
    background-color: #bbbcbd;
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 10px;
    border: none;
    transition: background-color 0.3s ease;
}
.contact_submit:hover{
    background-color: #bebebe;
    cursor: pointer;
}
.contact_submit:active{ 
    background-color: #7f7f7f;
}

.contact_div{
    text-align: center;
    font-size: 30px;
    color: white;
    margin-bottom: 20px;
    font-weight: bolder;
}

.socials {
    margin-top: 25px;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    justify-content: center; 
    gap: 15px;               
}


.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;      
    background-color: #bbbcbd; 
    color: #f54545;           
    font-size: 22px;       
    transition: all 0.3s ease;
    text-decoration: none;
}


.social-icon:hover {
    background-color: white;   /* Inverts background to white on desktop hover */
    transform: translateY(-3px); /* Subtle lift animation */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.social-icon:active {
    background-color: #7f7f7f; /* Dark grey indicator on immediate mobile screen taps */
    transform: translateY(0);
}


.opis {
    width: 60%;

    margin: 0 20%;
    padding: 50px 10%;
    background-color: #f54545;
    font-family: 'Montserrat', sans-serif;
}

.podnaslovi {
    color: white;
}

.slideshow-container {
  position: relative;
  
  margin: auto;
  margin-top: 100px;
  background-color: white;
  width: 100%;
  max-height: 100%;
  height: 90%;
  object-fit: contain;
}

/* Hide the images by default */
.mySlides {
  display: none;
  object-fit: contain;
  height: 100%;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
img{
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 0.5s;
}

@keyframes fade {
  from {opacity: .8}
  to {opacity: 1}
}



/* ==========================================================================
   New Index Page Structure & UI Modifications
   ========================================================================== */

/* Overriding default behavior for scroll containers on index pages */
.home-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Base style block matching your .opis elements */
.home-card {
    width: 100%;
    background-color: #f54545;
    padding: 40px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.home-card h1, .home-card h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.home-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Service lists blocks */
.home-service-item {
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #bbbcbd;
}

.home-service-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.home-service-item p {
    margin-bottom: 0;
}

/* Strict Info Alert Elements */
.alert-box {
    background-color: #ffffff;
    color: #f54545;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
    border: 2px dashed #f54545;
}

/* Button systems that integrate cleanly with your native look variables */
.home-btn-primary, .home-btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.home-btn-primary {
    background-color: #bbbcbd;
    color: white;
    border: none;
}

.home-btn-primary:hover {
    background-color: #bebebe;
}

.home-btn-primary:active {
    background-color: #7f7f7f;
}

.home-btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    margin-top: 10px;
}

.home-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .home-container {
        margin: 20px auto;
    }
    .home-card {
        padding: 25px 20px;
    }
    .home-card h1, .home-card h2 {
        font-size: 24px;
    }
}





.home-slider-wrapper {
    width: 100%;
    background-color: #f54545;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.slider-title {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Enforcing standard heights on your original slider elements */
.home-slider-wrapper .slideshow-container {
    margin-top: 0 !important;
    height: 400px !important; /* Perfect desktop height window */
    background-color: #1a1a1a; /* Dark sleek container background */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-slider-wrapper .mySlides {
    width: 100%;
    height: 100%;
}

.home-slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.home-slider-wrapper .prev, .home-slider-wrapper .next {
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    background-color: rgba(0,0,0,0.3);
}

.gallery-page-container {
    max-width: 1100px;
    margin: 120px auto 40px auto; 
    padding: 0 20px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.grid-item {
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.grid-item:hover {
    transform: scale(1.03);
}
.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.lightbox-modal {
    display: none; 
    position: fixed;
    z-index: 100000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
}
.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    margin: auto;
    margin-top: 5vh;
}
.lightbox-content .mySlides {
    height: 80vh;
    display: none;
    text-align: center;
}
.lightbox-content img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}


.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100002;
}
.lightbox-modal .prev, .lightbox-modal .next {
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
}

.service-bullet-list {
    margin-top: 10px;
    padding-left: 20px;
}

.service-bullet-list li {
    list-style-type: disc !important; /* Forces clean dot bullet indicators */
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}


.home-slider-wrapper .prev {
    left: 0 !important;
    right: auto !important;
    border-radius: 0 3px 3px 0;
}


.home-slider-wrapper .next {
    right: 0 !important;
    left: auto !important;
    border-radius: 3px 0 0 3px;
}



@media (max-width: 768px) {
    .home-slider-wrapper .slideshow-container {
        height: 250px !important;
    }
    .slider-title {
        font-size: 22px;
    }
}

@media (max-width: 858px) {
    .check-btn {
        display: block; 
    }

    nav ul {
        position: fixed;
        height: calc(100vh - 80px);
        width: 100%;
        background: #7f7f7f;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all .5s ease;
        z-index: 9998; 
        float: none;   
        margin-right: 0;
    }

 
    #check:checked ~ ul {
        left: 0;
    }

    
    body {
        height: auto !important;
        min-height: 100vh;
        padding-bottom: 40px; 
    }

    
    .home-container, 
    .services-page-container, 
    .contact, 
    .opis {
        margin-top: 100px !important; 
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    
    .home-card h1, 
    .page-title-block h1 {
        font-size: 24px !important;
        line-height: 1.3;
    }

    .home-card h2, 
    .slider-title, 
    .workflow-section h2 {
        font-size: 20px !important;
    }

    /* 4. Optimize spacing inside your content boxes for tight displays */
    .home-card, 
    .detailed-card, 
    .workflow-section, 
    .opis {
        padding: 25px 15px !important;
    }

    /* 5. Make tap target buttons larger and easier to click with thumbs */
    .home-btn-primary, 
    .home-btn-secondary, 
    .contact_submit {
        width: 100% !important;
        display: block;
        margin: 15px 0 0 0 !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
    }

    nav ul li a.active,
    nav ul li a:hover {
        background-color: #f54545 !important; /* Matches your brand red */
        color: white !important;               /* Keeps text completely readable */
        display: inline-block;
        width: 80%;                            /* Creates a clean capsule-shaped background button */
        padding: 10px 0;
        border-radius: 5px;
        transition: background-color 0.3s ease;
    }
    .gallery-page-container {
        margin-top: 100px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}





