body {
    background-color: #f4f7fa;
    color: #1a1a1a;
    scroll-behavior: smooth;
    font-family: 'Aldrich', sans-serif;
}

.hero {
    position: relative;
    background: url('images/hero-electrical-distribution-board.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 12.5%, transparent 12.5%, transparent 25%, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.1) 37.5%, transparent 37.5%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 62.5%, transparent 62.5%, transparent 75%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.1) 87.5%, transparent 87.5%, transparent);
    background-size: 10px 10px; /* Adjust the size of the stripes as needed */
    z-index: 1;
}

.hero header {
    position: relative;
    z-index: 2;
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
}
@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

.hero-content {
    animation: slideInFromTop 1s ease-out;
    position: relative;
    z-index: 2;
}
header img {
    max-width: 380px;
    height: auto;
    margin-bottom: 20px;
}

nav.navbar {
    background: transparent !important;
    position: absolute;
    width: 100%;
    z-index: 3;
    transition: background-color 0.3s ease;
}

nav.navbar.scrolled {
    background: linear-gradient(90deg, #4b2db4, #3380ff) !important;
    position: fixed;
    top: 0;
    width: 100%;
}
nav.navbar .nav-link {
    color: white !important;
}

nav.navbar .nav-link:hover {
    text-decoration: underline;
}

#sluzby {
    padding: 50px 0;
    background: url("images/map-of-the-peljesac.png");
    background-repeat: no-repeat;
    background-position: right bottom;
}

#sluzby .card {
    background-color: rgba(255,255,255,.9);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(100px);
}

#sluzby .card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

#sluzby .card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background-color: rgba(255,255,255,1);
}

#sluzby .card-title {
    color: #4b2db4;
}

#o-nas, #proc-nas, #recenze, #kontakt {
    background-color: #eaf0f6;
    padding: 50px 0;
}

#reference {
    padding: 50px 0;
    background-color: #fff;
}

#reference .gallery {
    column-count: 3;
    column-gap: 15px;
}

#reference .gallery img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#reference .gallery img:hover {
    transform: scale(1.05);
}

.testimonial {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
}

#kontakt .contact-info {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

#kontakt .contact-info img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    background: linear-gradient(90deg, #4b2db4, #3380ff);
    color: white;
}

h2 {
    color: #4b2db4;
}

#counters .counter p.count {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4b2db4;
}
.btn-primary {
    padding: 15px 30px; /* Increase padding for larger buttons */
    font-size: 1.25rem; /* Increase font size */
    border-radius: 0; /* Remove rounded corners */
    border: 2px solid #8a7db4; /* Softer border color */
    background-color: #8a7db4; /* Softer button background color */
    color: white; /* Button text color */
}