body {
    font-family: Verdana, Geneva, sans-serif;
    background: #ffffff;
    position: relative;
    overflow-x: hidden;
}

/* Przyspieszone animacje */
.animate__animated {
    animation-duration: 0.5s !important;
}

/* Jeszcze szybsze animacje dla małych elementów */
.animate__faster {
    animation-duration: 0.3s !important;
}

/* Tło z siatką techniczną */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, #e8e8e8 0px, #e8e8e8 1px, transparent 1px, transparent 50px),
        repeating-linear-gradient(90deg, #e8e8e8 0px, #e8e8e8 1px, transparent 1px, transparent 50px);
    z-index: -2;
    opacity: 0.5;
}

/* Rysunek techniczny komina - tło */
.chimney-bg {
    position: fixed;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 800px;
    z-index: -1;
    opacity: 0.15;
    background-image: url('background.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.navbar {
    padding: 0.5rem 0;
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.navbar-text a {
    color: #15ac3a;
    font-weight: 700;
}

.navbar-text a:hover {
    color: #2bc05d;
}

.navbar-text i {
    color: #2bc05d;
}

.hero {
    color: white !important;
    padding: 80px 0 60px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.7;
}

.section-title {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid #2bc05d;
    display: inline-block;
}

.benefits-section {
    background: transparent;
    padding: 60px 0;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #2bc05d;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #34495e;
    font-size: 1.6rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-card h3 i {
    font-size: 2rem;
    color: #3498db;
}

.list-check {
    list-style: none;
    padding: 0;
}

.list-check li {
    padding: 12px 0 12px 40px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.8;
}

.list-check li::before {
    content: '\f26b';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: #2bc05d;
    font-weight: bold;
    font-size: 1.5rem;
    top: 8px;
}

.cta-section {
    background-image: url('small_house_backround.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.btn-custom {
    background: white;
    color: #1fda28;
    padding: 15px 15px;
    font-size: 1.0rem;
    font-weight: 600;
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: #2c3e50;
    color: white;
    transform: scale(1.05);
}

.footer {
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.gallery-section {
    background: transparent;
    padding: 60px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item::after {
    content: '\f52a';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 0.9;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.gallery-item:hover .video-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

#imageModal .modal-dialog {
    max-width: 90%;
}

#imageModal .modal-body {
    padding: 0;
}

#imageModal img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 45px;
    }

    .chimney-bg {
        opacity: 0.04;
        width: 300px;
    }

    .navbar-text {
        font-size: 0.9rem;
    }

    .navbar-text a {
        font-size: 0.9rem;
    }
}
