/* Styles for the Cardiogram/Heart Section */

.section-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(5px);
    z-index: -1;
}

.pain-points {
    position: relative;
    padding: var(--spacing) 0;
    min-height: 700px;
    overflow: hidden;
}

.pain-points__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.pain-points__foreground {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cardiogram-svg {
    position: absolute;
    top: 75%;
    left: 0;
    width: 100%;
    height: 200px;
    transform: translateY(-50%);
}

.cardiogram-path {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2500;
    stroke-dashoffset: 2500;
    animation: draw-cardiogram 6s linear infinite;
    filter: drop-shadow(0 0 5px rgba(0, 191, 255, 0.7));
}

@keyframes draw-cardiogram {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Cardiogram Buttons --- */
.cardiogram-buttons {
    position: absolute;
    top: 72%; /* Adjusted to be higher */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px; /* Adjusted width */
    z-index: 10;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.cardiogram-button { /* New unique class */
    background: none;
    border: none;
    padding: 5px 10px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cardiogram-button h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: normal;
}

.cardiogram-button:hover {
    transform: scale(1.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
}


/* --- Heart Styles --- */
.heart-container {
    position: relative;
    width: 530px; /* Збільшено з 460px */
    height: 530px; /* Збільшено з 460px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: calc(8rem - 190px) auto 0 auto; /* Змінено з 60px */
    order: 2; /* Comes after title */
}

.heart-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 0.2;
    fill: none;
    z-index: 5;
    filter: drop-shadow(0 0 5px rgba(0, 191, 255, 0.7));
    animation: pulse-heart-and-glow 4s infinite ease-in-out;
}

.heart-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse-heart-and-glow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 3px rgba(0, 191, 255, 0.5));
    }
    50% {
        transform: scale(1.05); /* Додано пульсацію розміру */
        filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.8)); /* Збільшено світіння в пік */
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 3px rgba(0, 191, 255, 0.5));
    }
}

.heart-text {
    position: relative;
    transform: translateY(-100px);
    font-family: 'Ermilov', sans-serif;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.5);
    font-size: 1.5rem;
    white-space: nowrap;
}