html {
    scroll-behavior: smooth;
    scroll-padding-top: 10px; 
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    position: relative;
    background-color: #0f0f0f;
    color: #f8f9fa;
}

@media (min-width: 1320px) {
    .container {
        max-width: 1320px;
    }
}

.navbar.navbar-dark {
    background-color: #0f0f0f !important;
    border-bottom: 1px solid #22272b;
}

.navbar-nav .nav-link {
    font-weight: bold;
    transition: color 0.2s ease-in-out;
    padding-left: 1.2rem !important; 
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 1.0);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #E53E3E !important; 
}

.navbar-dark .navbar-brand {
    color: #fff;
    font-weight: bold;
}

.navbar-brand .text-servis-red {
    color: #E53E3E;
  }

.navbar-toggler {
    background-color: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: var(--bs-navbar-toggler-font-size);
    line-height: 1;
    border-radius: var(--bs-navbar-toggler-border-radius);
    transition: box-shadow 0.15s ease-in-out; 
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url('../img/dropMenu.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    vertical-align: middle;
    width: 1.1em;
    height: 1.1em;
}

.section-padding {
    padding-top: 80px; 
    padding-bottom: 60px;
}

.section-title {
    font-weight: bold;
}

.bg-alternate {
    background-color: #121212;
}

#uvod {
    min-height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('../img/obr_main.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
}

#uvod::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

#uvod .container {
    position: relative;
    z-index: 2;
}

.btn-custom-cta {
    background-color: #E53E3E;
    color: #ffffff;
    border: 1px solid #E53E3E;
    padding-top: 0.75rem; 
    padding-bottom: 0.75rem;
    padding-left: 2rem;   
    padding-right: 2rem;
    font-weight: normal;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-custom-cta:hover,
.btn-custom-cta:focus {
    background-color: #c43232; 
    color: #ffffff;
    border-color: #c43232;
}

.btn-custom-cta:active,
a.btn.btn-custom-cta:active {
    background-color: #E53E3E !important;
    border-color: #E53E3E !important;
    color: #ffffff !important;
}

.service-card {
    min-height: 190px;
}

.service-card {
    background-color: #222222;
    border: 1px solid #333333;
    border-radius: 0.75rem; 
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.5s ease-out;
    opacity: 0;
    transform: translateY(50px);
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.service-card-header {
    display: flex;
    align-items: center;
}

.service-card-header .service-title {
    font-size: 1.25rem;
    color: #e9ecef;
    margin-bottom: 0;
    font-weight: bold;
}

.service-icon {
    width: 32px;
    height: 32px;
    color: #E53E3E !important;
}

.contact-item .contact-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.contact-item .contact-title {
    font-weight: bold;
    color: #e9ecef;
    font-size: 1.15rem;
}

#kontakt p {
    color: #f8f9fa;
}

.contact-image {
    max-width: 500px; 
    width: 100%; 
    height: 450px; 
    object-fit: cover; 
    border-radius: 0.75rem;
}

.map-container{
    border-radius: 0.75rem;
    overflow: hidden;
    height: 400px;
}

.contact-map-image {
    width: 100%;
    object-fit: cover;
}

.footer {
    background-color: #000000 !important;
    color: #f8f9fa;
}

.footer-brand-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.footer-brand-text .text-servis-red {
    color: #E53E3E;
}

.footer-copyright {
    color: #b0b0b0;
    font-size: 0.82rem;
}

.footer-credits {
    color: #888888;
    font-size: 0.72rem;
}

.social-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #222222;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.social-icon-circle:hover {
    background-color: #E53E3E;
}

.social-icon-img {
    width: 18px;
    height: 18px;
}

.social-icon-circle.navbar-icon-size-modifier {
    width: 30px; 
    height: 30px; 
}

.social-icon-circle.navbar-icon-size-modifier .social-icon-img {
    width: 14px; 
    height: 14px;
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 30px;
    }
    .section-padding {
        padding-top: 70px;
        padding-bottom: 40px;
    }
    #uvod {
        min-height: 100vh;
    }
    .navbar-nav .nav-link {
        padding-left: 0.8rem; 
        padding-right: 0.8rem;
    }
    .service-card-header .service-title {
        font-size: 1.1rem;
        font-weight: bold;
    }
    .contact-item .contact-title {
        font-size: 1.1rem;
    }
    .contact-image {
        margin-left: auto;
        margin-right: auto;
        margin-top: 0rem;
        max-width: 90%; 
        height: auto;
        max-height: 400px;
    }
    .navbar-social-icons-container {
        margin-top: 0.5rem;
        padding-left: 1rem;
        justify-content: flex-start;
    }
    .navbar-collapse {
        padding-bottom: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .footer .text-md-start,
    .footer .text-md-end {
        text-align: center !important;
    }
    .footer-brand-text {
        font-size: 1.1rem;
    }
    .contact-image {
        max-width: 100%;
        height: auto;
        max-height: 360px;
    }
     #kontakt .mt-5.pt-md-4 {
        padding-top: 1.5rem !important;
    }
    #kontakt .col-md-6.d-flex.flex-column.justify-content-center {
        justify-content: flex-start !important;
    }
}