/* Hero Thermopump Section Styles */
.hero-thermopump-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    opacity: 60%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0; 
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: background-image 0.8s ease-in-out;
}

/* Shape2 изображение в десния ъгъл */
.hero-shape2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 22.22% !important; /* Заема 1/3 от ширината (дясната част) */
    height: 70% !important;
    z-index: 1;
    object-fit: cover;
    object-position: center;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.1) 0%, rgba(30, 58, 95, 0.05) 100%);
    z-index: 1;
}

.hero-content {
    padding: 60px 0;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 68px;
    line-height: 78px;
    color: #1a365d;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 18px;
    line-height: 30px;
    color: #2d3748;
    margin-bottom: 35px;
    max-width: 480px;
    font-weight: 500;
}

.btn-hero {
    background-color: #1e3a5f;
    color: white;
    padding: 18px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-hero:hover {
    background-color: #2c5282;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
    color: white;
    text-decoration: none;
}



/* Gear Chart Styles */
.hero-gear-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 40px 0px;
}

.gear-container {
    position: relative;
    width: 650px;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gear-chart {
    width: 100%;
    height: 100%;
    /* filter: drop-shadow(0 25px 50px rgba(26, 54, 93, 0.6)); */
}

.gear-teeth {
    /* Премахната анимация - зъбното колело е статично */
    transform-origin: 400px 400px;
    /* filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3)); */
}

.chart-segments .segment {
    transition: all 0.4s ease;
    cursor: pointer;
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 3;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

.chart-segments .segment:hover {
    filter: brightness(1.2) saturate(1.3) contrast(1.15) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transform-origin: 400px 400px;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 4;
    transform: scale(1.02);
}

/* Segment labels styling */
.segment-labels .segment-text {
    transition: all 0.3s ease;
    cursor: pointer;
}

.segment-labels .segment-text:hover {
    transform: scale(1.1);
    transform-origin: center;
}

.segment-labels circle {
    transition: all 0.3s ease;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.segment-labels .segment-text:hover circle {
    stroke-width: 4;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    transform: scale(1.05);
}

.segment-labels text {
    font-family: 'Arial', sans-serif;
    
    /* text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9); */
    letter-spacing: 1px;
    pointer-events: none;
}

/* Enhanced icon styling for segment labels */
.segment-labels path,
.segment-labels circle:not(.segment-text circle) {
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

/* Individual segment text hover effects */
.segment-text-1:hover circle {
    stroke: #0f2a44;
    fill: rgba(255, 255, 255, 1);
}

.segment-text-2:hover circle {
    stroke: #1e3a5f;
    fill: rgba(255, 255, 255, 1);
}

.segment-text-3:hover circle {
    stroke: #2563eb;
    fill: rgba(255, 255, 255, 1);
}

.segment-text-4:hover circle {
    stroke: #1e40af;
    fill: rgba(255, 255, 255, 1);
}

/* Enhanced styles for image-based segments */
.chart-segments {
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.chart-segments .segment {
    opacity: 0.92;
}

.chart-segments .segment:hover {
    opacity: 1;
}

/* Individual segment hover effects with better contrast */
.chart-segments .segment-1:hover {
    filter: brightness(1.15) saturate(1.4) contrast(1.1) hue-rotate(3deg) drop-shadow(0 4px 12px rgba(26, 54, 93, 0.4));
}

.chart-segments .segment-2:hover {
    filter: brightness(1.15) saturate(1.4) contrast(1.1) hue-rotate(-3deg) drop-shadow(0 4px 12px rgba(44, 82, 130, 0.4));
}

.chart-segments .segment-3:hover {
    filter: brightness(1.15) saturate(1.4) contrast(1.1) hue-rotate(5deg) drop-shadow(0 4px 12px rgba(49, 130, 206, 0.4));
}

.chart-segments .segment-4:hover {
    filter: brightness(1.15) saturate(1.4) contrast(1.1) hue-rotate(-5deg) drop-shadow(0 4px 12px rgba(66, 153, 225, 0.4));
}

/* Gear teeth enhanced styling - сив цвят */
.gear-teeth path {
    transition: all 0.3s ease;
    fill: #9eafc4 !important;
    stroke: #9eafc4 !important;
}

/* Animation for gear rotation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 64px;
        line-height: 74px;
    }

    .gear-container {
        width: 550px;
        height: 550px;
    }

    .hero-shape2 {
        width: 40% !important; /* По-голяма част на по-малки екрани */
    }

    .hero-background {
        right: 40%; /* Съответно намаляване на фоновото изображение */
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 56px;
        line-height: 66px;
    }

    .hero-description {
        font-size: 18px;
        line-height: 28px;
    }

    .gear-container {
        width: 400px;
        height: 400px;
    }

  
}

@media (max-width: 768px) {
    .hero-thermopump-section {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-content {
        padding: 30px 0;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
        line-height: 52px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 25px;
        max-width: 100%;
    }

    .btn-hero {
        padding: 14px 28px;
        font-size: 14px;
    }

    .segment-labels path, .segment-labels circle:not(.segment-text circle){
        display: none;
    }

    .gear-container {
        height: 300px;
    }

    .segment-labels text {
        display: none;
    }

    .segment-labels circle {
        stroke-width: 2;
    }

    /* На мобилни устройства - само фоновото изображение */
    .hero-background {
        right: 0; /* Фоновото изображение заема цялата ширина */
    }

    .hero-shape2 {
        display: none; /* Скриваме Shape2 на мобилни устройства */
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 36px;
        line-height: 46px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 24px;
    }

    .btn-hero {
        padding: 12px 24px;
        font-size: 13px;
    }

  

   
}

/* Animation for gear rotation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Additional styling for better visual hierarchy */
.hero-thermopump-section .container {
    position: relative;
    z-index: 2;
}

.hero-thermopump-section .row {
    align-items: center;
    min-height: 80vh;
}

/* Ensure proper spacing and alignment */
.hero-content h1,
.hero-content p,
.hero-content .hero-button {
    animation: fadeInUp 1s ease-out;
}

.hero-gear-chart {
    animation: fadeInRight 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- визуалните корекции за новия стил --- */
.segment-labels text       { font-family: "Montserrat", sans-serif; letter-spacing: 3px; }

.segment-labels path[fill="none"] { fill: none; }

.chart-segments path:hover  { filter: brightness(1.15) saturate(1.15); }

/* зъбното колело въртене */