* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: linear-gradient(135deg, #a73af6 0%, #3cc0f6 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.infographic-container {
    flex-grow: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.connectors line {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 3;
    stroke-dasharray: 6 6; /* Dotted effect */
    stroke-linecap: round;
    /* initial state offset for animation to use */
    animation: dash 2s linear infinite;
}

@keyframes dash {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.node-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.3s ease;
}

.node {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.center-node-wrapper {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.center-node {
    width: 200px;
    height: 200px;
    background-color: #ffffff;
    border: 4px solid rgba(255, 255, 255, 0.5); /* Added border */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    color: #333333;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.center-node:hover {
    transform: scale(1.05);
    box-shadow: 0 24px 36px rgba(0, 0, 0, 0.25);
}

.outer-node {
    width: 160px;
    height: 160px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 4px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    /* ensure image stays in circle */
    overflow: hidden; 
}

/* Add an extra inner border effect like the image using a pseudo element */
.outer-node::before, .center-node::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 5;
}

.node-wrapper:hover .outer-node {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.node-title-inside {
    position: relative;
    z-index: 10;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
    pointer-events: none;
}

.footer {
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    z-index: 10;
}

.footer p {
    color: #333333;
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .center-node {
        width: 160px;
        height: 160px;
    }
    .center-node span {
        font-size: 0.9rem;
    }
    .outer-node {
        width: 120px;
        height: 120px;
    }
    .outer-node span {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .center-node {
        width: 120px;
        height: 120px;
    }
    .center-node span {
        font-size: 0.75rem;
    }
    .outer-node {
        width: 90px;
        height: 90px;
    }
    .outer-node span {
        font-size: 0.6rem;
    }
    .footer p {
        font-size: 0.8rem;
    }
}
